Gated Concept Adapters: Layer-Wise Concept Bottlenecks for Auditable Text Understanding

Niloofar Ranjbar, Saeedeh Momtazi, Mohammad Mehdi HomayounpoorarXiv 2026

TL;DR

Transformers are brilliant at predicting emotions or flagging toxic text, yet notoriously opaque about why they make those calls. Gated Concept Adapters (GCA) tap into multiple layers of a Transformer to funnel its scattered, high-dimensional thoughts through a compact set of inspectable "concepts" right before the final decision. It’s like installing a mixing board on an AI’s output path: you trade a sliver of raw predictive flexibility for the ability to see which concepts drive a decision—and mute them in real time.

What Problem Does This Paper Address?

When an AI moderates hate speech or gauges human emotion, high accuracy isn't enough; we need to audit how it arrived at its answer so we know it isn't relying on brittle shortcuts or demographic biases. Standard Transformers process text through sprawling, thousand-dimensional hidden states where individual numbers mean nothing to a human.

Existing interpretability tools leave us with a tough dilemma:

  • Post-hoc probes find human-readable patterns after training, but there's no guarantee the model actually uses those patterns to make its final decision.
  • Classical Concept Bottleneck Models (CBMs) force decisions through human-understandable concepts, but typically require humans to manually define and label every relevant concept beforehand—an impossible task for nuanced, open-ended text.

Furthermore, putting a single bottleneck at the very end of a network hides how evidence builds up across the depth of a Transformer. The authors ask: Can we build an internally learned, multi-layer concept interface that requires zero human concept annotations, sits directly on the prediction path, and lets us actively intervene on the model's behavior?

Methods

Instead of interrupting the Transformer's internal flow—which would ruin its pretrained power—GCA attaches lightweight readout adapters to the side of selected Transformer layers. Think of these as diagnostic taps creating a separate "prediction-facing" highway.

Figure 1: Overview of the proposed Gated Concept Adapter (GCA) framework. Concept-producing readout adapters are attached to selected Transformer layer outputs. They produce gated token-level concept activations, which are pooled into layer-level concept summaries. For classification, a label-wise layer-attention head combines these summaries and predicts from the fused concept representation. For Qwen verb cloze, the concept stack is projected to a decoder-hidden representation and scored with the vocabulary projection. The Transformer hidden stream is not replaced by the concept variables; instead, the task head predicts from the concept-mediated path.

Here is how an input moves through GCA:

  1. Extract & Gate: At each selected layer, token representations are compressed into low-dimensional concept activations and filtered by learned soft gates (which suppress irrelevant channels per token).
  2. Pool & Route: Token concepts are pooled into a single summary per layer. A label-conditioned layer-attention head then lets each target class (e.g., amusement vs. fear) decide which Transformer depths to listen to.
  3. Structure via Regularization: Because there are no human concept labels during training, GCA shapes the latent space using modular math penalties—encouraging sparsity, concentration, token coherence, and decorrelation (so 20 different channels don't learn the exact same thing).
  4. Post-Hoc Naming & Intervention: Only after training are concepts named for human inspection: the authors mine top-activating phrases ($n$-grams) and pass them to an LLM proposal-and-referee pipeline (Mistral + Llama proposing, Qwen refereeing). To prove the model actually relies on these concepts, they run targeted ablations—zeroing out top-supporting concepts at test time to see if predictions drop compared to zeroing out random ones.

Datasets

No brand-new datasets are introduced, though the authors construct a controlled verb-cloze stress test from existing linguistic data:

  • GoEmotions: 54k Reddit comments across 28 fine-grained, overlapping emotion labels (tested with RoBERTa).
  • Jigsaw / Civil Comments: ~1.8M comments for safety-relevant toxicity and identity-bias evaluation (tested with ModernBERT).
  • AG News: 127.6k news articles across 4 coarse topics, used to benchmark against external concept models.
  • UD English-EWT (Verb-Cloze): ~35k prompts where a single verb or auxiliary (VERB/AUX) is masked as [BLANK], testing whether Qwen2-7B can predict across its full vocabulary via a concept bottleneck.

Key Insights and Ideas

  • Architecture alone doesn't create concepts: A control model with the exact same multi-layer adapter architecture trained only for accuracy (no regularizers) yielded diffuse, redundant representations. Explicit structural penalties are what crystallize clean concepts.
  • Different emotions live at different depths: When trained end-to-end on GoEmotions, the model routed different emotions from distinct early, middle, and late Transformer layers—validating the multi-layer design over a single final-layer bottleneck.
  • Wrap an already-trained model to save accuracy: Training a concept bottleneck from scratch hurts rare-class accuracy. However, taking an already task-finetuned encoder, freezing it, and training GCA on top (TI-F-MLC) recovers nearly all lost performance while yielding highly concentrated concepts.
  • Concepts double as a lightweight bias-control surface: On toxicity detection, freezing the entire model and training just a tiny multiplicative gate over the learned concepts cut counterfactual sensitivity to demographic identity terms nearly in half—without retraining the Transformer or manually picking "identity" concepts.

Key Results

  • Affective Prediction (GoEmotions): Unconstrained RoBERTa leads in Macro-F1 (0.5230). End-to-end GCA drops to 0.4587 (struggling mostly on rare emotions), while the task-initialized frozen variant (TI-F-MLC) rebounds to 0.5090. Zeroing out the top-10 supporting concepts drops target probability by 0.2827 (0.4671 for TI-F-MLC) vs. ~0.001 for random concepts.
  • Toxicity & Debiasing (Jigsaw): ModernBERT-MLC closely trails unconstrained ModernBERT on primary toxicity F1 (0.7078 vs. 0.7156) with ultra-low concept redundancy (0.0542). Adding the post-hoc debiasing gate boosts subgroup fairness (BPSN AUC rises from 0.9045 to 0.9344) and cuts counterfactual logit shifts from 0.4479 to 0.2355, trading off <1 point of F1 (0.6983).
  • Topic Classification (AG News): GCA hits 94.41% accuracy (95.08% with TI-F-MLC), matching unconstrained RoBERTa (94.84%) and external concept baselines like CB-LLM (94.53%).
  • Full-Vocabulary Cloze (Qwen2-7B): Funneling vocabulary prediction through 768 concepts drops overall top-1 accuracy from 52.71% to 50.77%. Intriguingly, GCA slightly beats the baseline on grammatical auxiliaries (65.60% vs. 64.31%) while struggling on specific lexical verbs (38.82% vs. 43.36%).
  • Naming Audit: Automated auditing accepted 65.0% of post-hoc LLM concept names under strict groundedness criteria (71.3% relaxed).

Limitations and Future Work

  • Names are summaries, not ground truth: Because dimensions are learned without human supervision, some capture messy mixtures of syntax and topic. Post-hoc LLM labels can occasionally be too narrow or latch onto the wrong activation pole.
  • Prediction-path only: GCA audits what feeds into the final prediction head; it does not force intermediate layer-to-layer computations inside the Transformer backbone through concepts.
  • Not built for open-ended generation (yet): The Qwen test only predicts a single missing verb. Extending layer-wise concept bottlenecks to multi-token text generation, larger models, and interactive human-in-the-loop editing remains open territory for future work.

Summary updated

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.
BibTeX
@misc{ranjbar2026gated,
  author = {Niloofar Ranjbar and Saeedeh Momtazi and Mohammad Mehdi Homayounpoor},
  title = {{Gated Concept Adapters: Layer-Wise Concept Bottlenecks for Auditable Text Understanding}},
  year = {2026},
  eprint = {2611.32600},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32600},
}
Figure