LeTI: Learning to Generate from Textual Interactions
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
24 more
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2020Learning to summarize from human feedbackcited by 2,562
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2023StarCoder: may the source be with you!cited by 790
- 2022PAL: Program-aided Language Modelscited by 635
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2021Recursively Summarizing Books with Human Feedbackcited by 287
- 2023Specializing Smaller Language Models towards Multi-Step Reasoningcited by 249
- 2023Pretraining Language Models with Human Preferencescited by 245
- 2022Is Reinforcement Learning (Not) for Natural Language Processing: Benchmarks, Baselines, and Building Blocks for Natural Language Policy Optimizationcited by 244
- 2022Quark: Controllable Text Generation with Reinforced Unlearningcited by 236
- 2022Language Models Can Teach Themselves to Program Bettercited by 75
- 2023Improving Code Generation by Training with Natural Language Feedbackcited by 75
- 2022Code4Struct: Code Generation for Few-Shot Event Structure Predictioncited by 70
- 2023The Wisdom of Hindsight Makes Language Models Better Instruction Followerscited by 59
- 2023Bridging the Gap: A Survey on Integrating (Human) Feedback for Natural Language Generationcited by 55
- 2016Dialogue Learning With Human-In-The-Loopcited by 46
- 2022Fault-Aware Neural Code Rankerscited by 33
Built on by
Citing papers per year: 2023: 12; 2024: 9; 2025: 3; 2026: 1.
25 papers.
Sort:
By area:
- 2024Executable Code Actions Elicit Better LLM Agentscited by 537
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023Iterative Preference Learning from Human Feedback: Bridging Theory and Practice for RLHF under KL-Constraintcited by 346
- 2023MINT: Evaluating LLMs in Multi-turn Interaction with Tools and Language Feedbackcited by 293
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 229
- 2024Tool Learning with Large Language Models: A Surveycited by 221
- 2023DRESS: Instructing Large Vision-Language Models to Align and Interact with Humans via Natural Language Feedbackcited by 99
- 2023Let's reward step by step: Step-Level reward model as the Navigators for Reasoningcited by 96
- 2023CREATOR: Tool Creation for Disentangling Abstract and Concrete Reasoning of Large Language Modelscited by 90
- 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
- 2024Aligning LLMs with Individual Preferences via Interactioncited by 63
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
13 more
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2023LaMPilot: An Open Benchmark Dataset for Autonomous Driving with Language Model Programscited by 45
- 2025AutoLogi: Automated Generation of Logic Puzzles for Evaluating Reasoning Abilities of Large Language Modelscited by 29
- 2024Tree-of-Code: A Tree-Structured Exploring Framework for End-to-End Code Generation and Execution in Complex Task Handlingcited by 11
- 2024PropaInsight: Toward Deeper Understanding of Propaganda in Terms of Techniques, Appeals, and Intentcited by 9
- 2024PLUM: Improving Code LMs with Execution-Guided On-Policy Preference Learning Driven By Synthetic Test Casescited by 8
- 2023Enabling Language Models to Implicitly Learn Self-Improvementcited by 7
- 2024Think Thrice Before You Act: Progressive Thought Refinement in Large Language Modelscited by 5
- 2023Parameter-Efficient Tuning Helps Language Model Alignmentcited by 4
- 2024Mastering the Craft of Data Synthesis for CodeLLMscited by 3
- 2025TEXT2DB: Integration-Aware Information Extraction with Large Language Model Agentscited by 3
- 2023Is Feedback All You Need? Leveraging Natural Language Feedback in Goal-Conditioned Reinforcement Learningcited by 2
- 2026TaPR: Test-Aware Policy Refinement for Feedback-Conditioned Code Generationcited by 1
- 2026TaPR: Test-Aware Policy Refinement for Feedback-Conditioned Code Generation1 Aug 2026
- 2025TEXT2DB: Integration-Aware Information Extraction with Large Language Model Agents28 Oct 2025
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb 2025
- 2025AutoLogi: Automated Generation of Logic Puzzles for Evaluating Reasoning Abilities of Large Language Models24 Feb 2025
- 2024Tree-of-Code: A Tree-Structured Exploring Framework for End-to-End Code Generation and Execution in Complex Task Handling19 Dec 2024
- 2024Think Thrice Before You Act: Progressive Thought Refinement in Large Language Models17 Oct 2024
- 2024Mastering the Craft of Data Synthesis for CodeLLMs16 Oct 2024
- 2024Aligning LLMs with Individual Preferences via Interaction4 Oct 2024
- 2024PropaInsight: Toward Deeper Understanding of Propaganda in Terms of Techniques, Appeals, and Intent19 Sep 2024
- 2024PLUM: Improving Code LMs with Execution-Guided On-Policy Preference Learning Driven By Synthetic Test Cases11 Jun 2024
- 2024Tool Learning with Large Language Models: A Survey28 May 2024
- 2024Executable Code Actions Elicit Better LLM Agents1 Feb 2024
13 more
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agents1 Jan 2024
- 2023Iterative Preference Learning from Human Feedback: Bridging Theory and Practice for RLHF under KL-Constraint18 Dec 2023
- 2023Is Feedback All You Need? Leveraging Natural Language Feedback in Goal-Conditioned Reinforcement Learning7 Dec 2023
- 2023LaMPilot: An Open Benchmark Dataset for Autonomous Driving with Language Model Programs7 Dec 2023
- 2023DRESS: Instructing Large Vision-Language Models to Align and Interact with Humans via Natural Language Feedback16 Nov 2023
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Code14 Nov 2023
- 2023Let's reward step by step: Step-Level reward model as the Navigators for Reasoning16 Oct 2023
- 2023Enabling Language Models to Implicitly Learn Self-Improvement2 Oct 2023
- 2023Parameter-Efficient Tuning Helps Language Model Alignment1 Oct 2023
- 2023MINT: Evaluating LLMs in Multi-turn Interaction with Tools and Language Feedback19 Sep 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedback26 Jun 2023
- 2023CREATOR: Tool Creation for Disentangling Abstract and Concrete Reasoning of Large Language Models23 May 2023
- 2023Let's reward step by step: Step-Level reward model as the Navigators for Reasoningcited by 96
- 2023CREATOR: Tool Creation for Disentangling Abstract and Concrete Reasoning of Large Language Modelscited by 90
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2025AutoLogi: Automated Generation of Logic Puzzles for Evaluating Reasoning Abilities of Large Language Modelscited by 29
- 2024Tree-of-Code: A Tree-Structured Exploring Framework for End-to-End Code Generation and Execution in Complex Task Handlingcited by 11
- 2024Think Thrice Before You Act: Progressive Thought Refinement in Large Language Modelscited by 5
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb 2025
- 2025AutoLogi: Automated Generation of Logic Puzzles for Evaluating Reasoning Abilities of Large Language Models24 Feb 2025
- 2024Tree-of-Code: A Tree-Structured Exploring Framework for End-to-End Code Generation and Execution in Complex Task Handling19 Dec 2024
- 2024Think Thrice Before You Act: Progressive Thought Refinement in Large Language Models17 Oct 2024
- 2023Let's reward step by step: Step-Level reward model as the Navigators for Reasoning16 Oct 2023
- 2023CREATOR: Tool Creation for Disentangling Abstract and Concrete Reasoning of Large Language Models23 May 2023
- 2024Executable Code Actions Elicit Better LLM Agentscited by 537
- 2023MINT: Evaluating LLMs in Multi-turn Interaction with Tools and Language Feedbackcited by 293
- 2024Tool Learning with Large Language Models: A Surveycited by 221
- 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
- 2025TEXT2DB: Integration-Aware Information Extraction with Large Language Model Agentscited by 3
- 2025TEXT2DB: Integration-Aware Information Extraction with Large Language Model Agents28 Oct 2025
- 2024Tool Learning with Large Language Models: A Survey28 May 2024
- 2024Executable Code Actions Elicit Better LLM Agents1 Feb 2024
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agents1 Jan 2024
- 2023MINT: Evaluating LLMs in Multi-turn Interaction with Tools and Language Feedback19 Sep 2023
- 2023Iterative Preference Learning from Human Feedback: Bridging Theory and Practice for RLHF under KL-Constraintcited by 346
- 2024Aligning LLMs with Individual Preferences via Interactioncited by 63
- 2024PLUM: Improving Code LMs with Execution-Guided On-Policy Preference Learning Driven By Synthetic Test Casescited by 8
- 2023Enabling Language Models to Implicitly Learn Self-Improvementcited by 7
- 2023Parameter-Efficient Tuning Helps Language Model Alignmentcited by 4
- 2024Aligning LLMs with Individual Preferences via Interaction4 Oct 2024
- 2024PLUM: Improving Code LMs with Execution-Guided On-Policy Preference Learning Driven By Synthetic Test Cases11 Jun 2024
- 2023Iterative Preference Learning from Human Feedback: Bridging Theory and Practice for RLHF under KL-Constraint18 Dec 2023
- 2023Enabling Language Models to Implicitly Learn Self-Improvement2 Oct 2023
- 2023Parameter-Efficient Tuning Helps Language Model Alignment1 Oct 2023
- 2024Mastering the Craft of Data Synthesis for CodeLLMscited by 3
- 2024Mastering the Craft of Data Synthesis for CodeLLMs16 Oct 2024
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 229
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024PropaInsight: Toward Deeper Understanding of Propaganda in Terms of Techniques, Appeals, and Intentcited by 9
- 2023Is Feedback All You Need? Leveraging Natural Language Feedback in Goal-Conditioned Reinforcement Learningcited by 2
- 2026TaPR: Test-Aware Policy Refinement for Feedback-Conditioned Code Generationcited by 1
- 2026TaPR: Test-Aware Policy Refinement for Feedback-Conditioned Code Generation1 Aug 2026
- 2024PropaInsight: Toward Deeper Understanding of Propaganda in Terms of Techniques, Appeals, and Intent19 Sep 2024
- 2023Is Feedback All You Need? Leveraging Natural Language Feedback in Goal-Conditioned Reinforcement Learning7 Dec 2023
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Code14 Nov 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedback26 Jun 2023
Similar, not cited
Close in wording, no citation either way
- 2023L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Models
- 2025Pragmatic Reasoning improves LLM Code Generation
- 2023CAT-LM: Training Language Models on Aligned Code And Tests
- 2024Comments as Natural Logic Pivots: Improve Code Generation via Comment Perspective
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Models
- 2024Applying RLAIF for Code Generation with API-usage in Lightweight LLMs
- 2025ToolCoder: A Systematic Code-Empowered Tool Learning Framework for Large Language Models
- 2024CodecLM: Aligning Language Models with Tailored Synthetic Data