Differential Backpack Language Models: Sense Inhibition via Signed Contextualization Weights

Konstantinos Skianis, Giannis Nikolentzos, Polykarpos Meladianos, Michalis VazirgiannisarXiv 2026 · arXiv

TL;DR

Differential Backpacks improve the performance of interpretable language models by allowing them to actively inhibit incorrect word senses using signed weights. By replacing standard non-negative weights with a "differential" mechanism—the difference of two softmax maps—the authors cut the performance gap between interpretable models and black-box Transformers by 31% while maintaining exact, inspectable attribution.

What Problem Does This Paper Address?

Most modern language models are "black boxes"—we can't easily tell why they made a specific prediction. Backpack language models were designed to fix this by construction. They represent every word as a linear combination of fixed "sense vectors" (e.g., the word "bank" might have a "finance" sense and a "river" sense).

However, original Backpacks had a major limitation: their contextualization weights were non-negative (using a standard softmax). This meant the model could choose to use a sense or ignore it, but it could never oppose it. If "bank" appears in a financial context, the "river" sense might still "leak" into the final prediction because the model lacks a mechanism to actively cancel it out. This constraint leads to an "interpretability tax"—a significant drop in accuracy (perplexity) compared to standard Transformers.

Methods

The authors introduce Differential Sense Contextualization. Instead of computing sense weights with a single softmax, they use the difference of two: $$A^\ell = \text{softmax}(Q_1K^\top) - \lambda_\ell \text{softmax}(Q_2K^\top)$$ This allows the weights to be negative. The first map "excites" relevant senses, while the second "inhibits" wrong ones. A learned per-sense gain ($\lambda_\ell$) controls the strength of this inhibition.

Crucially, they keep the linear readout intact. Because the final prediction is still a simple weighted sum of sense vectors, we can still calculate the exact contribution of any specific sense to any specific prediction.

Figure 1: The differential Backpack. Non-contextual sense vectors C(xj)ℓ(left) are combined by signed weights Aℓ= A1 −λℓA2 (right) under a linear readout; the dashed arrow marks a negative weight suppressing a contextually wrong sense.

Datasets

The models were trained and evaluated on:

  • WikiText-103: Used for the main 70M parameter experiments and ablation studies.
  • OpenWebText: Used to test scaling behavior at 170M and 350M parameters.
  • Downstream Probes: Evaluation included POS tagging (UD English-EWT), sentence similarity (STS-B), sentiment analysis (SST-2), and word-sense disambiguation (WiC).

Key Insights and Ideas

  • Inhibition is a powerful disambiguator: In a financial context, the model doesn't just ignore the "river" sense of "bank"; it actively subtracts it (driving its weight to -0.50). This "differential denoising" significantly cleans up the model's internal representations.
  • Linearity isn't the bottleneck: The authors tested a "ladder" of combination rules. They found that making the readout non-linear (adding an MLP) only improved performance slightly but destroyed the model's interpretability. The real "tax" comes from the reduced depth of the Transformer "trunk" needed to accommodate the sense dictionary's parameters.
  • Better Semantic Representations: Because the model is forced to separate senses more cleanly to allow for inhibition, the resulting sense vectors are much better at capturing sentence-level meaning. The Differential Backpack improved zero-shot sentence similarity scores by up to 33% over the original version.
Figure 2: Interpretability tax on WikiText-103: exact validation perplexity at matched parameters (∼70M), with a Transformer of the Backpack trunk’s depth (8 layers, 51M) for reference.

Key Results

  • Perplexity: On WikiText-103, the Differential Backpack reduced the perplexity gap to a parameter-matched Transformer from 3.51 to 2.43 points (a 31% reduction).
  • Debiasing: The authors demonstrated "sense-level control" by identifying gendered senses of profession nouns. By suppressing these senses (setting weights to negative values), they reduced gender bias by 39.7% at the 170M scale with minimal "collateral damage" to the model's overall performance.
  • Word Sense Disambiguation: Qualitative analysis shows the model successfully separates distinct meanings. For the word "rock," the differential model devoted one sense to minerals and another to music, whereas the softmax model tended to blend these meanings together.
Comparison of self-weights for "bank". In the differential model (left), a financial context actively inhibits the "river" sense (green bar goes negative), whereas the softmax model (right) can only floor it at zero.

Limitations and Future Work

  • Scaling Diminishing Returns: The relative advantage of the differential mechanism shrinks as the model size increases (from 4.4% at 70M to 2.5% at 350M). It remains to be seen if the benefit persists at the billion-parameter scale.
  • Computational Cost: Adding the second attention map increases training time by 12–16% because the operation is memory-bound.
  • Fixed Dictionary: The model still relies on a fixed per-token dictionary. The authors suggest that the "natural next step" is moving toward a global, overcomplete dictionary to further improve flexibility while maintaining the linear, interpretable interface.

Summary updated

Abstract

Backpack language models predict with a strictly linear combination of non-contextual per-word sense vectors, weighted by non-negative contextualization scores. We show that non-negativity conflates two properties: the linear readout, which carries the interpretability, and the conic combination, which merely restricts it. We relax the latter by computing the sense weights with differential attention, a difference of two softmax maps with a learned per-sense gain, so context can actively inhibit a sense; we call the result a differential Backpack. At equal parameters on WikiText-103 this cuts the Backpack's perplexity gap to a Transformer by 31%, improves over the softmax Backpack at every sense count, persists with a shrinking margin up to 350M parameters on OpenWebText, and is localized at the sense layer by ablations and controls. The learned inhibition is directly interpretable (a financial context drives the river sense of bank to -0.50), and the preserved per-sense attribution predicts counterfactual removals exactly. We tested a number of combination rules, showing the linear interface is nearly free. Making the readout nonlinear gains only 0.43 perplexity points while invalidating two thirds of the decomposition. The differential Backpack's senses are also better representations, improving zero-shot sentence similarity by up to 33%.
BibTeX
@misc{skianis2026differential,
  author = {Konstantinos Skianis and Giannis Nikolentzos and Polykarpos Meladianos and Michalis Vazirgiannis},
  title = {{Differential Backpack Language Models: Sense Inhibition via Signed Contextualization Weights}},
  year = {2026},
  eprint = {2611.15642},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.15642},
}
Figure