Training with Pseudo-Code for Instruction Following
Not on the map. Why?
Abstract (arXiv)
Despite rapid advances in the capabilities of Large Language Models (LLMs), they continue to struggle with following relatively simple and unambiguous instructions, particularly when compositional structure is involved. Recent work suggests that models may follow instructions more effectively when they are expressed in pseudo-code rather than natural language. However, writing pseudo-code programs can be tedious, and relying on few-shot demonstrations or inference-time code prompting is often unnatural for non-expert users of LLMs. To overcome these limitations, we propose a training time approach that fine-tunes LLMs using instruction-tuning data augmented with pseudo-code representations of natural language instructions paired with final responses. We evaluate our method on 12 publicly available benchmarks spanning instruction-following, mathematical reasoning, and commonsense reasoning, across six base models. Our results show that models trained with pseudo-code follow instructions more reliably, achieving relative gains of 8-21% on instruction following benchmarks, while largely preserving and in some cases improving performance on mathematical and commonsense reasoning tasks, with an average gain of up to 30% across all evaluated benchmarks.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 49 of its 68 references that are in the map. First posted on arXiv 23 May 2025.
Builds on
49 of 68 references.
References · 49
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
37 more
- 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,986
- 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
- 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 886
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 868
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 739
- 2023Instruction Tuning with GPT-4cited by 686
- 2019MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalismscited by 662
- 2023Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2cited by 229
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 189
- 2024Chain-of-Table: Evolving Tables in the Reasoning Chain for Table Understandingcited by 188
- 2023ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language Modelscited by 184
- 2024Benchmarking Complex Instruction-Following with Multiple Constraints Compositioncited by 152
- 2023Structured Chain-of-Thought Prompting for Code Generationcited by 138
- 2023Chain of Code: Reasoning with a Language Model-Augmented Code Emulatorcited by 123
- 2023FollowBench: A Multi-level Fine-grained Constraints Following Benchmark for Large Language Modelscited by 117
- 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligencecited by 117
- 2022Prompting Is Programming: A Query Language for Large Language Modelscited by 110
- 2024Buffer of Thoughts: Thought-Augmented Reasoning with Large Language Modelscited by 91
- 2024AgentInstruct: Toward Generative Teaching with Agentic Flowscited by 89
- 2024FOFO: A Benchmark to Evaluate LLMs' Format-Following Capabilitycited by 80
- 2024Self-play with Execution Feedback: Improving Instruction-following Capabilities of Large Language Modelscited by 73
- 2024Smaller, Weaker, Yet Better: Training LLM Reasoners via Compute-Optimal Samplingcited by 61
- 2024Beyond Chain-of-Thought: A Survey of Chain-of-X Paradigms for LLMscited by 48
- 2025CRANE: Reasoning with constrained LLM generationcited by 38
- 2024Suri: Multi-constraint Instruction Following for Long-form Text Generationcited by 34
- 2023Instruction-following Evaluation through Verbalizer Manipulationcited by 30
- 2023MUFFIN: Curating Multi-Faceted Instructions for Improving Instruction-Followingcited by 30
- 2024Conifer: Improving Complex Constrained Instruction-Following Ability of Large Language Modelscited by 27
- 2024From Complex to Simple: Enhancing Multi-Constraint Complex Instruction Following Ability of Large Language Modelscited by 27
- 2024Code Prompting Elicits Conditional Reasoning Abilities in Text+Code LLMscited by 20
- 2023Prompting with Pseudo-Code Instructionscited by 14
- 2025LLMs can be easily Confused by Instructional Distractionscited by 13
- 2024Constraint Back-translation Improves Complex Instruction Following of Large Language Modelscited by 11
- 2024Chain-of-Instructions: Compositional Instruction Tuning on Large Language Modelscited by 9
- 2025Table as Thought: Exploring Structured Thoughts in LLM Reasoningcited by 7
- 2024Chain of Condition: Construct, Verify and Solve Conditions for Conditional Question Answeringcited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026PromptMN: Pseudo Prompting Languagecited by 0
- 2026PromptMN: Pseudo Prompting Language15 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructions
- 2025Code-enabled language models can outperform reasoning models on diverse tasks
- 2026Do as I Say, Not as I Do: Instruction-Induction Conflict in LLMs
- 2023Becoming self-instruct: introducing early stopping criteria for minimal instruct tuning
- 2025On Code-Induced Reasoning in LLMs
- 2023FollowEval: A Multi-Dimensional Benchmark for Assessing the Instruction-Following Capability of Large Language Models
- 2024MAmmoTH2: Scaling Instructions from the Web
- 2025Scaling Reasoning, Losing Control: Evaluating Instruction Following in Large Reasoning Models