MiniOpt addresses the challenge of imbuing small-scale LLMs (sub-10B parameters) with strong optimization generalization across diverse problem types and scenarios, overcoming the limitations of data scarcity, annotation cost, verification overhead, and inference efficiency prevalent in optimization-oriented LLMs. Existing baselines typically rely on extensive SFT with high-quality data, reflection/debugging mechanisms that introduce computational bottlenecks, and sometimes closed-source solvers that restrict general applicability. MiniOpt integrates RL with verifiable reward (RLVR), introduces a reasoning-to-model-and-solve pipeline, and employs a structured reward function, OptReward, to enable efficient, scalable learning without expert demonstrations.
MiniOpt enforces a problem-solving pipeline via two output segments: > and <answer>. The <think> segment mandates explicit problem analysis and five-element tuple modeling (Variables, Objective, Constraints, Sets, Parameters), including automatic solver selection. The <answer> segment generates verifiable Pyomo code, executing the previously analyzed problem. This structure restricts the output action space to programmable artifacts, enabling deterministic verification and scoring for reward computation.
Figure 1: MiniOptโs architecture: Reasoning-to-model-and-solve pipeline, training stages, and OptReward/OptGRPO algorithms.
Training Pipeline: SFT Warm-Up and Two-Stage RL
MiniOpt employs a lightweight SFT phase on operational optimization data to mitigate reward sparsity and provide a foundation for RL training. Subsequent RL training occurs in two stages:
- Stage 1: Paradigm acquisition using relatively easy problems, maximizing signal from structural/formatted reward components, improving modeling and solver code executability.
- Stage 2: Optimization generalization using type-uniform and scenario-aligned, more difficult problems, prioritizing accuracy signal and robust solver selection.
Stage-specific data selection and scheduling, including uniform coverage and scenario distribution preservation, further enhances efficient utilization of limited data.
RLVR: OptReward and OptGRPO
OptReward comprises three hierarchical scores: format correctness, five-element structural completeness, and numerical accuracy. Automated procedures parse response format, check labeled summaries, and execute generated code for solution validation, enabling low-cost verifiable RL. OptGRPO modifies the vanilla GRPO algorithm: removes KL penalty, implements asymmetric importance weight clipping (higher upper threshold for exploration), and adopts token-level policy gradient loss to stabilize learning and amplify correct reasoning patterns. This ensures robust exploration and learning efficiency even under computational and data constraints.
Experimental Results
Optimization Generalization
MiniOpt-7B achieves the highest average Solving Accuracy (SA) (64.76%) across eight operational optimization benchmarks, outperforming all prompt-based and most learning-based baselines among models sub-10B. MiniOpt-3B remains competitive against models several times larger, e.g., outperforming Qwen2.5-14B (+12.19%), matching GPT-5, and achieving strong scaling with size.
Figure 2: MiniOpt achieves Pareto-optimality in performance vs parameter scale, outperforming baselines with fewer resources.
Paradigm and RLVR Effectiveness
Ablations demonstrate essential contributions from each pipeline element: SFT warm-up, two-stage RL, OptReward, and OptGRPO provide additive gains to SA and executable rates (ER). Removing RL drops SA to 27.24% (from 59.65%), and removing two-stage scheduling or structured reward components significantly degrades performance.
MiniOpt models lie on the empirical Pareto frontier of parameter scale and SA, maximally dense in capability per parameter. Reducing scale from 7B to 3B to 1.5B sees smooth, moderate drop-off in performance, leveraging the reasoning-to-model-and-solve RLVR pipeline to maintain robustness.
Breadth and Scalability
MiniOpt generalizes across multiple optimization categories (LP, MILP, IP, NLP, SOCP, CO, MOP), and scenarios (transportation, supply chain, manufacturing, etc.), with consistent accuracy and executable rates (Figures 5, 6, 7). The model handles dimensionalities up to 80 variables, robustly bridging low-to-high complexity and diverse application domains.
Figure 3: Distribution histogram of optimization types across eight evaluation benchmarks.
Figure 4: Distribution histogram of problem scenarios across eight evaluation benchmarks.
Figure 5: Performance variations of MiniOpt on benchmarks from different domains.
Algorithmic and Theoretical Implications
The hierarchical reward structure in OptReward is essential โ sensitivity analysis shows that collapsing reward differentiation impairs policy exploration and solution quality (Table IV, Figure 6). OptGRPOโs entropy trajectory avoids premature convergence (Figure 7), maintaining diversity in reasoning trajectories critical for non-convex search spaces in optimization. The RLVR framework circumvents costly annotation pipelines, reflection/debugging, and intermediary verification, leading to scalable training and inference.
Figure 6: Training dynamics of reward values and policy entropy for MiniOpt-3B under different reward function settings.
Figure 7: Training dynamics of reward function values and policy entropy: OptGRPO vs GRPO, highlighting improved exploration.
Practical Efficiency and General Capability
MiniOpt achieves competitive SA with only 24.40% of the output tokens used by DeepSeek-R1, lowering inference costs and enabling deployment on local and edge devices. Optimization-oriented RLVR training does not impair base model capability in other domains; evaluations on six general benchmarks (math, code, reading comprehension, QA, etc.) show average improvements of +1.24% over the base, indicating positive transfer and structural alignment.
Future Directions
MiniOpt suggests an efficient pathway for the development of compact LLMs specialized in optimization reasoning. The modular RLVR framework is broadly applicable to other code-centric and structured reasoning domains. Refinement of reward hierarchies, automatic scenario/type labeling, and further reductions in data annotation pipeline complexity are promising avenues for expanded generalization and deployment. Extending dimensionality scalability, integrating open solver adapters, and unsupervised reward modeling may enable robust, resource-constrained optimization reasoning at scale.
Conclusion
MiniOpt exemplifies resource-efficient, RL-verifiable optimization reasoning for small-scale LLMs. Its reasoning-to-model-and-solve paradigm, structured reward function, and tailored RL policy optimization facilitate generalization across diverse optimization types and scenarios with minimal computational overhead. MiniOpt strikes a definitive balance between optimization performance and efficiency, advancing the frontier of practical, deployable LLMs for automated reasoning in operations research and allied domains.