ELVIA.Evidence Atlas
NeurIPS 2025ELVIA assessment Minor

Sim-LLM: Optimizing LLM Inference at the Edge through Inter-Task KV Reuse

Ruikun Luo, Changwei Gu, Qiang He, Feifei Chen, Song Wu, Hai Jin, Yun Yang

ELVIA analysis

Independent review pending

The first reported finding concerns “Cache insertion order does not preserve task identity”. The released assembly can associate a task with another task’s values. Historical incidence is unknown.

Problem 1. Cache insertion order does not preserve task identity

Minor
Evidence and reasoning

Problem statement

The matching loop is cache-first, while deletion and sequential reinsertion use current-batch indices. Neither sorted current indices nor unique current targets are enforced.

Proof

Matches (0,1),(1,0)(0,1),(1,0) delete the first two current rows, leaving value 12.12. Insert cache value 100100 at row 1,1, then 101101 at row 0:0: output is [101,12,100],[101,12,100], while task-specific assignment requires [101,100,12].[101,100,12]. Zero attention logits and constant row values transfer the same mismatch to the attention output. Single or correctly ordered matches can pass.

□\square

Possible revision

Choose at most one cache entry per current task under a declared tie rule, then assign each final row by its original task index rather than insertion order.

An explicit local correction is described; author adoption and a corresponding published erratum are not established.

Problem 2. Already rotated keys receive another rotary transform

Minor
Evidence and reasoning

Problem statement

The traced producer stores post-RoPE keys; the consumer inserts those keys before applying RoPE to the assembled tensor.

Proof

At position p=1,p=1, raw key (1,0)(1,0) is stored as (cos⁡1,sin⁡1).(\cos1,\sin1). Equal-position reuse should retain it, but the consumer returns (cos⁡2,sin⁡2).(\cos2,\sin2). A correspondingly rotated query changes its dot product from 11 to cos⁡1.\cos1. Position zero is a passing special case.

□\square

Possible revision

Insert post-RoPE caches after rotating new keys. To move a cached key from position pp to q,q, apply RqRp⊤R_qR_p^\top with trustworthy positional metadata.

An explicit local correction is described; author adoption and a corresponding published erratum are not established.

Problem 3. A fresh target-layer cache is appended to itself

Minor
Evidence and reasoning

Problem statement

`forward_predict_prompt` overwrites the incoming-cache variable with the current output, then concatenates its target layer with the same output layer.

Proof

With no incoming past and a three-token prompt, both operands are (K,V).(K,V). The target cache becomes ([K;K],[V;V]);([K;K],[V;V]); a three-layer layout has lengths (3,6,3)(3,6,3) instead of (3,3,3).(3,3,3). The duplication occurs after initial hidden states are computed.

□\square

Possible revision

Keep the incoming cache under a distinct name and return the fresh target cache once. Append a prefix only where the documented backend returns new segments rather than already accumulated states.

An explicit local correction is described; author adoption and a corresponding published erratum are not established.

Problem 4. Reference bits do not implement exact LRU

Minor
Evidence and reasoning

Problem statement

The branch labeled LRU stores a reference bit and clears leading set bits rather than recording chronological recency.

Proof

For slots [A,B,C],[A,B,C], access order B,C,AB,C,A leaves bits (1,1,1).(1,1,1). The code clears them and replaces slot zero, evicting most-recent A;A; true LRU evicts B.B. The same bit vector represents several different recency orders.

□\square

Possible revision

Specify the reference-bit approximation, or maintain timestamps/an ordered recency structure and evict the actual oldest access under a deterministic batch convention.

An explicit local correction is described; author adoption and a corresponding published erratum are not established.

Problem 5. Unequal prompt lengths fail the tokenwise matcher

Minor
Evidence and reasoning

Problem statement

The matcher directly compares tokenwise cached and current embeddings without a common-length alignment contract.

Proof

Nonzero shapes (1,2,2)(1,2,2) and (1,3,2)(1,3,2) cannot broadcast across token dimensions 22 and 3.3. Equal padded widths avoid this failure, as in fixed-width settings, but do not solve general K/V alignment. Repository issue #1,1, opened 3030 April 2026,2026, already reported the concern.

□\square

Possible revision

Not available

Supporting record & provenance

Work status

Current version

Version 1

Minhao Liu · Initial report · Version 1

Independent review pending

Original claim and review scope

To tackle this challenge, this paper presents Sim-LLM, a novel inference optimization mechanism that leverages task similarity to reduce KV cache memory consumption for LLMs.

NeurIPS 2025 official proceedings PDF (current publisher bytes, checked 2026-10-21); Abstract, PDF p. 1

Actual review scope

The recorded inspection concerns these source locations: Section 3.3, PDF p.6; Algorithm 1, PDF p.25; modeling_llama_lsh.py, lines 120–171 and 1522–1535; Section 3.3, PDF p.6; modeling_llama_lsh.py, lines 153–171, 753–782 and 2172–2197; forward_predict_prompt, modeling_llama_lsh.py, lines 2172 and 2239–2254; Section 3.3, PDF p.6; Appendix B.1, PDF p.23; Algorithm 1, PDF p.25; source lines 1544–1547 and 2214–2234; Public repository issue #1; modeling_llama_lsh.py, lines 1522–1535.

Submit an author revisionContribute a review