paper-with-me

Papers

UniCoder: Scaling Code Large Language Model via Universal Code

2024-06-24 · Tao Sun, Linzheng Chai, Jian Yang, Yuwei Yin, Hongcheng Guo, Jiaheng Liu, Bing Wang, Liqun Yang, Zhoujun Li

Intermediate reasoning or acting steps have successfully improved large language models (LLMs) for handling various downstream natural language processing (NLP) tasks. When applying LLMs for code generation, recent works mainly focus on directing the models to articulate intermediate natural-language reasoning steps, as in chain-of-thought (CoT) prompting, and then output code with the natural language or other structured intermediate steps. However, such output is not suitable for code translation or generation tasks since the standard CoT has different logical structures and forms of expression with the code. In this work, we introduce the universal code (UniCode) as the intermediate representation. It is a description of algorithm steps using a mix of conventions of programming languages, such as assignment operator, conditional operator, and loop. Hence, we collect an instruction dataset UniCoder-Instruct to train our model UniCoder on multi-task learning objectives. UniCoder-Instruct comprises natural-language questions, code solutions, and the corresponding universal code. The alignment between the intermediate universal code representation and the final code solution significantly improves the quality of the generated code. The experimental results demonstrate that UniCoder with the universal code significantly outperforms the previous prompting methods by a large margin, showcasing the effectiveness of the structural clues in pseudo-code.

📄 PDF Abstract BibTeX arXiv:2406.16441

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationCode TranslationLanguage ModelingLanguage ModellingLarge Language ModelMulti-Task Learning

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

Unicoder-VL: A Universal Encoder for Vision and Language by Cross-modal Pre-training

2019-08-16 · Gen Li, Nan Duan, Yuejian Fang, Ming Gong 외

We propose Unicoder-VL, a universal encoder that aims to learn joint representations of vision and language in a pre-training manner. Borrow ideas from cross-lingual pre-trained models, such as XLM and Unicoder, both vis…

Image-text matchingImage-text RetrievalImage-to-Text RetrievalLanguage Modeling+5

Unicoder: A Universal Language Encoder by Pre-training with Multiple Cross-lingual Tasks

2019-09-03 · IJCNLP 2019 11 · Haoyang Huang, Yaobo Liang, Nan Duan, Ming Gong 외

We present Unicoder, a universal language encoder that is insensitive to different languages. Given an arbitrary NLP task, a model can be trained with Unicoder using training data in one language and directly applied to …

Cross-Lingual Natural Language InferenceCross-Lingual Question AnsweringLanguage ModelingLanguage Modelling+2

CoBIT: A Contrastive Bi-directional Image-Text Generation Model

2023-03-23 · Haoxuan You, Mandy Guo, Zhecan Wang, Kai-Wei Chang 외

The field of vision and language has witnessed a proliferation of pre-trained foundation models. Most existing methods are independently pre-trained with contrastive objective like CLIP, image-to-text generative objectiv…

DecoderImage GenerationImage to textRetrieval+5

Machine-Created Universal Language for Cross-lingual Transfer

2023-05-22 · Yaobo Liang, Quanzhi Zhu, Junhe Zhao, Nan Duan

There are two primary approaches to addressing cross-lingual transfer: multilingual pre-training, which implicitly aligns the hidden representations of various languages, and translate-test, which explicitly translates d…

Cross-Lingual Transfer

UniCoder: Unified Visual-to-Code Generation via Symbolic Rewards and Reference-Guided Code Optimization

2026-06-30 · Yaozhi Zheng, Yilei Jiang, Manyuan Zhang, Yuxuan Wan 외 arxiv

Visual-to-Code generation, which transforms scientific plots, vector graphics, and webpages into executable scripts, demands a level of pixel-precise alignment that standard Multimodal Large Language Models (MLLMs) fail …

Reinforcement LearningCode GenerationCode Search