mlsanityData to 7 Oct 2026

Renaissance of Literate Programming in the Era of LLMs: Enhancing LLM-Based Code Generation in Large-Scale Projects

arXiv 2502.17441 ↗First posted 25 Dec 2024cs.SE cs.LGcited by 3

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have helped programmers increase efficiency through code generation, comprehension, and repair. However, their application to large-scale projects remains challenging due to complex interdependencies and the extensive size of modern codebases. Although Knuth's concept of Literate Programming (LP) combines code and natural language to convey logic and intent, its potential for enhancing relationships in large projects has not been fully explored. In this study, we introduce the idea of Interoperable LP (ILP), which leverages literate programming principles to enhance the development of both small-scale documents and large-scale projects with LLMs. We investigate how LLMs perform under ILP-style instructions for both document-oriented tasks and entire projects. Recognizing that many researchers rely on well-structured templates to guide LLMs, we propose a concise prompt engineering method to write LP documents so LLMs can better be involved in code generation. We also examine the capacity of various LLMs to generate Scheme and Python code on the RepoBench benchmark, illustrating the advantages of our approach. Our findings indicate that ILP with LLMs can enhance LLM-based code generation in large-scale project development.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 28 of its 55 references that are in the map. First posted on arXiv 25 Dec 2024.

Builds on

28 of 55 references.

References · 28

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  4. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
  5. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
  6. 2024A Survey on Large Language Models for Code Generationcited by 646
  7. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
  8. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  9. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
  10. 2023Chain-of-Verification Reduces Hallucination in Large Language Modelscited by 317
  11. 2020Unsupervised Translation of Programming Languagescited by 262
  12. 2023Using an LLM to Help With Code Understandingcited by 222
16 more
  1. 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 191
  2. 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
  3. 2023Chain of Code: Reasoning with a Language Model-Augmented Code Emulatorcited by 120
  4. 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
  5. 2023InferFix: End-to-End Program Repair with LLMscited by 113
  6. 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completioncited by 110
  7. 2018Tree-to-tree Neural Networks for Program Translationcited by 93
  8. 2022Automated Repair of Programs from Large Language Modelscited by 71
  9. 2022Repair Is Nearly Generation: Multilingual Program Repair with LLMscited by 68
  10. 2024Repoformer: Selective Retrieval for Repository-Level Code Completioncited by 55
  11. 2023Prompt Engineering a Prompt Engineercited by 53
  12. 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 52
  13. 2022Code Translation with Compiler Representationscited by 42
  14. 2021Code Completion by Modeling Flattened Abstract Syntax Trees as Graphscited by 30
  15. 2019A Survey of Automatic Generation of Source Code Comments: Algorithms and Techniquescited by 15
  16. 2024The Fact Selection Problem in LLM-Based Program Repaircited by 12

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 1.

3 papers.