mlsanityData to 14 Oct 2026

RustRepoTrans: Repository-level Code Translation Benchmark Targeting Rust

arXiv 2411.13990 ↗First posted 21 Nov 2024cs.SEcited by 6

Not on the map. Why?

Abstract (arXiv)

Recent advancements in large language models (LLMs) have demonstrated impressive capabilities in code translation, typically evaluated using benchmarks like CodeTransOcean and RepoTransBench. However, dependency-free benchmarks fail to capture real-world complexities by focusing primarily on simple function-level translations and overlooking repository-level context (e.g., dependencies). Full-repository translation benchmarks significantly exceed the current capabilities of existing models, resulting in performance bottlenecks that fail to provide actionable insights for guiding model development. Furthermore, existing benchmarks do not account for the scenario of incrementally translating new or modified modules from the source to the target language, which demands careful handling of repository-level contexts such as dependencies, cross-module references, and architectural divergence. Moreover, LLMs' effectiveness in translating to newer, low-resource languages like Rust remains largely underexplored. To address these gaps, we introduce RustRepoTrans, the first repository-level context code translation benchmark targeting incremental translation, comprising 375 tasks translating into Rust from C, Java, and Python. Using this benchmark, we evaluate seven representative LLMs, analyzing their errors to assess limitations in complex translation scenarios. Among them, DeepSeek-R1 performs best with 51.5% Pass@1, excelling in both basic functionality and additional translation abilities, such as noise robustness and syntactical difference identification. However, even DeepSeek-R1 experiences a 22.2% performance drop (Pass@1 from 73.7% to 51.5%) when handling repository-level context compared to previous benchmarks without such context.

Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). First posted on arXiv 21 Nov 2024.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 4.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Fine-Tuning Qwen3-27B for C-to-Rust Code Translation: A Three-Stage Curriculum of Pretraining, Debugging-Aware SFT, and Task-Specific SFT
  2. 2025RustEvo^2: An Evolving Benchmark for API Evolution in LLM-based Rust Code Generation
  3. 2026Towards Reliable C-to-Rust Translation with Rule-Guided Reasoning and Reinforcement Learning
  4. 2025MRG-Bench: Evaluating and Exploring the Requirements of Context for Repository-Level Code Generation
  5. 2026ORBIT: Guided Agentic Orchestration for Autonomous C-to-Rust Transpilation
  6. 2025TransLibEval: Demystify Large Language Models' Capability in Third-party Library-targeted Code Translation
  7. 2026Mostly Automatic Translation of Language Interpreters from C to Safe Rust ↗
  8. 2026LLM4C2Rust: Large Language Models for Automated Memory-Safe Code Transpilation ↗