Library of Layers: a transformer that picks its layer order at runtime
LoL, instead of running layers in a fixed order, picks an ordering from a global library of transformer blocks at inference time for each problem. A single hyperparameter, library size, moves it between parameter reuse and sparsity, unifying dense…
Why it matters
A potential route to more controllable, interpretable computation, though still research-stage.
What happened
1 min readLoL, instead of running layers in a fixed order, picks an ordering from a global library of transformer blocks at inference time for each problem. A single hyperparameter, library size, moves it between parameter reuse and sparsity, unifying dense, depth-recurrent and MoE architectures. It's competitive in text pretraining and uses distinct orderings for different solution strategies on sudoku and maze tasks.
Our analysis
The most interesting parts are intervening on routing to force a solution strategy and probes on router outputs that detect unsafe text. The abstract doesn't state model scale or inference cost, and 'competitive' is hard to judge without numbers. Worth reading for architecture and safety researchers.