mlsanityData to 14 Oct 2026

Environment-Aware Code Generation: How far are We?

arXiv 2601.12262 ↗First posted 18 Jan 2026cs.SE cs.CLcited by 4

Not on the map. Why?

Abstract (arXiv)

Recent progress in large language models (LLMs) has improved code generation, but most evaluations still test isolated, small-scale code (e.g., a single function) under default or unspecified software environments. As a result, it is unclear whether LLMs can reliably generate executable code tailored to a user's specific environment. We present the first systematic study of Environment-Aware Code Generation (EACG), where generated code must be functionally correct and directly executable under arbitrary software configurations. To enable realistic evaluation, we introduce VersiBCB, a benchmark that is multi-package, execution-verified, and deprecation-aware, capturing complex and evolving environments that prior datasets often overlook. Using VersiBCB, we investigate three complementary adaptation axes: data, parameters, and cache, and develop representative strategies for each. Our results show that current LLMs struggle with environment-specific code generation, while our adaptations improve environment compatibility and executability. These findings highlight key challenges and opportunities for deploying LLMs in practical software engineering workflows.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 25 of its 43 references that are in the map. First posted on arXiv 18 Jan 2026.

Builds on

25 of 43 references.

References · 25

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  3. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  5. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
  6. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  7. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  8. 2021Measuring Coding Challenge Competence With APPScited by 902
  9. 2024A Survey on Large Language Models for Code Generationcited by 658
  10. 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 656
  11. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
  12. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
13 more
  1. 2024SWE-bench Multimodal: Do AI Systems Generalize to Visual Software Domains?cited by 203
  2. 2022Multi-lingual Evaluation of Code Generation Modelscited by 159
  3. 2024CodeGemma: Open Code Models Based on Gemmacited by 150
  4. 2024A Survey on Evaluating Large Language Models in Code Generation Taskscited by 44
  5. 2024LLMs Meet Library Evolution: Evaluating Deprecated API Usage in LLM-based Code Completioncited by 32
  6. 2024Large Language Models as Test Case Generators: Performance Evaluation and Enhancementcited by 28
  7. 2024VersiCode: Towards Version-controllable Code Generationcited by 17
  8. 2020An Empirical Study of Usages, Updates and Risks of Third-Party Libraries in Java Projectscited by 12
  9. 2024LibEvolutionEval: A Benchmark and Study for Version-Specific Code Generationcited by 12
  10. 2025ReCode: Updating Code API Knowledge with Reinforcement Learningcited by 12
  11. 2025QuCo-RAG: Quantifying Uncertainty from the Pre-training Corpus for Dynamic Retrieval-Augmented Generationcited by 12
  12. 2024GitChameleon: Unmasking the Version-Switching Capabilities of Code Generation Modelscited by 6
  13. 2025OneEval: Benchmarking LLM Knowledge-intensive Reasoning over Diverse Knowledge Basescited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 4.

4 papers.