Skip to main content

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

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

Routes token windows through a reusable library of transformer layers, choosing their order at runtime. Uses shifted windows to maintain causal processing and examines the resulting routes on language modeling and puzzles.

First public: · Added to this list: November 30, 2026

Cite this paper

ArXiv preprint

arXiv:2611.03526 · Initial submission: 2026-11-02

BibTeX · CSL-JSON

Explore this approach

Recurrent reasoning — Repeat parts of the model or keep intermediate information in memory while working through a problem. Some methods also learn how many passes to run.

Analysis and evaluation — Measure how well these methods work, investigate what their internal computation does, and identify where they fail. This includes experiments, studies of model internals, and mathematical results.