Manuscript Offprint

arXiv:2611.04079

AlgoPilot: Cross-Paradigm Reasoning in Language Models via Strategy Selection and Guidance

Yilun Hao, Ruixiao Yang, Hudson Hilal, Yongchao Chen, Kaizhi Qian, Yada Zhu, Yang Zhang, Chuchu Fan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Real-world problems span diverse domains, including program synthesis, symbolic reasoning, planning, and optimization, and often require fundamentally different solution paradigms. A central challenge for LLM-based reasoning is twofold: identifying an appropriate problem-solving approach and formulating it correctly. In this paper, we propose AlgoPilot, a cross-paradigm reasoning framework that enables adaptive selection of the solving approaches and structured problem formulation prior to execution. The AlgoPilot framework contains three components: 1) a SteerLM, trained via supervised fine-tuning (SFT) and reinforcement learning (RL), that adaptively selects the solving strategy (paradigm and modes) based on input problems, 2) the corresponding expert GuideLM, trained via SFT, that generates structured formulation guidance tailored to the selected strategy, and 3) an ExecutionLM that generates solutions conditioned on both the selected strategy and its formulation. Unlike prompting-based methods that rely on fixed reasoning templates, our approach learns to adaptively choose and structure problem-solving strategies based on the input. We build AlgoPilot on Qwen3-8B and evaluate across 5 problem categories and 13 benchmarks with 66 unique domains, comparing against both the latest similarly scaled small models and large LLMs. AlgoPilot significantly improves average accuracy for the same model from 38.4% to 72.9%, outperforming the best large LLM prompting baseline GLM-5 by 11.7%. Ablation studies confirm the effectiveness of each component. Notably, we show that the learned steering and formulation modules can transfer across execution models, suggesting their potential to improve other LLMs. Project page: https://sites.google.com/view/algopilot.

1 Introduction

Large language models (LLMs) have demonstrated strong reasoning capabilities, especially when augmented with intermediate reasoning steps or external tools [35, 11, 42, 29, 24]. However, real-world reasoning problems are highly heterogeneous and are not difficult for a single reason. Different problems exhibit substantially different characteristics: some can be solved directly through natural-language reasoning, some are better handled by writing and executing code, while others require specialized formal formulations and executors, such as SMT [2] solvers for logical constraints, PDDL [20] planners for symbolic planning, or MILP [3] solvers for optimization. Thus, effective reasoning often requires choosing among fundamentally different computational paradigms.

This observation aligns with a classical challenge in algorithm selection: no single solver or strategy is uniformly best across heterogeneous problem instances. Effective problem solving typically requires

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

choosing a suitable method for the specific instance being considered [28, 12, 39, 17]. In the context of LLM reasoning, this challenge requires LLMs to not only infer an appropriate solving paradigm but also construct a correct formulation within that paradigm. For example, optimization problems require specifying decision variables, objectives, and constraints, planning problems require defining states, actions, and transitions, and constraint-satisfaction problems require logical formulations. Thus, effective cross-domain reasoning requires both adaptive strategy selection and strategy-specific formulation.

Recent work demonstrates that structured intermediate representations and external executors can substantially improve the reliability and correctness of reasoning. Chain-of-thought prompting encourages natural-language intermediate reasoning steps [35], and other approaches augment LLMs with executable programs, external tools, or formal solver-based formulations such as logical reasoning, satisfiability solving, planning, and optimization [11, 42, 29, 22, 43, 27, 1, 38, 16, 15]. Recent code-augmented reasoning methods further study how to steer LLMs between textual reasoning and code execution, either by training a separate guidance model or by fine-tuning Code-Interpreter-augmented models [8, 9]. These methods highlight the importance of selecting an appropriate reasoning medium, but they primarily focus on the text–code distinction or a specific formal executor. More recently, adaptive inference and orchestration approaches have explored dynamically selecting model choices, prompting strategies, sampling budgets, decomposition granularities, or model-tool combinations conditioned on input difficulty or task requirements [45, 23, 36, 32]. While these methods demonstrate the value of input-dependent routing, their routing spaces are largely defined by inference configurations, prompting strategies, models, and external tools, rather than by fundamentally different computational paradigms and their corresponding problem formulations.

Figure

Figure 1: An overview of AlgoPilot. Given a natural-language problem input, SteerLM first selects a solving paradigm and guidance mode. If guidance is needed, the corresponding paradigm-specific GuideLM generates formulation guidance. ExecuteLM then produces and executes the final solution conditioned on the selected paradigm and optional guidance.

In this paper, we propose AlgoPilot (illustrated in Fig. 1), a cross-paradigm reasoning framework that learns to adaptively select problem-solving paradigms and formulate problems within those paradigms before execution. Given a natural-language problem, AlgoPilot decomposes reasoning into three stages. First, a SteerLM selects a paradigm, choosing among textual reasoning, programmatic execution, symbolic constraint solving, planning, and optimization. The SteerLM additionally determines whether structured guidance is needed before execution. Second, if guidance is needed, a paradigm-specific GuideLM generates structured formulation guidance tailored to the selected paradigm. Third, an ExecuteLM generates the final reasoning process, program, or solver implementation based on the selected paradigm and optional guidance. This design separates what computational paradigm to use from how to formulate the problem under that paradigm, enabling adaptive coordination of heterogeneous reasoning paradigms within a unified learned framework.

We fine-tune the paradigm-specific GuideLMs via supervised fine-tuning (SFT) on filtered, structured guidance that reliably improves downstream execution. The SteerLM is trained with SFT followed by Group Relative Policy Optimization (GRPO) [30] using execution-derived feedback across multiple paradigm-mode combinations. AlgoPilot is a general cross-paradigm reasoning framework that can be integrated with arbitrary language models. In this work, we instantiate the framework using Qwen3-8B [40] as the base model. We evaluate AlgoPilot on 13 benchmarks across 66 diverse reasoning domains spanning programmatic reasoning, natural-language reasoning, symbolic planning, logical constraint solving, and mathematical optimization. Experimental results demonstrate that AlgoPilot substantially improves performance over similarly scaled model baselines from 38.4% to 72.9% and outperforms the best large model prompting baseline GLM-5 by 11.7%. Ablation studies further validate the importance of both adaptive paradigm selection and structured formulation guidance. Finally, we show that the learned steering and guidance modules are effective not only for the base execution model used during training, suggesting that cross-paradigm strategy selection has the potential to serve as a transferable reasoning layer for LLM problem solving.

In summary, our key contributions are:

  • We identify adaptive paradigm selection and paradigm-specific formulation construction as two central challenges in cross-paradigm LLM reasoning.
  • We propose AlgoPilot, a unified framework that decomposes problem solving into paradigm steering, structured formulation guidance, and execution across heterogeneous paradigms.
  • We build a diverse cross-paradigm evaluation suite by integrating 13 reasoning benchmarks spanning 66 domains, and construct empirical paradigm-mode supervision from downstream execution outcomes, enabling supervised fine-tuning and reinforcement learning for adaptive strategy selection and structured formulation guidance.
  • We demonstrate that AlgoPilot improves the average accuracy for the same small model from 38.4% to 72.9%, outperforms the best large model baseline by 11.7%, and that its learned steering and guidance components can transfer to improve another execution model.

References (38)