Code Translation2020en
TransCoder Evaluation on GeeksForGeeks Algorithmic Problems
Code translation benchmark between C++, Java, and Python using 852 GeeksForGeeks programming problems. Each function has correct implementations in all three languages. Primary metric is Computational Accuracy (CA) — translated code must pass all unit tests.
Current State of the Art
Claude Sonnet 4
Anthropic
89.4
computational-accuracy
computational-accuracy Progress Over Time
Showing 5 breakthroughs from Jun 2020 to Mar 2026
Key Milestones
Jun 2020
TransCoder
Java→Python translation. TransCoder paper Table 3. CA (% of functions passing tests).
68.7
May 2023
CodeT5+
Java→Python translation. CodeT5+ paper (220M encoder-decoder variant).
72.1
+4.9%
Feb 2024
StarCoder2-15B
Java→Python translation. StarCoder2 paper. Instruction-tuned model.
78.4
+8.7%
Jun 2024
GPT-4o
Java→Python translation. Reported in DeepSeek-Coder-V2 comparative table.
88.2
+12.5%
Total Improvement
30.1%
Time Span
5y 11m
Breakthroughs
5
Current SOTA
89.4
Top Models Performance Comparison
Top 7 models ranked by computational-accuracy
Best Score
89.4
Top Model
Claude Sonnet 4
Models Compared
7
Score Range
20.7
computational-accuracyPrimary
| # | Model | Score | Paper / Code | Date |
|---|---|---|---|---|
| 1 | Claude Sonnet 4API Anthropic | 89.4 | Mar 2026 | |
| 2 | GPT-4oAPI OpenAI | 88.2 | Jun 2024 | |
| 3 | Qwen2.5-Coder-32B-InstructOpen Source Alibaba | 86.3 | Sep 2024 | |
| 4 | DeepSeek-Coder-V2-InstructOpen Source DeepSeek | 84.6 | Jun 2024 | |
| 5 | StarCoder2-15BOpen Source BigCode | 78.4 | Feb 2024 | |
| 6 | CodeT5+Open Source Salesforce | 72.1 | May 2023 | |
| 7 | TransCoderOpen Source Meta | 68.7 | Jun 2020 |
Related Papers5
Qwen2.5-Coder Technical Report
Sep 2024Models: Qwen2.5-Coder-32B-Instruct
DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligence
Jun 2024Models: GPT-4o, DeepSeek-Coder-V2-Instruct
StarCoder2 and The Stack v2: The Next Generation
Feb 2024Models: StarCoder2-15B
CodeT5+: Open Code Large Language Models for Code Understanding and Generation
May 2023Models: CodeT5+
Unsupervised Translation of Programming Languages
Jun 2020Models: TransCoder