Reproduce “Router-R1: Teaching LLMs Multi-Round Routing and Aggregation via Reinforcement Learning” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Haozhen Zhang, Tao Feng, Jiaxuan You

Router-R1 lets an LLM router reason and make repeated calls to selected language models, using replies as context before answering. Reinforcement learning trains the router’s decisions. Across seven QA benchmarks, Router-R1-Qwen averages 0.416 exact-match accuracy, versus 0.338 for the strongest non-R1 baseline. The main evaluation sets cost coefficient α to 0.0, so it does not establish cost-optimized performance.

Key insights

  • Reinforcement learning effectively teaches an LLM to dynamically coordinate other LLMs in a multi-round fashion, enabling complex problem decomposition and iterative answer refinement.
  • Introducing a cost reward allows the router to learn strategies that balance answer quality with the computational expense of querying different LLMs, creating controllable performance-cost trade-offs.
  • An LLM acting as a router can generalize to unseen candidate LLMs without retraining by leveraging simple textual descriptors of their capabilities and costs provided at inference time.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.