CodeSteer: Symbolic-Augmented Language Models via Code/Text Guidance
Yongchao Chen, Yilun Hao, Yueying Liu, Yang Zhang, Chuchu Fan

TL;DR
CodeSteer introduces a novel method for guiding large language models with symbolic and multi-turn guidance, significantly improving their performance on complex symbolic tasks and enabling better symbolic reasoning capabilities.
Contribution
The paper presents CodeSteer, a new approach combining symbolic guidance with fine-tuning techniques to enhance LLMs' ability to handle symbolic reasoning and code generation tasks.
Findings
CodeSteerLLM outperforms existing models on 37 symbolic tasks.
Augmenting GPT-4o with CodeSteer raises its performance from 53.3 to 86.4.
CodeSteer enhances generalization across different LLMs and unseen tasks.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Taxonomy
TopicsNatural Language Processing Techniques · Topic Modeling · Speech and dialogue systems
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · {Dispute@FaQ-s}How to file a dispute with Expedia? · Attention Is All You Need · Cosine Annealing · Linear Layer · Multi-Head Attention · Adam · Softmax · Dropout · Weight Decay
