mlsanityData to 7 Oct 2026

LangProp: A code optimization framework using Large Language Models applied to driving

arXiv 2401.10314 ↗First posted 18 Jan 2024cs.SE cs.AI cs.LGcited by 17

On the map: End-to-end autonomous driving → Large language models for driving

Abstract (arXiv)

We propose LangProp, a framework for iteratively optimizing code generated by large language models (LLMs), in both supervised and reinforcement learning settings. While LLMs can generate sensible coding solutions zero-shot, they are often sub-optimal. Especially for code generation tasks, it is likely that the initial code will fail on certain edge cases. LangProp automatically evaluates the code performance on a dataset of input-output pairs, catches any exceptions, and feeds the results back to the LLM in the training loop, so that the LLM can iteratively improve the code it generates. By adopting a metric- and data-driven training paradigm for this code optimization procedure, one could easily adapt findings from traditional machine learning techniques such as imitation learning, DAgger, and reinforcement learning. We show LangProp's applicability to general domains such as Sudoku and CartPole, as well as demonstrate the first proof of concept of automated code optimization for autonomous driving in CARLA. We show that LangProp can generate interpretable and transparent policies that can be verified and improved in a metric- and data-driven way. Our code is available at https://github.com/shuishida/LangProp.

Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Placed in Large language models for driving, one of 9 directions in End-to-end autonomous driving. Builds on 42 of its 59 references that are in the map. First posted on arXiv 18 Jan 2024.

Builds on

42 of 59 references.

References · 42

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  4. 2022Training language models to follow instructions with human feedbackcited by 15,712
  5. 2017Proximal Policy Optimization Algorithmscited by 14,441
  6. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  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. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  10. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  11. 2017CARLA: An Open Urban Driving Simulatorcited by 2,431
  12. 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,302
30 more
  1. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  2. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  3. 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,172
  4. 2022Inner Monologue: Embodied Reasoning through Planning with Language Modelscited by 1,057
  5. 2016End to End Learning for Self-Driving Carscited by 1,000
  6. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  7. 2022ProgPrompt: Generating Situated Robot Task Plans using Large Language Modelscited by 598
  8. 2023ViperGPT: Visual Inference via Python Execution for Reasoningcited by 591
  9. 2022Visual Programming: Compositional visual reasoning without trainingcited by 507
  10. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  11. 2022TransFuser: Imitation with Transformer-Based Sensor Fusion for Autonomous Drivingcited by 477
  12. 2022VIMA: General Robot Manipulation with Multimodal Promptscited by 403
  13. 2018ChauffeurNet: Learning to Drive by Imitating the Best and Synthesizing the Worstcited by 391
  14. 2019A Survey of Autonomous Driving: Common Practices and Emerging Technologiescited by 373
  15. 2022A Systematic Evaluation of Large Language Models of Codecited by 360
  16. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
  17. 2019Causal Confusion in Imitation Learningcited by 286
  18. 2018Learning to Drive in a Daycited by 266
  19. 2022Trajectory-guided Control Prediction for End-to-end Autonomous Driving: A Simple yet Strong Baselinecited by 247
  20. 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 228
  21. 2017Deep Reinforcement Learning framework for Autonomous Drivingcited by 224
  22. 2022Safety-Enhanced Autonomous Driving Using Interpretable Sensor Fusion Transformercited by 211
  23. 2023Planning with Large Language Models for Code Generationcited by 179
  24. 2022Model-Based Imitation Learning for Urban Drivingcited by 149
  25. 2019Self-Driving Cars: A Surveycited by 147
  26. 2022Imitation Is Not Enough: Robustifying Imitation with Reinforcement Learning for Challenging Driving Scenarioscited by 124
  27. 2023Hidden Biases of End-to-End Driving Modelscited by 95
  28. 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
  29. 2022Less Training, More Repairing Please: Revisiting Automated Program Repair via Zero-shot Learningcited by 76
  30. 2023Errors are Useful Prompts: Instruction Guided Task Programming with Verifier-Assisted Iterative Promptingcited by 45

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 6; 2025: 8; 2026: 3.

17 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedback
  2. 2026Domain-Adaptable Reinforcement Learning for Code Generation with Dense Rewards
  3. 2023Drive Like a Human: Rethinking Autonomous Driving with Large Language Models
  4. 2025Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimization
  5. 2023LaMPilot: An Open Benchmark Dataset for Autonomous Driving with Language Model Programs
  6. 2023DriveMLM: Aligning Multi-Modal Large Language Models with Behavioral Planning States for Autonomous Driving
  7. 2024Large Language Models for Human-like Autonomous Driving: A Survey
  8. 2023LanguageMPC: Large Language Models as Decision Makers for Autonomous Driving