🛰️ Daily AI Frontier
‹ back to 2026-11-03

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

arXiv cs.LG LLMs & Foundation Models Abdellah Rahmani, Sean McLeish, Ang Li, Sanae Lotfi, Pascal Frossard, Micah Goldblum 2026-11-02

TL;DR - Library of Layers dynamically orders transformer blocks at inference, allowing models to compose task-specific computational graphs. It unifies tradeoffs among dense, recurrent, and mixture-of-experts architectures while enabling more controllable reasoning.

  • A single library-size hyperparameter balances parameter reuse against sparse computation.
  • Text pretraining produced competitive performance with dense, depth-recurrent, and mixture-of-experts baselines.
  • Layer-routing patterns varied by problem-solving strategy, language, and script.
  • Routing could be manipulated to enforce specific strategies, while router probes distinguished safe from unsafe text with high AUROC.

view merged work →