Does Context Compression Preserve Refusal Alignment?

Anthony Nguyen, Wenjun Lin
11/4/2026
cs.AIcs.CL

No confident code implementation found for this paper.

Abstract

Context compression reduces inference cost by encoding inputs into compact representations while preserving semantic content. An open question is whether semantic preservation alone is sufficient to maintain downstream behaviours such as refusal alignment.

Show full abstract

We investigate this question and find that encoder-based compression systematically weakens refusal behaviour in instruction-tuned language models, despite high reconstruction fidelity. This effect persists across model families and compression architectures. Mechanistic analysis shows that compression attenuates activation along the decoder's learned refusal direction. We further explore Memory Steering, a lightweight inference-time intervention that restores refusal rates to near-baseline levels without retraining and operates entirely in compressed representation space. These results demonstrate that semantic preservation does not guarantee behavioural preservation under compression, highlighting the need to explicitly preserve alignment-relevant features in compression-aware systems.

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{nguyen2026does,
  title  = {Does Context Compression Preserve Refusal Alignment?},
  author = {Anthony Nguyen and Wenjun Lin},
  year   = {2026},
  eprint = {2611.06380},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.06380v1}
}

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/2611.06380.svg)](https://codeofpaper.com/paper/2611.06380)

Discussion