mlsanityData to 7 Oct 2026

LLMs Meet Library Evolution: Evaluating Deprecated API Usage in LLM-based Code Completion

arXiv 2406.09834 ↗First posted 14 Jun 2024cs.SEcited by 29

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs), pre-trained or fine-tuned on large code corpora, have shown effectiveness in generating code completions. However, in LLM-based code completion, LLMs may struggle to use correct and up-to-date Application Programming Interfaces (APIs) due to the rapid and continuous evolution of libraries. While existing studies have highlighted issues with predicting incorrect APIs, the specific problem of deprecated API usage in LLM-based code completion has not been thoroughly investigated. To address this gap, we conducted the first evaluation study on deprecated API usage in LLM-based code completion. This study involved seven advanced LLMs, 145 API mappings from eight popular Python libraries, and 28,125 completion prompts. The study results reveal the status quo (i.e., API usage plausibility and deprecated usage rate) of deprecated API and replacing API usage in LLM-based code completion from the perspectives of model, prompt, and library, and indicate the root causes behind. Based on these findings, we propose two lightweight fixing approaches, REPLACEAPI and INSERTPROMPT, which can serve as baseline approaches for future research on mitigating deprecated API usage in LLM-based completion. Additionally, we provide implications for future research on integrating library evolution with LLM-driven software development.

Key facts. Cited by 29 papers in the map (data through 7 Oct 2026). First posted on arXiv 14 Jun 2024.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 10; 2026: 18.

29 papers.

Sort:

By area:

  1. 2025Speed at the Cost of Quality: How Cursor AI Increases Short-Term Velocity and Long-Term Complexity in Open-Source Projectscited by 23
  2. 2025ReCode: Updating Code API Knowledge with Reinforcement Learningcited by 11
  3. 2025RustEvo^2: An Evolving Benchmark for API Evolution in LLM-based Rust Code Generationcited by 9
  4. 2024GitChameleon: Unmasking the Version-Switching Capabilities of Code Generation Modelscited by 6
  5. 2025CoQuIR: A Comprehensive Benchmark for Code Quality-Aware Information Retrievalcited by 6
  6. 2025Rethinking Autonomy: Preventing Failures in AI-Driven Software Engineeringcited by 4
  7. 2026Environment-Aware Code Generation: How far are We?cited by 4
  8. 2025GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilitiescited by 2
  9. 2025An Empirical Study of OpenAI API Discussions on Stack Overflowcited by 1
  10. 2025Library Hallucinations in LLM-Generated Code: A Risk Analysis Grounded in Developer Queriescited by 1
  11. 2025Understanding Robustness of Model Editing in Code LLMscited by 1
  12. 2025A Study of Library Usage in Agent-Authored Pull Requestscited by 1
17 more
  1. 2026TimeMachine-bench: A Benchmark for Evaluating Model Capabilities in Repository-Level Migration Taskscited by 1
  2. 2026KCoEvo: A Knowledge Graph Augmented Framework for Evolutionary Code Generationcited by 1
  3. 2026The Shrinking Lifespan of LLMs in Sciencecited by 1
  4. 2026Bridging Generation and Training: A Systematic Review of Quality Issues in LLMs for Codecited by 1
  5. 2026Correct Code, Vulnerable Dependencies: A Large Scale Measurement Study of LLM-Specified Library Versionscited by 1
  6. 2026Characterizing Readability Issue Patterns and the Role of Prompt Design in LLM-Generated Codecited by 1
  7. 2026Automated Modernization of Machine Learning Engineering Notebooks for Reproducibilitycited by 0
  8. 2026Toward Executable Repository-Level Code Generation via Environment Alignmentcited by 0
  9. 2026Stdlib or Third-Party? Empirical Performance and Correctness of LLM-Assisted Zero-Dependency Python Librariescited by 0
  10. 2026The Invisible Lottery: How Subtle Cues Steer Algorithm Choice in LLM Code Generationcited by 0
  11. 2026Beyond Pass Rate: A Multilingual, Execution-Grounded Evaluation of Open Code LLMscited by 0
  12. 2026LibEvoBench: Probing Temporal Knowledge Stratification in Code Generation Modelscited by 0
  13. 2026The Hitchhiker's Guide to Monoculture: AI Homogenizes Syntax, Not (Necessarily) Semanticscited by 0
  14. 2026Set-shifting Behavioral Test for Harnessed Agentscited by 0
  15. 2026SWE-NFI: Studying and Benchmarking Coding Agents for Non-Functional Improvementscited by 0
  16. 2026Characterizing the Quality Profile of AI-Generated C++ in Productioncited by 0
  17. 2026Can Agents Design Libraries for Agents?cited by 0