mlsanityData to 14 Oct 2026

CodeSteer: Symbolic-Augmented Language Models via Code/Text Guidance

arXiv 2502.04350 ↗First posted 4 Feb 2025cs.CL cs.AI cs.LGcited by 11

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

  1. 2024Steering Large Language Models between Code Execution and Textual Reasoning4 Oct
  2. 2024LogicGame: Benchmarking Rule-Based Reasoning Abilities of Large Language Models28 Aug
  3. 2024Mixture-of-Agents Enhances Large Language Model Capabilities7 Jun
  4. 2024Learning to Reason via Program Generation, Emulation, and Search25 May
  5. 2023Chain of Code: Reasoning with a Language Model-Augmented Code Emulator7 Dec
  6. 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Models6 Oct
  7. 2022PlanBench: An Extensible Benchmark for Evaluating Large Language Models on Planning and Reasoning about Change21 Jun

Other references · 30

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  4. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  5. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  6. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  7. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
  8. 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,348
  9. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,006
  10. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
  11. 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,210
  12. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
18 more
  1. 2024Do NOT Think That Much for 2+3=? On the Overthinking of o1-Like LLMscited by 570
  2. 2024Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Modelscited by 557
  3. 2025rStar-Math: Small LLMs Can Master Math Reasoning with Self-Evolved Deep Thinkingcited by 313
  4. 2022Generating Sequences by Learning to Self-Correctcited by 277
  5. 2024ArCHer: Training Language Model Agents via Hierarchical Multi-Turn RLcited by 228
  6. 2023Text2Motion: From Natural Language Instructions to Feasible Planscited by 224
  7. 2022Re3: Generating Longer Stories With Recursive Reprompting and Revisioncited by 193
  8. 2023Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verificationcited by 166
  9. 2022Language Models of Code are Few-Shot Commonsense Learnerscited by 160
  10. 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 140
  11. 2024Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffoldingcited by 117
  12. 2023AutoTAMP: Autoregressive Task and Motion Planning with LLMs as Translators and Checkerscited by 113
  13. 2023Scalable Multi-Robot Collaboration with Large Language Models: Centralized or Decentralized Systems?cited by 106
  14. 2024Chain of Preference Optimization: Improving Chain-of-Thought Reasoning in LLMscited by 96
  15. 2024CRAB: Cross-environment Agent Benchmark for Multimodal Language Model Agentscited by 39
  16. 2024Planning Anything with Rigor: General-Purpose Zero-Shot Planning with LLM-based Formalized Programmingcited by 35
  17. 2024PRompt Optimization in Multi-Step Tasks (PROMST): Integrating Human Feedback and Heuristic-based Samplingcited by 32
  18. 2024Can LLMs Reason in the Wild with Programs?cited by 13

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 6; 2026: 5.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024CodeLutra: Boosting LLM Code Generation via Preference-Guided Refinement
  2. 2026Can Large Language Models Understand, Reason About, and Generate Code-Switched Text?
  3. 2025Synthetic Data Generation Using Large Language Models: Advances in Text and Code
  4. 2025rStar-Coder: Scaling Competitive Code Reasoning with a Large-Scale Verified Dataset
  5. 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Models
  6. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence
  7. 2026Beyond Output Correctness: Benchmarking and Evaluating Large Language Model Reasoning in Coding Tasks
  8. 2025LMR-BENCH: Evaluating LLM Agent's Ability on Reproducing Language Modeling Research