ArchCode: Incorporating Software Requirements in Code Generation with Large Language Models
Not on the map. Why?
Abstract (arXiv)
This paper aims to extend the code generation capability of large language models (LLMs) to automatically manage comprehensive software requirements from given textual descriptions. Such requirements include both functional (i.e. achieving expected behavior for inputs) and non-functional (e.g., time/space performance, robustness, maintainability) requirements. However, textual descriptions can either express requirements verbosely or may even omit some of them. We introduce ARCHCODE, a novel framework that leverages in-context learning to organize requirements observed in descriptions and to extrapolate unexpressed requirements from them. ARCHCODE generates requirements from given descriptions, conditioning them to produce code snippets and test cases. Each test case is tailored to one of the requirements, allowing for the ranking of code snippets based on the compliance of their execution results with the requirements. Public benchmarks show that ARCHCODE enhances to satisfy functional requirements, significantly improving Pass@k scores. Furthermore, we introduce HumanEval-NFR, the first evaluation of LLMs' non-functional requirements in code generation, demonstrating ARCHCODE's superiority over baseline methods. The implementation of ARCHCODE and the HumanEval-NFR benchmark are both publicly accessible.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 23 of its 55 references that are in the map. First posted on arXiv 2 Aug 2024.
Builds on
23 of 55 references.
References · 23
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2023Teaching Large Language Models to Self-Debugcited by 988
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
- 2022CodeT: Code Generation with Generated Testscited by 384
11 more
- 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 239
- 2023SantaCoder: don't reach for the stars!cited by 170
- 2021Composable Sparse Fine-Tuning for Cross-Lingual Transfercited by 144
- 2022MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generationcited by 136
- 2022Natural Language to Code Translation with Executioncited by 124
- 2022Coder Reviewer Reranking for Code Generationcited by 84
- 2023Evaluating Instruction-Tuned Large Language Models on Code Comprehension and Generationcited by 50
- 2023Enhancing Large Language Models in Coding Through Multi-Perspective Self-Consistencycited by 46
- 2023ALGO: Synthesizing Algorithmic Programs with LLM-Generated Oracle Verifierscited by 41
- 2022Learning to Execute Actions or Ask Clarification Questionscited by 30
- 2023Think Outside the Code: Brainstorming Boosts Large Language Models in Code Generationcited by 19
Built on by
Citing papers per year: 2024: 1; 2025: 4; 2026: 3.
8 papers.
- 2024Generative AI for Requirements Engineering: A Systematic Literature Reviewcited by 11
- 2026TraceCoder: A Trace-Driven Multi-Agent Framework for Automated Debugging of LLM-Generated Codecited by 6
- 2025GenTune: Toward Traceable Prompts to Improve Controllability of Image Refinement in Environment Designcited by 5
- 2025HarnessLLM: Automatic Testing Harness Generation via Reinforcement Learningcited by 2
- 2025Chain of Grounded Objectives: Bridging Process and Goal-oriented Prompting for Code Generationcited by 1
- 2025Knowledge Reasoning Language Model: Unifying Knowledge and Language for Inductive Knowledge Graph Reasoningcited by 1
- 2026CAKE: Cloud Architecture Knowledge Evaluation of Large Language Modelscited by 0
- 2026From Helpful to Trustworthy: LLM Agents for Pair Programmingcited by 0
- 2026From Helpful to Trustworthy: LLM Agents for Pair Programming11 Apr 2026
- 2026CAKE: Cloud Architecture Knowledge Evaluation of Large Language Models7 Apr 2026
- 2026TraceCoder: A Trace-Driven Multi-Agent Framework for Automated Debugging of LLM-Generated Code6 Feb 2026
- 2025HarnessLLM: Automatic Testing Harness Generation via Reinforcement Learning2 Nov 2025
- 2025Knowledge Reasoning Language Model: Unifying Knowledge and Language for Inductive Knowledge Graph Reasoning15 Oct 2025
- 2025GenTune: Toward Traceable Prompts to Improve Controllability of Image Refinement in Environment Design21 Aug 2025
- 2025Chain of Grounded Objectives: Bridging Process and Goal-oriented Prompting for Code Generation23 Jan 2025
- 2024Generative AI for Requirements Engineering: A Systematic Literature Review10 Sep 2024