arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.27738cs.AI
收藏

基于请求本地令牌路由的平均深度可变执行

Average-Depth Variable Execution via Request-Local Token Routing

School of Computer Science and Technology, Shandong University(山东大学计算机科学与技术学院);College of Computer Science and Technology, Qingdao University(青岛大学计算机科学与技术学院)

Pengjie Zheng, Mengwei Xie, Huan Yang, Si Wu, Pengfei Hu, Feng Li

AI总结:

AVERT通过请求本地令牌路由实现大语言模型层的可变执行,匹配请求平均深度预算,在多基准测试中表现优异,混合预算可降低解码时间。

摘要:

层跳跃可降低大语言模型的推理成本,但请求预算未指定如何在生成的令牌间分配层执行。我们提出AVERT(Average-Depth Variable Execution via Request-Local Token Routing),其允许令牌执行不同数量的层,同时使每个请求的平均执行深度匹配连续预算。在每个路由层,路由器读取当前令牌状态及其请求的预算,决定是否执行Transformer块;跳过该块的令牌会通过轻量残差适配器,且不在该层写入键/值(K/V)条目。单个检查点可服务同一批次中不同预算的请求。在三个LLaMA主干、六个质量指标和13个预算下,AVERT在234项比较中206项最优或并列最优;在单预算和混合预算批次中,平均每请求预算绝对误差最多为1.15个百分点。当按预算分组请求导致批次未充分利用时,混合预算可将每个输出令牌的解码时间(TPOT)降低4.3%至21.2%。

英文摘要:

Layer skipping can reduce large language model inference costs, but a request budget does not specify how to allocate layer execution across generated tokens. We introduce \method{}, which allows tokens to execute different numbers of layers while matching each request's mean executed depth to a continuous budget. At each routed layer, a router reads the current token state and its request's budget and decides whether to execute the Transformer block. Tokens that skip the block pass through a lightweight residual adapter and write no key/value (K/V) entry at that layer. A single checkpoint serves requests with different budgets in the same batch. Across three LLaMA backbones, six quality metrics, and 13 budgets, AVERT is best or tied for best in 206 of 234 comparisons. Across single- and mixed-budget batches, the mean absolute per-request budget error is at most 1.15 percentage points. When grouping requests by budget leaves batches underfilled, mixing budgets reduces decode time per output token (TPOT) by 4.3--21.2%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑