mlsanityData to 14 Oct 2026

Training with Pseudo-Code for Instruction Following

arXiv 2505.18011 ↗First posted 23 May 2025cs.CL cs.AIcited by 1

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

  1. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  2. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  6. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  7. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  8. 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
  9. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  10. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
  11. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  12. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
37 more
  1. 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,986
  2. 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
  3. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
  4. 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 886
  5. 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 868
  6. 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 739
  7. 2023Instruction Tuning with GPT-4cited by 686
  8. 2019MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalismscited by 662
  9. 2023Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2cited by 229
  10. 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 189
  11. 2024Chain-of-Table: Evolving Tables in the Reasoning Chain for Table Understandingcited by 188
  12. 2023ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language Modelscited by 184
  13. 2024Benchmarking Complex Instruction-Following with Multiple Constraints Compositioncited by 152
  14. 2023Structured Chain-of-Thought Prompting for Code Generationcited by 138
  15. 2023Chain of Code: Reasoning with a Language Model-Augmented Code Emulatorcited by 123
  16. 2023FollowBench: A Multi-level Fine-grained Constraints Following Benchmark for Large Language Modelscited by 117
  17. 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligencecited by 117
  18. 2022Prompting Is Programming: A Query Language for Large Language Modelscited by 110
  19. 2024Buffer of Thoughts: Thought-Augmented Reasoning with Large Language Modelscited by 91
  20. 2024AgentInstruct: Toward Generative Teaching with Agentic Flowscited by 89
  21. 2024FOFO: A Benchmark to Evaluate LLMs' Format-Following Capabilitycited by 80
  22. 2024Self-play with Execution Feedback: Improving Instruction-following Capabilities of Large Language Modelscited by 73
  23. 2024Smaller, Weaker, Yet Better: Training LLM Reasoners via Compute-Optimal Samplingcited by 61
  24. 2024Beyond Chain-of-Thought: A Survey of Chain-of-X Paradigms for LLMscited by 48
  25. 2025CRANE: Reasoning with constrained LLM generationcited by 38
  26. 2024Suri: Multi-constraint Instruction Following for Long-form Text Generationcited by 34
  27. 2023Instruction-following Evaluation through Verbalizer Manipulationcited by 30
  28. 2023MUFFIN: Curating Multi-Faceted Instructions for Improving Instruction-Followingcited by 30
  29. 2024Conifer: Improving Complex Constrained Instruction-Following Ability of Large Language Modelscited by 27
  30. 2024From Complex to Simple: Enhancing Multi-Constraint Complex Instruction Following Ability of Large Language Modelscited by 27
  31. 2024Code Prompting Elicits Conditional Reasoning Abilities in Text+Code LLMscited by 20
  32. 2023Prompting with Pseudo-Code Instructionscited by 14
  33. 2025LLMs can be easily Confused by Instructional Distractionscited by 13
  34. 2024Constraint Back-translation Improves Complex Instruction Following of Large Language Modelscited by 11
  35. 2024Chain-of-Instructions: Compositional Instruction Tuning on Large Language Modelscited by 9
  36. 2025Table as Thought: Exploring Structured Thoughts in LLM Reasoningcited by 7
  37. 2024Chain of Condition: Construct, Verify and Solve Conditions for Conditional Question Answeringcited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructions
  2. 2025Code-enabled language models can outperform reasoning models on diverse tasks
  3. 2026Do as I Say, Not as I Do: Instruction-Induction Conflict in LLMs
  4. 2023Becoming self-instruct: introducing early stopping criteria for minimal instruct tuning
  5. 2025On Code-Induced Reasoning in LLMs
  6. 2023FollowEval: A Multi-Dimensional Benchmark for Assessing the Instruction-Following Capability of Large Language Models
  7. 2024MAmmoTH2: Scaling Instructions from the Web
  8. 2025Scaling Reasoning, Losing Control: Evaluating Instruction Following in Large Reasoning Models