ORCA: Evaluating LLMs on Data Science Code Translation
Xiaolong Li, Jinyang Li, Bowen Qin, Ge Qu, Nan Huo, Xiaohan Xu, Shipei Lin, Reynold Cheng
Abstract
Data Science Code Translation (DSCT) is the process of converting code between data science libraries while preserving functional equivalence and enabling interoperability across data science ecosystems. While Large Language Models (LLMs) have demonstrated considerable progress in Data Science Code Generation (DSCG), their performance in DSCT remains insufficiently studied. To address this gap, we introduce ORCA, a comprehensive benchmark with two complementary settings: ORCA-MAIN, which comprises 1,600 carefully curated grounding-level tasks across 3 representative domains: Data Querying, Data Manipulation, and Deep Learning; and ORCA-PROJECT, which contains 200 translation tasks over complete data science projects across 7 data science task types. Each task is accompanied by annotated reference translations and test cases for validating functional equivalence. We further incorporate a multi-stage quality verification process that thoroughly verifies task correctness and test case robustness. Experimental results demonstrate challenges in DSCT, with even frontier LLMs showing limited performance. Specifically, Claude-Opus-4.6 achieves a success rate of 56.92% on ORCA-MAIN and 33.67% on ORCA-PROJECT, indicating considerable room for improvement in DSCT. We also observe a clear directional preference in DSCT, where translation is consistently easier when the source code expresses the task through more explicit, fine-grained operations. Motivated by this, we propose an intent-augmented method, in which the model first infers source-code intent and then uses it as additional context for translation, achieving average absolute success-rate gains of 4.80% and 5.33% on ORCA-MAIN and ORCA-PROJECT, respectively.
Create a lesson
Metadata
- Comments
- 36 pages, 15 figures, 24 tables
Related papers
Evaluating Frontier-Model Agent Skills with Open-Weight Models in a Science Gateway
Shared title terminologycs.AIKomal Thareja, Mats Rynge, Anirban Mandal et al.
PseuDRAGON: Knowledge-Guided Local LLMs for Financial-Data Pseudonymization in Closed Networks
Shared title terminologycs.AIGwangui Hong, Seonho An, Seonkyu Lim et al.
Beyond Accuracy: Counterfactual Fragility and Demographic Bias in Clinical Evaluation of LLMs
Shared title terminologycs.AIChaitali Deb Purkayastha, Bharath Kumar Bolla, Vishnu Surya Reddy Nandi
Flat-Consensus Diffusion for Robust Data Reshaping under Noisy Evaluator
Shared title terminologycs.AIHongyu Cao, Kunpeng Liu, Fei Xie et al.
Noisy Test-Time Reinforcement Learning for Code LLMs
Shared title terminologycs.AIXikai Yang, Hieu Trung Nguyen, Dunyuan Xu et al.
Improving Medical Calculation of LLMs with Embedded Coding
Shared title terminologycs.AITianshi Ming, Yingying Zhang, Xian Wu