mlsanityData to 7 Oct 2026

LLM Based Long Code Translation using Identifier Replacement

arXiv 2510.09045 ↗First posted 10 Oct 2025cs.SE cs.AI cs.IRcited by 0

Not on the map. Why?

Abstract (arXiv)

In the domain of software development, LLMs have been utilized to automate tasks such as code translation, where source code from one programming language is translated to another while preserving its functionality. However, LLMs often struggle with long source codes that don't fit into the context window, which produces inaccurate translations. To address this, we propose a novel zero-shot code translation method that incorporates identifier replacement. By substituting user-given long identifiers with generalized placeholders during translation, our method allows the LLM to focus on the logical structure of the code, by reducing token count and memory usage, which improves the efficiency and cost-effectiveness of long code translation. Our empirical results demonstrate that our approach preserves syntactical and hierarchical information and produces translation results with reduced tokens.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 21 of its 36 references that are in the map. First posted on arXiv 10 Oct 2025.

Builds on

21 of 36 references.

References · 21

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  4. 2024GPT-4o System Cardcited by 4,467
  5. 2023Mistral 7Bcited by 3,065
  6. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  7. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  8. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  9. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
  10. 2020Unsupervised Translation of Programming Languagescited by 262
  11. 2023A Comprehensive Capability Analysis of GPT-3 and GPT-3.5 Series Modelscited by 244
  12. 2023Augmenting Language Models with Long-Term Memorycited by 186
9 more
  1. 2022Ask Me Anything: A simple strategy for prompting language modelscited by 155
  2. 2018Context-Aware Neural Machine Translation Learns Anaphora Resolutioncited by 97
  3. 2023Few-shot In-context Learning for Knowledge Base Question Answeringcited by 74
  4. 2021AVATAR: A Parallel Corpus for Java-Python Program Translationcited by 59
  5. 2023Tokenize Anything via Promptingcited by 31
  6. 2023Large Language Models of Code Fail at Completing Code with Potential Bugscited by 28
  7. 2021Improving Code Summarization with Block-wise Abstract Syntax Tree Splittingcited by 19
  8. 2022CARGO: AI-Guided Dependency Analysis for Migrating Monolithic Applications to Microservices Architecturecited by 5
  9. 2023ADELT: Transpilation Between Deep Learning Frameworkscited by 2

Built on by

Not cited yet.