mlsanityData to 7 Oct 2026

LibEvoBench: Probing Temporal Knowledge Stratification in Code Generation Models

arXiv 2606.25402 ↗First posted 24 Jun 2026cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 16 of its 22 references that are in the map. First posted on arXiv 24 Jun 2026.

Builds on

16 of 22 references.

References · 16

  1. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
  2. 2021Time-Aware Language Models as Temporal Knowledge Basescited by 290
  3. 2024Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Codecited by 106
  4. 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 92
  5. 2024We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMscited by 61
  6. 2024Long Code Arena: a Set of Benchmarks for Long-Context Code Modelscited by 48
  7. 2024CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verificationcited by 32
  8. 2024LLMs Meet Library Evolution: Evaluating Deprecated API Usage in LLM-based Code Completioncited by 29
  9. 2024Set the Clock: Temporal Alignment of Pretrained Language Modelscited by 24
  10. 2017Do Developers Update Their Library Dependencies? An Empirical Study on the Impact of Security Advisories on Library Migrationcited by 23
  11. 2024On Mitigating Code LLM Hallucinations with API Documentationcited by 21
  12. 2024CodeUpdateArena: Benchmarking Knowledge Editing on API Updatescited by 18
4 more
  1. 2024VersiCode: Towards Version-controllable Code Generationcited by 14
  2. 2025TIME: A Multi-level Benchmark for Temporal Reasoning of LLMs in Real-World Scenarioscited by 14
  3. 2024LibEvolutionEval: A Benchmark and Study for Version-Specific Code Generationcited by 11
  4. 2025Towards Mitigating API Hallucination in Code Generated by LLMs with Hierarchical Dependency Awarecited by 6

Built on by

Not cited yet.