A Symmetry-Matching Approach to Blind-Spot Reduction in Sparse Autoencoders
Organizations: National Directorate General for Hospitals, Budapest, Hungary · Data Science in Health Programme, Semmelweis University, Budapest, Hungary
Abstract
Language models can treat semantically distinct inputs as interchangeable at the representation level, creating blind spots that standard sparse autoencoder (SAE) objectives do not target. In safety-critical settings such as clinical dosage extraction, legal clause interpretation, or financial amount verification, such failures can propagate silently into downstream decisions. We study this problem as one of feature-basis orientation. Building on a symmetry-matching view from algebraic error-detection theory, we add a differentiable regularisation term to SAE training that penalises uneven perturbation response within a specified family. Across GPT-2, Gemma 2, and Qwen 2.5, a frozen multi-seed evaluation shows that -regularisation raises both relative and absolute lower-tail responses while reducing response-profile imbalance, with no material general-text reconstruction degradation. JumpReLU and minimum description length (MDL) objectives remain close to the Standard SAE profile under the same protocol. Family-geometry controls show that the effect is not explained by template duplication or a single dominant perturbation family, and held-out probes plus null-calibrated separation tests evaluate how far the representation-level change carries to downstream discriminability. A zero-shot audit on out-of-distribution clinical radiology minimal pairs finds the relative weak-tail lift in all evaluated model-by-family cells, not perfectly rank-aligned with the trained statistic, and a held-out family audit finds it on family kinds never used in training. Together, the results show that perturbation-aware SAE training can reorient feature bases toward safety-relevant input changes while leaving downstream validation as a separate empirical step.
Figures & tables
| Object | Measures | Role |
|---|---|---|
| Absence of global task-relevant invariance | Algebraic reference condition | |
| Per-pair relative code displacement | Base sampled response | |
| Exact sampled zero-response set | Sampled exact-response boundary | |
| Low-response margin set | Operational response threshold | |
| Coverage above a fixed margin | Mass above a chosen threshold | |
| Response-profile imbalance | SAE training objective |
| Model | Positive families | OWT NMSE | |||
|---|---|---|---|---|---|
| GPT-2 | |||||
| Gemma 2 | |||||
| Qwen 2.5 |
| Model | Positive families | ||||
|---|---|---|---|---|---|
| GPT-2 | |||||
| Gemma 2 | |||||
| Qwen 2.5 |
| Model | Metric | Fixed-family interval | Family-resampled interval |
|---|---|---|---|
| Gemma 2 | |||
| GPT-2 | |||
| Qwen 2.5 | |||
| Gemma 2 | |||
| GPT-2 | |||
| Qwen 2.5 |
| Model | AUROC (abs. code) | Fixed-family 95% CI | Family-resampled 95% CI |
|---|---|---|---|
| Gemma 2 | |||
| Qwen 2.5 | |||
| GPT-2 |
| Model | Objective | Positive families | |||
|---|---|---|---|---|---|
| GPT-2 | JumpReLU | ||||
| MDL | |||||
| V-reg | |||||
| Gemma 2 | JumpReLU | ||||
| MDL | |||||
| V-reg |
| Family | GPT-2 | Gemma 2 2B | Qwen 2.5 3B |
|---|---|---|---|
| Negation | 0.000 | 0.000 | 0.000 |
| Typo | 0.017 | 0.000 | 0.000 |
| Synonym | 0.019 | 0.000 | 0.002 |
| Number swap | 0.036 | 0.000 | 0.005 |
| Semantic sub. | 0.048 | 0.000 | 0.001 |
| Word order | 0.046 | 0.002 | 0.000 |
| Model | Layer | Std SAE | V-reg | Reduction | ||
|---|---|---|---|---|---|---|
| GPT-2 small | 12 | 0.314 | 0.002 | 16/16 | 15/16 | |
| Qwen 2.5 3B | 18 | 0.239 | 0.000 | 16/16 | 16/16 |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Family | [95% CI] | [95% CI] | |||
|---|---|---|---|---|---|---|
| GPT-2 | negation | 60 | [ ] | 0.917 | [ ] | |
| GPT-2 | laterality | 60 | [ ] | 0.983 | [ ] | |
| GPT-2 | severity | 60 | [ ] | 1.000 | [ ] | |
| GPT-2 | anat. dir. | 27 | [ ] | 1.000 | [ ] | |
| Qwen 2.5 | negation | 16 | [ ] | 1.000 | [ ] | |
| Qwen 2.5 | laterality | 16 | [ ] | 1.000 | [ ] |
| Subset | Standard margin | V-reg margin | margin [95% CI] | Error S V | |
|---|---|---|---|---|---|
| Standard weak 20% | 16 | 0.302 | 0.358 | [ ] | |
| Remaining 80% | 62 | 0.590 | 0.575 | [ ] |
| Model | Family | Standard | V-reg | [95% CI] |
|---|---|---|---|---|
| GPT-2 | negation | 0.0157 | 0.0200 | [ ] |
| GPT-2 | laterality | 0.0024 | 0.0034 | [ ] |
| GPT-2 | severity | 0.0044 | 0.0077 | [ ] |
| GPT-2 | anat. dir. | 0.0017 | 0.0025 | [ ] |
| Qwen 2.5 | negation | 0.0298 | 0.0397 | [ ] |
| Qwen 2.5 | laterality | 0.0034 | 0.0043 | [ ] |
| Model | Family | Std | Jump | MDL | V-reg | V-reg n |
|---|---|---|---|---|---|---|
| GPT-2 | Negation | .219 | .222 | .223 | .000 | .267 |
| Typo | .307 | .306 | .309 | .014 | .295 | |
| Synonym | .307 | .310 | .310 | .018 | .326 | |
| Number swap | .264 | .265 | .266 | .034 | .276 | |
| Semantic sub. | .435 | .433 | .435 | .045 | .400 | |
| Word order | .281 | .282 | .282 | .044 | .302 |
| Model | Family | Standard | V-reg | Change |
|---|---|---|---|---|
| GPT-2 | Negation | 0.073 | 0.115 | +58% |
| Typo | 0.067 | 0.081 | +21% | |
| Synonym | 0.043 | 0.050 | +17% | |
| Number swap | 0.021 | 0.023 | +7% | |
| Semantic sub. | 0.045 | 0.045 | 0% | |
| Word order | 0.043 | 0.057 | +34% |
| Family | GPT-2 | Gemma 2 | Qwen 2.5 |
|---|---|---|---|
| Negation | 0.000 | 0.000 | 0.000 |
| Typo | 0.000 | 0.000 | 0.000 |
| Synonym | 0.000 | 0.000 | 0.000 |
| Number swap | 0.000 | 0.000 | 0.000 |
| Semantic sub. | 0.000 | 0.000 | 0.000 |
| Word order | 0.000 | 0.000 | 0.000 |
| Family | GPT-2 | Gemma 2 | Qwen 2.5 |
|---|---|---|---|
| Anatomical dir. | 0.61/4.1 | 0.50/17.4 | 0.48/18.6 |
| Body part swap | 0.60/3.8 | 0.60/13.8 | 0.58/14.6 |
| Causal reversal | 0.70/5.2 | 0.50/18.9 | 0.65/16.6 |
| Condition neg. | 0.73/2.1 | 0.45/17.6 | 0.61/12.1 |
| Date/time change | 0.71/3.1 | 0.52/18.2 | 0.66/14.8 |
| Drug name swap | 0.56/4.1 | 0.32/23.0 | 0.46/18.5 |
| Model | Method | MSE | Frac active |
|---|---|---|---|
| GPT-2 | Standard | 0.0034 | 0.352 |
| JumpReLU | 0.0035 | 0.333 | |
| MDL | 0.0065 | 0.337 | |
| V-reg | 0.0069 | 0.344 | |
| V-reg n | 0.0033 | 0.329 | |
| Gemma 2 | Standard | 0.0130 | 0.072 |
| Model | LOTO positive templates | LOFO range | Centered effective-rank range |
|---|---|---|---|
| Gemma 2 | – | – | |
| GPT-2 | – | – | |
| Qwen 2.5 | – | – |
| GPT-2 small | Qwen 2.5 3B | ||||
| Family | Std | V-reg | Std | V-reg | |
| Negation | 0.219 | 0.000 | 0.136 | 0.000 | |
| Typo | 0.307 | 0.000 | 0.160 | 0.000 | |
| Synonym | 0.307 | 0.000 | 0.234 | 0.000 | |
| Number swap | 0.264 | 0.000 | 0.303 | 0.000 | |
| Semantic substitution | 0.435 | 0.035 | 0.368 | 0.000 | |
Sparse Autoencoders
Sparse autoencoders decompose neural network activations into sparse features to study, interpret, and control learned representations.
See all 218 papers