# LibEvoBench: Probing Temporal Knowledge Stratification in Code Generation Models

DevFeed: [LibEvoBench: Probing Temporal Knowledge Stratification in Code Generation Models](<https://devfeed.tech/articles/libevobench-probing-temporal-knowledge-stratification-in-code-generation-models-127193.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2606.25402>)

Author: Daniele Cipollone, Sergey Titov, Maliheh Izadi, Egor Bogomolov, Arie van Deursen

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Library](<https://devfeed.tech/topics/library.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [versioning](<https://devfeed.tech/topics/versioning.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [code-generation](<https://devfeed.tech/tags/code-generation.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [evolution](<https://devfeed.tech/tags/evolution.md>), [knowledge](<https://devfeed.tech/tags/knowledge.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [llms](<https://devfeed.tech/tags/llms.md>), [python](<https://devfeed.tech/tags/python.md>), [version](<https://devfeed.tech/tags/version.md>)

## AI overview

LibEvoBench evaluates whether code generation models can handle APIs across versions of widely used Python libraries. It introduces the Software Evolution Understanding Score (SEUS) to measure consistency across evolving APIs. The reported results show that state-of-the-art models are largely version-oblivious: performance declines on evolving APIs but remains stable across versions for stable APIs. Naming the target version alone provides no benefit, while relevant documentation significantly improves accuracy.

## Source excerpt

arXiv:2606.25402v2 Announce Type: replace Abstract: Large software projects often depend on older versions of libraries, even as APIs continue to evolve across releases. This creates a challenge for LLMs: they must maintain knowledge of multiple API versions, not merely the latest or most common one. However, current LLMs are trained on temporally mixed corpora and lack explicit mechanisms for such version-specific reasoning, leading to anachronistic errors - calling APIs as they exist in a different library version. To systematically evaluate this phenomenon, we introduce LibEvoBench, a multi-task benchmark spanning multiple versions of widely used Python libraries, along with a new metric, the Software Evolution Understanding Score (SEUS), to measure models' consistency when working with evolving APIs. Our results show that state-of-the-art models are largely version-oblivious: performance degrades for evolving APIs, while for stable APIs it remains the same across versions. Moreover, simply specifying the target version provides no benefit, while relevant documentation significantly boosts models' accuracy. These findings highlight a systematic limitation of current training paradigms and motivate new approaches for temporally grounded knowledge in code generation.