paper-with-me

홈 › Papers

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

2024-11-05 · Nizar Islah, Justine Gehring, Diganta Misra, Eilif Muller, Irina Rish, Terry Yue Zhuo, Massimo Caccia

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 \textbf{\GitChameleon{}}, 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, \textbf{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 \url{https://github.com/NizarIslah/GitChameleon}.

📄 PDF Abstract BibTeX arXiv:2411.05830

Code (1)

nizarislah/gitchameleon 공식 구현

Tasks

Code CompletionCode Generation

Methods 이 논문이 사용한 방법론

Library 설명 없음

Similar Papers 제목 키워드 기반

GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilities

2025-07-16 · Diganta Misra, Nizar Islah, Victor May, Brice Rauby 외 arxiv

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 evol…

Code GenerationCode Completion

Analysis of Voice Conversion and Code-Switching Synthesis Using VQ-VAE

2022-03-28 · Shuvayanti Das, Jennifer Williams, Catherine Lai

This paper presents an analysis of speech synthesis quality achieved by simultaneously performing voice conversion and language code-switching using multilingual VQ-VAE speech synthesis in German, French, English and Ita…

Speech SynthesisVoice Conversion

Plan for Speed -- Dilated Scheduling for Masked Diffusion Language Models

2025-06-23 · Omer Luxembourg, Haim Permuter, Eliya Nachmani

Masked diffusion language models (MDLM) have shown strong promise for non-autoregressive text generation, yet existing samplers act as implicit planners, selecting tokens to unmask via denoiser confidence or entropy scor…

Code CompletionGSM8KHumanEvalMath+3

Learning Representations for Masked Facial Recovery

2022-12-28 · Zaigham Randhawa, Shivang Patel, Donald Adjeroh, Gianfranco Doretto

The pandemic of these very recent years has led to a dramatic increase in people wearing protective masks in public venues. This poses obvious challenges to the pervasive use of face recognition technology that now is su…

Face RecognitionFace ReconstructionFace Verification

Code-Switching Text Generation and Injection in Mandarin-English ASR

2023-03-20 · Haibin Yu, Yuxuan Hu, Yao Qian, Ma Jin 외

Code-switching speech refers to a means of expression by mixing two or more languages within a single utterance. Automatic Speech Recognition (ASR) with End-to-End (E2E) modeling for such speech can be a challenging task…

Automatic Speech RecognitionAutomatic Speech Recognition (ASR)speech-recognitionSpeech Recognition+3