arrow
Return

ABC: Towards a Universal Code Styler through Model Merging

delete2025-10-01
delete0
PRE
AI
Y
Yitong Chen *
Z
Zhiqiang Gao
S
Shi, Chuanqi
B
Baixuan Li
M
Miao Gao
DOI:10.1145/3763104delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Code style transformation models built on code Language Models (code LMs) have achieved remarkable success. However, they typically focus on basis style transformations, where the target style follows a single criterion, and often struggle with combination styles, where the target style involves multiple criteria. In practice, style guides encompass multiple criteria, making the lack of effective combination style transformation a major limitation to their real-world applicability. In this paper, we propose ABSENT-BASIS-COMBINATION (abbreviated as ABC), a novel framework for code style transformation that significantly improves combination style transformation and overcomes the limitations of existing approaches. We implement four variants of ABC with parameter sizes of 0.5B, 1.3B, 1.5B, and 3B, demonstrating consistent superiority over existing approaches across all model sizes in both basis and combination style transformations. Specifically, ABC achieves performance gains of up to 86.70%, and remains superior even when baseline approaches use three times the parameters. Furthermore, to address the lack of high-quality datasets and evaluation metrics, we construct and release a new style transformation dataset, BASIS & COMBINATION CODE STYLE (abbreviated as BCCSTYLE), and introduce CODE SEQUENCE, SYNTACTIC, SEMANTIC AND STYLISTIC BLEU (abbreviated as CS4BLEU), a novel code similarity metric that surpasses existing metrics in accuracy and consistency.
Keywords:
Code Language Models
Code Style Transformation
Code Generation
Model Merging

Journal

P
Proceedings of the ACM on Programming Languages-PACMPL
IF:
2.8
Papers:
308
Citations:
4.7K

Organization

S
southeast university - china
Scholars:
5.3W
Papers: 4.9W
Citations: 57
Cited Papers

Cited Papers

The Asf+Sdf Meta-Environment
err2001-06-01
err0
PREAI
errvan den Brand,M.G.J.; van Deursen,A.; Heering,J.; de Jong,H.A.; de Jonge,M.; Kuipers,T.; Klint,P.; Moonen,L.; Olivier,P.A.; Scheerder,J.; Vinju,J.J.; Visser,E.; Visser,J.
errShare
errSave
An Empirical Study of Multimodal Model Merging
err2023-01-01
err0
PREAI
errSung,Yi-Lin; Li,Linjie; Lin,Kevin; Gan,Zhe; Bansal,Mohit; Wang,Lijuan
errShare
errSave
errShare
errSave
MPCoder: Multi-user Personalized Code Generator with Explicit and Implicit Style Representation Learning
err
IF0
err2024-01-01
err0
PREAI
errZhenlong Dai; Chang Yao; WenKang Han; Yuanying Yuanying; Zhipeng Gao; Jingyuan Chen
errShare
errSave
Styler: learning formatting conventions to repair Checkstyle violations
err2022-08-06
err7
errOAAI
errLoriot, Benjamin; Madeiral, Fernanda; Monperrus, Martin
errShare
errSave
Evolutionary optimization of model merging recipes
err2025-01-27
err1
errOAAI
errAkiba, Takuya; Shing, Makoto; Tang, Yujin; Sun, Qi; Ha, David
errShare
errSave
researcher View more