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 require retraining for each LLM backbone due to architectural dependencies. To address these challenges, 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.
Introduction
While Large Language Models (LLMs) are powerful generalists, teaching them specialized skills like complex mathematical reasoning usually requires Reinforcement Fine-Tuning (RFT). This process is notoriously difficult due to high resource intensity, architectural lock-in (where PEFT modules like LoRA are tied to specific model sizes), and poor compositionality when trying to merge multiple specialized skills.
Researchers from KAIST have introduced Universal Reasoner (UniR) to solve these issues by decoupling reasoning capability from the main model. UniR is a lightweight, standalone module that adds specialized reasoning capabilities to any "frozen" LLM without requiring expensive retraining of the backbone.
Methodology
UniR's core innovation lies in its additive logit structure. Instead of updating the weights of a massive backbone model ($\pi_b$), the system trains a much smaller, independent reasoning module ($\pi_r$).
Logit Addition and Training
At inference time, the final output is determined by simply summing the log-probabilities (logits) of the frozen backbone and the trained UniR module: $\log \pi_\theta \propto \log \pi_b + \alpha \log \pi_r$. This structure is mathematically grounded, equivalent to an optimal policy that maximizes reward while maintaining proximity to a base model via KL-regularization.
The reasoning module is trained using Group Relative Policy Optimization (GRPO), a reinforcement learning algorithm that eliminates the need for a separate critic model. During training, only the small UniR module's weights are updated while the backbone remains frozen, leading to significantly lower reward variance and avoiding the "policy collapse" often seen in standard RL training for LLMs.
Experimental Evaluation
The authors evaluated UniR across several challenging domains, including mathematics (GSM8k, MATH-500, AIME24), machine translation (IWSLT 2017), and multimodal reasoning (MathVerse).
Key Results
- Superior Performance: On Llama 3.2 3B, a 1B UniR module achieved an average score of 36.0 across math benchmarks, outperforming both LoRA (30.8) and full fine-tuning (30.6).
- Weak-to-Strong Generalization: A reasoning module trained on a 3B model effectively guided much larger backbones. For instance, it improved the performance of a Qwen-2.5-14B model from 51.1% to 52.8% without any additional training on the larger model.
- Efficiency: UniR supports much larger batch sizes (up to 128 on an 80GB VRAM limit) compared to LoRA (64) or full fine-tuning (32) because the large backbone's computation graph does not need to be stored for backpropagation.
- Seamless Composition: Multiple UniR modules can be combined by summing their logits. The researchers demonstrated this by combining a "Math" module and a "Translation" module to solve German math problems in English—a task neither module could perform perfectly in isolation.
Conclusion
UniR represents a shift toward modular, architecture-agnostic AI development. By treating reasoning as a plug-and-play component, it enables the enhancement of massive models with minimal compute. While UniR's performance is ultimately capped by the knowledge contained within the frozen backbone, its ability to steer existing knowledge more effectively makes it a robust solution for specialized tasks. Future work will explore applying UniR to diverse fields such as coding and long-form creative writing.
Summary updated