Metraipolis › archive › dc_57fabc8e8072
MACRO: Markov Chain Routing of Transformer Layers — arXiv:2608.05872
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.05872
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-25T21:27:18.616Z
- SHA-256 of the archived text
d5ef044a6277abb4b777c5729b918012bc1868114da125de09c199878beb41b2- Stable URL of this page
https://metraipolis.com/documento/dc_57fabc8e8072
How to cite
MACRO: Markov Chain Routing of Transformer Layers — arXiv:2608.05872 — arXiv (en), https://arxiv.org/abs/2608.05872 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_57fabc8e8072 (Metraipolis archive dc_57fabc8e8072, sha256 d5ef044a6277abb4b777c5729b918012bc1868114da125de09c199878beb41b2)
BibTeX
@misc{dc57fabc8e8072,
title = {MACRO: Markov Chain Routing of Transformer Layers — arXiv:2608.05872},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.05872},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_57fabc8e8072; sha256 d5ef044a6277abb4b777c5729b918012bc1868114da125de09c199878beb41b2},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.05872. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Standard Large Language Models (LLMs) execute layers sequentially. Dynamic layer routing, i.e. search for a different execution path through layers involving layer repetitions, skips and other moves, can improve performance. Existing routing approaches often require updating model weights, running expensive search loops per test instance, or demand ground-truth labels during inference. In this work, we propose Markov Chain Routing of Transformer Layers (MACRO), a framework that learns task-specific routes over LLM architectures without modifying underlying parameters. MACRO models layer routing as a context-dependent Markov policy conditioned on layer indices, computation budget phases, directional displacements, and operator context, supporting skip, repeat, and residual hidden-state addition operations. The Markov route distribution is updated via feedback on training data and decoded using a top-k Viterbi algorithm to isolate high-probability candidate programs. We evaluate MACRO across diverse reasoning and knowledge benchmarks on multiple open-weight LLMs. MACRO achieves a +5.0% average accuracy improvement over the unrouted baselines, with largest gains on small models. We outperform the best dynamic routing approach Dr. LLM by +7.2%, while reducing route-search time 9.4x (from 14.8 to 1.6 hours). Our code is publicly available at this https URL . Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-07 in cs.CL). Categorie arXiv: Computation and Language (cs.CL) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2608.05872 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-25T21:24:38.216Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-08-07?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).