Gated Concept Adapters: Layer-Wise Concept Bottlenecks for Auditable Text Understanding
Organizations: Department of Computer Engineering, Amirkabir University of Technology (Tehran Polytechnic), Tehran, Iran
Abstract
Human-facing text understanding systems are used to infer affect, moderate harmful content, and support socially sensitive decisions. However, Transformer predictions are difficult to audit because they are produced from high-dimensional hidden states that do not provide a compact, inspectable interface for human analysis or intervention. We introduce Gated Concept Adapters (GCA), a layer-wise concept bottleneck framework that attaches gated, low-dimensional concept-producing readout adapters to selected outputs of pretrained Transformers. Token representations are mapped into concept activations, filtered by learned gates, pooled into layer-level summaries, and exposed to the prediction head as a concept-mediated interface. The dimensions can be inspected through usage statistics, signature n-grams, post-hoc concept names, and targeted concept interventions. We evaluate GCA on fine-grained emotion classification, toxicity detection, topic classification, and a controlled verb-cloze stress test. In the affective and safety-relevant classification settings, GCA learns comparatively low-redundancy and intervention-sensitive concept representations while retaining useful predictive performance. On toxicity detection, it remains close to an unconstrained ModernBERT baseline while enabling concept-level inspection, targeted intervention, and lightweight post-hoc control. On GoEmotions, the end-to-end concept model incurs a macro-F1 cost relative to unconstrained RoBERTa, while a task-initialized frozen variant substantially reduces this gap. On AG News, GCA remains competitive with recent concept-based baselines, and the Qwen verb-cloze experiment clarifies the limits of concept-mediated full-vocabulary prediction. Overall, GCA provides a neural concept interface for auditable text understanding, prioritizing transparency, diagnosis, and intervention over unconstrained accuracy maximization.
Figures & tables
| Model | Macro-F1 | Micro-F1 | Macro-AUPRC | Micro-AUPRC |
| RoBERTa | 0.5230 0.0108 | 0.6032 0.0038 | 0.5123 0.0074 | 0.6384 0.0077 |
| MLC | 0.4587 0.0104 | 0.5698 0.0071 | 0.4328 0.0043 | 0.6005 0.0036 |
| TI-F-MLC | 0.5090 0.0083 | 0.6021 0.0051 | 0.4988 0.0052 | 0.6437 0.0078 |
| F-MLC | 0.3799 0.0114 | 0.5478 0.0204 | 0.3934 0.0047 | 0.6023 0.0050 |
| MLA | 0.4511 0.0129 | 0.5614 0.0208 | 0.4440 0.0089 | 0.5910 0.0088 |
| SLC | 0.4593 0.0120 | 0.5746 0.0075 | 0.4389 0.0031 | 0.5800 0.0120 |
| Model | Top-10 Mass | Gini | Redundancy |
| RoBERTa | – | – | – |
| MLC | 0.1330 0.0030 | 0.7454 0.0046 | 0.1784 0.0042 |
| TI-F-MLC | 0.2974 0.0254 | 0.8956 0.0079 | 0.1300 0.0031 |
| F-MLC | 0.1764 0.0249 | 0.8297 0.0235 | 0.1508 0.0092 |
| MLA | 0.0671 0.0030 | 0.5443 0.0066 | 0.2438 0.0078 |
| SLC | 0.6198 0.0358 | 0.6641 0.0254 | 0.2037 0.0099 |
| Model | Targeted Drop | Random Drop | Gap |
| RoBERTa | – | – | – |
| MLC | 0.2827 0.0167 | 0.0010 0.0006 | 0.2817 0.0166 |
| TI-F-MLC | 0.4671 0.0159 | 0.0028 0.0006 | 0.4643 0.0155 |
| F-MLC | 0.3098 0.0221 | 0.0008 0.0006 | 0.3090 0.0220 |
| MLA | 0.3706 0.0224 | 0.0030 0.0003 | 0.3676 0.0225 |
| SLC | 0.4016 0.0160 | 0.0067 0.0029 | 0.3949 0.0181 |
| Model | Accuracy | Macro-F1 | Log loss |
| RoBERTa | |||
| MLA | |||
| MLC | |||
| TI-F-MLC | |||
| CB-LLM | |||
| HI-Concept |
| Model | Top-10 mass | Redund. | Purity | Abl. gap | Rand. drop |
| MLA | |||||
| MLC | |||||
| TI-F-MLC | |||||
| CB-LLM | |||||
| HI-Concept |
| Metric | FT-MBERT | ModernBERT-MLC |
| Target F1 | ||
| Target AUC | ||
| Target AUPRC | ||
| Valid-label Macro-F1 | ||
| Valid-label Micro-F1 | ||
| Valid-label Macro-AUPRC |
| Group | Metric | Value |
| Concept space | Entropy | |
| Concept space | Top-10 mass | |
| Concept space | Gini | |
| Concept space | Active concepts | |
| Concept space | Redundancy | |
| Concept space | Layer entropy / peakiness | / |
| Metric | ModernBERT-MLC | ModernBERT-MLC-Debias |
| Target F1 | ||
| Target AUC | ||
| Target AUPRC | ||
| Subgroup AUC | ||
| BPSN AUC | ||
| BNSP AUC |
| Metric | Qwen-FT-NoConcept | Qwen- MLC |
| Top-1 accuracy | 0.5271 0.0009 | 0.5077 0.0100 |
| Top-5 accuracy | 0.8100 0.0036 | 0.7566 0.0107 |
| Top-10 accuracy | 0.8676 0.0013 | 0.8088 0.0090 |
| MRR | 0.6559 0.0014 | 0.6231 0.0099 |
| Top-1 on aux | 0.6431 0.0030 | 0.6560 0.0131 |
| Top-1 on verb | 0.4336 0.0008 | 0.3882 0.0077 |
| Metric | Value |
| Concept dimensions | |
| Per-example top-10 concept mass | |
| Per-example Gini | |
| Active dimensions | / 768 |
| Mean absolute concept correlation | |
| Final-layer usage mass |
Appendix figures & tables24 assets
Supplementary material from the paper’s appendix.
Appendix
| Term | Encouraged behavior | Failure mode addressed |
| Only a few concepts should have large values for an example. | Dense explanations with many weakly active dimensions. | |
| Evidence should concentrate in the most relevant dimensions. | The same prediction is spread thinly across many small activations. | |
| Token-level concept channels should open selectively. | All channels remain open for all tokens. | |
| Different dimensions should encode distinct evidence. | Several concept dimensions duplicate the same cue. | |
| Tokens assigned to the same dominant concept should behave coherently. | One concept activates on unrelated spans, making naming unreliable. | |
| Class- or label-level examples should avoid repeated usage collapse. | Many examples rely on the same few concepts despite heterogeneous evidence. |
| Setting | Dataset and split | Backbone | Prediction target | Main role in evaluation |
| Emotion classification | GoEmotions; 43,410 / 5,426 / 5,427 | RoBERTa-base | 28-label sigmoid output | Main controlled benchmark for architecture variants, loss ablations, layer routing, intervention analysis, per-label behavior, and concept-name audit. |
| Topic classification | AG News; 108,000 / 12,000 / 7,600 | RoBERTa-base | 4-way softmax output | Direct comparison with external concept-based baselines on a compact single-label topic task. |
| Toxicity detection | Jigsaw/Civil Comments; 1,443,895 / 180,487 / 180,487 | ModernBERT-base | 7-label sigmoid output; 6 labels used for aggregate metrics | Safety-relevant multi-label setting for intervention analysis and post-hoc concept-level control. |
| Verb cloze | UD English-EWT; 28,156 / 3,509 / 3,422 | Qwen | Full-vocabulary single-token prediction | Controlled decoder-side stress test of concept-mediated full-vocabulary prediction. |
| Variant | Backbone and trainable components | Tasks used | Purpose |
| RoBERTa , FT-ModernBERT , Qwen-FT-NoConcept | Backbone and prediction head fine-tuned without concept adapters | Matched task for each backbone | Unconstrained predictive baselines used to measure the cost of adding a concept-mediated prediction path. |
| MLC | Backbone parameters allowed by the task-specific fine-tuning policy, layer-wise GCA modules, and prediction head trained jointly | GoEmotions, AG News, toxicity, Qwen | Main concept-bearing model; tests joint learning of a layer-wise concept interface. |
| TI-F-MLC | Task-adapted backbone frozen; GCA modules and prediction head trained | GoEmotions, AG News | Performance-preserving diagnostic variant; tests whether a task-specialized encoder can be wrapped with an auditable concept readout. |
| F-MLC | Pretrained backbone frozen; GCA modules and prediction head trained | GoEmotions | Tests concept learning when the backbone itself is not task-adapted. |
| MLA | Multi-layer adapter architecture trained with task loss only; no concept-structure regularizers | GoEmotions, AG News | Separates architecture and capacity from concept-oriented regularization. |
| SLC | Single final-layer concept bottleneck with concept-structure regularization | GoEmotions | Tests whether a final-layer-only concept interface can replace layer-wise concept routing. |
| Model | Selected layers | Len. | Batch | Learning rate(s) | Seeds | ||
| GoEmotions MLC | 56 | 12 encoder layers | 112 | 64 | 64 | 5 | |
| AG News MLC | 56 | 12 encoder layers | 112 | 180 | 32 | 5 | |
| Toxicity ModernBERT-MLC | 40 | all encoder layers | 80 | 256 | 64 | 5 | |
| Qwen verb cloze | 64 | last 12 decoder layers | 128 | 96 | 16 | / | 3 |
| Task / model | |||||||
| GoEmotions selected MLC | 56 | 0.012 | 0.002 | 0.003 | 0.0015 | 0 | |
| GoEmotions older sparse no-usage setting | 56 | 0.020 | 0.004 | 0.005 | 0.0025 | 0 | |
| AG News MLC | 56 | 0.020 | 0.004 | 0.005 | 0.0025 | 0.075 | |
| Toxicity ModernBERT-MLC | 40 | 0.030 | 0.0045 | 0.008 | 0.0035 | 0.075 | |
| Qwen verb cloze | 64 | 0.010 | 0.003 | 0.002 | – | 0.001 | 0 |
| Task / model | Backbone | Epochs | Batch | Usage margin |
| GoEmotions MLC | RoBERTa-base | 15 | 64 | – |
| AG News MLC | RoBERTa-base | 5 | 32 | 0.35 |
| Toxicity ModernBERT-MLC | ModernBERT-base | 2 | 64 / 32 | 0.25 |
| Qwen verb cloze | Qwen/Qwen2-7B-Instruct | 2 | 16 / 4 | – |
| Role / model | Decoding | Max. new tokens |
| Mistral candidate labeler | temperature 0 | 220 |
| Llama candidate labeler | greedy decoding | 220 |
| Qwen referee | 3 deterministic referee votes | 140 |
| Task/model | Training time | Test inference time |
| GoEmotions MLC | 2 min/epoch | 8 s |
| AG News MLC | 14 min/epoch | 58 s |
| Toxicity ModernBERT-MLC | 3.7 h/epoch | 10 min |
| Qwen verb cloze | 4.7 h/epoch | 4.4 min for 3,422 examples |
| Support bin | Labels | Mean support | MLC gap | TI-F-MLC gap |
| Rare ( ) | 8 | 38.8 | ||
| Low (100–249) | 12 | 157.5 | ||
| Medium (250–499) | 6 | 306.3 | ||
| Frequent ( ) | 2 | 1145.5 |
| Label | Support | RoBERTa | MLC | TI-F-MLC |
| grief | 6 | 0.239 | 0.099 | 0.077 |
| relief | 11 | 0.259 | 0.068 | 0.187 |
| pride | 16 | 0.496 | 0.333 | 0.458 |
| nervousness | 23 | 0.383 | 0.263 | 0.311 |
| embarrassment | 37 | 0.492 | 0.290 | 0.507 |
| remorse | 56 | 0.696 | 0.674 | 0.686 |
| Ablated dimensions | Targeted Drop | Random Drop | Gap |
| Top-5 | 0.2005 0.0101 | 0.0004 0.0003 | 0.2001 0.0100 |
| Top-10 | 0.2827 0.0167 | 0.0010 0.0006 | 0.2817 0.0166 |
| Top-20 | 0.3534 0.0206 | 0.0017 0.0015 | 0.3517 0.0200 |
| Setting | Macro-F1 | Micro-F1 |
| Task only | 0.4511 0.0113 | 0.5710 0.0072 |
| selected | 0.4518 0.0062 | 0.5703 0.0029 |
| Selected | 0.4508 0.0040 | 0.5728 0.0089 |
| selected | 0.4539 0.0058 | 0.5649 0.0042 |
| Old stronger sparse | 0.4468 0.0128 | 0.5634 0.0060 |
| Setting | Top-10 Mass | Gini | Redundancy | Gap |
| Task only | 0.0689 0.0027 | 0.5493 0.0053 | 0.2483 0.0055 | 0.3297 0.0184 |
| selected | 0.0995 0.0056 | 0.6652 0.0123 | 0.2285 0.0017 | 0.2909 0.0279 |
| Selected | 0.1296 0.0045 | 0.7376 0.0075 | 0.2090 0.0012 | 0.2911 0.0295 |
| selected | 0.1664 0.0061 | 0.7949 0.0083 | 0.1893 0.0026 | 0.2954 0.0287 |
| Old stronger sparse | 0.1738 0.0037 | 0.8095 0.0051 | 0.1864 0.0070 | 0.2923 0.0411 |
| Configuration | Macro-F1 | Micro-F1 | Macro-AUPRC |
| Task-only bottleneck | 0.4503 0.0154 | 0.5623 0.0074 | 0.4292 0.0079 |
| Selected + usage-div | 0.4422 0.0126 | 0.5578 0.0096 | 0.4100 0.0112 |
| Selected MLC | 0.4531 0.0124 | 0.5682 0.0060 | 0.4291 0.0058 |
| No | 0.4546 0.0093 | 0.5678 0.0016 | 0.4303 0.0088 |
| No exclusivity | 0.4618 0.0124 | 0.5696 0.0070 | 0.4336 0.0073 |
| No orthogonality | 0.4550 0.0081 | 0.5674 0.0067 | 0.4315 0.0075 |
| Configuration | Top-10 Mass | Gini | Redundancy | Ablation Gap |
| Task-only bottleneck | 0.0681 0.0026 | 0.5495 0.0048 | 0.2500 0.0067 | 0.3230 0.0106 |
| Selected + usage-div | 0.1622 0.0084 | 0.7659 0.0115 | 0.2020 0.0039 | 0.2946 0.0206 |
| Selected MLC | 0.1300 0.0026 | 0.7413 0.0077 | 0.2079 0.0023 | 0.2866 0.0200 |
| No | 0.0758 0.0027 | 0.6006 0.0051 | 0.2279 0.0047 | 0.3236 0.0137 |
| No exclusivity | 0.1195 0.0028 | 0.7078 0.0047 | 0.2142 0.0043 | 0.2769 0.0219 |
| No orthogonality | 0.1297 0.0033 | 0.7381 0.0074 | 0.2201 0.0028 | 0.2858 0.0186 |
| Label | Representative high-ranking concepts | Mined textual evidence |
| amusement | Humorous ; Insulting Humor ; Making Something Humorous ; Positive Emotions | “funny”, “fun”, “hilarious”, “a joke”, “hahaha”, “making”, “have fun” |
| love | Love For A Name ; Affection For A Name ; Express Affection Towards A Person ; Emotional Expressions | “i love this”, “i love name”, “i like name”, “my favorite”, “loves”, “cute”, “amazing” |
| fear | Negative Emotion ; Fear ; Fear Vs Positive Emotions ; Danger | “terrible”, “afraid”, “scared”, “scary”, “horrible”, “fear”, “nightmare”, “dangerous” |
| remorse | Apology ; Apology And Negative Emotion ; Wishing | “i’m sorry”, “i’m so sorry”, “wish”, “regret”, “shame”, “absolute worst” |
| optimism | Aspirational Vs Negative Outlook ; Excitement Vs Hope Negation ; Hope And Luck Vs Uncertainty ; Positive Emotions | “hope”, “i hope”, “hopefully”, “luck”, “good luck”, “you’re ok”, “goes well” |
| disgust | Expressing Disappointment ; Apology And Negative Emotion ; Negative Evaluation ; Desire Vs Hate | “disgusting”, “i hate”, “weird”, “nasty”, “shame”, “absolute”, “the worst”, “awful” |
| Case | Input snippet | Explained label and intervention | Main supporting concept evidence |
| 1 | “Lol! But I love your last name though. XD” | amusement : , ; love : , | Humor-related concepts support amusement ; name/affection concepts support love . |
| 2 | “I’ve also heard that intriguing but also kinda scary” | fear : , | Fear and danger concepts dominate. |
| 3 | “I’m sorry to hear that friend :(. It’s for the best most likely if she didn’t accept you for who you are” | remorse : , | Apology-related concepts dominate. |
| 4 | “Kings fan here, good luck to you guys! Will be an interesting game to watch!” | predicted optimism : , | Hope/luck concepts support an adjacent positive-affect prediction. |
| 5 | “The thought of shooting anything at asylum seekers is appalling.” | predicted disgust : , ; gold fear : , | The model routes “appalling” mainly through broad negative-evaluation concepts, supporting disgust more strongly than the gold fear label. |
| Pred. class | Input snippet | Ablated concept descriptors | Probability change |
| Sports | Giddy Phelps Touches Gold for First Time. Michael Phelps won the gold medal in the 400 individual medley and set a world record. | Sports; Olympic/athlete context; teams; event-specific evidence | |
| World | Iraqi oil exports slump: report. Near daily attacks on pipelines and pumping stations pushed down Iraq’s oil exports to their lowest point in nearly a year. | Conflict; military action; Middle Eastern conflict; geopolitical region | |
| Business | Stanley Leisure announced a plan to develop a casino complex on land adjacent to Leeds United’s Elland Road. | Economic activity; financial gain; price/profit-related business evidence | |
| Sci/Tech | Czech Republic’s cell operators were fined for breaching competition rules, officials said Thursday. | Technology products; communications operators; technology source; named entities |
| Case | Input excerpt | Gold / prediction | Key concept evidence |
| TP–direct insult | “I don’t deal with idiots.” | Gold: toxic, insult. Pred.: toxic, ; insult, . | Insulting or derogatory comments ; Negative evaluation of a person ; Insulting or Offensive Language . |
| FP–rhetorical criticism | “What a load of rubbish! …” | Gold: non-toxic. Pred.: toxic, ; insult, . | Concepts associated with negative or dismissive language. |
| FN–identity/topic framing | “Islamic Terrorism was not born …” | Gold: toxic, identity_attack. Pred.: non-toxic, below threshold; identity_attack, . | Identity/topic-related evidence appears, but the final probabilities remain below threshold. |
| Case | Sentence | Top predictions | Representative concept evidence |
| Correct aux | We have utilized Mr. Pozza and his firm twice now in our family and both times have [BLANK] very pleased. | Gold: been . Top-5: been , was , felt , being , kept . | have -perfect frame; local evidence: “both times have [BLANK] ”. |
| Plausible near miss | Make sure to put OILY sauces on your food to [BLANK] it moist! | Gold: make . Top-5: keep , make , save , get , help . | Transitive [BLANK] – it frame; local evidence: “ [BLANK] it moist”. |
| Hard lexical error | But because we do not want to [BLANK] hateful, we must pretend everyone is a possible suspect. | Gold: sound . Top-5: be , feel , have , continue , get . | Infinitival verb slot; local evidence: “want to [BLANK] hateful”. |
| Task | Model | Strict | Relaxed | Ground. | Coher. | Spec. | |
| GoEmotions | MLC | 100 | 65.0% | 69.0% | 3.81 | 3.83 | 3.73 |
| AG News | MLC | 100 | 68.0% | 76.0% | 4.19 | 4.24 | 4.03 |
| Toxicity | ModernBERT-MLC | 100 | 62.0% | 69.0% | 4.07 | 4.02 | 3.85 |
| Overall | – | 300 | 65.0% | 71.3% | 4.02 | 4.03 | 3.87 |
| Task | Strict | Relaxed | Four-way |
| GoEmotions | 0.666 | 0.593 | 0.562 |
| AG News | 0.641 | 0.588 | 0.536 |
| Toxicity | 0.467 | 0.511 | 0.354 |
| Task | Proposed name | Failure mode | Safer reading of the evidence |
| GoEmotions | Cake Day Celebration | Too narrow | The evidence includes “happy cake day” and “cake day”, but also broader wish/affection terms such as “wish”, “heart”, and “home”. |
| GoEmotions | Rock Beats | Wrong pole / contrastive fragment | The rock–paper–scissors phrase appears mainly in contrastive evidence, while the primary side contains “welcome”, “agree”, “support”, “congrats”, and thanks-like snippets. |
| AG News | Oil | Partially grounded but too narrow | Some -grams mention oil and prices, but examples also involve welfare protests, power shortages, government, and an airport collapse. |
| AG News | Politics | Contradicted by dominant evidence | The dominant evidence includes sports and injury cues such as “points”, “knee”, “Manning”, “Champions League”, and “Manchester United”. |
| Toxicity | Negative Moral Character / thank | Mixed unrelated cues | Several examples express thanks or short positive acknowledgements, so the “negative moral character” component is not supported by the primary evidence. |
| Toxicity | Possessive Noun Phrase / Anti-Muslim sentiment | Over-interprets contrastive side | The primary evidence is mostly crude sexual/body-part language, while identity-related content appears mainly in contrastive evidence. |