Chongyang Tao

Chongyang Tao

Auto-generated profile, based on publicly available information

Chongyang Tao

Beihang University

Research Focus & Metrics

Academic Career Length

9Years (2018-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
1 January 2024
Verified
Conference Paper
Open access
PDF file
XXXiaohan Xu
Xiaohan Xu
CTChongyang Tao
Chongyang Tao
TSTao Shen
Tao Shen
CXCan Xu
Can Xu
HXHongbo Xu
Hongbo Xu
SMShuai Ma
Shuai Ma
Xiaohan Xu, Chongyang Tao, Tao Shen, Can Xu, Hongbo Xu, Guodong Long, Jian-Guang Lou, Shuai Ma. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing. 2024.

28 February 2025 in ACM Transactions on Software Engineering and Methodology
Verified
Journal Article
Open access
JLJia Li
Jia Li
CTChongyang Tao
Chongyang Tao
GLGe Li
Ge Li
ZJZhi Jin
Zhi Jin
HZHuangzhao Zhang
Huangzhao Zhang
FLFang Liu
Fang Liu
Large Language Models (LLMs) have shown impressive In-Context Learning (ICL) ability in code generation. LLMs take a prompt context consisting of a few demonstration examples and a new requirement as input, and output new programs without any parameter update. Existing studies have found that the performance of ICL-based code generation heavily depends on the quality of demonstration examples and thus arises research on selecting demonstration examples: given a new requirement, a few demonstration examples are selected from a candidate pool, where LLMs are expected to learn the pattern hidden in these selected demonstration examples. Existing approaches are mostly based on heuristics or randomly selecting examples. However, the distribution of randomly selected examples usually varies greatly, making the performance of LLMs less robust. The heuristics retrieve examples by only considering textual similarities of requirements, leading to sub-optimal performance. To fill this gap, we propose a L arge language model- A ware selection approach for I n-context- L earning-based code generation named LAIL. LAIL uses LLMs themselves to select examples. It requires LLMs themselves to label a candidate example as a positive example or a negative example for a requirement. Positive examples are helpful for LLMs to generate correct programs, while negative examples are trivial and should be ignored. Based on the labeled positive and negative data, LAIL trains a model-aware retriever to learn the preference of LLMs and select demonstration examples that LLMs need. During the inference, given a new requirement, LAIL uses the trained retriever to select a few examples and feed them into LLMs to generate desired programs. We apply LAIL to four widely used LLMs and evaluate it on five code generation datasets. Extensive experiments demonstrate that LAIL outperforms the state-of-the-art (SOTA) baselines by 11.58%, 3.33%, and 5.07% on CodeGen-Multi-16B, 1.32%, 2.29%, and 1.20% on CodeLlama-34B, and achieves 4.38%, 2.85%, and 2.74% improvements on Text-davinci-003 in terms of Pass@1 at MBJP, MBPP, and MBCPP, respectively. In addition to function-level code generation, LAIL improves the performance of LLMs on DevEval, a repository-level code generation dataset, which achieves 10.04%, 8.12%, and 4.63% improvements compared to the SOTA baselines at Pass@1, 3, and 5 on CodeLlama-7B. Human evaluation further verifies that the generated programs of LAIL are superior in correctness, code quality, and maintainability. Besides, LAIL has satisfactory transferability across different LLMs and datasets, where the retriever learned on one LLM (dataset) can be transferred to other LLMs (datasets).

1 January 2024
Verified
Conference Paper
Open access
PDF file
ZLZhen Li
Zhen Li
XXXiaohan Xu
Xiaohan Xu
TSTao Shen
Tao Shen
CXCan Xu
Can Xu
JGJia-Chen Gu
Jia-Chen Gu
SMShuai Ma
Shuai Ma
Zhen Li, Xiaohan Xu, Tao Shen, Can Xu, Jia-Chen Gu, Yuxuan Lai, Chongyang Tao, Shuai Ma. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing. 2024.

1 January 2022
Verified
Conference Paper
Open access
PDF file
QWQiyu Wu
Qiyu Wu
CTChongyang Tao
Chongyang Tao
TSTao Shen
Tao Shen
CXCan Xu
Can Xu
XGXiubo Geng
Xiubo Geng
DJDaxin Jiang
Daxin Jiang
Qiyu Wu, Chongyang Tao, Tao Shen, Can Xu, Xiubo Geng, Daxin Jiang. Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing. 2022.

1 January 2021
Verified
Conference Paper
Open access
PDF file
ZLZujie Liang
Zujie Liang
HHHuang Hu
Huang Hu
CXCan Xu
Can Xu
CTChongyang Tao
Chongyang Tao
XGXiubo Geng
Xiubo Geng
DJDaxin Jiang
Daxin Jiang
Zujie Liang, Huang Hu, Can Xu, Chongyang Tao, Xiubo Geng, Yining Chen, Fan Liang, Daxin Jiang. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers). 2021.

1 January 2018
Verified
Conference Paper
Open access
HHHu Huang
Hu Huang
XWXianchao Wu
Xianchao Wu
BLBingfeng Luo
Bingfeng Luo
CTChongyang Tao
Chongyang Tao
CXCan Xu
Can Xu
ZCZhan Chen
Zhan Chen