Skip to content
简体中文

切换主题

arXiv 2611.03526 · cs.LG · 2026-11-02

Library of Layers (LoL): Adaptively Ordering Transformer Layers at Runtime

Abdellah Rahmani, Sean McLeish, Ang Li, Sanae Lotfi, Pascal Frossard, Micah Goldblum

机构待核实

在最新榜 #319 本站收录于 2026-11-06

一句话要点

Library of Layers(LoL)在推理时动态调整Transformer层顺序,实现参数复用与稀疏性的平衡,在不同任务中自适应选择计算路径,提升推理效率和可控制性。

LoL dynamically orders Transformer layers at inference to adaptively compose computation, balancing parameter and FLOPs efficiency across tasks.

要点

  • 现有语言模型在推理中固定层顺序,无法根据任务灵活调整计算路径;LoL通过动态排序层实现对不同算法策略的适配。
  • LoL仅需一个超参数控制全局层库大小,可在参数复用与稀疏性之间平滑切换,统一了密集、深度循环和专家混合架构的效率权衡。
  • 在合成的数独和迷宫任务中,模型根据问题类型选择不同层顺序以实现特定解法,且可通过干预路由机制强制使用指定策略。
  • 在多语言场景中,LoL依据语言和文字系统自动调整层顺序;在安全数据上训练后,其路由输出可有效区分安全与危险文本,AUROC表现优异。
English overview

Library of Layers (LoL) introduces a dynamic layer ordering mechanism in Transformer architectures that adapts layer sequences during inference based on the task. It uses a single hyperparameter to control the size of a global layer library, enabling seamless transitions between parameter reuse and sparsity. LoL achieves competitive performance with dense, depth-recurrent, and mixture-of-experts baselines on text tasks. On synthetic problems, it selects distinct layer orders for different solution strategies, and routing can be manipulated to enforce specific approaches. In multilingual settings, it adapts layer patterns by language. Safety probes on router outputs show high discriminative power between safe and unsafe inputs.

只根据 arXiv 官方摘要,由开源模型整理,经数字/专名自动核对(必须在摘要中出现),以论文原文为准。

12HF 点赞
21GitHub stars
0引用(Semantic Scholar)
34.4热度分

阅读 arXiv 原文 PDF Hugging Face 讨论 代码仓库

相关论文

数据说明

元数据来自 arXiv API(已核实);点赞来自 Hugging Face 每日论文;引用来自 Semantic Scholar。最近刷新 2026-11-30。

要点由本站根据摘要自写,不转载摘要原文,请阅读原文。

数据更新于:最新 AI 论文(北京时间)