paper-with-me

Papers

HardTests: Synthesizing High-Quality Test Cases for LLM Coding

2025-05-30 · Zhongmou He, Yee Man Choi, Kexun Zhang, Jiabao Ji, Junting Zhou, Dejia Xu, Ivan Bercovich, Aidan Zhang, Lei LI

Verifiers play a crucial role in large language model (LLM) reasoning, needed by post-training techniques such as reinforcement learning. However, reliable verifiers are hard to get for difficult coding problems, because a well-disguised wrong solution may only be detected by carefully human-written edge cases that are difficult to synthesize. To address this issue, we propose HARDTESTGEN, a pipeline for high-quality test synthesis using LLMs. With this pipeline, we curate a comprehensive competitive programming dataset HARDTESTS with 47k problems and synthetic high-quality tests. Compared with existing tests, HARDTESTGEN tests demonstrate precision that is 11.3 percentage points higher and recall that is 17.5 percentage points higher when evaluating LLM-generated code. For harder problems, the improvement in precision can be as large as 40 points. HARDTESTS also proves to be more effective for model training, measured by downstream code generation performance. We will open-source our dataset and synthesis pipeline at https://leililab.github.io/HardTests/.

📄 PDF Abstract BibTeX arXiv:2505.24098

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationLanguage ModelingLanguage ModellingLarge Language Model

Similar Papers 제목 키워드 기반

AutoCode: LLMs as Problem Setters for Competitive Programming

2025-09-29 · Shang Zhou, Zihan Zheng, Kaiyuan Liu, Zeyu Shen 외 arxiv

Writing competitive programming problems is exacting. Authors must: set constraints, input distributions, and edge cases that rule out shortcuts; target specific algorithms (e.g., max-flow, dynamic programming, data stru…

Klear-CodeTest: Scalable Test Case Generation for Code Reinforcement Learning

2025-08-07 · Jia Fu, Xinyu Yang, Hongzhi Zhang, Yahui Liu 외 arxiv

Precise, correct feedback is crucial for effectively training large language models (LLMs) in code reinforcement learning. However, synthesizing high-quality test cases remains a profoundly challenging and unsolved probl…

Reinforcement Learning

SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugs

2025-04-20 · Minh V. T. Pham, Huy N. Phan, Hoang N. Phan, Cuong Le Chi 외

Large language models (LLMs) are transforming automated program repair (APR) through agent-based approaches that localize bugs, generate patches, and verify fixes. However, the lack of high-quality, scalable training dat…

Program Repair

The Program Testing Ability of Large Language Models for Code

2023-10-09 · Weimin Xiong, Yiwen Guo, Hao Chen

Recent development of large language models (LLMs) for code like CodeX and CodeT5+ demonstrates tremendous promise in achieving code intelligence. Their ability of synthesizing code that completes a program for performin…

HumanEvalmbppProgram Synthesis

ML Algorithm Synthesizing Domain Knowledge for Fungal Spores Concentration Prediction

2023-09-23 · Md Asif Bin Syed, Azmine Toushik Wasi, Imtiaz Ahmed

The pulp and paper manufacturing industry requires precise quality control to ensure pure, contaminant-free end products suitable for various applications. Fungal spore concentration is a crucial metric that affects pape…

Time Series