AIToday
Large Language ModelsAI WeeklyPublished: Nov 4, 2026, 01:00 JST

EPFL/NYU's Library of Layers lets 360M model reorder its blocks

Send on LINE
EPFL/NYU's Library of Layers lets 360M model reorder its blocks

3 Key Points

  1. What happened

    The paper by Sean McLeish and co-authors describes Library of Layers, where a router picks the next transformer block from a shared library. Forcing a learned 'mode path' makes a 360M model follow one of five sudoku or maze strategies with close to 100% accuracy.

  2. Why it matters

    That means the layer order can be controlled at inference to steer the model toward a specific solving strategy, rather than leaving it fixed as in standard transformers.

WHO IT HITSAI researchers and engineers who design transformer architectures may see a new way to control model behavior at inference by reordering layers, potentially offering a knob between dense, depth-recurrent and mixture-of-experts behavior.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The Library of Layers work stands out because it turns layer order into a controllable variable. Standard transformers apply their blocks in a fixed sequence, but LoL lets a router choose the next block from a shared library, and the researchers show that the learned routing path can be overridden. Forcing a specific 'mode path' makes the model produce the trace of a chosen sudoku-solving strategy with close to 100% accuracy, and the same holds for maze-solving algorithms like BFS, DFS, A*, bidirectional search and dead-end filling.

Beyond strategy control, the paper reports that a simple ridge regression on router probabilities can separate safe from unsafe text, with an AUROC of 0.95 at the sequence level. That suggests the router's internal choices carry information about the input's safety, which could be useful for monitoring. At 1B parameters, LoL stays within 2 standard errors of a vanilla dense baseline on several benchmarks, indicating that the dynamic ordering does not come at a large performance cost in that setting. The code is released, so other researchers can build on the approach.

FAQ
What is Library of Layers?
Library of Layers (LoL) is an architecture that dynamically orders its layers during inference to solve the problem at hand, using a small router to pick the next block from a shared global library per input window.
How well does the safety probe work?
A ridge regression trained on router probabilities over a 50M-token held-out set separates safe from unsafe text with an AUROC of 0.92 at the window level and 0.95 at the sequence level.
Does LoL match a standard transformer on benchmarks?
At 1B parameters on math data, LoL stays within 2 standard errors of a vanilla dense baseline on ARC, HellaSwag, PIQA and GSM8K, while the vanilla full-attention model scores substantially lower on ARC-Easy.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleAI chatbots wrong in 40% of election answers, Forum AI finds