RustEvo^2: An Evolving Benchmark for API Evolution in LLM-based Rust Code Generation
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
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
- 2022The Stack: 3 TB of permissively licensed source codecited by 359
10 more
- 2021Retrieval Augmented Code Generation and Summarizationcited by 149
- 2025CodeElo: Benchmarking Competition-level Code Generation of LLMs with Human-comparable Elo Ratingscited by 115
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 76
- 2023Towards an Understanding of Large Language Models in Software Engineering Taskscited by 68
- 2024EvoCodeBench: An Evolving Code Generation Benchmark with Domain-Specific Evaluationscited by 34
- 2024LLMs Meet Library Evolution: Evaluating Deprecated API Usage in LLM-based Code Completioncited by 32
- 2024VersiCode: Towards Version-controllable Code Generationcited by 17
- 2024CoSQA+: Pioneering the Multi-Choice Code Search Benchmark with Test-Driven Agentscited by 11
- 2025Code Benchmarks Should Prioritize Rigor, Reliability, and Reproducibilitycited by 10
- 2022Mining Android API Usage to Generate Unit Test Cases for Pinpointing Compatibility Issuescited by 3
Built on by
Citing papers per year: 2025: 3; 2026: 7.
10 papers.
- 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworkscited by 14
- 2026Evaluating and Improving Automated Repository-Level Rust Issue Resolution with LLM-based Agentscited by 8
- 2025FreshBrew: A Benchmark for Evaluating AI Agents on Java Code Migrationcited by 5
- 2025EffiReasonTrans: RL-Optimized Reasoning for Code Translationcited by 5
- 2026Automating Database-Native Function Code Synthesis with LLMscited by 2
- 2026KCoEvo: A Knowledge Graph Augmented Framework for Evolutionary Code Generationcited by 1
- 2026Bridging Generation and Training: A Systematic Review of Quality Issues in LLMs for Codecited by 1
- 2026When Retrieval Hurts Code Completion: A Diagnostic Study of Stale Repository Contextcited by 1
- 2026Diagnosing Knowledge Gaps in LLM Tool Use: An Agentic Benchmark for Novel API Acquisitioncited by 0
- 2026Mind the Gaps: From Failure Attribution to Closed-Form Repair of Code Language Modelscited by 0
- 2026Mind the Gaps: From Failure Attribution to Closed-Form Repair of Code Language Models4 Oct 2026
- 2026Diagnosing Knowledge Gaps in LLM Tool Use: An Agentic Benchmark for Novel API Acquisition2 Jun 2026
- 2026When Retrieval Hurts Code Completion: A Diagnostic Study of Stale Repository Context14 May 2026
- 2026Bridging Generation and Training: A Systematic Review of Quality Issues in LLMs for Code6 May 2026
- 2026Automating Database-Native Function Code Synthesis with LLMs2 Apr 2026
- 2026KCoEvo: A Knowledge Graph Augmented Framework for Evolutionary Code Generation8 Mar 2026
- 2026Evaluating and Improving Automated Repository-Level Rust Issue Resolution with LLM-based Agents26 Feb 2026
- 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworks1 Dec 2025
- 2025EffiReasonTrans: RL-Optimized Reasoning for Code Translation21 Oct 2025
- 2025FreshBrew: A Benchmark for Evaluating AI Agents on Java Code Migration6 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scale
- 2024RustRepoTrans: Repository-level Code Translation Benchmark Targeting Rust
- 2026When LLMs Lag Behind: Knowledge Conflicts from Evolving APIs in Code Generation
- 2026From Translation to Superset: Benchmark-Driven Evolution of a Production AI Agent from Rust to Python
- 2026RepoZero: Can LLMs Generate a Code Repository from Scratch?
- 2024A Comprehensive Framework for Evaluating API-oriented Code Generation in Large Language Models
- 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositories
- 2026Learning from Execution: Self-Evolving Memory for Private-Library Code Generation