GSS: Gated Subspace Steering for Selective Memorization Mitigation in LLMs

Xuanqi Zhang, Haoyang Shang, Xiaoxiao Li
2/9/2026
cs.LG

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) can memorize and reproduce training sequences verbatim -- a tendency that undermines both generalization and privacy. Existing mitigation methods apply interventions uniformly, degrading performance on the majority of tokens that generalize normally. We show empirically that memorization is sparse, intermittent, and token-conditioned, suggesting that effective mitigation requires context-aware intervention rather than static parameter modification. To this end, we propose a novel and effective selective memorization mitigation method -- Gated Subspace Steering (GSS), which decomposes intervention into a probe (detecting memorization-relevant activations) and a steer (applying targeted correction only when the probe exceeds a threshold). The optimal probe-steer pair emerges from a principled optimization framework based on optimal subspace steering. Experiments on four benchmarks show GSS matches or exceeds state-of-the-art memorization reduction while requiring $100-1000 \times$ less compute than optimization-based alternatives. Furthermore, we provide new theoretical insights into the geometry of memorization in neural representations.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2026gss,
  title  = {GSS: Gated Subspace Steering for Selective Memorization Mitigation in LLMs},
  author = {Xuanqi Zhang and Haoyang Shang and Xiaoxiao Li},
  year   = {2026},
  eprint = {2602.08901},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.08901v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.08901.svg)](https://codeofpaper.com/paper/2602.08901)

Discussion