PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
April 18, 2026Concurrency and Computation Practice and Experience0 citations

Interactive LLM ‐Driven Framework for Cross‐Architecture Code Migration: Balancing Efficiency, Accuracy, and Explainability

View Full Paper
PWPeng WangKQKaiyuan QiFZFeng Zhen

Key Points

  • The research aims to develop a framework for efficient and accurate cross-architecture code migration using a large language model.
  • Developed an interactive, QA-driven framework utilizing a frozen large language model for semantic reasoning.
  • Implemented static analysis and AST-based semantic-distance modeling to ensure transparent transformations.
  • Created a self-evolving rule base for validated code migration across multiple programming languages and instruction set architectures.
  • Achieved an average migration accuracy of 92.4%, nearing expert-level performance of 95.1%.
  • Reduced migration errors by 4.2 times compared to traditional approaches.
  • Decreased developer time from 20-25 hours to approximately 8 hours.

Abstract

ABSTRACT Cross‐architecture code migration has become essential as data centers transition from homogeneous x86 systems to heterogeneous “one‐cloud, multi‐chip” infrastructures that include ARM64, RISC‐V, and domestic processors. Traditional approaches, such as manual refactoring and rule‐based rewriting, face challenges in maintaining semantic correctness, scalability, and explainability. This paper presents an interactive, question‐answering (QA)‐driven framework that uses a frozen large language model (LLM) as a semantic reasoning engine. The framework combines static analysis, AST‐based semantic‐distance modeling, and a self‐evolving rule base for validated transformations, ensuring transparency, explainability, and architecture‐aware migration. It supports multiple languages (C++, Python, Java) and ISAs (x86, ARM64, RISC‐V) without the need for fine‐tuning the LLM. Evaluation on 30 real‐world codebases shows an average migration accuracy of 92.4%, approaching expert‐level performance (95.1%), with a 4.2× reduction in migration errors and significant reduction in developer time (from 20–25 h to 8 h). These results demonstrate that the QA‐driven, LLM‐based migration framework significantly improves efficiency, accuracy, and scalability.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Wang et al. (2026) studied this question.

synapsesocial.com/papers/69e3203440886becb653f41ahttps://doi.org/10.1002/cpe.70705
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1CCFinder: a multilinguistic token-based code clone detection system for large scale source code2002 · 1,740 citations
  2. 2Halide2013 · 505 citations
  3. 3Cetus: A Source-to-Source Compiler Infrastructure for Multicores2009 · 191 citations
  4. 4MCFOF: Multi-Compilation Fusion Optimization Framework using ROSE Compiler Infrastructure2024 · 1 citations
  5. 5Summarize and Generate to Back-translate: Unsupervised Translation of Programming Languages2023 · 17 citations