mlsanityData to 7 Oct 2026

GitChameleon: Unmasking the Version-Switching Capabilities of Code Generation Models

arXiv 2411.05830 ↗First posted 5 Nov 2024cs.SE cs.LGcited by 6

Not on the map. Why?

Abstract (arXiv)

The rapid evolution of software libraries presents a significant challenge for code generation models, which must adapt to frequent version updates while maintaining compatibility with previous versions. Existing code completion benchmarks often overlook this dynamic aspect, and the one that does consider it relies on static code prediction tasks without execution-based evaluation, offering a limited perspective on a model's practical usability. To address this gap, we introduce textbfGitChameleon, a novel, manually curated dataset comprising 116 Python code completion problems, each conditioned on specific library versions and accompanied by executable unit tests. GitChameleon is designed to rigorously assess the ability of modern large language models (LLMs) to generate version-specific code that is not only syntactically correct but also functionally accurate upon execution. Our comprehensive evaluations reveal that state-of-the-art LLMs struggle with this task; for instance, GPT-4o achieves a pass@10 of only 39.9% (43.7% when provided with error feedback), highlighting the complexity of the problem and the limitations of current models. By providing an execution-based benchmark that emphasizes the dynamic nature of code libraries, GitChameleon serves as a critical tool to advance the development of more adaptable and reliable code generation models. For facilitation for further exploration of version-conditioned code generation, we make our code repository publicly accessible at urlhttps://github.com/NizarIslah/GitChameleon.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 31 of its 43 references that are in the map. First posted on arXiv 5 Nov 2024.

Builds on

31 of 43 references.

References · 31

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  3. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  4. 2021Program Synthesis with Large Language Modelscited by 3,509
  5. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  6. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  7. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  8. 2021Measuring Coding Challenge Competence With APPScited by 879
  9. 2024ORPO: Monolithic Preference Optimization without Reference Modelcited by 556
  10. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
  11. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
  12. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
19 more
  1. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
  2. 2019Gradio: Hassle-Free Sharing and Testing of ML Models in the Wildcited by 176
  3. 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
  4. 2024CodeGemma: Open Code Models Based on Gemmacited by 145
  5. 2024Continual Learning for Large Language Models: A Surveycited by 144
  6. 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 139
  7. 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
  8. 2022CERT: Continual Pre-Training on Sketches for Library-Oriented Code Generationcited by 87
  9. 2019JuICe: A Large Scale Distantly Supervised Dataset for Open Domain Context-based Code Generationcited by 49
  10. 2020Online Fast Adaptation and Knowledge Accumulation: a New Approach to Continual Learningcited by 38
  11. 2022Training and Evaluating a Jupyter Notebook Data Science Assistantcited by 31
  12. 2024LLMs Meet Library Evolution: Evaluating Deprecated API Usage in LLM-based Code Completioncited by 29
  13. 2023Exploring Continual Learning for Code Generation Modelscited by 22
  14. 2022NEVIS'22: A Stream of 100 Tasks Sampled from 30 Years of Computer Vision Researchcited by 18
  15. 2024VersiCode: Towards Version-controllable Code Generationcited by 14
  16. 2022A Survey on Pretrained Language Models for Neural Code Intelligencecited by 13
  17. 2023Keeping Pace with Ever-Increasing Data: Towards Continual Learning of Code Intelligence Modelscited by 8
  18. 2023Enriching Source Code with Contextual Data for Code Completion Models: An Empirical Studycited by 7
  19. 2023On the Usage of Continual Learning for Out-of-Distribution Generalization in Pre-trained Language Models of Codecited by 7

Built on by

Cited by year (2026 to 7 Oct)

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

6 papers.