R2R: Efficiently Navigating Divergent Reasoning Paths with Small-Large Model Token Routing

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Fu, Tianyu, Ge, Yi, You, Yichen, Liu, Enshu, Yuan, Zhihang, Dai, Guohao, Yan, Shengen, Yang, Huazhong, Wang, Yu
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912688474423296
author Fu, Tianyu
Ge, Yi
You, Yichen
Liu, Enshu
Yuan, Zhihang
Dai, Guohao
Yan, Shengen
Yang, Huazhong
Wang, Yu
author_facet Fu, Tianyu
Ge, Yi
You, Yichen
Liu, Enshu
Yuan, Zhihang
Dai, Guohao
Yan, Shengen
Yang, Huazhong
Wang, Yu
contents Large Language Models (LLMs) achieve impressive reasoning capabilities at the cost of substantial inference overhead, posing substantial deployment challenges. Although distilled Small Language Models (SLMs) significantly enhance efficiency, their performance suffers as they fail to follow LLMs' reasoning paths. Luckily, we reveal that only a small fraction of tokens genuinely diverge reasoning paths between LLMs and SLMs. Most generated tokens are either identical or exhibit neutral differences, such as minor variations in abbreviations or expressions. Leveraging this insight, we introduce **Roads to Rome (R2R)**, a neural token routing method that selectively utilizes LLMs only for these critical, path-divergent tokens, while leaving the majority of token generation to the SLM. We also develop an automatic data generation pipeline that identifies divergent tokens and generates token-level routing labels to train the lightweight router. We apply R2R to combine R1-1.5B and R1-32B models from the DeepSeek family, and evaluate on challenging math, coding, and QA benchmarks. With an average activated parameter size of 5.6B, R2R surpasses the average accuracy of R1-7B by 1.6x, outperforming even the R1-14B model. Compared to R1-32B, it delivers a 2.8x wall-clock speedup with comparable performance, advancing the Pareto frontier of test-time scaling efficiency. Our code is available at https://github.com/thu-nics/R2R.
format Preprint
id arxiv_https___arxiv_org_abs_2505_21600
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle R2R: Efficiently Navigating Divergent Reasoning Paths with Small-Large Model Token Routing
Fu, Tianyu
Ge, Yi
You, Yichen
Liu, Enshu
Yuan, Zhihang
Dai, Guohao
Yan, Shengen
Yang, Huazhong
Wang, Yu
Computation and Language
Artificial Intelligence
Machine Learning
Performance
I.2.7
Large Language Models (LLMs) achieve impressive reasoning capabilities at the cost of substantial inference overhead, posing substantial deployment challenges. Although distilled Small Language Models (SLMs) significantly enhance efficiency, their performance suffers as they fail to follow LLMs' reasoning paths. Luckily, we reveal that only a small fraction of tokens genuinely diverge reasoning paths between LLMs and SLMs. Most generated tokens are either identical or exhibit neutral differences, such as minor variations in abbreviations or expressions. Leveraging this insight, we introduce **Roads to Rome (R2R)**, a neural token routing method that selectively utilizes LLMs only for these critical, path-divergent tokens, while leaving the majority of token generation to the SLM. We also develop an automatic data generation pipeline that identifies divergent tokens and generates token-level routing labels to train the lightweight router. We apply R2R to combine R1-1.5B and R1-32B models from the DeepSeek family, and evaluate on challenging math, coding, and QA benchmarks. With an average activated parameter size of 5.6B, R2R surpasses the average accuracy of R1-7B by 1.6x, outperforming even the R1-14B model. Compared to R1-32B, it delivers a 2.8x wall-clock speedup with comparable performance, advancing the Pareto frontier of test-time scaling efficiency. Our code is available at https://github.com/thu-nics/R2R.
title R2R: Efficiently Navigating Divergent Reasoning Paths with Small-Large Model Token Routing
topic Computation and Language
Artificial Intelligence
Machine Learning
Performance
I.2.7
url https://arxiv.org/abs/2505.21600