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
Affiliation unverified
In latest · #319 Added on 2026-11-06
One-line takeaway
LoL dynamically orders Transformer layers at inference to adaptively compose computation, balancing parameter and FLOPs efficiency across tasks.
Library of Layers(LoL)在推理时动态调整Transformer层顺序,实现参数复用与稀疏性的平衡,在不同任务中自适应选择计算路径,提升推理效率和可控制性。
Key points
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.
- LoL dynamically reorders Transformer layers during inference to adapt to task-specific computation needs.
- A single hyperparameter controls the size of a global layer library, enabling smooth trade-offs between parameter reuse and sparsity.
- On synthetic problems, LoL selects distinct layer orders for different solution strategies, with routing intervention capable of enforcing specific approaches.
- In multilingual and safety tasks, LoL adapts layer patterns by language or script and achieves high AUROC in distinguishing safe from unsafe text.
Written only from the official arXiv abstract by an open-source model, then checked automatically (every number and name must appear in the abstract). The paper is authoritative.
Read on arXiv PDF Hugging Face discussion Code
Topics & disciplines
Related papers
- Same topic · Follow the Gradient: Tracing Safety Degradation Back to Training Data 2026-10-27
- Same topic · Jeva: System One Models from First Principles 2026-10-13
- Same period · CoworkOS:Scaling Agent Coworkers for Real-world Automation 2026-11-02
About this data
Metadata from the arXiv API (verified); upvotes from Hugging Face Daily Papers; citations from Semantic Scholar. Last refreshed 2026-11-30.
The takeaway is written by AIMap from the abstract; the abstract itself is not reproduced — read the original.