mlsanityData to 7 Oct 2026

LeTI: Learning to Generate from Textual Interactions

arXiv 2305.10314 ↗First posted 17 May 2023cs.CL cs.AI cs.SEcited by 25

Not on the map. Why?

Abstract (arXiv)

Fine-tuning pre-trained language models (LMs) is essential for enhancing their capabilities. Existing techniques commonly fine-tune on input-output pairs (e.g., instruction tuning) or with numerical rewards that gauge the output quality (e.g., RLHF). We explore LMs' potential to learn from textual interactions (LETI) that not only check their correctness with binary labels but also pinpoint and explain errors in their outputs through textual feedback. Our focus is the code generation task, where the model produces code based on natural language instructions. This setting invites a natural and scalable way to acquire textual feedback: the error messages and stack traces from code execution using a Python interpreter. LETI iteratively fine-tunes the model, using the LM objective, on a concatenation of natural language instructions, LM-generated programs, and textual feedback. Prepended to this fine-tuning text, a binary reward token is used to differentiate correct and buggy solutions. LETI requires no ground-truth outputs for training and even outperforms a fine-tuned baseline that does. LETI not only improves the performance of LMs on a code generation dataset MBPP, but also generalizes to other datasets. Trained on MBPP, it achieves comparable or better performance than the base LMs on unseen problems in HumanEval. Furthermore, compared to binary feedback, we observe that textual feedback leads to improved generation quality and sample efficiency, achieving the same performance with fewer than half of the gradient steps. LETI is equally applicable in natural language tasks when they can be formulated as code generation, which we empirically verified on event argument extraction.

Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). Builds on 36 of its 55 references that are in the map. First posted on arXiv 17 May 2023.

Builds on

36 of 55 references.

References · 36

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2023GPT-4 Technical Reportcited by 18,132
  5. 2022Training language models to follow instructions with human feedbackcited by 15,712
  6. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  7. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  8. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  9. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  10. 2020Scaling Laws for Neural Language Modelscited by 6,411
  11. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  12. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
24 more
  1. 2021Program Synthesis with Large Language Modelscited by 3,509
  2. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  3. 2020Learning to summarize from human feedbackcited by 2,562
  4. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
  5. 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
  6. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  7. 2023Teaching Large Language Models to Self-Debugcited by 963
  8. 2023StarCoder: may the source be with you!cited by 790
  9. 2022PAL: Program-aided Language Modelscited by 635
  10. 2022CodeT: Code Generation with Generated Testscited by 369
  11. 2022The Stack: 3 TB of permissively licensed source codecited by 354
  12. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
  13. 2021Recursively Summarizing Books with Human Feedbackcited by 287
  14. 2023Specializing Smaller Language Models towards Multi-Step Reasoningcited by 249
  15. 2023Pretraining Language Models with Human Preferencescited by 245
  16. 2022Is Reinforcement Learning (Not) for Natural Language Processing: Benchmarks, Baselines, and Building Blocks for Natural Language Policy Optimizationcited by 244
  17. 2022Quark: Controllable Text Generation with Reinforced Unlearningcited by 236
  18. 2022Language Models Can Teach Themselves to Program Bettercited by 75
  19. 2023Improving Code Generation by Training with Natural Language Feedbackcited by 75
  20. 2022Code4Struct: Code Generation for Few-Shot Event Structure Predictioncited by 70
  21. 2023The Wisdom of Hindsight Makes Language Models Better Instruction Followerscited by 59
  22. 2023Bridging the Gap: A Survey on Integrating (Human) Feedback for Natural Language Generationcited by 55
  23. 2016Dialogue Learning With Human-In-The-Loopcited by 46
  24. 2022Fault-Aware Neural Code Rankerscited by 33

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 12; 2024: 9; 2025: 3; 2026: 1.

25 papers.

Sort:

By area:

  1. 2024Executable Code Actions Elicit Better LLM Agentscited by 537
  2. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  3. 2023Iterative Preference Learning from Human Feedback: Bridging Theory and Practice for RLHF under KL-Constraintcited by 346
  4. 2023MINT: Evaluating LLMs in Multi-turn Interaction with Tools and Language Feedbackcited by 293
  5. 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 229
  6. 2024Tool Learning with Large Language Models: A Surveycited by 221
  7. 2023DRESS: Instructing Large Vision-Language Models to Align and Interact with Humans via Natural Language Feedbackcited by 99
  8. 2023Let's reward step by step: Step-Level reward model as the Navigators for Reasoningcited by 96
  9. 2023CREATOR: Tool Creation for Disentangling Abstract and Concrete Reasoning of Large Language Modelscited by 90
  10. 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 77
  11. 2024Aligning LLMs with Individual Preferences via Interactioncited by 63
  12. 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
13 more
  1. 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
  2. 2023LaMPilot: An Open Benchmark Dataset for Autonomous Driving with Language Model Programscited by 45
  3. 2025AutoLogi: Automated Generation of Logic Puzzles for Evaluating Reasoning Abilities of Large Language Modelscited by 29
  4. 2024Tree-of-Code: A Tree-Structured Exploring Framework for End-to-End Code Generation and Execution in Complex Task Handlingcited by 11
  5. 2024PropaInsight: Toward Deeper Understanding of Propaganda in Terms of Techniques, Appeals, and Intentcited by 9
  6. 2024PLUM: Improving Code LMs with Execution-Guided On-Policy Preference Learning Driven By Synthetic Test Casescited by 8
  7. 2023Enabling Language Models to Implicitly Learn Self-Improvementcited by 7
  8. 2024Think Thrice Before You Act: Progressive Thought Refinement in Large Language Modelscited by 5
  9. 2023Parameter-Efficient Tuning Helps Language Model Alignmentcited by 4
  10. 2024Mastering the Craft of Data Synthesis for CodeLLMscited by 3
  11. 2025TEXT2DB: Integration-Aware Information Extraction with Large Language Model Agentscited by 3
  12. 2023Is Feedback All You Need? Leveraging Natural Language Feedback in Goal-Conditioned Reinforcement Learningcited by 2
  13. 2026TaPR: Test-Aware Policy Refinement for Feedback-Conditioned Code Generationcited by 1

Similar, not cited

Close in wording, no citation either way

  1. 2023L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Models
  2. 2025Pragmatic Reasoning improves LLM Code Generation
  3. 2023CAT-LM: Training Language Models on Aligned Code And Tests
  4. 2024Comments as Natural Logic Pivots: Improve Code Generation via Comment Perspective
  5. 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Models
  6. 2024Applying RLAIF for Code Generation with API-usage in Lightweight LLMs
  7. 2025ToolCoder: A Systematic Code-Empowered Tool Learning Framework for Large Language Models
  8. 2024CodecLM: Aligning Language Models with Tailored Synthetic Data