We present Code Comparison Tuning (CCT), a simple and effective tuning method for code large language models (Code LLMs) to better handle subtle code errors. Specifically, we integrate the concept of comparison into instruction tuning, both at the token and sequence levels, enabling the model to discern even the slightest deviations in code. To compare the original code with an erroneous version containing manually added code errors, we use token-level preference loss for detailed token-level comparisons. Additionally, we combine code segments to create a new instruction tuning sample for sequence-level comparisons, enhancing the model's bug-fixing capability. Experimental results on the HumanEvalFix benchmark show that CCT surpasses instruction tuning in pass@1 scores by up to 4 points across diverse code LLMs, and extensive analysis demonstrates the effectiveness of our method.
Few-shot Fine-tuning vs. In-context Learning: A Fair Comparison and Evaluation
Saarland University(萨尔兰大学);University of Cambridge(剑桥大学);Bar-Ilan University(巴伊兰大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所);University of Washington(华盛顿大学)
Multi-Agent Collaboration for Multilingual Code Instruction Tuning
Alibaba Group(阿里巴巴集团);Shanghai Jiao Tong University(上海交通大学);Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);University of Chinese Academy of Sciences(中国科学院大学)
EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning
University of Hong Kong(香港大学);Singapore University of Technology(新加坡科技设计大学);University of Edinburgh(爱丁堡大学);National University of Singapore(新加坡国立大学);Beijing University of Posts(北京邮电大学);University of Cambridge(剑桥大学);King’s College London(伦敦国王学院)
SimLLM: Fine-Tuning Code LLMs for SimPy-Based Queueing System Simulation
Institute of Statistics and Big Data, Renmin University of China(中国人民大学统计与大数据研究院);School of Information, Renmin University of China(中国人民大学信息学院);School of Management and Economics, University of Electronic Science and Technology of China(电子科技大学管理学院)
Metaphor identification using large language models: A comparison of RAG, prompt engineering, and fine-tuning
Department of Linguistics and Communication(语言学与传播学系);University of Birmingham(伯明翰大学);Centre for Arts, Memory & Communities(艺术、记忆与社区中心);Coventry University(考文垂大学)
LLaMA-Reviewer: Advancing Code Review Automation with Large Language Models through Parameter-Efficient Fine-Tuning
Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);School of Software, Tsinghua University(清华大学软件学院);Sinosoft Company Limited(中科软科技股份有限公司)
LLaMoCo: Instruction Tuning of Large Language Models for Optimization Code Generation
School of Computer Science and Engineering, South China University of Technology(华南理工大学计算机科学与工程学院);School of Computing and Information Systems, Singapore Management University(新加坡管理大学计算与信息系统学院);Nanyang Technological University(南洋理工大学)
From Completion to Editing: Unlocking Context-Aware Code Infilling via Search-and-Replace Instruction Tuning
USTC(University of Science and Technology of China);Alibaba Group(阿里巴巴集团);CASIA(Chinese Academy of Sciences Institute of Automation);SIAT(Institute of Automation, Chinese Academy of Sciences)
LLM attribution analysis across different fine-tuning strategies and model scales for automated code compliance
Department of Civil and Environmental Engineering, National University of Singapore(新加坡国立大学土木与环境工程系);School of Transportation Science and Engineering, Harbin Institute of Technology(哈尔滨工业大学交通运输科学与工程学院);Research and Innovation, NovaCITYNETS Pte.Ltd.(NovaCITYNETS Pte.Ltd.研究与创新部)
Structure-aware Fine-tuning for Code Pre-trained Models
School of Data Science and Engineering, East China Normal University(华东师范大学数据科学与工程学院);NetEase Fuxi AI Lab(网易伏羲人工智能实验室);National University of Singapore(新加坡国立大学)
Evaluating How Fine-tuning on Bimodal Data Effects Code Generation
尽管用于代码生成的语言模型越来越受欢迎,但在双模编码论坛上进行的训练如何影响模型的代码生成性能和可靠性仍然是未知的。因此,我们收集了超过220万个StackOverflow问题的数据集,并提供了用于微调的答案。这些微调模型在HumanEval上的平均$pass@k$改善为54.64%和85.35%(Chen等人,2021)和大部分基本程序问题(Austin et al.,2021年)的任务。该机制进一步减少了生成的具有语法和运行时错误的程序的数量。然而,我们发现,在较高的温度下,有显着降低模型的能力,尽管较高的$pass@k$分数,生成可运行的程序,强调需要更好的方法,将这些数据,减轻这些副作用。代码可以在https://github.com/gabeorlanski/bimodalcode-generation上找到