2024

Enhancing Code Translation in Language Models with Few-Shot Learning via Retrieval-Augmented Generation

Bhattarai, Manish, Santos, Javier E., Jones, Shawn et al.

Understand

The advent of large language models (LLMs) has significantly advanced the field of code translation, enabling automated translation between programming languages.

  • However, these models often struggle with complex translation tasks due to inadequate contextual understanding.
  • This paper introduces a novel approach that enhances code translation through Few-Shot Learning, augmented with retrieval-based techniques.
  • By leveraging a repository of existing code translations, we dynamically retrieve the most relevant examples to guide the model in translating new code segments.

Reading the bibliography…