TransLibEval: Demystify Large Language Models' Capability in Third-party Library-targeted Code Translation
Not on the map. Why?
Abstract (arXiv)
In recent years, Large Language Models (LLMs) have been widely studied in the code translation field on the method, class, and even repository levels. However, most of these benchmarks are limited in terms of Third-Party Library (TPL) categories and scales, making TPL-related errors hard to expose and hindering the development of targeted solutions. Considering the high dependence (over 90%) on TPLs in practical programming, demystifying and analyzing LLMs' code translation performance involving various TPLs becomes imperative. To address this gap, we construct TransLibEval, the first benchmark dedicated to library-centric code translation. It consists of 200 real-world tasks across Python, Java, and C++, each explicitly involving TPLs from diverse categories such as data processing, machine learning, and web development, with comprehensive dependency coverage and high-coverage test suites. We evaluate seven recent LLMs of commercial, general, and code-specialized families under six translation strategies of three categories: Direct, IR-guided, and Retrieval-augmented. Experimental results show a dramatic performance drop compared with library-free settings (average CA decline over 60%), while diverse strategies demonstrate heterogeneous advantages. Furthermore, we analyze 4,831 failed cases from GPT-4o, one of the State-of-the-Art (SOTA) LLMs, revealing numerous third-party reference errors that were obscured previously. These findings highlight the unique challenges of library-centric translation and provide practical guidance for improving TPL-aware code intelligence.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). First posted on arXiv 15 Sep 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositories
- 2024RustRepoTrans: Repository-level Code Translation Benchmark Targeting Rust
- 2024InterTrans: Leveraging Transitive Intermediate Translations to Enhance LLM-based Code Translation
- 2026AdaptEval: A Benchmark for Evaluating Large Language Models on Code Snippet Adaptation
- 2024TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution Alignment
- 2024SpecTra: Enhancing the Code Translation Ability of Language Models by Generating Multi-Modal Specifications
- 2025LLM-Assisted Translation of Legacy FORTRAN Codes to C++: A Cross-Platform Study
- 2026CodePivot: Bootstrapping Multilingual Transpilation in LLMs via Reinforcement Learning without Parallel Corpora