paper-with-me

Papers

AlphaTrans: A Neuro-Symbolic Compositional Approach for Repository-Level Code Translation and Validation

2024-10-31 · Ali Reza Ibrahimzada, Kaiyao Ke, Mrigank Pawagi, Muhammad Salman Abid, Rangeet Pan, Saurabh Sinha, Reyhaneh Jabbarvand

Code translation transforms programs from one programming language (PL) to another. 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 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> classes, methods, and 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 fragments. On average, the integrated translation and validation take 34 hours to translate a project, showing its scalability in practice. For the 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 were able to fix the issues in 20.1 hours on average and achieve all passing tests.

📄 PDF Abstract BibTeX arXiv:2410.24117

Code (1)

Intelligent-CAT-Lab/AlphaTrans 공식 구현

Tasks

Code TranslationTranslation

Similar Papers 제목 키워드 기반

REASON: Accelerating Probabilistic Logical Reasoning for Scalable Neuro-Symbolic Intelligence

2026-01-28 · Zishen Wan, Che-Kai Liu, Jiayi Qian, Hanchen Yang 외 arxiv

Neuro-symbolic AI systems integrate neural perception with symbolic reasoning to enable data-efficient, interpretable, and robust intelligence beyond purely neural models. Although this compositional paradigm has shown s…

Logical Reasoning

Neuro-Symbolic Decoding of Neural Activity

2026-02-22 · Yanchen Wang, Joy Hsu, Ehsan Adeli, Jiajun Wu arxiv

We propose NEURONA, a neuro-symbolic framework for fMRI decoding and concept grounding in neural activity. Leveraging image- and video-based fMRI question-answering datasets, NEURONA learns to decode interacting concepts…

Compositional Generalization Across Distributional Shifts with Sparse Tree Operations

2024-12-18 · Paul Soulos, Henry Conklin, Mattia Opper, Paul Smolensky 외

Neural networks continue to struggle with compositional generalization, and this issue is exacerbated by a lack of massive pre-training. One successful approach for developing neural systems which exhibit human-like comp…

Compositional Generalization and Neuro-Symbolic Architectures

2021-11-21 · AAAI Workshop CLeaR 2022 2 · Savitha Sam Abraham, Marjan Alirezaie

Compositional generalization is the ability to understand novel combinations of known concepts. Although it is considered as an innate skill for humans, recent studies have shown that neural networks lack this characteri…

NeSyCoCo: A Neuro-Symbolic Concept Composer for Compositional Generalization

2024-12-20 · Danial Kamali, Elham J. Barezi, Parisa Kordjamshidi

Compositional generalization is crucial for artificial intelligence agents to solve complex vision-language reasoning tasks. Neuro-symbolic approaches have demonstrated promise in capturing compositional structures, but …

Compositional Generalization (AVG)Novel ConceptsVisual Question AnsweringVisual Question Answering (VQA)+2