text stringlengths 0 197 |
|---|
loading splits... |
history 40000 conversations |
211358 training samples, positive rate 0.811 |
config.json: 0%| | 0.00/655 [00:00<?, ?B/s][A |
config.json: 100%|ββββββββββ| 655/655 [00:00<00:00, 3.60MB/s] |
tokenizer_config.json: 0%| | 0.00/443 [00:00<?, ?B/s][A |
tokenizer_config.json: 100%|ββββββββββ| 443/443 [00:00<00:00, 2.85MB/s] |
tokenizer.json: reconstructing file: 0%| | 0.00B / 17.1MB [A |
tokenizer.json: downloading bytes: | 0.00B |
tokenizer.json: downloading bytes: ββββββββββ| 5.88MB, 587kB/s |
tokenizer.json: downloading bytes: ββββββββββ| 5.88MB, 587kB/s |
tokenizer.json: reconstructing file: 100%|ββββββββββ| 17.1MB / 17.1MB, 1.70MB/s |
special_tokens_map.json: 0%| | 0.00/167 [00:00<?, ?B/s][A |
special_tokens_map.json: 100%|ββββββββββ| 167/167 [00:00<00:00, 1.34MB/s] |
model.safetensors: reconstructing file: 0%| | 0.00B / 471MB [A |
model.safetensors: downloading bytes: | 0.00B |
model.safetensors: downloading bytes: βββββββ | 314MB, 26.3MB/s |
model.safetensors: reconstructing file: 100%|ββββββββββ| 471MB / 471MB, 13.2MB/s [A |
model.safetensors: downloading bytes: ββββββββββ| 315MB, 29.6MB/s |
model.safetensors: downloading bytes: ββββββββββ| 315MB, 29.6MB/s |
model.safetensors: reconstructing file: 100%|ββββββββββ| 471MB / 471MB, 45.3MB/s |
Loading weights: 0%| | 0/199 [00:00<?, ?it/s][A |
Loading weights: 100%|ββββββββββ| 199/199 [00:00<00:00, 5121.38it/s] |
embedding history (e5-small, frozen)... |
[transformers] Token indices sequence length is longer than the specified maximum sequence length for this model (1044 > 512). Running this sequence through the model will result in indexing errors |
128/211358 (15s) |
12928/211358 (80s) |
25728/211358 (151s) |
38528/211358 (221s) |
51328/211358 (288s) |
64128/211358 (363s) |
76928/211358 (434s) |
89728/211358 (510s) |
102528/211358 (577s) |
115328/211358 (646s) |
128128/211358 (716s) |
140928/211358 (788s) |
153728/211358 (863s) |
166528/211358 (932s) |
179328/211358 (1002s) |
192128/211358 (1072s) |
204928/211358 (1144s) |
embeddings (211358, 384) in 1181s |
epoch 0: val macro-F1 0.5529 (1182s) |
epoch 1: val macro-F1 0.5654 (1183s) |
epoch 2: val macro-F1 0.5744 (1184s) |
epoch 3: val macro-F1 0.6586 (1185s) |
epoch 4: val macro-F1 0.6321 (1186s) |
epoch 5: val macro-F1 0.6559 (1187s) |
epoch 6: val macro-F1 0.6555 (1188s) |
BEST val macro-F1 0.6586, test macro-F1 0.6593 |
embedding 36955 replay requests... |
128/36955 (1192s) |
12928/36955 (1266s) |
25728/36955 (1344s) |
{ |
"val_macro_f1": 0.6585699150885734, |
"test_macro_f1": 0.6592794376923574, |
"train_samples": 211358, |
"positive_rate": 0.8107476234436035, |
"mean_replay_p": 0.9700295326577812, |
"runtime_s": 1407.8818938732147, |
"backbone": "intfloat/multilingual-e5-small", |
"max_len": 512 |
} |
Reproduction: IAC vs baselines on ShareChat (arXiv 2611.09715v1, Fig. 6a)
Independent replay-based reproduction of the ShareChat-panel cache-hit-rate claim from
"Intent-Aware Caching for Efficient LLM Serving" (https://arxiv.org/abs/2611.09715v1),
pinned to the authors' code at commit 085e226ef8b52244ed607f86849e6ecfa10648e9.
Verdict: FALSIFIED β confirmed twice: (a) by our token-exact replay simulator, and (b) on the authors' own SGLang stack with their released IAC patch.
Engine run (the authors' actual code, end to end)
The follow-up run serves the authors' patched SGLang v0.5.19 (IAC patch applied to commit
0bcd822377da7b5718e674eaf9c870d349424dd1), with their intent classifier, their
learn_stats.py prior (2,058 states), their unmodified scripts/replay.py client, and
--iac-clock request (ages in trace time). Replay window: trace-time [1800, 41800),
warmup ends 2100, 40x wall compression, 7,011 measured requests per cell, 21.0M prompt
tokens, 0 errors. LPC is a patch-on-patch on their engine (priority = decayed posterior
continuation prob, scale 0.01; p from our retrained model, val macro-F1 0.659).
| policy (authors' engine) | 80K | 110K | 140K | 170K |
|---|---|---|---|---|
| IAC (their stack, their prior) | 72.77% | 78.43% | 81.30% | 82.82% |
| LRU | 72.54% | 78.48% | 81.22% | 82.85% |
| LPC | 71.89% | 78.36% | 81.12% | 82.78% |
| LFU @140K only | β | β | 30.53% | β |
| IAC β LRU (pp) | +0.23 | β0.05 | +0.09 | β0.03 |
| IAC β LPC (pp) | +0.88 | +0.07 | +0.18 | +0.04 |
IACβLPC at the headline 140K capacity is +0.18 pp β 28x below the claim's 15.8 pp gap and far under the pre-registered ~5 pp falsification threshold. IAC is below LRU at 110K and 170K, so "IAC is above every online baseline at all four capacities" fails. LFU's 30.5% at 140K confirms evictions (and policy differences) are active; IAC/LRU/LPC are genuinely equivalent here. The pre-registered falsification criterion is met on both counts.
Note the absolute levels (~73-83%) are far above the paper's 34.6%/18.8%/12.2% β our public-mirror trace has different overlap structure than the paper's gated ShareChat copy, which we could not obtain. The relative ordering at matched load β the claim's core β is what we test, and it does not hold on the authors' own serving stack.
Simulator run (stage 1)
At the operating point that best matches the paper (LRU β paper's 12.2% ballpark), the released IAC policy beats LRU (claim's IAC-vs-LRU part holds) but loses to LPC at the headline 140K capacity β the opposite ordering of the claim:
| policy (ours, rate 0.05 conv/s, warmup-300s window) | 80K | 110K | 140K | 170K |
|---|---|---|---|---|
IAC (released reuse_within priority) |
5.6% | 6.7% | 8.5% | 20.0% |
| LPC (NeurIPS 2025 recipe, val macro-F1 0.673) | 4.8% | 7.9% | 12.3% | 14.4% |
| LRU | 4.2% | 4.9% | 8.0% | 15.3% |
| GDSF | 3.1% | 5.5% | 4.1% | 6.1% |
| LFU | 0.6% | 0.7% | 0.8% | 0.8% |
| TB+S oracle (thr 120 s) | 0.4% | 0.7% | 0.8% | 1.6% |
| IAC (paper Eq. 1, binary indicator) | 0.3% | 0.5% | 0.6% | 0.7% |
Paper's claim (Fig 6a, 140K): IAC 34.6% > LPC 18.8% > LRU 12.2%. Ours at 140K: LPC 12.3% > IAC 8.5% > LRU 8.0% (released IAC); the paper-Eq.-1 IAC is ~100x below everything. IAC is NOT above every online baseline at all four capacities: it loses to LPC at 110K and 140K at rate 0.05, and to LPC/GDSF at 110K/140K at rate 0.3.
Method
- ShareChat-2023 public mirror (Wilhelm et al. 2024 "Chatbot or Information Seeker?"); replay split = conversations with timestamp in [40K, 50K) (10,000 convs, 36,955 requests, 111.9M prompt tokens truncated to Llama-3-70B's 8192-token context); history split [0, 40K) for stats/LPC training.
- Tokenizer
NousResearch/Meta-Llama-3.1-70B-Instruct(Llama-3-70B is not gated here; tokenizer is identical). Token-level radix-tree replay (SGLang UnifiedRadixCache semantics: longest-prefix hit counts, prompt + 1 generated token inserted, leaf-only eviction until capacity fits). - IAC: authors' intent classifier checkpoint (e5-large-instruct, 30 classes) labels every
request; ReuseStats learned on the history split with the authors'
learn_stats.pylogic (2,058 (intent, turn) states). Priority per the authors' released SGLang patch:(reuse_within(p, mu, sigma, age, 40 s), size)with stamp propagation and re-tagging on touch (iac_full), and the paper's Eq. 1 lexicographic variant (iac). - LPC: retrained per its paper (frozen multilingual-e5-small, current + 4 prior user prompts, 512-token budget, MLP 385-128-128-128-1, val macro-F1 0.673 β within the LPC paper's own 0.64-0.69); eviction = min decayed continuation prob (scale 0.01).
- Arrival rate is unpublished for ShareChat; we swept Poisson conversation-start rates {0.05, 0.1, 0.3, 1.0} conv/s (intra-conversation gaps preserved). Rate 0.05 puts LRU at 8.0%, closest swept point to the paper's 12.2%.
Deviations (engine run)
- Gated ShareChat trace not obtainable β the public mirror (anoynsharechat/sharechat, 5 platforms, 10,000 replay conversations by timestamp position [40K,50K)) replaces the paper's gated copy; absolute hit rates differ, the comparative test does not require the exact trace.
- Served model is unsloth/Llama-3.2-1B-Instruct, not Llama-3-70B (l4x1 GPU): tokenizer verified identical to Llama-3.1-70B's on sample prompts; hit-rate metric is tokenizer-determined, so policy comparisons are unaffected.
- Prompts truncated to 8191 tokens via
--context-length 8192 --allow-auto-truncateβ sglang keeps the head (del input_ids[8191:]), identical to the simulator's truncation; the paper does not state its handling of 299K-token prompts. - LPC is our implementation on their engine (the authors' repo contains no LPC
code): priority =
pΒ·e^(β0.01Β·age) / (pΒ·e^(β0.01Β·age) + 1βp), age in trace time, p per-request from a retrained model (frozen multilingual-e5-small + 3x128 MLP, val macro-F1 0.659, within the LPC paper's own 0.64-0.69 range). - 40x wall-clock compression with
--iac-clock request: eviction ordering is request-order-preserving and the IAC clock runs in trace time, so hit rate is load-invariant; max_tokens=1 (prefill-only, matching the hit-rate metric). - Arrival rate 0.05 conv/s (the authors'
replay.pydefault) β the paper's rate is unpublished; single replay per cell (paper's no-seed protocol). - JIT rope kernels compiled with nvcc 13.5 (conda cuda-nvcc 12.9 hits a glibc-2.41 cospi/sinpi conflict); kernels target the same sm89 arch, no functional difference.
Simulator-stage deviations
- Arrival rate unknown β swept {0.05, 0.1, 0.3, 1.0} conv/s, two reported.
- CPU simulator β token-exact radix semantics; no GPU KV pressure or batch effects (the engine run above closes exactly this gap).
- Prompts truncated to 8191 tokens (same as above).
- LPC retrained by us (checkpoint not released); quality matches published F1.
- Single replay per setting, matching the paper's no-seed/no-error-bar protocol.
What this establishes
The comparative ordering at matched load β the actual claim β is not reproduced. This was first established on a token-exact radix-cache simulator, then confirmed on the authors' own released SGLang patch running the ShareChat replay with their classifier, their learned prior, and their unmodified replay client: IAC, LRU and LPC are within Β±0.9 pp of each other at every capacity, and IAC trails LRU at two of four capacities.
Files
engine/β the authors'-engine jobs:env.sh(their install recipe),apply_lpc.py(LPC patch-on-patch),replay_lpc.py(their client + p injection),job1_setup.sh,job2_matrix.shartifacts/engine/β engine results:iac@*.json,lru@*.json,lpc@*.json,lfu@140000.json(per-request records + summaries), server logs,stats_sharechat.json(their learn_stats output),replay_lpc_p.json,lpc_meta.json, smoke tests,engine_trace.tar.gz(trace + splits, 263 MB)simulate.pyβ radix-cache replay simulator (all policies)sharechat_trace.py/tokenize_trace.pyβ trace build + Llama-3 tokenizationlabel_learn.py/replay_intents.pyβ intent labeling + ReuseStats learninglpc_train.pyβ LPC baseline trainingsweep.py/final_run.pyβ rate calibration + full matrixresults/final.jsonβ all 56 (policy, capacity, rate) cells with full/warmup/repo windowsresults/sweep.json,results/final_log.txt,results/lpc_meta.json,results/token_stats.json
Engine-run logs: job 1 (setup+smokes), matrix job.
- Downloads last month
- 115