{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,24]],"date-time":"2026-08-24T09:34:10Z","timestamp":1787564050057,"version":"build-2736575974"},"reference-count":39,"publisher":"Association for Computing Machinery (ACM)","issue":"FSE","license":[{"start":{"date-parts":[[2024,7,12]],"date-time":"2024-07-12T00:00:00Z","timestamp":1720742400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"Ccf","award":["2146443?2008905"],"award-info":[{"award-number":["2146443?2008905"]}]},{"name":"cns","award":["2135625?1750263"],"award-info":[{"award-number":["2135625?1750263"]}]},{"name":"cps","award":["2038727"],"award-info":[{"award-number":["2038727"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Softw. Eng."],"published-print":{"date-parts":[[2024,7,12]]},"abstract":"<jats:p>In recent times, a plethora of Large Code Generation Models (LCGMs) have been proposed, showcasing significant potential in assisting developers with complex programming tasks. Within the surge of LCGM proposals, a critical aspect of code generation research involves effectively benchmarking the programming capabilities of models. Benchmarking LCGMs necessitates the creation of a set of diverse programming problems, and each problem comprises the prompt (including the task description), canonical solution, and test inputs. The existing methods for constructing such a problem set can be categorized into two main types: manual methods and perturbation-based methods. However, manual methods demand high effort and lack scalability, while also risking data integrity due to LCGMs\u2019 potentially contaminated data collection, and perturbation-based approaches mainly generate semantically homogeneous problems with the same canonical solutions and introduce typos that can be easily auto-corrected by IDE, making them ineffective and unrealistic. Addressing the aforementioned limitations presents several challenges: (1) How to automatically generate semantically diverse Canonical Solutions to enable comprehensive benchmarking on the models, (2) how to ensure long-term data integrity to prevent data contamination, and (3) how to generate natural and realistic programming problems. To tackle the first challenge, we draw key insights from viewing a program as a series of mappings from the input to the output domain. These mappings can be transformed, split, reordered, or merged to construct new programs. Based on this insight, we propose programming problem merging, where two existing programming problems are combined to create new ones. In addressing the second challenge, we incorporate randomness into our programming problem generation process. Our tool can probabilistically guarantee no data repetition across two random trials. To tackle the third challenge, we propose the concept of a Lambda Programming Problem, comprising a concise one-sentence task description in natural language accompanied by a corresponding program implementation. Our tool ensures the program prompt is grammatically correct. Additionally, the tool leverages return value type analysis to verify the correctness of newly created Canonical Solutions. In our empirical evaluation, we utilize our tool on two widely-used datasets and compare it against nine baseline methods using eight code generation models. The results demonstrate the effectiveness of our tool in generating more challenging, diverse, and natural programming problems, compared to the baselines.<\/jats:p>","DOI":"10.1145\/3643780","type":"journal-article","created":{"date-parts":[[2024,7,12]],"date-time":"2024-07-12T10:22:09Z","timestamp":1720779729000},"page":"1194-1215","source":"Crossref","is-referenced-by-count":3,"title":["PPM: Automated Generation of Diverse Programming Problems for Benchmarking Code Generation Models"],"prefix":"10.1145","volume":"1","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-5035-3398","authenticated-orcid":false,"given":"Simin","family":"Chen","sequence":"first","affiliation":[{"name":"University of Texas, Dallas, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0001-6344-2477","authenticated-orcid":false,"given":"XiaoNing","family":"Feng","sequence":"additional","affiliation":[{"name":"Taiyuan University of Technology, Taiyuan, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-8779-6528","authenticated-orcid":false,"given":"Xiaohong","family":"Han","sequence":"additional","affiliation":[{"name":"Taiyuan University of Technology, Taiyuan, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-1190-522X","authenticated-orcid":false,"given":"Cong","family":"Liu","sequence":"additional","affiliation":[{"name":"University of California, Riverside, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5338-7347","authenticated-orcid":false,"given":"Wei","family":"Yang","sequence":"additional","affiliation":[{"name":"University of Texas, Dallas, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2024,7,12]]},"reference":[{"key":"e_1_3_1_2_2","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2301.03988"},{"key":"e_1_3_1_3_2","volume-title":"7th International Conference on Learning Representations, ICLR 2019","author":"Alon Uri","year":"2019","unstructured":"Uri Alon, Shaked Brody, Omer Levy, and Eran Yahav. 2019. code2seq: Generating Sequences from Structured Representations of Code. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net. https:\/\/openreview.net\/forum?id=H1gKYo09tX"},{"key":"e_1_3_1_4_2","doi-asserted-by":"publisher","unstructured":"Uri Alon Meital Zilberstein Omer Levy and Eran Yahav. 2019. code2vec: learning distributed representations of code. Proc. ACM Program. Lang. 3 POPL (2019) 40:1-40:29. https:\/\/doi.org\/10.1145\/3290353 10.1145\/3290353","DOI":"10.1145\/3290353"},{"key":"e_1_3_1_5_2","volume-title":"The Eleventh International Conference on Learning Representations","author":"Athiwaratkun Ben","year":"2023","unstructured":"Ben Athiwaratkun, Sanjay Krishna Gouda, Zijian Wang, Xiaopeng Li, Yuchen Tian, Ming Tan, Wasi Uddin Ahmad, Shiqi Wang, Qing Sun, Mingyue Shang, Sujan Kumar Gonugondla, Hantian Ding, Varun Kumar, Nathan Fulton, Arash Farahani, Siddhartha Jain, Robert Giaquinto, Haifeng Qian, Murali Krishna Ramanathan, and Ramesh Nallapati. 2023. Multi-lingual Evaluation of Code Generation Models. In The Eleventh International Conference on Learning Representations, ICLR2023, Kigali, Rwanda, May 1-5, 2023. https:\/\/OpenReview.net. https:\/\/openreview.net\/pdf?id=Bo7eeXm6An8"},{"key":"e_1_3_1_6_2","first-page":"arXiv:2108.0773","article-title":"Program Synthesis with Large Language Models","author":"Austin Jacob","year":"2021","unstructured":"Jacob Austin, Augustus Odena, Maxwell I. Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie J. Cai, Michael Terry, Quoc V. Le, and Charles Sutton. 2021. Program Synthesis with Large Language Models. CoRR abs\/2108.07732 (2021). arXiv:2108.07732https:\/\/arxiv.org\/abs\/2108.07732","journal-title":"CoRR abs\/2108.07732 (2021)"},{"key":"e_1_3_1_7_2","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2209.02128"},{"key":"e_1_3_1_8_2","unstructured":"Tom B. Brown Benjamin Mann Nick Ryder Melanie Subbiah Jared Kaplan Prafulla Dhariwal Arvind Neelakantan Pranav Shyam Girish Sastry Amanda Askell Sandhini Agarwal Ariel Herbert-Voss Gretchen Krueger Tom Henighan Rewon Child Aditya Ramesh Daniel M. Ziegler Jeffrey Wu Clemens Winter Christopher Hesse Mark Chen Eric Sigler Mateusz Litwin Scott Gray Benjamin Chess Jack Clark Christopher Berner Sam McCandlish Alec Radford Ilya Sutskever and Dario Amodei. 2020. Language Models are Few-Shot Learners. In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020 NeurIPS 2020 December 6-12 2020 virtual Hugo Larochelle Marc'Aurelio Ranzato Raia Hadsell Maria-Florina Balcan and Hsuan-Tien Lin (Eds.). https:\/\/proceedings.neurips.cc\/paper\/2020\/hash\/1457c0d6bfcb4967418bfb8ac142f64a-Abstract.html"},{"key":"e_1_3_1_9_2","article-title":"Exploring Software Naturalness through Neural Language Models","author":"Buratti Luca","year":"2020","unstructured":"Luca Buratti, Saurabh Pujar, Mihaela A. Bornea, J. Scott McCarley, Yunhui Zheng, Gaetano Rossiello, Alessandro Morari, Jim Laredo, Veronika Thost, Yufan Zhuang, and Giacomo Domeniconi. 2020. Exploring Software Naturalness through Neural Language Models. CoRR abs\/2006.12641 (2020). arXiv:2006.12641 https:\/\/arxiv.org\/abs\/2006.12641","journal-title":"CoRR abs\/2006.12641 (2020)"},{"key":"e_1_3_1_10_2","doi-asserted-by":"crossref","unstructured":"Earl T Campbell . 2019. A theory of single-shot error correction for adversarial noise. Quantum Science and Technology4 2 (2019) 025006.","DOI":"10.1088\/2058-9565\/aafc8f"},{"key":"e_1_3_1_11_2","first-page":"arXiv:2107.0337","article-title":"Evaluating Large Language Models Trained on Code","author":"Chen Mark","year":"2021","unstructured":"Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique PondedeOliveira Pinto, Jared Kaplan, Harrison Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Joshua Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. 2021. Evaluating Large Language Models Trained on Code. CoRR abs\/2107.03374 (2021). arXiv:2107.03374https:\/\/arxiv.org\/abs\/2107.03374","journal-title":"CoRR abs\/2107.03374 (2021)"},{"key":"e_1_3_1_12_2","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR52729.2023.02355"},{"key":"e_1_3_1_13_2","doi-asserted-by":"publisher","unstructured":"Simin Chen Hamed Khanpour Cong Liu and Wei Yang. 2022. Learning to Reverse DNNs from AI Programs Automatically. CoRR abs\/2205.10364 (2022). https:\/\/doi.org\/10.48550\/ARXIV.2205.10364 10.48550\/ARXIV.2205.10364 https:\/\/arxiv.org\/abs\/2205.10364","DOI":"10.48550\/ARXIV.2205.10364"},{"key":"e_1_3_1_14_2","doi-asserted-by":"publisher","DOI":"10.1145\/3540250.3549102"},{"key":"e_1_3_1_15_2","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR52688.2022.01493"},{"key":"e_1_3_1_16_2","doi-asserted-by":"publisher","unstructured":"Jacob Devlin Ming-Wei Chang Kenton Lee and Kristina Toutanova. 2019. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies NAACL-HLT 2019 Minneapolis MN USA June 2-7 2019 Volume 1 (Long and Short Papers) Jill Burstein Christy Doran and Thamar Solorio (Eds.). Association for Computational Linguistics 4171-4186. https:\/\/doi.org\/10.18653\/V1\/N19-1423 10.18653\/V1\/N19-1423","DOI":"10.18653\/V1\/N19-1423"},{"key":"e_1_3_1_17_2","doi-asserted-by":"publisher","DOI":"10.1007\/S10664-022-10118-5"},{"key":"e_1_3_1_18_2","doi-asserted-by":"publisher","DOI":"10.18653\/V1\/2020.FINDINGS-EMNLP.139"},{"key":"e_1_3_1_19_2","volume-title":"The Eleventh International Conference on Learning Representations","author":"Fried Daniel","year":"2023","unstructured":"Daniel Fried, Armen Aghajanyan, Jessy Lin, Sida Wang, Eric Wallace, Freda Shi, Ruiqi Zhong, Scott Yih, Luke Zettlemoyer, and Mike Lewis. 2023. InCoder: A Generative Model for Code Infilling and Synthesis. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. http:\/\/OpenReview.nethttps:\/\/openreview.net\/pdf?id=hQwb-lbM6EL"},{"key":"e_1_3_1_20_2","volume-title":"9th International Conference on Learning Representations","author":"Guo Daya","year":"2021","unstructured":"Daya Guo, Shuo Ren, Shuai Lu, Zhangyin Feng, Duyu Tang, Shujie Liu, Long Zhou, Nan Duan, Alexey Svyatkovskiy, ShengyuFu, Michele Tufano, Shao Kun Deng, Colin B. Clement, Dawn Drain, Neel Sundaresan, Jian Yin, Daxin Jiang, and Ming Zhou. 2021. GraphCodeBERT: Pre-training Code Representations with Data Flow. In 9th International Conference on Learning Representations, ICLR2021, Virtual Event, Austria, May 3-7, 2021. http:\/\/OpenReview.net. https:\/\/openreview.net\/forum?id=jLoC4ez43PZ"},{"key":"e_1_3_1_21_2","doi-asserted-by":"publisher","DOI":"10.1109\/SANER53432.2022.00070"},{"key":"e_1_3_1_22_2","doi-asserted-by":"publisher","DOI":"10.5555\/3524938.3525412"},{"key":"e_1_3_1_23_2","doi-asserted-by":"publisher","unstructured":"Jia Li Zhuo Li Huangzhao Zhang Ge Li Zhi Jin Xing Hu and Xin Xia. 2022. Poison Attack and Defense on Deep Source Code Processing Models. CoRR abs\/2210.17029 (2022). https:\/\/doi.org\/10.48550\/ARXIV.2210.17029 10.48550\/ARXIV.2210.17029 arXivhttps:\/\/arxiv.org\/abs\/2210.17029","DOI":"10.48550\/ARXIV.2210.17029"},{"key":"e_1_3_1_24_2","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2203.07814"},{"key":"e_1_3_1_25_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE48619.2023.00181"},{"key":"e_1_3_1_26_2","doi-asserted-by":"publisher","DOI":"10.18653\/V1\/2020.ACL-MAIN.441"},{"key":"e_1_3_1_27_2","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2305.02309"},{"key":"e_1_3_1_28_2","volume-title":"The Eleventh International Conference on Learning Representations","author":"Nijkamp Erik","year":"2023","unstructured":"Erik Nijkamp, Bo Pang, Hiroaki Hayashi, LifuTu, Huan Wang, Yingbo Zhou, Silvio Savarese, and Caiming Xiong. 2023. CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis. In The Eleventh International Conference on Learning Representations, ICLR2023, Kigali, Rwanda, May 1-5, 2023. http:\/\/OpenReview.net. https:\/\/openreview.net\/pdf?id=iaYcJKpY2B_"},{"key":"e_1_3_1_29_2","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2303.08774"},{"key":"e_1_3_1_30_2","article-title":"Language models are unsupervised multitask learners","author":"Radford Alec","year":"2019","unstructured":"Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al.2019. Language models are unsupervised multitask learners. OpenAI blog 1, 8 (2019), 9.","journal-title":"OpenAI blog 1, 8 (2019)"},{"key":"e_1_3_1_31_2","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2309.08632"},{"key":"e_1_3_1_32_2","doi-asserted-by":"publisher","DOI":"10.1145\/3368089.3417058"},{"key":"e_1_3_1_33_2","unstructured":"Boxin Wang Chejian Xu Shuohang Wang Zhe Gan Yu Cheng Jianfeng Gao Ahmed Hassan Awadallah and Bo Li. 2021. Adversarial GLUE: A Multi-Task Benchmark for Robustness Evaluation of Language Models. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks 1 NeurIPS Datasets and Benchmarks 2021 December 2021 virtual Joaquin Vanschoren and Sai-Kit Yeung (Eds.). %20https:\/\/datasets-benchmarks-proceedings %20https:\/\/datasets-benchmarks-proceedings.https:\/\/datasets-benchmarks-proceedings.neurips.cc\/paper\/2021\/hash\/335f5352088d7d9bf74191e006d8e24c-Abstract-round2.html"},{"key":"e_1_3_1_34_2","doi-asserted-by":"publisher","DOI":"10.18653\/V1\/2023.ACL-LONG.773"},{"key":"e_1_3_1_35_2","doi-asserted-by":"publisher","DOI":"10.18653\/V1\/2021.EMNLP-MAIN.685"},{"key":"e_1_3_1_36_2","doi-asserted-by":"publisher","DOI":"10.1145\/3510003.3510146"},{"key":"e_1_3_1_37_2","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2301.02496"},{"key":"e_1_3_1_38_2","doi-asserted-by":"publisher","unstructured":"Noam Yefet Uri Alon and Eran Yahav. 2020. Adversarial examples for models of code. Proc. ACM Program. Lang. 4 OOPSLA (2020) 162:1-162:30. https:\/\/doi.org\/10.1145\/3428230 10.1145\/3428230","DOI":"10.1145\/3428230"},{"key":"e_1_3_1_39_2","doi-asserted-by":"publisher","DOI":"10.1145\/3501256"},{"key":"e_1_3_1_40_2","doi-asserted-by":"publisher","DOI":"10.18653\/V1\/2023.EACL-MAIN.77"}],"container-title":["Proceedings of the ACM on Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3643780","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3643780","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,2,4]],"date-time":"2026-02-04T07:53:31Z","timestamp":1770191611000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3643780"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,7,12]]},"references-count":39,"journal-issue":{"issue":"FSE","published-print":{"date-parts":[[2024,7,12]]}},"alternative-id":["10.1145\/3643780"],"URL":"https:\/\/doi.org\/10.1145\/3643780","relation":{},"ISSN":["2994-970X"],"issn-type":[{"value":"2994-970X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,7,12]]}}}