paper-with-me

홈 › Papers

IRCoder: Intermediate Representations Make Language Models Robust Multilingual Code Generators

2024-03-06 · Indraneil Paul, Goran Glavaš, Iryna Gurevych

Code understanding and generation have fast become some of the most popular applications of language models (LMs). Nonetheless, research on multilingual aspects of Code-LMs (i.e., LMs for code generation) such as cross-lingual transfer between different programming languages, language-specific data augmentation, and post-hoc LM adaptation, alongside exploitation of data sources other than the original textual content, has been much sparser than for their natural language counterparts. In particular, most mainstream Code-LMs have been pre-trained on source code files alone. In this work, we investigate the prospect of leveraging readily available compiler intermediate representations (IR) - shared across programming languages - to improve the multilingual capabilities of Code-LMs and facilitate cross-lingual transfer. To this end, we first compile SLTrans, a parallel dataset consisting of nearly 4M self-contained source code files coupled with respective intermediate representations. Next, starting from various base Code-LMs (ranging in size from 1.1B to 7.3B parameters), we carry out continued causal language modelling training on SLTrans, forcing the Code-LMs to (1) learn the IR language and (2) align the IR constructs with respective constructs of various programming languages. Our resulting models, dubbed IRCoder, display sizeable and consistent gains across a wide variety of code generation tasks and metrics, including prompt robustness, multilingual code completion, code understanding, and instruction following.

📄 PDF Abstract BibTeX arXiv:2403.03894

Code (1)

UKPLab/arxiv2024-IRCoder 공식 구현

Tasks

Code CompletionCode GenerationCross-Lingual TransferData AugmentationInstruction FollowingLanguage Modelling

Methods 이 논문이 사용한 방법론

ALIGN In the ALIGN method, visual and language representations are jointly trained from noisy image alt-text data. The image and text encoders are learned via contrastive loss…
BASE 설명 없음

Similar Papers 제목 키워드 기반

Multilingual, Multi-scale and Multi-layer Visualization of Intermediate Representations

2019-07-01 · IJCNLP 2019 11 · Carlos Escolano, Marta R. Costa-jussà, Elora Lacroux, Pere-Pau Vázquez

The main alternatives nowadays to deal with sequences are Recurrent Neural Networks (RNN), Convolutional Neural Networks (CNN) architectures and the Transformer. In this context, RNN's, CNN's and Transformer have most co…

DecoderMachine TranslationSentenceTranslation+1

A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinement

2024-09-08 · huan zhang, Wei Cheng, Yuhan Wu, Wei Hu

Large language models (LLMs) have achieved impressive performance on code generation. Although prior studies enhanced LLMs with prompting techniques and code refinement, they still struggle with complex programming probl…

Code Generation

Cross-lingual Intermediate Fine-tuning improves Dialogue State Tracking

2021-09-28 · EMNLP 2021 11 · Nikita Moghe, Mark Steedman, Alexandra Birch

Recent progress in task-oriented neural dialogue systems is largely focused on a handful of languages, as annotation of training data is tedious and expensive. Machine translation has been used to make systems multilingu…

Cross-Lingual TransferDialogue State TrackingMachine TranslationTransfer Learning

FairCoder: Evaluating Social Bias of LLMs in Code Generation

2025-01-09 · Yongkang Du, Jen-tse Huang, Jieyu Zhao, Lu Lin

Large language models (LLMs) have been widely deployed in coding tasks, drawing increasing attention to the evaluation of the quality and safety of LLMs' outputs. However, research on bias in code generation remains limi…

Code GenerationFairness

PairCoder++: Pair Programming as a Universal Paradigm for Verified Code-Driven Multimodal and Structured-Artifact Generation

2026-07-02 · Junhao Chen, Xiang Li, Mingjin Chen, Boran Zhang 외 arxiv

Code is the medium through which large language models generate structured artifacts: charts, scientific figures, vector graphics, CAD models, 3D scenes, and hardware designs are all produced by writing programs. In this…