Universal Reasoner: A Single, Composable Plug-and-Play Reasoner for Frozen LLMs
Jaemin Kim, Hangeol Chang, Hyunmin Hwang, Choonghan Kim, Jong Chul Ye
TL;DR
UniR tackles the challenge of enhancing reasoning in frozen LLMs by introducing Universal Reasoner (UniR), a lightweight, plug-and-play reasoning module trained on predefined rewards and applied at the logit level to a frozen backbone. The key idea is to decouple reasoning from the backbone and represent trajectory rewards as a sum of token-level signals via ${\pi_r}$, enabling modular composition by additive logits when multiple modules are combined. Training employs Group Relative Policy Optimization (GRPO) with a small, domain-specific module, while the backbone remains fixed, yielding transferability across model sizes and improved efficiency. Empirical results on mathematical problem solving and machine translation show UniR outperforms baseline fine-tuning methods and demonstrates strong weak-to-strong generalization, as well as favorable training efficiency and modularity for combining domain-specific reasoning policies. This framework provides a practical, scalable path to augment reasoning in diverse tasks without full fine-tuning of large LLM backbones.
Abstract
Large Language Models (LLMs) have demonstrated remarkable general capabilities, but enhancing skills such as reasoning often demands substantial computational resources and may compromise their generalization. While Parameter-Efficient Fine-Tuning (PEFT) methods offer a more resource-conscious alternative, they typically requires retraining for each LLM backbone due to architectural dependencies. To address these challenges, here we propose Universal Reasoner (UniR) - a single, lightweight, composable, and plug-and-play reasoning module that can be used with any frozen LLM to endow it with specialized reasoning capabilities. Specifically, UniR decomposes the reward into a standalone reasoning module that is trained independently using predefined rewards, effectively translating trajectory-level signals into token-level guidance. Once trained, UniR can be combined with any frozen LLM at inference time by simply adding its output logits to those of the LLM backbone. This additive structure naturally enables modular composition: multiple UniR modules trained for different tasks can be jointly applied by summing their logits, enabling complex reasoning via composition. Experimental results on mathematical reasoning and machine translation tasks show that UniR significantly outperforms existing baseline fine-tuning methods using the Llama3.2 model. Furthermore, UniR demonstrates strong weak-to-strong generalization: reasoning modules trained on smaller models effectively guide much larger LLMs. This makes UniR a cost-efficient, adaptable, and robust solution for enhancing reasoning in LLMs without compromising their core capabilities. Code is open-sourced at https://github.com/hangeol/UniR
