Not All Loops Cost the Same: Phase-Dependent Depth for Serving Looped Transformers
Zhixu Du, Yuhan Cheng, Hai "Helen" Li, Yiran Chen
Abstract
Looped transformers scale inference-time reasoning by repeatedly reusing a shared core, increasing computation without increasing parameter count. Serving prefilling and decoding with a uniform loop budget couples their costs. We present LoopDuet, a phase-dependent depth and training-free serving approach that selects the two budgets jointly while preserving decoding depth at prefilling boundaries. Our vLLM implementation gathers tokens requiring further recurrence into compact batches, turning the selected allocation into executable savings with existing weights and attention kernels. At runtime, a queue-age controller adjusts prefilling depth to retain quality as demand changes. Experiments on the full HotpotQA dataset with one A100-80GB demonstrate two benefits of this flexibility. First, separate phase budgets improve the quality--throughput trade-off: Huginn delivers 19\% more throughput than the fastest tested uniform setting meeting the same accuracy criterion, while a higher-throughput operating point gains 6.04 EM points over uniform depth eight at 97\% of its throughput. Second, the same execution mechanism retains more quality under load: on two evaluated OLMo arrival traces, adaptive prefilling gains 0.92--1.35 EM points over the most accurate tested fixed-depth controls at the same 100\% attainment of a one-second time-to-first-token target. Together, these results establish LoopDuet as a practical way to turn flexible model computation into higher serving capacity and better quality under load.
Create a lesson
Related papers
NCCL-BOT: Closing the Loop on NCCL's Cost Model with Online Bandits
Shared title terminology · Hanan Shteingart, Amedeo Sapio, Chen Avin et al.
Runway Characters: Serving a 57B Video Diffusion Transformer for Real-Time Conversation
Shared title terminology · Rohan Agarwal, Robin Andeer, Alex Armbruster et al.
What Sets the Serving Speed of Looped Language Models? Measurements and Optimizations Graded by Exactness
Shared title terminology · Dezhen Lu, Runguo Li, Zixiang Ni et al.
Contexture: Runtime Context Eviction for High-Throughput Agent Serving
Shared title terminology · Colin Hong, Bryan Shan, Wei Siong Pang et al.
TideCache: Efficient Hybrid LLM Serving with Transparent Cache Management and Layer-Wise Streaming
Shared title terminology · Jinbin Luo, Xiaozhe Yao, Shang Yang et al.
Live Migration of Gated DeltaNet Requests: Exact Catch-Up and the Cost of Log Backlog
Shared title terminology · Hanqing Yu, Jiaqi Yang, Si Wu et al.