paper-with-me

홈 › Papers

IFEvalCode: Controlled Code Generation

2025-07-30 · Jian Yang, Wei Zhang, Shukai Liu, Linzheng Chai, Yingshui Tan, Jiaheng Liu, Ge Zhang, Wangchunshu Zhou, Guanglin Niu, Zhoujun Li, Binyuan Hui, Junyang Lin arxiv

Code large language models (Code LLMs) have made significant progress in code generation by translating natural language descriptions into functional code; however, real-world applications often demand stricter adherence to detailed requirements such as coding style, line count, and structural constraints, beyond mere correctness. To address this, the paper introduces forward and backward constraints generation to improve the instruction-following capabilities of Code LLMs in controlled code generation, ensuring outputs align more closely with human-defined guidelines. The authors further present IFEvalCode, a multilingual benchmark comprising 1.6K test samples across seven programming languages (Python, Java, JavaScript, TypeScript, Shell, C++, and C#), with each sample featuring both Chinese and English queries. Unlike existing benchmarks, IFEvalCode decouples evaluation into two metrics: correctness (Corr.) and instruction-following (Instr.), enabling a more nuanced assessment. Experiments on over 40 LLMs reveal that closed-source models outperform open-source ones in controllable code generation and highlight a significant gap between the models' ability to generate correct code versus code that precisely follows instructions.

📄 PDF Abstract BibTeX arXiv:2507.22462

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

IntentCoding: Amplifying User Intent in Code Generation

2026-01-20 · Zheng Fang, Yihong Dong, Lili Mou, Dongming Jin 외 arxiv

Large Language Models (LLMs) have shown strong capabilities in code generation, but their adherence to fine-grained user intent with multiple constraints remains a significant challenge. Our empirical analysis reveals tw…

Code Generation

Controlled Text Generation Using Dictionary Prior in Variational Autoencoders

2022-05-01 · Findings (ACL) 2022 5 · Xianghong Fang, Jian Li, Lifeng Shang, Xin Jiang 외

While variational autoencoders (VAEs) have been widely applied in text generation tasks, they are troubled by two challenges: insufficient representation capacity and poor controllability. The former results from the pos…

Contrastive LearningLanguage ModelingLanguage ModellingRepresentation Learning+1

LiFi: Lightweight Controlled Text Generation with Fine-Grained Control Codes

2024-02-10 · Chufan Shi, Deng Cai, Yujiu Yang

In the rapidly evolving field of text generation, the demand for more precise control mechanisms has become increasingly apparent. To address this need, we present a novel methodology, LIFI, which offers a lightweight ap…

AttributeLanguage ModelingLanguage ModellingText Generation

Rhetorically Controlled Encoder-Decoder for Modern Chinese Poetry Generation

2019-07-01 · ACL 2019 7 · Zhi-Qiang Liu, Zuohui Fu, Jie Cao, Gerard de Melo 외

Rhetoric is a vital element in modern poetry, and plays an essential role in improving its aesthetics. However, to date, it has not been considered in research on automatic poetry generation. In this paper, we propose a …

Decoder

Controlled Text Generation using T5 based Encoder-Decoder Soft Prompt Tuning and Analysis of the Utility of Generated Text in AI

2022-12-06 · Damith Chamalke Senadeera, Julia Ive

Controlled text generation is a very important task in the arena of natural language processing due to its promising applications. In order to achieve this task we mainly introduce the novel soft prompt tuning method of …

DecoderText Generation