mlsanityData to 14 Oct 2026

RustEvo^2: An Evolving Benchmark for API Evolution in LLM-based Rust Code Generation

arXiv 2503.16922 ↗First posted 21 Mar 2025cs.SE cs.AIcited by 10

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have become pivotal tools for automating code generation in software development. However, these models face significant challenges in producing version-aware code for rapidly evolving languages like Rust, where frequent Application Programming Interfaces (API) changes across versions lead to compatibility issues and correctness errors. Existing benchmarks lack systematic evaluation of how models navigate API transitions, relying on labor-intensive manual curation and offering limited version-specific insights. To address this gap, we present RustEvo, a novel framework for constructing dynamic benchmarks that evaluate the ability of LLMs to adapt to evolving Rust APIs. RustEvo automates dataset creation by synthesizing 588 API changes (380 from Rust standard libraries, 208 from 15 third-party crates) into programming tasks mirroring real-world challenges. These tasks cover four API evolution categories: Stabilizations, Signature Changes, Behavioral Changes, and Deprecations, reflecting their actual distribution in the Rust ecosystem. Experiments on state-of-the-art (SOTA) LLMs reveal significant performance variations: models achieve a 65.8% average success rate on stabilized APIs but only 38.0% on behavioral changes, highlighting difficulties in detecting semantic shifts without signature alterations. Knowledge cutoff dates strongly influence performance, with models scoring 56.1% on before-cutoff APIs versus 32.5% on after-cutoff tasks. Retrieval-Augmented Generation (RAG) mitigates this gap, improving success rates by 13.5% on average for APIs released after model training. Our findings underscore the necessity of our evolution-aware benchmarks to advance the adaptability of LLMs in fast-paced software ecosystems. The framework and the benchmarks are publicly released at https://github.com/SYSUSELab/RustEvo.

Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 22 of its 55 references that are in the map. First posted on arXiv 21 Mar 2025.

Builds on

22 of 55 references.

References · 22

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2021Program Synthesis with Large Language Modelscited by 3,637
  3. 2017Billion-scale similarity search with GPUscited by 2,497
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  5. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  6. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  7. 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
  8. 2021Measuring Coding Challenge Competence With APPScited by 902
  9. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  10. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
  11. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
  12. 2022The Stack: 3 TB of permissively licensed source codecited by 359
10 more
  1. 2021Retrieval Augmented Code Generation and Summarizationcited by 149
  2. 2025CodeElo: Benchmarking Competition-level Code Generation of LLMs with Human-comparable Elo Ratingscited by 115
  3. 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 76
  4. 2023Towards an Understanding of Large Language Models in Software Engineering Taskscited by 68
  5. 2024EvoCodeBench: An Evolving Code Generation Benchmark with Domain-Specific Evaluationscited by 34
  6. 2024LLMs Meet Library Evolution: Evaluating Deprecated API Usage in LLM-based Code Completioncited by 32
  7. 2024VersiCode: Towards Version-controllable Code Generationcited by 17
  8. 2024CoSQA+: Pioneering the Multi-Choice Code Search Benchmark with Test-Driven Agentscited by 11
  9. 2025Code Benchmarks Should Prioritize Rigor, Reliability, and Reproducibilitycited by 10
  10. 2022Mining Android API Usage to Generate Unit Test Cases for Pinpointing Compatibility Issuescited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 7.

10 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scale
  2. 2024RustRepoTrans: Repository-level Code Translation Benchmark Targeting Rust
  3. 2026When LLMs Lag Behind: Knowledge Conflicts from Evolving APIs in Code Generation
  4. 2026From Translation to Superset: Benchmark-Driven Evolution of a Production AI Agent from Rust to Python
  5. 2026RepoZero: Can LLMs Generate a Code Repository from Scratch?
  6. 2024A Comprehensive Framework for Evaluating API-oriented Code Generation in Large Language Models
  7. 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositories
  8. 2026Learning from Execution: Self-Evolving Memory for Private-Library Code Generation