Token-Operations-Oriented Inference Optimization Techniques for Large Models

Shiguo Lian, Kai Wang, Zhaoxiang Liu, Wen Liu, Minjie Hua, Yutong Liu, Jiangze Yan, Xin Wang, Cong Wang, Yilin Zhang, Yi Shen, Jieyun Huang, Fang Zhao, Huanlin Gao, Ping Chen, Xinyu Yang, Kaikai Zhao, Yantao Li, Yao Zhao, Huishuai Zhang, Dongyan Zhao, Junping Du, Tao Chen, Xiang Gao, Qinghuai MaarXiv 2026

TL;DR

This paper introduces a comprehensive four-layer technical architecture—Multi-model Fusion, Model Optimization, Compute-Model Fusion, and Compute-Network-Model Fusion—designed to optimize large model inference from a token-operations perspective. By systematically coordinating strategies across models, hardware, networks, and gateways, it provides a practical roadmap for transitioning AI services from costly, standalone API calls into highly efficient, sustainable, and scalable industrial infrastructure.

What Problem Does This Paper Address?

As large language models (LLMs) transition from experimental breakthroughs to industrial-scale deployment, the "token" has emerged as the fundamental unit of service activity, billing, and resource consumption. In fact, by March 2026, China's average daily token processing volume had already exceeded 140 trillion.

However, running these massive token operations introduces severe system-level challenges. Stronger frontier models deliver high-quality outputs but suffer from extreme per-token costs, massive GPU memory footprints, and high latency. Meanwhile, real-world production traffic is flooded with lightweight or repetitive queries (like short Q&A or format conversions) that don't require a trillion-parameter model. To make large model services sustainable and truly "operable," systems must balance quality, cost, latency, throughput, and stability. This paper addresses the lack of a unified framework by mapping out an end-to-end optimization pipeline that spans from high-level gateway routing down to low-level hardware execution.

Methods

The authors propose a hierarchical, four-layer technical architecture to systematically tackle token-oriented inference optimization:

Figure 1: Overview of large model inference optimization technologies.
  1. Multi-model Fusion: Focuses on request-level coordination across a matrix of different models. This layer relies on Model Capability Boundary Quantification to profile what models can handle under specific constraints.
Figure 2: Model capability boundary quantification workflow.

It uses Intelligent Routing to dynamically dispatch queries to either cost-effective or high-performance models based on task difficulty, and employs Model Cascading for sequential "try-then-judge" verification.

  1. Model Optimization: Targets the intrinsic cost of token generation through algorithmic refinements. This includes low-complexity attention mechanisms (like GQA, MLA, or Mamba-style state recursion), Mixture-of-Experts (MoE) architectures, speculative decoding, and trajectory compression for diffusion models.
  2. Compute-Model Fusion: Enhances hardware execution efficiency on GPUs/NPUs. It leverages operator fusion (e.g., FlashAttention, DeepGEMM), memory access optimization, basic operator acceleration, and inference engine parameter tuning (such as chunked prefill ratios).
  3. Compute-Network-Model Fusion: Addresses cluster-level serving efficiency for high-concurrency, multi-tenant workloads. Key techniques include multi-node inference parallelism (e.g., DeepSeek's EPLB), cluster-level KV cache scheduling (e.g., Mooncake), gateway sticky session routing, semantic cache reuse, and dynamic token-level batching.

Datasets

As a comprehensive review and architectural paper, it synthesizes findings across numerous industry-standard and proprietary benchmarks rather than introducing a single new dataset:

  • General Evaluation Benchmarks: MMLU, BIG-bench, HELM, and Chatbot Arena for profiling model capability boundaries.
  • Enterprise & Scenario Benchmarks: China Unicom's proprietary A-Eval benchmark for multi-level capability mapping and the OpenClaw agent scenario dataset.
  • Routing & Fusion Datasets: The MixInstruct dataset, used to train pairwise comparison models for heterogeneous model ensembling.
  • Reasoning Benchmarks: The AIME (American Invitational Mathematics Examination) dataset, utilized to probe the performance ceilings of teacher-student model distillation.

Key Insights and Ideas

  • From Local Speedup to System-Level Closed Loops: Inference optimization is no longer just about accelerating a single model's forward pass. It requires an iterative closed loop—spanning from the gateway to the compute kernel—where cache states, network topology, and model capability profiles are co-optimized in real time.
  • Static vs. Dynamic Dispatching: While intelligent routing makes a one-time pre-execution decision at the gateway entry point, model cascading shifts difficulty assessment to an in-execution evaluation of actual model outputs. Combining pre-execution prediction with in-execution verification yields the best cost-to-quality ratio.
  • The "Overthinking" Bottleneck: Advanced reasoning models (like DeepSeek-R1 or OpenAI o1) introduce a new efficiency challenge where hundreds of internal reasoning tokens are generated even for trivial problems. Implementing difficulty-adaptive token length budgets (like China Unicom's DAST framework) is essential to suppress redundant reflections.
  • Breaking the "Teacher Ceiling" in Distillation: Traditional rejection-sampling distillation limits a student model's capability to what the teacher can solve independently. Active repair frameworks (like HEAL) monitor entropy surges to inject localized hints at critical reasoning breakpoints, allowing the teacher to cross its independent boundaries and generate higher-quality distillation signals.

Key Results

The paper highlights several major quantitative milestones achieved by state-of-the-art frameworks across the four layers:

  • Routing & Cascading Efficiency: Learning-based query routers (like Hybrid LLM) reduce large model invocations by up to 40% without compromising quality, while cascades like FrugalGPT can match GPT-4 performance while slashing token costs by up to 98%.
  • Trajectory Compression: The TrajXfer continuous trajectory compression framework compresses the inference steps of FLUX.1-dev from 20 to 2, achieving a 15x acceleration without breaking semantic expression.
  • Reasoning Optimization: China Unicom's DAST framework reportedly reduces reasoning computation by approximately 30% while fully preserving complex reasoning capabilities in production environments.
  • Gateway & Cache Reuse: Implementing semantic caching (such as GPTCache) increases effective cache hit rates by 3 to 5 times compared to traditional exact-string matching, reducing repetitive inference costs by over 80% in specific vertical domains. Additionally, automatic prefix caching reduces Time-to-First-Token (TTFT) by more than 60%.
  • Batching & Throughput: Iteration-level scheduling and selective batching (pioneered by ORCA) demonstrate up to a 36.9x throughput improvement over static batching methods under massive workloads.

Limitations and Future Work

  • Multi-Objective Pareto Optimization: Future inference systems must move away from single-metric optimization (like raw tokens/second) and instead dynamically balance a highly complex multi-objective frontier consisting of quality, cost, latency, throughput, stability, and security.
  • Hardware Ecosystem Heterogeneity: Many of the most powerful low-level optimizations (such as DeepGEMM or FlashAttention-3) are tightly coupled to specific NVIDIA architectures (e.g., SM90/SM100). Adapting these techniques to heterogeneous accelerator ecosystems, including domestic Chinese NPUs and GPUs, remains a critical engineering hurdle.
  • Long-Context and Agentic Workloads: As agent workflows become more complex and context windows expand to millions of tokens, managing cluster-level KV cache migration, session affinity, and cross-node scheduling will require automated, real-time resource allocation rather than static configurations.

Summary updated

BibTeX
@misc{lian2026token,
  author = {Shiguo Lian and Kai Wang and Zhaoxiang Liu and Wen Liu and Minjie Hua and Yutong Liu and Jiangze Yan and Xin Wang and Cong Wang and Yilin Zhang and Yi Shen and Jieyun Huang and Fang Zhao and Huanlin Gao and Ping Chen and Xinyu Yang and Kaikai Zhao and Yantao Li and Yao Zhao and Xinggang Wang and Huishuai Zhang and Dongyan Zhao and Junping Du and Tao Chen and Xiang Gao and Qinghuai Ma},
  title = {{Token-Operations-Oriented Inference Optimization Techniques for Large Models}},
  year = {2026},
  eprint = {2606.20295},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.20295},
}
Figure