2026-11-26 15:40 UTC

Paper proposes transformers that reorder shared layers at inference

state: seedheat: mediumuncertainty: mediumrelevance: hightransformer-architecture adaptive-computation researchAbdellah RahmaniSean McLeishAng LiSanae LotfiPascal FrossardMicah Goldblum

What is this?

Library of Layers (LoL) is a transformer architecture introduced in arXiv paper 2611.03526, submitted 2 Nov 2026 by Abdellah Rahmani, Sean McLeish, Ang Li, Sanae Lotfi, Pascal Frossard and Micah Goldblum. It uses a shared library of transformer blocks and dynamically orders them during inference. The authors report competitive performance against dense, depth-recurrent and mixture-of-experts baselines in their text-pretraining tests. They also report distinct routing patterns on synthetic Sudoku and maze tasks, language-dependent patterns, and safety-related signals in router outputs. The evidence supplied is the paper abstract, alongside a Reddit post and search-result summaries; detailed methods, measurements and independent verification are not included here.

Why it matters

LoL explores making a model’s computation path adaptive: instead of always running layers in a fixed order, it can compose a sequence of shared blocks for an input. If its reported tradeoffs hold at larger scales, this could offer another way to balance parameter count, compute and task-specific processing, while making some routing choices inspectable or steerable. The reported competitive results are promising, but the supplied evidence does not establish practical efficiency, broad task performance or deployment readiness.

Current assessment

New: the authors’ 2 Nov 2026 arXiv submission proposes LoL, a transformer with a global library of blocks dynamically ordered at inference. The abstract says library size is a single hyperparameter spanning parameter reuse and sparsity, and reports competitive results versus dense, depth-recurrent and MoE baselines in tested text-pretraining settings. It also reports distinct, intervention-controllable strategies on synthetic Sudoku and mazes; different ordering patterns by language and script; and router-output probes that distinguish safe from unsafe text with high AUROC. These are author-reported findings, not independent validation. The supplied source does not provide the underlying measurements or establish real-world efficiency, the reliability or safety value of routing, or performance at production scale. The paper is available on arXiv; no implementation or deployment is established by the supplied evidence. Follow-up should check the full paper’s experimental details, compute and parameter accounting, routing overhead, and reproducibility. The search results mention institutional affiliations and a 100% strategy-control figure, but those details are not confirmed in the supplied primary-source text and should not be treated as established.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p0momentum: steady2 platformsage 602h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-01 13:00⭐ origin echo-reconstructedThe original primary artifact is the arXiv paper, submitted 2 November 2026. Its abstract says: “We introduce Library of Layers (LoL), an ar
Abdellah Rahmani, Sean McLeish, Ang Li, Sanae Lotfi, Pascal Frossard, and Micah Goldblum on paper (echo) · attributed from reddit.post.1xmzo2s
—
11-03 17:44first on r/LocalLLaMA · published · +52.7h[2611.03526] Library of Layers (LoL): Adaptively Ordering Transformer Layers at Runtime
Thrumpwart
—
11-03 17:44amplified on r/LocalLLaMA 👑reddit.post.1xmzo2s
Thrumpwart
peak 58 · 9 comments · 100% of case engagement
11-04 00:21our radar first saw it · +59.4hdiscovery anchor: reddit.post.1xmzo2s—
pace: p73 vs 1845 stories at the 336h mark (now 602h old) — ahead of epyc-ram-heavy-qwen38-serving-benchmark (1.0x), behind chatgpt-edit-history-context-bug (1.0x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟠 reddit[2611.03526] Library of Layers (LoL): Adaptively Ordering Transformer Layers at Runtime
LocalLLaMA
Retrieved article excerpt

Open article · Retrieved 2026-11-04T00:33:48.072180+00:00

# Computer Science > Machine Learning

**arXiv:2611.03526** (cs)

[Submitted on 2 Nov 2026]

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

Authors:[Abdellah Rahmani](https://arxiv.org/search/cs?searchtype=author&query=Rahmani,+A), [Sean McLeish](https://arxiv.org/search/cs?searchtype=author&query=McLeish,+S), [Ang Li](https://arxiv.org/search/cs?searchtype=author&query=Li,+A), [Sanae Lotfi](https://arxiv.org/search/cs?searchtype=author&query=Lotfi,+S), [Pascal Frossard](https://arxiv.org/search/cs?searchtype=author&query=Frossard,+P), [Micah Goldblum](https://arxiv.org/search/cs?searchtype=author&query=Goldblum,+M)

View a PDF of the paper titled Library of Layers (LoL): Adaptively Ordering Transformer Layers at Runtime, by Abdellah Rahmani and 5 other authors

[View PDF](https://arxiv.org/pdf/2611.03526)
[HTML (experimental)](https://arxiv.org/html/2611.03526v1)
> Abstract:Computer programmers chain together the same reusable computational primitives, for example, conditional statements or loops, but in different orders to implement different algorithms. In contrast, existing language model architectures always execute their layers in the same order. We introduce Library of Layers (LoL), an architecture that dynamically orders its layers during inference to solve the problem at hand. LoL has a single hyperparameter, the size of its global library of transformer blocks, that allows it to transition seamlessly between parameter reuse and sparsity, generalizing the parameter-efficiency and FLOPs-efficiency tradeoffs of dense, depth-recurrent, and mixture of experts architectures in one unified family. We show that LoL achieves competitive performance with all three above baselines when pretrained on text data. On synthetic sudoku and maze data, we observe that the model employs distinct layer orderings to implement different solution strategies, and we can intervene on routing to force a model to apply a specific solution strategy to a problem instance. In a multilingual natural language setting, we find that LoL chooses different layer order patterns based on language and script. Similarly, we train LoL on safety data and fit probes to its router outputs, finding that these probes distinguish safe from unsafe text with high AUROC. LoL provides a path toward a future in which models dynamically compose their own computational graph, enabling more efficient and controllable reasoning.

|  |
| --- |
| Comments: |
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Computation and Language (cs.CL) |
| Cite as: | [arXiv:2611.03526](https://arxiv.org/abs/2611.03526) [cs.LG] |
|  | (or  [arXiv:2611.03526v1](https://arxiv.org/abs/2611.03526v1) [cs.LG] for this version) |
|  | <https://doi.org/10.48550/arXiv.2611.03526> Focus to learn more  arXiv-issued DOI via DataCite (pending registration) |

## Submission history

From: Sean McLeish [[view email](https://arxiv.org/show-email/0523d48a/2611.03526)]   
 **[v1]**
Mon, 2 Nov 2026 17:57:53 UTC (12,686 KB)

Full-text links:

## Access Paper:

View a PDF of the paper titled Library of Layers (LoL): Adaptively Ordering Transformer Layers at Runtime, by Abdellah Rahmani and 5 other authors

- [View PDF](https://arxiv.org/pdf/2611.03526)
- [HTML (experimental)](https://arxiv.org/html/2611.03526v1)
- [TeX Source](https://arxiv.org/src/2611.03526)

[view license](http://arxiv.org/licenses/nonexclusive-distrib/1.0/ "Rights to this article")

### Additional Features

- [Audio Summary](https://arxiv.org/audio/2611.03526)

### Current browse context:

cs.LG

[< prev](https://arxiv.org/prevnext?id=2611.03526&function=prev&context=cs.LG "previous in cs.LG (accesskey p)")
  |   
[next >](https://arxiv.org/prevnext?id=2611.03526&function=next&context=cs.LG "next in cs.LG (accesskey n)")

[new](https://arxiv.org/list/cs.LG/new)
 | 
[recent](https://arxiv.org/list/cs.LG/recent)
 | [2026-11](https://arxiv.org/list/cs.LG/2026-11)

Change to browse by:

[cs](https://arxiv.org/abs/2611.03526?context=cs)  
[cs.AI](https://arxiv.org/abs/2611.03526?context=cs.AI)  
[cs.CL](https://arxiv.org/abs/2611.03526?context=cs.CL)

### References & Citations

- [SciX](https://scixplorer.org/abs/arXiv:2611.03526)
- [Google Scholar](https://scholar.google.com/scholar_lookup?arxiv_id=2611.03526)
- [Semantic Scholar](https://api.semanticscholar.org/arXiv:2611.03526)

export BibTeX citation
Loading...

## BibTeX formatted citation

×

loading...

Data provided by:

### Bookmark

[BibSonomy](http://www.bibsonomy.org/BibtexHandler?requTask=upload&url=https://arxiv.org/abs/2611.03526&description=Library of Layers (LoL): Adaptively Ordering Transformer Layers at Runtime "Bookmark on BibSonomy")
[Reddit](https://reddit.com/submit?url=https://arxiv.org/abs/2611.03526&title=Library of Layers (LoL): Adaptively Ordering Transformer Layers at Runtime "Bookmark on Reddit")



Bibliographic Tools

# Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer *([What is the Explorer?](https://info.arxiv.org/labs/showcase.html#arxiv-bibliographic-explorer))*

Connected Papers Toggle

Connected Papers *([What is Connected Papers?](https://www.connectedpapers.com/about))*

Litmaps Toggle

Litmaps *([What is Litmaps?](https://www.litmaps.co/))*

scite.ai Toggle

scite Smart Citations *([What are Smart Citations?](https://www.scite.ai/))*

Code, Data, Media

# Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv *([What is alphaXiv?](https://alphaxiv.org/))*

Links to Code Toggle

CatalyzeX Code Finder for Papers *([What is CatalyzeX?](https://www.catalyzex.com))*

DagsHub Toggle

DagsHub *([What is DagsHub?](https://dagshub.com/))*

GotitPub Toggle

Gotit.pub *([What is GotitPub?](http://gotit.pub/faq))*

Huggingface Toggle

Hugging Face *([What is Huggingface?](https://huggingface.co/huggingface))*

ScienceCast Toggle

ScienceCast *([What is ScienceCast?](https://sciencecast.org/welcome))*

Demos

# Demos

Replicate Toggle

Replicate *([What is Replicate?](https://replicate.com/docs/arxiv/about))*

Spaces Toggle

Hugging Face Spaces *([What is Spaces?](https://huggingface.co/docs/hub/spaces))*

Spaces Toggle

TXYZ.AI *([What is TXYZ.AI?](https://txyz.ai))*

Related Papers

# Recommenders and Search Tools

Link to Influence Flower

Influence Flower *([What are Influence Flowers?](https://influencemap.cmlab.dev/))*

Core recommender toggle

CORE Recommender *([What is CORE?](https://core.ac.uk/services/recommender))*

IArxiv recommender toggle

IArxiv Recommender
*([What is IArxiv?](https://iarxiv.org/about))*

- Author
- Venue
- Institution
- Topic


About arXivLabs

# arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? [**Learn more about arXivLabs**](https://info.arxiv.org/labs/index.html).

[Which authors of this paper are endorsers?](https://arxiv.org/auth/show-endorsers/2611.03526) |
Disable MathJax ([What is MathJax?](https://info.arxiv.org/help/mathjax.html))
Thrumpwart589
🟧 echo.paper ⭐The original primary artifact is the arXiv paper, submitted 2 November 2026. Its abstract says: “We introduce Library of Layers (LoL), an arAbdellah Rahmani, Sean McLeish, Ang Li, Sanae Lotfi, Pascal Frossard, and Micah Goldblum——

Interpretation history

Decision trace