Get the daily emailDaily email
  1. Home
  2. Research
  3. This story

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…

Published Read the original
Library of Layers: a transformer that picks its layer order at runtime

Why it matters

A potential route to more controllable, interpretable computation, though still research-stage.

What happened

1 min read

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, depth-recurrent and MoE architectures. It's competitive in text pretraining and uses distinct orderings for different solution strategies on sudoku and maze tasks.

inscraper analysis

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.

More in Research