LibEvoBench: Probing Temporal Knowledge Stratification in Code Generation Models
Daniele Cipollone, Sergey Titov, Maliheh Izadi, Egor Bogomolov, Arie v Deursen
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Agents, Evals & Benchmarks › LLM Evaluation Benchmarks · Type: benchmark or dataset · Keywords: code generation, API versioning, benchmark, software evolution, large language models
Areas: Code & Coding Agents › Code Verification › Software engineering benchmarks; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Coding Agent Benchmarks; Benchmarks for LLMs & Agents › Cross-Domain Agent Evaluation › Software Engineering Benchmarks
Summary
LibEvoBench is a multi-task benchmark with a new metric SEUS that evaluates code generation models' ability to handle multiple library API versions over time.
Explained to a 5-year-old
Some computer programs help write other programs, like a robot that writes code. These robots sometimes forget that the instructions they learned long ago have changed, so they might use old names that no longer work. To check how well they remember old and new names, researchers made a big test called LibEvoBench that asks the robots to solve many coding problems with different versions of library tools. The test shows that most robots get confused when the tools change and only do better when they also see the right instructions or documentation. This helps scientists build smarter robots that can keep up with changes in software, making programming safer and easier.
Explained to a 5-year-old, longer
Imagine a robot that helps people write computer code, like a helpful assistant. This robot learns a lot of instructions from many different programs, but sometimes those instructions change over time, just like how a game's rules can be updated. When the robot sees a new piece of code that uses an old instruction, it might accidentally use the wrong name, causing the program to break. To see how well the robot remembers both old and new names, researchers created a big test called LibEvoBench that includes many coding tasks using different versions of popular Python libraries. The test also introduces a new score called the Software Evolution Understanding Score (SEUS) to measure how consistently the robot works across these version changes. The results show that most robots struggle when the library tools evolve, performing poorly on newer versions while staying the same on stable ones. Simply telling the robot which version to use doesn't help much, but giving it the right documentation or extra hints makes it much more accurate. These findings highlight that current training methods don't teach robots to keep track of software evolution, which is crucial for real-world software development where old code often needs to run alongside new library releases. By understanding these gaps, researchers can work on new training ideas that give robots better memory of version changes, making them more reliable for developers.
For a technical reader
The paper introduces LibEvoBench, a benchmark suite covering multiple versions of popular Python libraries, and a new metric SEUS to evaluate model consistency across API evolution. Empirical results show that state-of-the-art code generation models degrade on evolving APIs while remaining stable on unchanged ones, and that providing only the target version does not improve performance. However, access to relevant documentation significantly boosts model accuracy. These findings reveal a systematic limitation in current training paradigms and motivate future work on temporally grounded knowledge for code generation.
Problem
Large language models often lack the ability to retain knowledge of multiple versions of software APIs, leading to errors when using outdated or newer APIs. This challenge is that models need to maintain version-specific knowledge across time.
Method
A benchmark suite is constructed that includes tasks across several library versions, and a new evaluation metric is proposed to measure consistency of model outputs when APIs evolve.
Results
Models degrade on evolving APIs but stay consistent on stable APIs, and specifying the target version alone does not improve performance. However, using relevant documentation significantly boosts model accuracy.
Contributions
It provides a benchmark suite for multiple library versions and a novel evaluation metric (SEUS) to assess consistency across API changes, and it reveals that existing models are version-oblivious and benefit from documentation.
Practical relevance
The work underscores the need for models that retain version-specific knowledge, improving reliability in real-world software maintenance and legacy code handling.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction