Papers › GRADIEND: Monosemantic Feature Learning within Neural Networks Applied to Gender...

GRADIEND: Monosemantic Feature Learning within Neural Networks Applied to Gender Debiasing of Transformer Models

3 Feb 2025arXiv:2502.01406archive 2025-07-28

Jonathan Drechsel, Steffen Herbold

AI systems frequently exhibit and amplify social biases, including gender bias, leading to harmful consequences in critical areas. This study introduces a novel encoder-decoder approach that leverages model gradients to learn a single monosemantic feature neuron encoding gender information. We show that our method can be used to debias transformer-based language models, while maintaining other capabilities. We demonstrate the effectiveness of our approach across multiple encoder-only based models and highlight its potential for broader applications.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2502.01406")

Code

Syntology Ran 6 of 11 code samples harvested from 2 repositories linked to this paper; 5 have no recorded run. Of those that ran: 4 ran · our draft was wrong; 2 ran with no contract checked.

By repository: official repository: 3 samples from 1 repository, 2 ran; found in paper text by Syntology: 8 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

aieng-lab/gradiend officialmentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 6 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

4ran · our draft was wrong
2ran
5unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

LargeLinear aieng-lab/gradiend/gradiend/model/model.py official repository ran Apache-2.0 (permissive) · f0ae40797e7c4249 · report
get_activation aieng-lab/gradiend/gradiend/model/model.py official repository ran · our draft was wrong Apache-2.0 (permissive) · b5d368803b6b5a6c · report
GradiendModel aieng-lab/gradiend/gradiend/model/model.py official repository unverified Apache-2.0 (permissive) · 0b09e27b255b08fa · report
LargeLinear aieng-lab/gradiend-bias/gradiend/model.py found in paper text by Syntology ran Apache-2.0 (permissive) · 2fce88cdf9c23568 · report
convert_tuple_keys_recursively aieng-lab/gradiend-bias/gradiend/model.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 20e1c499fda1de6c · report
get_activation aieng-lab/gradiend-bias/gradiend/model.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · c056e040a07e6c67 · report
hash_it aieng-lab/gradiend-bias/gradiend/model.py found in paper text by Syntology ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · e9a1e0ae7afb92c6 · report
GradiendModel aieng-lab/gradiend-bias/gradiend/model.py found in paper text by Syntology unverified Apache-2.0 (permissive) · f3498d317263f1a7 · report
compute_bias_score aieng-lab/gradiend-bias/gradiend/evaluation/analyze_decoder.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 7c76d06aaa408115 · report
compute_bias_score_v1 aieng-lab/gradiend-bias/gradiend/evaluation/analyze_decoder.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 63880b46142f096d · report
compute_bias_score_v2 aieng-lab/gradiend-bias/gradiend/evaluation/analyze_decoder.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 4f6a9dbc21fa4d20 · report

Tasks

Decoder

Datasets

Introduced by this paper, per the archive.

GENEUTRALGENTERGENTYPESNAMEXACTNAMEXTEND

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections