- Rating
- 3
- Clarity
- 2
- Confidence
- 4
- Originality
- 3
- Quality
- 2
- Significance
- 3
Read review
Summary
The paper proposes UMIM, an external merge module for frozen Transformer language models. The method mines frequent contiguous 2–4 token spans, replaces eligible spans with a single learned surrogate embedding computed from static token embeddings, and trains this module by matching the frozen model’s next-token distribution on compressed inputs to its distribution on the original uncompressed sequence. At inference time, the module is used for prompt compression and for online generation through a KV-cache rollback mechanism that substitutes several recent token states with one surrogate state. The paper evaluates distributional alignment, perplexity, QA, summarization, math reasoning, task adaptation, and throughput, and reports that the method can reduce effective sequence length while often retaining behavior close to the base model.
Strengths and weaknesses
Strengths:
The paper studies an important inference-efficiency problem for autoregressive language models, that is, reducing the effective sequence length and KV-cache footprint without retraining the backbone model. The proposed UMIM module is appealing in its simplicity as it operates at the input-embedding level, keeps the tokenizer, vocabulary, architecture, and backbone parameters fixed, and can be applied as a plug-in to multiple pretrained models. The empirical perplexity results are encouraging for Llama-3.1-8B, where the compressed model remains close to the base model on WikiText-103, BookCorpus, and OpenWebText, although the realized compression outside the training domain is much smaller than the headline reduction on WikiText. The paper also makes a useful distinction between a generic merge module and task-specific merge-rule adaptation, and the adaptation experiments suggest that the module can be adjusted without updating the backbone.
Weaknesses:
- The main quality concerns are substantial. The method rests on a strong approximation assumption that a context-independent surrogate embedding for a fixed n-gram should preserve the effect of multiple context-dependent Transformer steps. The paper explicitly states that the same n-gram receives the same surrogate wherever it appears, but a Transformer’s computation depends on preceding context, position, attention interactions, and downstream use of the KV states. The paper does not provide a theorem, approximation bound, or even a clear characterization of when such a surrogate should exist. This is acceptable for an empirical method, but the writing sometimes suggests stronger behavioral preservation than the evidence establishes. Take this example: Consider a two-token span g=(a,b). In the uncompressed model, the span contributes two KV states, (k_a,v_a) and (k_b,v_b), which future tokens can attend to separately. Suppose there are two preceding contexts c_1 and c_2 that induce future queries q(c_1) and q(c_2). In a simplified one-layer attention calculation, the contribution of the span to a future token is:
A_T(c)=alpha_a(c)*v_a + alpha_b(c)*v_b, where (alpha_a(c), alpha_b(c)) = softmax(q(c)^Tk_a, q(c)^Tk_b)
Now choose two contexts such that:
q(c_1)^Tk_a >> q(c_1)^Tk_b and q(c_2)^Tk_b >> q(c_2)^Tk_a
Then the teacher’s span contribution is approximately:
A_T(c_1) approx v_a and A_T(c_2) approx v_b
Under UMIM, the same span g=(a,b) is replaced by one surrogate embedding:
m_g = M_phi(e(a), e(b))
This produces only one effective surrogate state for the span. In the analogous one-slot case, the future attention contribution from the merged span is a single value v_m. Exact matching in both contexts would require:
v_m = v_a and v_m = v_b
If v_a != v_b, these two requirements are inconsistent. Thus, unless the constituent token states are functionally redundant, a single context-independent surrogate cannot generally preserve all context-dependent future-attention behavior of the original multi-token span.
-
The positional-encoding treatment is technically important and under-examined. The appendix states that no special positional mechanism is used: after merging [x1,x2,x3,x4] into [x1,x23,x4], the positions become [0,1,2], not [0,1,2,3] with some preserved original indexing. This changes the computation of every token after a merge. For a simple absolute-position model, exact preservation after merging x2,x3 would require the later token contribution W(e4+p3) to equal W(e4+p2), which implies W(p3−p2)=0, not generally true. With RoPE, the analogous issue is a shift in the rotation indices of subsequent queries and keys. The paper trains under this convention, but training compatibility is not the same as showing that the approximation is reliable across lengths, domains, and contexts.
-
The benchmark suite only partially matches the motivating application. PIQA, COPA, OpenBookQA, ARC-Easy, and ARC-Challenge are useful sanity checks, but they are mostly short-context multiple-choice tasks. CNN/DailyMail is a useful evaluation for task-agnostic prompt compression, because the WikiText-trained merge module is applied to an unseen summarization dataset without task-specific tuning. However, the appendix states that token merging is applied only to the input portion and that summaries are generated with a fixed 80-token output length. Therefore, this experiment supports the prompt/prefill compression aspect of UMIM, but it does not substantially evaluate the dynamic online merging mechanism or the claimed reduction of generated-token KV-cache growth during long autoregressive decoding. Also, the math reasoning experiment is presented as long-form reasoning, but the appendix says that because of resource limits, token merging was applied exclusively to input prompts while generation was allowed up to 15K tokens. This does not strongly test the key dynamic-decoding benefit: reducing generated-token KV growth during long autoregressive reasoning. More suitable evaluations would include long-context retrieval, multi-document QA, long-context summarization, multi-needle stress tests, and direct prompt-only versus dynamic-online comparisons.
-
The efficiency evidence is not yet convincing enough. The paper reports large prefill throughput gains at a fixed 50% merge ratio, but decoding throughput improves only about 0.9%–2.5% in the reported settings. Given that dynamic decoding and KV-cache replacement are central parts of the method, the paper should report additional metrics such as wall-clock latency, memory in GB, batch size, hardware, sequence lengths, realized natural merge rates, cache length over time, and overhead from rollback and merge lookup. The current efficiency results show promise for prefill compression but only modest realized benefit for decoding.
-
Reproducibility and clarity also need improvement. The submission does not release code or trained merge-module checkpoints at submission time, and it reports no error bars or statistical significance tests. The main equation for multi-head pooling is dimensionally ambiguous unless one assumes an implicit head-specific slice; the appendix later clarifies the slice notation. There are also smaller presentation issues, such as inconsistent model naming around Llama-3.2 size and a related-work naming mismatch where the cited Pagnoni et al. reference is Byte Latent Transformer but the related-work text uses a different name.
Questions
-
Positional encoding: Can the authors provide an ablation that preserves original position indices, or otherwise quantify how much degradation is caused by compressed-position shifting? This would help determine whether UMIM is learning robust span replacements or mainly adapting to a distribution shift introduced by shorter effective positions.
-
Dynamic online merging: Can the authors separate prompt-only merging from online decoding merging in all major experiments, especially long generation? A useful experiment would report quality, wall-clock latency, KV memory, realized merge rate, and cache length over time for prompt-only, dynamic-only, and combined UMIM.
-
Long-context representativeness: Can the authors add at least one long-context stress evaluation, such as multi-document QA, long retrieval, multi-needle retrieval, or long-context summarization? This would test whether merged surrogate states preserve information that must be retrieved many thousands of tokens later.
-
Surrogate-existence assumption: Can the authors more carefully justify or empirically diagnose when a context-independent n-gram surrogate succeeds or fails? For example, results broken down by span frequency, span length, domain shift, syntactic category, or polysemy would clarify whether the method works broadly or mainly for highly formulaic spans.
-
Reproducibility and uncertainty: Can the authors release anonymized code/checkpoints or provide exact scripts, and can they report confidence intervals or run-to-run variability for the main downstream and adaptation results? My score would increase if the main results became reproducible and the strongest conclusions were statistically supported; it would decrease if gains depend on a single seed, a fixed merge ratio not achieved naturally, or task-specific adaptation that is not clearly separated from task-agnostic compression.
Limitations
No. The limitations section is too brief and does not adequately discuss the most important limitations. It should explicitly address the context-independent surrogate assumption, positional-index shifts after merging, the distinction between prompt-only compression and online decoding compression, the small measured decoding speedups, domain dependence of merge rules, lack of formal guarantees, lack of error bars, and lack of released code/checkpoints. The current limitations paragraph mostly lists future directions rather than analyzing failure modes and practical risks.
Paper formatting concerns
None noticed.
Final justification
The authors response substantially clarifies the surrogate-embedding objection, and I would no longer frame the issue as a simple impossibility proof. I agree that a fixed surrogate input vector can still interact differently with different contextual queries once it passes through the Transformer, so exact non-existence is not established by the simplified attention example. However, the response does not remove the underlying concern that the method compresses multiple contextualized, separately addressable token states into one effective state, and the paper still lacks a formal guarantee, error bound, or empirical characterization of when this context-independent surrogate approximation succeeds or fails.
The positional-encoding response is useful and should be incorporated into the paper. The authors acknowledge that UMIM uses compressed contiguous positions and does not exactly preserve the model’s original internal computation, which directly addresses the concern. Their RoPE clarification is also fair in that tokens shifted by the same set of previous merges preserve relative offsets with each other. However, interactions crossing a merged span and interactions involving the surrogate state itself are still changed, so the method remains an empirical approximation that combines surrogate replacement with position compaction. I accept that a preserved-position ablation is non-trivial and would require retraining for a fair comparison, but without it the paper cannot disentangle whether the gains come from the learned surrogate, the compressed position convention, or their interaction.
The added efficiency, task-clarification, and long-context responses improve the paper’s framing but do not fully resolve the evaluation concerns. It is now clearer that CNN/DailyMail supports task-agnostic prompt/input compression, while the math reasoning experiment and some summarization settings do not validate dynamic generated-token KV-cache compression. The new long-context experiments are helpful and should be included, but they also show substantial degradation at longer contexts, especially for retrieval and multi-document QA, which should be discussed as a limitation rather than only as supplementary support. The efficiency clarification is reasonable. Prefill gains are meaningful, while decoding gains remain modest and prototype-level.
With that I will change my rating to a 3.
(1)Clarification Using the Reviewer's Example
To clarify, we follow the reviewer's hypothetical setting: consider a one-layer self-attention model, a two-token span g=(a,b), and two sequences:
(i)c1,a,b,q1,(ii)c2,a,b,q2.
Following the reviewer's assumption, q1 aligns strongly with the key of a and largely ignores b, whereas q2 aligns strongly with the key of b and largely ignores a. However, in self-attention, the resulting attention output depends not only on the preceding tokens but also on the query token itself and the complete softmax normalization.
Even if we continue to ignore the remaining context tokens, the attention output at q1 in sequence (i) is not simply va. It is approximately
f(a,q1)=[softmax(q1⊤ka, q1⊤kq1)]⊤vavq1,
which is a query-dependent combination of the value of a and the value of q1 itself. Similarly, the attention output at q2 in sequence (ii) is approximately
f(b,q2)=[softmax(q2⊤kb, q2⊤kq2)]⊤vbvq2.
After UMIM merges (a,b) into a surrogate token w, the corresponding attention outputs become
f(w,q1)=[softmax(q1⊤kw, q1⊤kq1)]⊤vwvq1,f(w,q2)=[softmax(q2⊤kw, q2⊤kq2)]⊤vwvq2.
Therefore, the learning problem faced by UMIM is not to require the same vw to satisfy both vw=va and vw=vb. Instead, it is to learn a high-dimensional surrogate w such that
f(w,q1)≈f(a,q1),f(w,q2)≈f(b,q2).
Here, f is a high-dimensional nonlinear function involving query-dependent attention scores, softmax normalization, key/value projections, and the contribution of the query token itself. Consequently, the direct contradiction obtained from simultaneously requiring vm=va and vm=vb does not rule out the existence of useful approximate solutions.
Such approximate solutions may be difficult to derive analytically because they depend on the attention projections, softmax interactions, and the distribution of contexts and queries. Nevertheless, learning a surrogate through gradient-based optimization over many naturally occurring contexts is a viable and standard data-driven approach. In other words, it does not establish that a useful surrogate approximation is unlearnable, nor does it invalidate the motivation for learned token merging.
The Computation in a Full Transformer
The actual computation in a Transformer language model is substantially richer than the simplified one-layer example. In UMIM, what is context-independent is the initial surrogate embedding produced by the Merge Module, not every hidden state or layer-wise KV representation subsequently produced from it. Once the surrogate enters the causal Transformer, its representations in subsequent layers are contextualized by the preceding sequence. Different attention heads, residual pathways, and MLP layers also provide additional representational capacity for compensating for local approximation errors. Therefore, treating the complete UMIM computation as a single value vector vm that remains fixed across all contexts does not fully characterize the approximation performed by the actual model.
Scope of Our Claim
We would also like to clarify the scope of our claim. UMIM has never claimed that a context-independent surrogate can perfectly and pointwise reproduce all attention and KV behavior of the original tokens for every possible context and every possible future query. Throughout the paper, we formulate token merging as a data-driven approximation problem. Our objective is to investigate whether a learned Merge Module can produce a compact surrogate that approximates the effect of the original token span on model behavior to a useful degree over the relevant data distribution. The intended claim is empirical behavioral approximation, not universal exact functional equivalence.
If any wording in the current manuscript could be interpreted as claiming exact or unconditional behavioral preservation, we will revise it to make this scope explicit.
Evidence Beyond Redundant or Unimportant Tokens
Finally, the visualizations(figure 4) and experimental results already presented in the paper indicate that UMIM does not operate merely by removing low-value, low-attention, or completely redundant tokens. In our attention-map analysis, some merged token spans carry clear semantic content and receive substantial attention in the original model. These spans are important
Nevertheless, UMIM can encode these meaningful spans into learned surrogates. These observations do not constitute a theoretical proof of universal exact equivalence. However, they provide direct empirical evidence that a learned surrogate can approximate the functional role of an informative span in a real Transformer and under realistic data distributions, rather than succeeding only when the merged tokens are completely redundant.
(2) About Reproducibility and uncertainty
Following the reviewer's suggestion, we report bootstrap 95% confidence intervals for the QA main table. The confidence intervals are computed with 10,000 bootstrap resamples. And We are organizing our code; To follow the nips' policy, we will provide the code used for the tests in this rebuttal via an anonymous link in the Area Chair's comments at a later stage. We need aslo to clarify one point here: all our merge ratios arise naturally from the matching based on the merge rules.
Across all five tasks, the marginal 95% confidence intervals overlap. At naturally realized token reductions, UMIM retains accuracy close to the original model, with absolute differences of 2.2-4.4 percentage points.
(3) About Long Context
We further add stress tests on RULER four-needle retrieval, multi-document QA, and long-context summarization using Llama-3.1-8B. Importantly, these experiments use the base merge module trained only on 512-token WikiText-103 sequences, without long-context SFT or RL. Because the original WikiText rules have very low coverage on these tasks, we use
WT + Rules: task-specific rules are re-mined to obtain meaningful TR, while both the merge module and backbone remain fixed.RULER four-needle retrieval. TR is input-token reduction.
Multi-document QA.
Long-context summarization. UMIM applies merging during both prompt processing and autoregressive decoding. Prompt TR is input-token reduction, Gen-KV TR is final generated-token KV reduction, and Cumulative KV TR is cumulative generated-token KV-cache reduction. Lengths use the Llama-3.1-8B tokenizer.
RULER and multi-document QA remain close to the baseline at shorter lengths, while the gap grows as precise evidence must be preserved over longer distances. This degradation at extreme lengths is expected: the base merge module has seen only 512-token sequences and is transferred directly to 8K-16K contexts, without long-context training or adaptation. Despite this severe length and domain shift, UMIM still provides meaningful compression across retrieval, multi-document QA, and long summarization.
With sufficient resources, long-context data should be included from the beginning when training the base merge module. Training on long-context corpora with corresponding merge rules should improve long-range performance while retaining UMIM's sequence and KV-cache compression benefits.
Due to space constraints, we have not yet fully addressed every point. In this first round of responses, we prioritized the most critical issues and provided supplementary experimental data. We look forward to the reviewers' feedback and will continue our responses once we can relpy.