NeurIPS 2026QuestionsPapersAreasAboutMarkdown

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 page · OpenReview · Open on the map

Category: Efficient LLM Inference & Training › LLM Serving Optimization · Type: system or tooling · Keywords: LLM prompt optimization, prefix sharing, intent tagging, industrial recommendation, system architecture

Summary

PrefixShakeup is a system that proactively re-forms LLM prompts to increase shared prefix length, improving throughput up to 2.1× while maintaining tagging accuracy.

Explained to a 5-year-old

People use big talking computers to guess what you might like. Each person gives a long text, but only a small part can be reused. This makes the computer slower. The new system rearranges the texts so more parts can be shared. This helps the computer work faster while still guessing correctly.

Explained to a 5-year-old, longer

When you use an app that suggests things you might like, it looks at what you have done before. It reads a long message from you to figure out your interests. Usually only a tiny part of that message can be reused for other people, so the computer takes a long time. The new idea is to look inside the message and reorder the parts so more of it can be shared. It uses a special rule that allows a few differences without breaking the sharing. It also changes the order of the messages to fit on the computer’s memory. The system keeps a small cache so it does not have to start over when new data arrives. This makes the computer work much faster. It still guesses your interests correctly. It helps many people at the same time. It works on the computer’s hardware that is commonly used in industry. It saves time and energy. It lets small teams run fast recommendation systems.

For a technical reader

The system preprocesses user prompts to reorder tokens and maximize common prefixes, allowing more reuse during inference. It uses a flexible prefix matcher that tolerates minor mismatches and an optimizer that arranges prompts under memory constraints. Incremental updates are handled via lightweight caching to avoid recomputing everything. In tests, it boosts throughput by over two times while keeping tagging accuracy stable.

Problem

Adapting large language models for personalized intent tagging often results in very little reusable prefix across user prompts, limiting inference efficiency. Even small differences in user data prevent sharing longer prefixes, making it hard to achieve high throughput while preserving accuracy.

Method

It enhances dataset preparation by reordering records within prompts and adjusting prompt positions to maximize shared prefix length, using a prefix model that tolerates limited mismatches and an alleviator that reorders records under memory constraints. An adaptor supports incremental updates via lightweight management and caching to avoid full recomputation.

Results

The approach improves throughput by up to 2.1× compared to state-of-the-art inference while maintaining controlled tagging accuracy.

Contributions

It introduces a system that proactively re-forms prompts to enlarge reusable prefixes and integrates three techniques for prefix modeling, reordering, and incremental updates. The system achieves significant throughput improvements in industrial-scale evaluation.

Limitations and assumptions

Requires re-forming within minutes under strict SLO, operates under limited high-bandwidth memory (HBM), and assumes incremental updates can be managed with caching.

Practical relevance

Enables industrial recommendation systems to achieve higher inference throughput on limited hardware while preserving intent tagging accuracy.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction