CodeSteer: Symbolic-Augmented Language Models via Code/Text Guidance
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Existing methods fail to effectively steer Large Language Models (LLMs) between textual reasoning and code generation, leaving symbolic computing capabilities underutilized. We introduce CodeSteer, an effective method for guiding LLM code/text generation. We construct a comprehensive benchmark SymBench comprising 37 symbolic tasks with adjustable complexity and also synthesize datasets of 12k multi-turn guidance/generation trajectories and 5.5k guidance comparison pairs. We fine-tune the Llama-3-8B model with a newly designed multi-turn supervised fine-tuning (SFT) and direct preference optimization (DPO). The resulting model, CodeSteerLLM, augmented with the proposed symbolic and self-answer checkers, effectively guides the code/text generation of larger models. Augmenting GPT-4o with CodeSteer raises its average performance score from 53.3 to 86.4, even outperforming the existing best LLM OpenAI o1 (82.7), o1-preview (74.8), and DeepSeek R1 (76.8) across all 37 tasks (28 seen, 9 unseen). Trained for GPT-4o, CodeSteer demonstrates superior generalizability, providing an average 41.8 performance boost on Claude, Mistral, and GPT-3.5. CodeSteer-guided LLMs fully harness symbolic computing to maintain strong performance on highly complex tasks. Models, Datasets, and Codes are available at https://github.com/yongchao98/CodeSteer-v1.0 and https://huggingface.co/yongchao98.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 37 of its 49 references that are in the map. First posted on arXiv 4 Feb 2025.
Builds on
37 of 49 references.
Closest ancestors · 7
Same direction, newest first
- 2024Steering Large Language Models between Code Execution and Textual Reasoning4 Oct
- 2024LogicGame: Benchmarking Rule-Based Reasoning Abilities of Large Language Models28 Aug
- 2024Mixture-of-Agents Enhances Large Language Model Capabilities7 Jun
- 2024Learning to Reason via Program Generation, Emulation, and Search25 May
- 2023Chain of Code: Reasoning with a Language Model-Augmented Code Emulator7 Dec
- 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Models6 Oct
- 2022PlanBench: An Extensible Benchmark for Evaluating Large Language Models on Planning and Reasoning about Change21 Jun
Other references · 30
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,348
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,006
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
- 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,210
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
18 more
- 2024Do NOT Think That Much for 2+3=? On the Overthinking of o1-Like LLMscited by 570
- 2024Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Modelscited by 557
- 2025rStar-Math: Small LLMs Can Master Math Reasoning with Self-Evolved Deep Thinkingcited by 313
- 2022Generating Sequences by Learning to Self-Correctcited by 277
- 2024ArCHer: Training Language Model Agents via Hierarchical Multi-Turn RLcited by 228
- 2023Text2Motion: From Natural Language Instructions to Feasible Planscited by 224
- 2022Re3: Generating Longer Stories With Recursive Reprompting and Revisioncited by 193
- 2023Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verificationcited by 166
- 2022Language Models of Code are Few-Shot Commonsense Learnerscited by 160
- 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 140
- 2024Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffoldingcited by 117
- 2023AutoTAMP: Autoregressive Task and Motion Planning with LLMs as Translators and Checkerscited by 113
- 2023Scalable Multi-Robot Collaboration with Large Language Models: Centralized or Decentralized Systems?cited by 106
- 2024Chain of Preference Optimization: Improving Chain-of-Thought Reasoning in LLMscited by 96
- 2024CRAB: Cross-environment Agent Benchmark for Multimodal Language Model Agentscited by 39
- 2024Planning Anything with Rigor: General-Purpose Zero-Shot Planning with LLM-based Formalized Programmingcited by 35
- 2024PRompt Optimization in Multi-Step Tasks (PROMST): Integrating Human Feedback and Heuristic-based Samplingcited by 32
- 2024Can LLMs Reason in the Wild with Programs?cited by 13
Built on by
Citing papers per year: 2025: 6; 2026: 5.
11 papers.
- 2026Code as Agent Harnesscited by 47
- 2025Stronger-MAS: Multi-Agent Reinforcement Learning for Collaborative LLMscited by 28
- 2025R1-Code-Interpreter: LLMs Reason with Code via Supervised and Multi-stage Reinforcement Learningcited by 15
- 2025NIRVANA: Structured Pruning Reimagined for Large Language Model Compressioncited by 6
- 2025AutoPatch: Multi-Agent Framework for Patching Real-World CVE Vulnerabilitiescited by 4
- 2025Test-Time Policy Adaptation for Enhanced Multi-Turn Interactions with LLMscited by 3
- 2026ClarifySTL: An Interactive LLM Agent Framework for STL Transformation through Requirements Clarificationcited by 2
- 2025An Empirical Study on Strong-Weak Model Collaboration for Repo-level Code Generationcited by 1
- 2026Implicit Hierarchical GRPO: Decoupling Tool Invocation from Execution for Tool-Integrated Mathematical Reasoningcited by 1
- 2026Spatial Reasoning via Modality Switching Between Language and Symbolic Representationscited by 1
- 2026Code Consistency Preference Optimization Verification for Language Model Alignmentcited by 0
- 2026Code Consistency Preference Optimization Verification for Language Model Alignment18 Jul 2026
- 2026Spatial Reasoning via Modality Switching Between Language and Symbolic Representations30 Jun 2026
- 2026Code as Agent Harness18 May 2026
- 2026Implicit Hierarchical GRPO: Decoupling Tool Invocation from Execution for Tool-Integrated Mathematical Reasoning18 May 2026
- 2026ClarifySTL: An Interactive LLM Agent Framework for STL Transformation through Requirements Clarification2 May 2026
- 2025Stronger-MAS: Multi-Agent Reinforcement Learning for Collaborative LLMs13 Oct 2025
- 2025Test-Time Policy Adaptation for Enhanced Multi-Turn Interactions with LLMs27 Sep 2025
- 2025NIRVANA: Structured Pruning Reimagined for Large Language Model Compression17 Sep 2025
- 2025R1-Code-Interpreter: LLMs Reason with Code via Supervised and Multi-stage Reinforcement Learning27 May 2025
- 2025An Empirical Study on Strong-Weak Model Collaboration for Repo-level Code Generation26 May 2025
- 2025AutoPatch: Multi-Agent Framework for Patching Real-World CVE Vulnerabilities7 May 2025
Similar, not cited
Close in wording, no citation either way
- 2024CodeLutra: Boosting LLM Code Generation via Preference-Guided Refinement
- 2026Can Large Language Models Understand, Reason About, and Generate Code-Switched Text?
- 2025Synthetic Data Generation Using Large Language Models: Advances in Text and Code
- 2025rStar-Coder: Scaling Competitive Code Reasoning with a Large-Scale Verified Dataset
- 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Models
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence
- 2026Beyond Output Correctness: Benchmarking and Evaluating Large Language Model Reasoning in Coding Tasks
- 2025LMR-BENCH: Evaluating LLM Agent's Ability on Reproducing Language Modeling Research