arXiv:2610.10304cs.LGOct 2026

Manuscript Offprint

arXiv:2610.10304

SemanticFold: Latent Sequence Compression SeparatesLanguage Modeling, Decodability, and Reasoning

Mingyan Liu, Min Huang

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

Abstract

SemanticFold replaces selected adjacent hidden states with fewer latent states inside a frozen decoder-only Transformer while leaving external tokenization unchanged. We use this controlled intervention to ask what it means for model capability to be preserved. Fixed-target language-model fit, output-distribution proximity, task-relevant linear accessibility, and reasoning behavior give different answers. In Qwen3-1.7B at R=1.7R = 1.7, reasoning accuracy fell by 5.2 percentage points (95% CI [−9.8,−0.6][-9.8, -0.6]), while identical-target continuation NLL decreased by 0.135. An intervention decomposition attributes that favorable NLL mainly to the learned residual transform rather than shortening. On a 450-prompt Qwen population, tail protection reduced mean DKL(pnative∥parm)D_{\mathrm{KL}}(p_{\mathrm{native}} \| p_{\mathrm{arm}}) from 1.404 to 0.527, while the accuracy point estimate changed by +1.56 percentage points versus the Full SemanticFold arm (95% CI [−3.11,6.22][-3.11, 6.22]). Matched-R controls on Qwen3-1.7B and SmolLM2-1.7B found no reliable cosine-boundary advantage over uniformly random legal boundaries at R∈{1.3,1.7}R \in \{1.3, 1.7\}. Matched checkpoint comparisons further show that preservation profiles vary across model families and endpoints. Recovery on one proxy metric therefore does not certify preservation on a different functional endpoint; the evidence does not identify a universal compression threshold or a complete causal mechanism.

1 Introduction

If a Transformer processes fewer internal states while its tokenizer, backbone weights, and output head remain fixed, what does it mean for its capability to be preserved? A compressed model can retain teacher-forced next-token fit while changing its free-running trajectory, expose an answer to a linear decoder without using it behaviorally, or move its output distribution toward the native model without recovering task accuracy. Treating any one of these measurements as a certificate for the others hides the scientific question.

SemanticFold makes that question experimentally accessible. Frozen lower decoder layers produce N token-aligned contextual states. At layer K, an exact-budget policy selects non-overlapping adjacent pairs; a learned compressor replaces every selected pair by one latent state,

Figure

Figure 1: SemanticFold changes deeper computational granularity without changing tokenizer or API input length.

and frozen upper layers process the resulting M<NM < N states. External token IDs and input-token granularity do not change. Only the deeper computational granularity changes. The R=1R = 1 path bypasses selection and compression, providing a native-equivalence gate.

We evaluate four preservation questions. Fixed-target fit asks whether the same continuation tokens remain probable. Distributional proximity compares the complete next-token distribution with native execution. Representational accessibility asks whether task-relevant labels remain linearly decodable from a specified hidden state. Behavioral preservation evaluates the model's own task decision or generated trajectory. These endpoints are related but are not interchangeable by definition.

The evidence spans frozen Qwen3, SmolLM2, and Pythia checkpoints. It includes identical-target continuation scoring, paired reasoning populations, cross-fitted answer probes, bounded generation, matched small-to-large comparisons, intervention decompositions, and direct runtime measurements. The central finding is a pattern of bounded dissociations. Qwen3-1.7B can show lower fixed-target NLL while losing reasoning accuracy; the favorable NLL is largely associated with the compressor's residual transform rather than shortening. Tail protection can move the output distribution markedly toward native execution without a corresponding reliable accuracy recovery. Conversely, matched-R controls do not establish a reliable advantage for cosine-selected over uniformly random legal boundaries. Preservation therefore has to be reported as an endpoint- and checkpoint-specific profile.

Our contributions are:

  • a controlled, exact-budget latent sequence-compression intervention in frozen decoder-only Transformers, including explicit feasibility and rounding semantics;

  • a multi-endpoint analysis separating fixed-target fit, dis-

tributional proximity, task-relevant linear accessibility, behavior, and bounded generation;

• matched controls showing when proxy improvement fails to certify behavioral recovery and when a boundary-selection advantage is not reliably detected;

• structural, checkpoint, and systems constraints that bound claims about mechanism, scaling, memory reduction, and wall-clock speed.