Salvation Lies Within: Proactive Prefix Re-forming for LLM-based Tagging
Shulan Wang, YingJie Zhu, Yuting Yan, Ke Cheng, Yan Chen, Sheng Zhang, Hefei Guo, Qidong Zhang, Zhengyong Zhang, Yibo Jin, Zhuzhong Qian
NeurIPS 2026
TL;DR. Our method proactively re-forms prompt prefixes from within to improve inference throughput for offline LLM‑based user intent tagging under strict accuracy and latency constraints.
Abstract. Industrial personalized recommendation adopts LLMs for offline intent tagging (e.g., user interests from the history), where each user corresponds to one prompt. While shared prefix among prompts can improve inference efficiency, the reusable part is actually dwarfed by user-specific records. We observe that even a slight in preceding records actually prevents two prompts from sharing a longer prefix, revealing an opportunity to proactively re-form the common part from within, by adjusting the internal orders. Realizing this at industrial scale is challenging: 1) the data preparation and inference are performed separately; 2) re-forming must be completed within minutes for massive prompts under strict SLO; and 3) user data evolves continuously, requiring additional updates.
We present , a system that enables before actual inference, during the dataset preparation, intrinsically enlarging the common part from the source. It combines three techniques: 1) a prefix model that tolerates a bounded number of records to be changed, instead of requiring the strict prefix matching; 2) an alleviator that reorders the records per prompt and further reorders the prompt positions to maximize the reuse, given limited HBM, upon the kernel-based acceleration for scoring the similarity; and 3) an adaptor that supports incremental changes over time via lightweight management and necessary caching to avoid full re-computation. We implement PrefixShakeup on Ascend NPUs and evaluate it in the mirror environment. Compared to state-of-the-art inference, PrefixShakeup improves throughput by up to 2.1$\times$, with controlled tagging accuracy.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:45 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes PrefixShakeup, a proactive prefix re-forming framework that improves KV-cache reuse for large-scale LLM-based intent tagging through prompt reordering, relaxed prefix matching, and efficient incremental preprocessing. The reviewers acknowledge the practical motivation, strong engineering implementation, theoretical formulation, and significant throughput improvements demonstrated on several real-world datasets. However, the reviewers raise substantial concerns regarding the unclear motivation and applicability of the time-agnostic assumption, insufficient justification that prompt reordering preserves model quality, limited discussion of latency SLO guarantees, incomplete coverage of related work on prompt reordering, and uncertainty regarding the generality and scalability of the proposed approach beyond the targeted application.
Final justification
The paper is recommended for acceptance based on the discussion, as no reviewers maintained a negative stance after the rebuttal, and the authors effectively resolved key concerns regarding presentation and methodology while committing to incorporating necessary revisions in the camera-ready version.
Read meta-review
Meta-review
This paper proposes PrefixShakeup, a proactive prefix re-forming framework that improves KV-cache reuse for large-scale LLM-based intent tagging through prompt reordering, relaxed prefix matching, and efficient incremental preprocessing. The reviewers acknowledge the practical motivation, strong engineering implementation, theoretical formulation, and significant throughput improvements demonstrated on several real-world datasets. However, the reviewers raise substantial concerns regarding the unclear motivation and applicability of the time-agnostic assumption, insufficient justification that prompt reordering preserves model quality, limited discussion of latency SLO guarantees, incomplete coverage of related work on prompt reordering, and uncertainty regarding the generality and scalability of the proposed approach beyond the targeted application.
Final justification
The paper is recommended for acceptance based on the discussion, as no reviewers maintained a negative stance after the rebuttal, and the authors effectively resolved key concerns regarding presentation and methodology while committing to incorporating necessary revisions in the camera-ready version.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper addresses the inference efficiency bottleneck of Large Language Models (LLMs) when used for large-scale, offline user intent tagging in personalized recommendation systems. In such scenarios, prompts are extremely long (thousands of tokens) due to the insertion of historical user records (e.g., browsing history, app installations). While KV-cache prefix sharing can mitigate cost, the author observes that slight differences in the temporal order of user records (termed "record discordance") completely disrupt prefix matching from the beginning. To resolve this, the paper introduces PrefixShakeup, a proactive system that restructures datasets at the data preparation stage (DataOps) before inference (MLOps).
Strengths and weaknesses
Strengths
- S1. Solid Theoretical Grounding: Approximating the strict prefix hard threshold with an RBF kernel continuous relaxation and proving relaxed submodular upper bounds gives the greedy sorting strategies strong mathematical justification.
- S2. Comprehensive Evaluation: The system is implemented into vllm and evaluated under strict industrial constraints (SLO boundaries of minutes, limited HBM footprint). It shows robust generalization on real-world datasets (E-commerce, News, Finance) as well as varying hardware setups.
- S3. Strategic Shifts: Shifting the optimization boundary from runtime inference tuning (MLOps) back to the data preparation pipeline (DataOps) is highly practical and clever. Weakness:
- W1. The system's viability hinges strictly on the assumption that downstream tasks are "time-agnostic", meaning shuffling the chronological order of user historical interactions does not drastically harm the profiling accuracy.
- W2. As noted in Table 10, when scaling to prompts, the peak CPU memory consumption surges to 418.23 GB. Although it avoids utilizing expensive NPUs for preprocessing, this high RAM footprint demands a clearer explanation regarding its distributed scalability in massive industrial pipelines.
- W3. While the paper is targeted at LLM-Based Tagging, Proactive Prefix Re-forming seems to also work for other cases with structured input, such as LLM agents and RAG. It would be more helpful to discuss the application-specific divergence v.s. border general principles.
Questions
- Q1. For W2, Is it possible to use vector quantization or compression to relieve such an overhead?
- Minor Suggestion. I feel like Proactive Prefix Re-forming is a general strategy, but there are some NPU-specific techs mixed with general ones in the main body, such as in Section 3.3. It would be better to separate the general architectures from device-specific ones. A better organisation may introduce only strategic concepts in Section 3, and then put the device-specific things as implementation details or even into appendix.
Limitations
yes
Final justification
I'd like to keep my scoresunchanged.
Formatting concerns
N.A.
3 comments
Thanks for the response, my concerns are basically addressed.
Thank you for acknowledging that our revisions have basically addressed your concerns. We are happy to provide additional details if any questions remain.
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes a new way to rewrite prefixes across queries with individual user information to maximise the shared overlap between the prefixes, which reduces inference costs realised from prefix reuse capabilities. It highlights that the scale of this problem in an industrial setting is massive due to a large number of users, strict latency SLOs for serving and the evolving nature of individual user profiles. The paper proposes several optimisations, such as relaxing strict-prefix matching, reordering within the prompts and selective re-computation. The system achieves 2.1X higher throughput compared to the baselines while maintaining accuracy.
Strengths and weaknesses
Strengths -
-
The system relaxes strict prefix matching and reorders records dynamically within the prompt to achieve higher hit rates for prefix reuse. The prompt length is also upper-bounded using a distance budget to prevent uncontrolled growth and loss in accuracy during inference.
-
The system uses an alleviator module with a distance kernel in the feature space to filter similar prompts fast, without having to perform an exhaustive search.
Weakness -
-
The paper mentions strict latency SLOs for inference as a major challenge, but does not address how PrefixShakeup solves this beyond saying it can support higher prefix reuse. There is currently a missing link on how this guarantees latency SLO compliance.
-
The design section on Cache for incremental updates is underspecified. It is unclear from the text what exactly is being cached and how it affects the challenges described in the motivation section of the paper.
Questions
-
Could the authors please clarify how the SLO criteria (which were defined as a major challenge) are being ensured in PrefixShakeup's design? I understand a large part of the win comes from the increased prefix reuse, which reduces prefill re-computation, but it is not clear why this means the tight SLOs are met.
-
One of the design elements is increasing and reordering the number of records to enable higher prefix reuse. There is a distance bound which should keep the prefill latency under control. Is there any intuition why there will not be any quality drop at all? Given that new records are being inserted in arbitrary order, this can break the semantic structure of the input. It might cause the model to hallucinate and have a loss in output quality. Please clarify.
-
Does PrefixShakeup generalise to any other type of workload? Or is it solely limited to intent tagging and recommendation system workloads, which in turn must have a narrow structure of records and orders?
Limitations
Limitations are not adequately addressed. It is unclear why the temporal order in intent tagging is non-critical. As a reader who may not be an expert in this application, I feel that it should be critical in terms of older records being less relevant for recommendations than newer ones. Maybe this is not the case, or this problem is solved implicitly, but this point requires more elaboration on the limitations, beyond the single-line description given.
Final justification
The rebuttal addressed some of the concerns but the SLO attainment of the system is still unclear and slightly vague. As it was presented as a main contribution, I will maintain my rating but I am not opposed to the paper being accepted if the other reviewers feel it is good enough to do so.
Formatting concerns
None
5 comments
Rebuttal
W1 Response: We fully agree that this is a critical missing link. We link the SLO for the entire inference with the prefill latency (the main part for tagging), in which the number of prompts and the average prefix matched are the main factors.
First of all, the number of prompts are known before. Then, if the entire inference is controlled within , the average latency for prefill is . Here, is the number of prompts, and the SLO is amortized to each prompt. Since the output tags are listed in downstream task description, is determined in advance.
As in the manuscript, the prefill latency is evaluated via
in witch the function time uses the prefill input length as its input and outputs the prefill latency. Here, is the average prompt length, is the common text shared from beginning (do not consider the dynamic filling area), and measures the maximum number of records matched in front of the filling area under the strategy and the relaxed tolerable parameter .
Then, before and after the PrefixShakeup, we use the previous equation to evaluate (roughly) whether the prefill latency (on average) breaks the SLO. And the goal of PrefixShakeup is to increase . In the manuscript, is 3~5. Once the prefill latency breaks SLO under small , we enlarge it and perform further adjustment. If the inference latency does not improve by ≥10% in the first 5 batches (monitored), the system rolls back to the original ordering for subsequent batches.
In Section 4 (Evaluation) of the revision, we would include a dedicated analysis of SLO compliance rates. Specifically:
| Dataset Size | SLO Target | Baseline | Ours | SLO Compliance (Baseline) | SLO Compliance (Ours) |
|---|---|---|---|---|---|
| 1 million prompts | 1 hours | 1.2 hours (❌) | 0.8 hours (✅) | 83% | 100% |
| 5 million prompts | 4 hours | 5.5 hours (❌) | 3.9 hours (✅) | 73% | 100% |
| 10 million prompts | 8 hours | 11.5 hours (❌) | 6.7 hours (✅) | 70% | 100% |
W2 Response: We agree that the caching mechanism for incremental updates was under-specified. In the revision, we thoroughly clarify it through the following means:
1) Define the cache object (content of ):
does not store raw user records or massive KV matrices. Instead, it stores a lightweight mapping structure containing three fields:
| Field | Description | Size (per entry) |
|---|---|---|
| User ID | Unique identifier for each user | 8 bytes |
| Kernel value | Value for reflecting the record distribution | 4 bytes |
| Relative index | The position/order of this user in the sorted dataset from the previous run | 4 bytes |
This is essentially an Index rather than a content cache. The total size of is where is the number of users, and in our production setup, it occupies only 180 MB for 10 million users—negligible compared to the raw data size.
2) Link to the motivational challenge:
In the Motivation section (Section 2, Challenge 3), we raised the challenge of "dynamic user behavior updates invalidating caches" — when users add new records, the entire dataset might need to be re-sorted. is precisely designed to solve this challenge. When an incremental update occurs (e.g., a user adds 3 new viewing records), the system does not need to re-sort the whole dataset. It only needs to:
- Query to retrieve the user's previous group and index
- Compare the new kernel value with the cached one to detect changes
- If unchanged: reuse the existing index (zero computation)
- If changed: find the Top-K existing groups by comparing kernel values, reuse their existing indices, and only perform incremental computation on the differing parts
This reduces update time from to , where is the number of changed users (typically , often < 10% of the total user base).
3) New flowchart:
Update Request → Query S_cache → Compare with existing groups
→ If unchanged: Reuse Index (zero computation)
→ If changed: Reuse Top-K group indices → Compute Only Delta
→ Update S_cache (new kernel value and index)
4) Quantitative impact on the challenge:
We now explicitly quantify how addresses the motivation challenge:
| Scenario | Without | With | Improvement |
|---|---|---|---|
| Full dataset resorting (10 million users) | about 5 minutes | about 3 minutes (recompute from scratch) | 1$\times$ (baseline) |
| Incremental update (10% users changed) | about 5 minutes (full resort) | < 1 minute (only delta) | 5$\times$ speedup |
Q1 Response: Please refer to W1 response.
Q2 Response: ``time‑agnostic'' refers to a categorization of offline LLM‑based tagging, in which inferring the user intent (i.e., tagging upon explicit record existence) is the main objective (one of the majority tasks, shown later; the other one dominated is the content understanding). Actually, the tagging upon sequential modeling is explored (like the generative recommendation (GR) in online recommender), but its proportion is relatively small in our production environment (also shown later). Here, we show the applicability in details, regarding the time-agnostic categorization.
Applicability
We summarize the applicability for all recommendation tasks via the following table.
| Categorization | Offline Tagging | Online Recommender |
|---|---|---|
| Tasks | (T1) User Content | (T2) Content Understanding | DNNs: (T3) DLRM | (T4) GR |
| Scale | Billions prompts: (T1) Users multiplying scenarios | (T2) Items | Tens of billions traffic |
| Format | LLM-based tagging: Prompts in, tags out | IDs in, ranking out |
| Modeling | Upon existence (SFT) | Upon sequential (new models trained) | Cross-features | Sequential |
| Task Proportion | T1&T2: Upon existence >90% | Sequential <10% (under exploration) | (T3) >80% | (T4) <20% |
| Applicability | ✅; (T1) Full for existence, partial for sequential | (T2) Partial | ❌ |
We further show the accuracy drop for different user intent tasks (using e-commerce as an example, i.e., output YES/NO tags for purchasing an item upon history records (only purchased, or both purchased and returned)).
| User Intent | Upon Existence | Strong Willing: Sequential -> Existence | Sequential (Weak Willing) |
|---|---|---|---|
| Example | Only purchased | Purchased and returned -> Only returned | Purchased and returned |
| Max. Drop | <1% | ≤5% -> ≤2% | 17% |
| Applicability | ✅Yes | ❌No -> ✅Yes | ❌No |
We should mention here that, although the users have strong willing on the item and the maximum drop is 5% (>2%) upon the sequential modeling with both of purchased and returned goods as the input, we can convert it to the one only upon the existence of returned goods. Via such convertion, PrefixShakeup is still used. Note that, PrefixShakeup can be used partially (i.e., only trigger the prompt re-order part), and further, no re-ordering is also a feasible strategy for PrefixShakeup.
For tagging upon existence (e.g., inferring whether a user has the interests), the inner order of the records has less impact (only the semantics of the existence). Meanwhile, the reorder of the prompts only affects the KV reuse (no harm to the quality).
We evaluate PrefixShakeup using real scenarios.
| Scenario | Base Acc@1 | Acc@1 | |
|---|---|---|---|
| E-commerce | 86.24% | 84.48% | -1.76% |
| News | 89.24% | 87.95% | −1.29% |
| Finance | 88.48% | 88.48% | 0% |
Q3 Response: Please refer to Q2 for detailed applicability.
We sincerely appreciate the time and thoughtful feedback you have devoted. We have carefully considered every point you raised and provided detailed responses in our rebuttal. We kindly invite you to review our replies at your convenience. Should any aspect remain unclear or require further elaboration, we are fully prepared to provide additional data or clarification. We are committed to addressing any further concerns in a thorough manner.
Reply to authors' rebuttal
Thank you for the details in the rebuttal. It answers some of my questions on SLO guarantees and clarifies the cache and reordering design.
However, for my question "Does PrefixShakeup generalize to any other type of workload? Or is it solely limited to intent tagging and recommendation system workloads, which in turn must have a narrow structure of records and orders?", the evidence is not very convincing yet. It requires further justification on why this is the case or as reviewer ezre pointed out, it needs to be shown that the workload itself is so dominant and useful that generalization is not something needed.
Additionally, can you provide some additional details on how the SLO attainment is always 100%? It currently states in the rebuttal -
" If the inference latency does not improve by ≥10% in the first 5 batches (monitored), the system rolls back to the original ordering for subsequent batches."
If the SLO attainment is 100%, it would mean these situations never happen, which in turn might mean the system is not stressed enough for SLO attainment to be meaningful. Please also clarify this.
Given this, I will maintain my current rating as of now.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper introduces an intra/inter-prompt reordering technique for a time-agnostic LLM4Rec intent-tagging scenario. It goes to great lengths modeling the inference latency reduction (dataset revenue) and competition impact, and how to reorder based on these two factors. The authors also introduce how to accelerate the preprocessing step using an RBF kernel and maintain it as new data is ingested. The paper conducts experiments comparing against KV-cache blending and caching techniques, confirming its benefits.
Strengths and weaknesses
Quality
The paper provides ample detail on modeling the HBM cost and inference latency benefits (Part 3, dataset revenue for example), and it includes relevant experiments (comparing with CacheBlend [LMCache] and KV-cache compression algorithms). The paper is mostly clear. However: 1/ it lacks an explanation of why a time-agnostic scenario still leads to an accuracy drop; 2/ for KV-compression techniques, on the latency metrics, I think the original implementations are typically not well optimized out-of-the-box, so can they really serve as a reference? 3/ Some references seem not quite relevant, for example "J. Santos, M. Verkerken, L. D'hooge, T. Wauters, B. Volckaert, and F. De Turck. Performance impact of queue sorting in container-based application scheduling. In Proc. of CNSM, pages 1–9. IEEE, 2023."
Clarity
I have a negative view on this paper's clarity. 1/ For example, Figure 3 lacks the context needed to interpret it. Its caption is just "Diff. distribution". What is the dataset, for example? The reader has to guess and eventually find out that the figure's actual meaning is "Distribution of the first discordance position among adjacent prompts; 55% differ at the very first record." 2/ There is a similar issue with Figure 4-I actually could not comprehend what Figure 4 was presenting. 3/ Part 3 of the paper is especially difficult to follow; its writing places an unnecessary burden on the reader, even though the underlying ideas are genuinely simple. It is very notation heavy, and some symbols are only explained in the appendix. 4/ What do "alternative methods" in "Adaptability to Incremental Revisions" actually mean in the paper's context?
Significance
The paper tackles a niche problem in LLM4Rec, where records are time-agnostic. I believe this setting is quite rare in industry, as more and more RecSys focus on event ordering. The paper should better articulate its significance to convince the reader that this is an important question.
Originality
The paper does not discuss other work on prompt reordering, which limits my confidence in its originality. In the related work, the paper mainly discusses KV-cache reuse, quantification, and compression.
Questions
1/I believe section 3 should be rephrased, as it is hard to understand but fundamentally a simple approach. See comments above.
2/I cannot understand Figure 4, could you explain? See comments above.
3/Can you explain why your approach (which used in a time agnostic scenario) leads to accuracy drop?
4/Is there any other work on prompt reordering?
5/Is this scenario quite relevant in the industry?
6/For kvcache compression techniques which were used to measure latency metrics, are they well-optimized?
7/Could you explain more on "alternative methods" of "Adaptability to Incremental Revisions". It is not quite clear.
Limitations
Yes.
Final justification
The rebuttal is responsive and resolves most of my concerns. On clarity, my main complaint, the authors commit to a self-contained Figure 3 caption, an interpretation of Figure 4, a notation table, and a stage-by-stage walkthrough of Section 3; that walkthrough is exactly the exposition the section was missing, and I am satisfied conditional on it reaching the camera-ready. The comparison against prior ordering work also positions originality adequately and should move into related work.
Significance remains my residual reservation. The production figures and per-task accuracy deltas make the problem economically real and delimit its scope credibly, but the case rests on unverifiable internal task-mix statistics, and the time-agnostic premise is a genuine restriction. The applicability table should be promoted into the main body so this boundary is visible to readers.
One minor point is unresolved: my Q6 concerned implementation maturity, not tuning. Latency from H2O/SnapKV research code is not comparable to a vLLM-on-Ascend deployment, so those baselines are better used for accuracy claims only. This does not affect the 2.1× headline and is not a blocker.
A solid systems contribution with a real deployment story and a narrower applicability envelope than the framing suggests. I maintain my rating of 4 and confidence of 4, conditional on the promised revisions.
Formatting concerns
Some links do not follow to the figure.
6 comments
Rebuttal
W1: The original "Diff. distribution" would be changed to "Distribution of the first discordance position among adjacent prompts (on MovieLens-32M)":
"This figure presents the distribution of the position where the first discordance occurs between adjacent prompts ordered by their original timestamps. The x-axis represents the discordance position (1 to 5), and the y-axis represents the proportion of prompt pairs whose first discordance occurs at that position. Based on the MovieLens-32M dataset, we randomly sampled the behavior sequences of 100,000 users as the statistical population ((Zipf & Long-tail)). Key finding: Over 55% of adjacent prompt pairs exhibit discordance at the very first record, revealing that prompts ordered by their original timestamps achieve extremely low cache hit rates. This observation directly motivates our design of proactive prefix re-forming."
W2:
"(a) Cumulative Distribution Function (CDF) of average prefix match length under different tolerance thresholds (0, 1, 2). The x-axis denotes the proportion of the average prefix match length relative to the total prompt length. The y-axis denotes the cumulative proportion of prompts achieving at least that match ratio. Larger values allow more flexible matching, shifting the CDF toward higher match ratios.
(b) Normalized throughput as a function of the average prefix match length for different values. As increases, the system tolerates more discordance, enabling longer common prefixes and yielding higher throughput gains. The results are normalized against the baseline ()."
W3:
1) We consolidated all symbols into a Notation Table placed at the beginning of Section 3 (Table 8 of the manuscript).
2) ——> ——> ——>
The workflow could be divided into 4 stages:
S1. : The Strict Baseline.
In the conventional setup (user‑ID ordering), the reusable prefix for prompt is limited to the records that match exactly from the very beginning with already‑cached prompts. Because adjacent prompts differ in the very first record more than half of the time, is typically close to a small value. The system pays the full prefill cost for almost every record, despite the fact that many records are semantically identical across users. This pessimistic baseline motivates the need for active reordering.
S2. : Tolerating Controlled Discordance.
We observe that small differences among prompts should not invalidate the entire prefix. We therefore introduce a tolerance threshold , which allows up to records to differ between two prompts while still considering them “similar” for prefix reuse. For each prompt , we search among all prompts that differ from by at most distinct records, and we pick the one that shares the largest set of records. The number of those shared records then defines .
This transformation changes the objective from “finding exact prefix matches” to “finding near‑neighbor groups” — a relaxation that dramatically increases the potential prefix length without sacrificing semantic integrity.
S3. : Accelerated Similarity Grouping.
The definition of still requires pairwise comparisons to determine which prompts differ by at most records, upon scores (Jaccard similarity). To overcome this, we approximate the discrete record‑set distance using a kernel‑based similarity measure. This kernel maps each prompt’s record occurrence vector into a continuous space, where the condition “differ by at most ” can be approximated by a simple threshold on the kernel value. Critically, the kernel value for each prompt can be pre‑computed once and stored.
With this pre‑computation, finding similar prompts reduces to looking up and comparing these scalar values — no expensive pairwise distance evaluations are needed. We denote the resulting effective reusable record count as . It delivers the same reuse potential as , but at a fraction of the computational cost.
S4. : Incremental Maintainability.
Real‑world datasets evolve constantly — users add new behaviors, items change, and business requirements shift. Recomputing all kernel values and regroupings from scratch for every update would nullify the efficiency gains. We therefore introduce a lightweight metadata cache called . This cache stores, for each prompt, its pre‑computed kernel value, its current cluster assignment, and its relative position within that cluster.
When an incremental update occurs (e.g., a subset of users changes their records), we only recompute the kernel value for those affected prompts, query the rest from , and update only the groupings that are impacted. This reduces the per‑update cost from being proportional to the entire dataset to being proportional to the number of changed users — typically orders of magnitude smaller.
W4: The term "alternative methods" refers to different sorting strategies that can be employed during the incremental update phase. Specifically, incremental revision involves two key stages:
- reuse — reusing previously computed cache metadata from prior runs
- Incremental sorting — reordering the newly updated prompts without full recomputation
TopologicalSort: A baseline sorting method that preserves partial order constraints.
PairwiseRanking: A ranking-based grouping method that computes pairwise similarity.
CAP: A typical sorting approach that re-groups prompts from scratch on each update.
Processing efficiency (Figure 8(c)) for sorting runtime; Inference efficiency (Figure 8(d)) for sorting efficiency.
Q1: Please refer to our response to W3.
Q2: Please refer to our response to W2.
Q3: We focus on LLM-based tagging for inferring the user intent (i.e., tagging upon explicit record existence, ratio of >90%). Actually, the tagging upon sequential modeling is explored (like the generative recommendation (GR) in online recommender), but its proportion is relatively small (<10%). For tagging upon existence, the reordering of records in filling area has less impact on the accuracy (LLM uses attention to capture the context, but still upon the probability). Even via SFT, the output of LLMs differs a little with the ground truth. However, for sequential modeling, the order affects the results.
Q4: Yes, there are related works in adjacent areas, but none address the specific problem of record-level reordering for KV cache reuse.
Our work is the first to explicitly model and solve "record reordering" as a cache-efficiency optimization problem, operating at the record level within a single prompt.
| Work| Optimization Objective|Manipulation Granularity|Scenario|
|[1]|Reasoning Accuracy|Example Ordering|In-Context Learning|
|[2]| Generation Quality|Document Ordering|RAG|
|[3]| Reasoning Accuracy| Input Ordering| Symmetric Task|
|Ours| Throughput |Record Ordering|Offline Tagging|
[1] Where to show demos in your prompt: A positional bias of in-context learning, 2025. [2] DSLR, 2024. [3] Rank It, Then Ask It: Input Reranking for Maximizing the Performance of LLMs on Symmetric Tasks, 2025.
Q5: Yes, this scenario is not only relevant but also urgent in the industry.
1) Business scale:
Recommendation systems at leading Internet platforms typically have hundreds of millions of daily active users. For instance, our production system processes billion requests daily. The profiling tags for each user need to be updated periodically (or even in real-time)—for example, interest tags on short-video platforms are recomputed multiple times a day. This computational load becomes exorbitantly expensive after introducing LLMs. To put this into perspective: generating tags for billion requests once per day involves processing billion tokens—a scale that demands radical efficiency improvements.
2) Cost pressure:
In industry, NPU (or GPU) resources are scarce and expensive. According to estimates from our production environment, generating tags for 100 million prompts using the original full-recomputation approach would require approximately 1000 Ascend 910B NPUs daily. With our prefix re-forming method, leveraging a high cache hit rate, the NPU footprint can be reduced to approximately 700 cards—a cost saving of 30%.
3) Realistic SLO constraints:
Industrial recommendation systems typically require that tens of millions of tagging tasks be completed within several hours (e.g., an 8-hour daily window). Under the implementation of identifier-based methods (e.g., [1] can mapping tags to a single token), the latency is primarily determined by Prefill length—not by decode length. Our method directly reduces input length during Prefill by reusing cached KV prefixes, making it a much-needed "timely solution" for cost reduction and efficiency enhancement in the industry.
4) Real-world deployment readiness:
We have already deployed our method in the mirror environment (similar to the production environment), processing 100 million prompts daily. Thus, the scenario is not only relevant but practically impactful.
[1] FIRST, 2024.
Q6:
H2O: Official Code | Compression ratio: 50% (HH_size + recent_size); heavy-hitter threshold: 0.1|Tuned based on the original paper
SnapKV: Reference Code|Compression ratio: ~25% (2K → 512); observation window: 32; pooling aggregation: enabled |Tuned based the original paper
vLLM: Official release v0.7.3| enabled| Well-optimized
CacheBlend: Reference Code | Matching threshold: 0.85; merging strategy: weighted average|Tuned based on the original paper
Q7: Please refer to our response to W4.
Response to the Authors' Rebuttal
I thank the authors for a detailed and responsive rebuttal. It resolves most of my clarity concerns. Though the paper's practical significance still needs to be better discussed.
(minor) Q6 - baseline optimization. The table lists hyperparameters, but my question concerned implementation maturity rather than tuning. Comparing H2O and SnapKV research code on wall-clock latency against your vLLM-on-Ascend system is not an apples-to-apples latency comparison, and readers will discount those numbers.
Q1. the practical significance
Though the paper's practical significance still needs to be better discussed.
Response-Q1:
We sincerely thank you for raising the question about the practical significance of our proposed system in real-world deployment. We would provide a detailed justification for the practical significance, as follows:
1. Dominant Workload in Offline Tagging
Ours is applicable to over 90% of the user content understanding (one of the major tasks), in which the prompts are fed into LLMs and the tags are produced as the output.
Scale: These tasks process billions of tokens daily (i.e., users × scenarios). Even a small percentage improvement in inference efficiency yields massive savings in GPU/NPU cluster hours.
Our evaluation spans hundreds of millions of users, with the prompts ranging from 0.5k to 10k tokens across highly diverse domains (e.g., gaming, e-commerce, and finance).
| Scenarios | Accommodation | Apps | News | E-commerce FMCG | Finance |
|---|---|---|---|---|---|
| Interested or Not | Y/N | Y/N | Y/N | Y/N | Y/N |
| Primary Tags (Example) | High / Low-end Consumption | Game / Social / Financial | Fashion / Society / Technology | Food / Clothes / General Merchandise | Stocks / Futures / Securities |
Users from different interest groups produce the prompts with vastly different retrieval data. Traditional prefix caching (e.g., vLLM) suffers from low hit rates due to strictly matching from the very beginning. Ours explicitly tackles this by tolerating a measurable distance among records, forming longer prefixes within the groups. This directly translates to higher cache reuse and lower latency for real-world tagging that serve massive tokens.
SFT vs. Sequential Modeling: Most of these tasks rely on the SFT upon formated prompt template, meaning the structures are relatively stable. And, the rest is also supported by our Outer Adjustment and Incremental Adaptor, which quickly reuses already existed KVCache.
In production environment, even upon the same prompt template, the demands on inferring the user interests are often changed:
i) Changes on the tags: the potential profiling tags or the contents to be recommended are described in the downstream task, appended at the end of the prompt.
ii) Changes on the records: the records are updated among a small subset of users (e.g., 10% users per day install new apps).
2. Quantified Operational Benefits
Our empirical results directly translate to tangible business value:
- 35% average latency reduction means that for a service handling billions of tokens, the required number of inference instances can be reduced proportionally, leading to significant cost savings (or, alternatively, higher throughput under the same budget).
- 2.1× throughput improvement allows platforms to update user profiles in limited time, enhancing user experience.
- Accuracy loss < 2% ensures that the quality of downstream tasks (e.g., content recommendation, user profiling) remains practically unaffected, satisfying strict service-level agreements (SLAs).
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
W1 Response: Instead of an assumption, the ``time‑agnostic'' refers to a categorization of offline LLM‑based tagging, in which inferring the user intent (i.e., tagging upon explicit record existence) is the main objective (one of the majority tasks, shown later; the other one dominated is the content understanding). Actually, the tagging upon sequential modeling is explored (like the generative recommendation (GR) in online recommender), but its proportion is relatively small in our production environment (also shown later).
Applicability
W2 Response: We have examined the manuscript upon the principle of "offline full / online incremental" separation.
1) Clarifying the Nature of Full Preprocessing (Non-Resident).
The 418.23 GB refers to the peak memory of the Offline Full Batch preprocessing. In actual production scheduling, this full-scale task is executed at a T+3 frequency (i.e., once every three days, or only when there is a major structural change to the prompt template or retrieval logic). Crucially:
2) Highlighting the Lightweight Nature of Incremental Updates (High-Frequency Daily Operations).
As stated in the paper, the frequent day-to-day operations are incremental updates—not full preprocessing. When processing a 10% user change (1 million users), the peak memory drops to approximately 4.5 GB. This is because incremental updates only load the Scache (lightweight, ~160 MB) and the changed portions, rather than the full prompts. We will add a new row labeled "Steady-state Memory" marked as < 5 GB.
3) Distributed Scaling Solution.
Even for full-scale tasks, they naturally support Horizontal Scaling. We adopt a Sharding strategy after clustering:
4) Additional Clarification on Scache (addressing potential confusion).
As we clarified in our response to Reviewer 2's W2, Scache does not store high-dimensional embeddings or raw prompts. It stores only lightweight index entries, totaling <200 MB for 10 million users.
W3 Response: We will add a new subsection "General Principles vs. Application Divergence" in the appendix.
1) General Principles.
Regardless of the application scenario, the core logic of PrefixShakeup remains consistent:
This principle is task-agnostic and can be applied to any structured-input workload.
2) Application Divergence.
We provide a comprehensive comparison table to illustrate the differences:
3) Cross-Scenario Adaptation Details.
We elaborate on the specific adaptations required for each scenario:
(a) RAG Systems:
(b) LLM Agents:
(c) Summarization / Time-series:
Q1 Response: We appreciate this forward-looking suggestion. However, as clarified in our response to Weakness 2, the 418 GB offline peak memory is not the system bottleneck we are concerned about, as it is transient and scalable. Nevertheless, regarding the "overhead" mentioned, we must distinguish between two different concepts:
1) Clarifying the misunderstanding regarding Scache (similarity cache).
In our design, Scache does not store high-dimensional embedding vectors or one-hot vectors at all. Instead, the system stores pairwise similarity scores computed using the RBF kernel function, along with their corresponding request position indices. For a dataset of size N=107:
The final memory of Scache is less than 200 MB, which is far from being a bottleneck.
2) Applicability of Vector Quantization (VQ).
We agree that if, in the future, we needed to extend Scache to full-scale high-dimensional embeddings (e.g., storing raw embedding vectors instead of using kernel functions), then Vector Quantization (VQ) or Product Quantization (PQ) would be effective means to reduce memory.
We will mention this as a direction for "future work" and commit to conducting preliminary simulation experiments.
Q2 Response: We commit to restructuring Section 3 by eliminating all NPU-specific descriptions to ensure generality: