mlsanityData to 14 Oct 2026

Program Skeletons for Automated Program Translation

arXiv 2504.07483 ↗First posted 10 Apr 2025cs.PL cs.AI cs.SEcited by 3

Not on the map. Why?

Abstract (arXiv)

Translating software between programming languages is a challenging task, for which automated techniques have been elusive and hard to scale up to larger programs. A key difficulty in cross-language translation is that one has to re-express the intended behavior of the source program into idiomatic constructs of a different target language. This task needs abstracting away from the source language-specific details, while keeping the overall functionality the same. In this work, we propose a novel and systematic approach for making such translation amenable to automation based on a framework we call program skeletons. A program skeleton retains the high-level structure of the source program by abstracting away and effectively summarizing lower-level concrete code fragments, which can be mechanically translated to the target programming language. A skeleton, by design, permits many different ways of filling in the concrete implementation for fragments, which can work in conjunction with existing data-driven code synthesizers. Most importantly, skeletons can conceptually enable sound decomposition, i.e., if each individual fragment is correctly translated, taken together with the mechanically translated skeleton, the final translated program is deemed to be correct as a whole. We present a prototype system called Skel embodying the idea of skeleton-based translation from Python to JavaScript. Our results show promising scalability compared to prior works. For 9 real-world Python programs, some with more than about 1k lines of code, 95% of their code fragments can be automatically translated, while about 5% require manual effort. All the final translations are correct with respect to whole-program test suites.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 22 of its 60 references that are in the map. First posted on arXiv 10 Apr 2025.

Builds on

22 of 60 references.

References · 22

  1. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  2. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  3. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  4. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
  5. 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 331
  6. 2020Unsupervised Translation of Programming Languagescited by 263
  7. 2018Tree-to-tree Neural Networks for Program Translationcited by 93
  8. 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
  9. 2023A Survey of Large Language Models for Code: Evolution, Benchmarking, and Future Trendscited by 66
  10. 2023Can Large Language Models Transform Natural Language Intent into Formal Method Postconditions?cited by 57
  11. 2023Knowledge Transfer from High-Resource to Low-Resource Programming Languages for Code LLMscited by 45
  12. 2021Perfection Not Required? Human-AI Partnerships in Code Translationcited by 42
10 more
  1. 2024Towards Translating Real-World Code with LLMs: A Study of Translating to Rustcited by 35
  2. 2023Can Large Language Models Write Good Property-Based Tests?cited by 31
  3. 2024VERT: Verified Equivalent Rust Transpilation with Large Language Models as Few-Shot Learnerscited by 20
  4. 2024Rectifier: Code Translation with Corrector via LLMscited by 20
  5. 2023SteloCoder: a Decoder-Only LLM for Multi-Language to Python Code Translationcited by 9
  6. 2019SLING: Using Dynamic Analysis to Infer Program Invariants in Separation Logiccited by 7
  7. 2015Synthesis through Unificationcited by 4
  8. 2025Skeleton-Guided-Translation: A Benchmarking Framework for Code Repository Translation with Fine-Grained Quality Evaluationcited by 3
  9. 2023User-Customizable Transpilation of Scripting Languagescited by 2
  10. 2015Automatic Inference of Specifications in the K Frameworkcited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 1.

3 papers.