Rangeet Pan

Rangeet Pan

Auto-generated profile, based on publicly available information

Rangeet Pan

IBM Research, Yorktown Heights, USA

Research Focus & Metrics

Academic Career Length

8Years (2019-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
12 August 2019
Verified
Conference Paper
Open access
JIJohirul Islam
Johirul Islam
GNGiang Nguyen
Giang Nguyen
RPRangeet Pan
Rangeet Pan
HRHridesh Rajan
Hridesh Rajan

12 April 2024
Verified
Conference Paper
Open access
RPRangeet Pan
Rangeet Pan
AIAli Reza Ibrahimzada
Ali Reza Ibrahimzada
RKRahul Krishna
Rahul Krishna
DSDivya Sankar
Divya Sankar
LWLambert Pouguem Wassi
Lambert Pouguem Wassi
RJReyhaneh Jabbarvand
Reyhaneh Jabbarvand
Code translation aims to convert source code from one programming language (PL) to another. Given the promising abilities of large language models (LLMs) in code synthesis, researchers are exploring their potential to automate code translation. The prerequisite for advancing the state of LLM-based code translation is to understand their promises and limitations over existing techniques. To that end, we present a large-scale empirical study to investigate the ability of general LLMs and code LLMs for code translation across pairs of different languages, including C, C++, Go, Java, and Python. Our study, which involves the translation of 1,700 code samples from three benchmarks and two real-world projects, reveals that LLMs are yet to be reliably used to automate code translation---with correct translations ranging from 2.1% to 47.3% for the studied LLMs. Further manual investigation of unsuccessful translations identifies 15 categories of translation bugs. We also compare LLM-based code translation with traditional non-LLM-based approaches. Our analysis shows that these two classes of techniques have their own strengths and weaknesses. Finally, insights from our study suggest that providing more context to LLMs during translation can help them produce better results. To that end, we propose a prompt-crafting approach based on the symptoms of erroneous translations; this improves the performance of LLM-based code translation by 5.5% on average. Our study is the first of its kind, in terms of scale and breadth, that provides insights into the current limitations of LLMs in code translation and opportunities for improving them. Our dataset---consisting of 1,700 code samples in five PLs with 10K+ tests, 43K+ translated code, 1,748 manually labeled bugs, and 1,365 bug-fix pairs---can help drive research in this area.

19 June 2025 in Proceedings of the ACM on Software Engineering
Verified
Journal Article
Open access
AIAli Reza Ibrahimzada
Ali Reza Ibrahimzada
KKKaiyao Ke
Kaiyao Ke
MPMrigank Pawagi
Mrigank Pawagi
MAMuhammad Salman Abid
Muhammad Salman Abid
RPRangeet Pan
Rangeet Pan
RJReyhaneh Jabbarvand
Reyhaneh Jabbarvand
Code translation transforms programs from one programming language (PL) to another. One prominent use case is application modernization to enhance maintainability and reliability. Several rule-based transpilers have been designed to automate code translation between different pairs of PLs. However, the rules can become obsolete as the PLs evolve and cannot generalize to other PLs. Recent studies have explored the automation of code translation using Large Language Models (LLMs). One key observation is that such techniques may work well for crafted benchmarks but fail to generalize to the scale and complexity of real-world projects with inter- and intra-class dependencies, custom types, PL-specific features, etc. We propose AlphaTrans, a neuro-symbolic approach to automate repository-level code translation. AlphaTrans translates both source and test code, and employs multiple levels of validation to ensure the translation preserves the functionality of the source program. To break down the problem for LLMs, AlphaTrans leverages program analysis to decompose the program into fragments and translates them in the reverse call order . We leveraged AlphaTrans to translate ten real-world open-source projects consisting of ⟨836, 8575, 2719⟩ (application and test) classes, (application and test) methods, and unit tests. AlphaTrans breaks down these projects into 17874 fragments and translates the entire repository. 96.40% of the translated fragments are syntactically correct, and AlphaTrans validates the translations’ runtime behavior and functional correctness for 27.03% and 25.14% of the application method fragments. On average, integrated translation and validation takes 34 hours (min=3, max=121) to translate a project, showing its scalability in practice. For the syntactically or semantically incorrect translations, AlphaTrans generates a report including existing translation, stack trace, test errors, or assertion failures. We provided these artifacts to two developers to fix the translation bugs in four projects. They fixed the issues in 20.1 hours on average (5.5 hours for the smallest and 34 hours for the largest project) and achieved all passing tests. Without AlphaTrans, translating and validating such big projects could take weeks, if not months.

23 June 2025
Verified
Conference Paper
Open access
RKRahul Krishna
Rahul Krishna
RPRangeet Pan
Rangeet Pan
SSSaurabh Sinha
Saurabh Sinha
STSrikanth Tamilselvam
Srikanth Tamilselvam
RPRaju Pavuluri
Raju Pavuluri
MVMaja Vukovic
Maja Vukovic

12 August 2019
Verified
Conference Paper
Open access
RPRangeet Pan
Rangeet Pan

12 April 2026
Verified
Conference Paper
Open access
MMMichele Merler
Michele Merler
RPRangeet Pan
Rangeet Pan
RKRahul Krishna
Rahul Krishna
THTin Kam Ho
Tin Kam Ho
RPRaju Pavuluri
Raju Pavuluri
MVMaja Vukovic
Maja Vukovic