GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilities
Max-Planck-Institute for Intelligent Systems, Max-Planck Institute and ELLIS Institute Tübingen · Montreal Institute for Learning Algorithms, University of Montreal, Université de Montréal · Google · École Polytechnique de Montréal, Université de Montréal and Mila - Quebec Artificial Intelligence Institute · Gologic · ELLIS Institute Tübingen, Max Planck Institute for Intelligent Systems, Tübingen AI Center, Tübingen, Germany · Montreal Institute for Learning Algorithms, University of Montreal, University of Montreal and Concordia University, Montreal · University of Montreal · University of Calgary · ServiceNow Inc
PDF 由论文原始站点提供,PaperCompass 不保存论文文件。DOI 10.18653/v1/2026.acl-long.2170 ↗
摘要
The rapid evolution of software libraries poses a considerable hurdle for code generation, necessitating continuous adaptation to frequent version updates while preserving backward compatibility. While existing code evolution benchmarks provide valuable insights, they typically lack execution-based evaluation for generating code compliant with specific library versions. To address this, we introduce GitChameleon 2.0, a novel, meticulously curated dataset comprising 328 Python code completion problems, each conditioned on specific library versions and accompanied by executable unit tests. GitChameleon 2.0 rigorously evaluates the capacity of contemporary large language models (LLMs), LLM-powered agents, code assistants, and RAG systems to perform version-conditioned code generation that demonstrates functional accuracy through execution. Our extensive evaluations indicate that state-of-the-art systems encounter significant challenges with this task; enterprise models achieving baseline success rates in the 48-51% range, underscoring the intricacy of the problem. By offering an execution-based benchmark emphasizing the dynamic nature of code libraries, GitChameleon 2.0 enables a clearer understanding of this challenge and helps guide the development of more adaptable and dependable AI code generation methods.