arXiv:2611.06380cs.AINov 2026

Manuscript Offprint

arXiv:2611.06380

Does Context Compression Preserve Refusal Alignment?

Anthony Nguyen, Wenjun Lin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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. 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.

1 Introduction

Context compression scales language models (LMs) to long inputs by encoding them into compact representations optimized for semantic reconstruction [1–3]. Prior evaluations focus primarily on reconstruction quality and downstream task performance, with limited attention to safety-aligned behaviour. Existing context compression systems are typically designed and evaluated in retrieval-augmented or document-grounded settings, where a long external document is compressed while the user query remains in the standard token context and attends over the compressed representation.

We study a setting in which the entire user request is encoded into compressed representation space. This configuration isolates a key question for context compression: whether preserving semantic content is sufficient to preserve downstream behaviour. By removing the original token-level prompt from the decoder and forcing it to rely exclusively on compressed memory, we directly test whether semantic reconstruction alone guarantees preservation of safety-aligned refusal behaviour.

This configuration reveals a structural failure mode in which compression weakens refusal mechanisms. Figure 1 illustrates this jailbreaking effect.

Context compression preserves the latent semantic intent of a query, but does not necessarily preserve the low-dimensional alignment features in representation space that activate the decoder's refusal behaviour. Prior work has shown that refusal is mediated by approximately linear directions

*Corresponding author: randy.lin@algomau.ca

Figure

Figure 1: A high-level illustration of how context compression weakens refusal behaviour in instruction-tuned language models.

in the residual stream [4]. Our results are consistent with the hypothesis that compression attenuates or shifts representations away from such refusal-mediating directions.

To address this, we introduce Memory Steering, an inference-time intervention designed for fixed-length compression architectures such as In-Context Autoencoders (ICAEs) [1]. This method serves as a proof-of-concept that refusal behaviour can be restored through targeted edits to compressed memory representations, demonstrating that the observed safety degradation is not irreversible and can be mitigated without extensive retraining. Importantly, Memory Steering operates exclusively in compressed representation space and requires only a single intervention prior to decoding.

Our contributions are threefold:

First, we show that encoder-based context compression systematically weakens refusal behaviour in instruction-tuned language models. Across multiple backbones and compression architectures (ICAE and ARC), harmful-prompt refusal rates drop substantially despite preserved semantic reconstruction (e.g., 62.82% to 10.9% in Mistral-7B-Instruct-v0.2).

Second, we provide mechanistic evidence for this degradation. Using decoder-level linear probing, we show that ICAE compression attenuates activation along the decoder's learned refusal direction, shifting harmful inputs into the non-refusal subspace.

Third, we introduce Memory Steering, a lightweight inference-time intervention for fixed-length compression that restores refusal behaviour without retraining. By injecting a learned refusal direction into compressed memory representations, we recover near-baseline refusal rates while preserving response quality on benign inputs.