Existing LLM-based automatic test generation methods mainly produce input and expected output pairs to categorize the intended behavior of correct programs. Although straightforward, these methods have limited diversity in generated tests and cannot provide enough debugging information. We propose HarnessLLM, a two-stage training pipeline that enables LLMs to write harness code for testing. Particularly, LLMs generate code that synthesizes inputs and validates the observed outputs, allowing complex test cases and flexible output validation such as invariant checking. To achieve this, we train LLMs with SFT followed by RLVR with a customized reward design. Experiments show that HarnessLLM outperforms input-output-based testing in bug finding and testing strategy diversity. HarnessLLM further benefits the code generation performance through test-time scaling with our generated test cases as inference-phase validation. Our code is available at https://github.com/UCSB-NLP-Chang/HarnessLLM.git.
AutoMedEval: Harnessing Language Models for Automatic Medical Capability Evaluation
East China Normal University(东华师范大学);Hasso Plattner Institute/University of Potsdam(哈索·platzer研究所/波茨坦大学);Tongji University(同济大学);Shanghai Jiao Tong University(上海交通大学);Shanghai AI Laboratory(上海人工智能实验室)
Learning to Evaluate Before Improving: Automatic Rubric Induction for Automatic Research Agents
Zhejiang University(浙江大学);University of Electronic Science and Technology of China(电子科技大学);Beijing University of Posts and Telecommunications(北京邮电大学);Zhejiang University of Technology(浙江工业大学)
Commonsense Generation and Evaluation for Dialogue Systems using Large Language Models
ETSI de Telecomunicación, Universidad Politécnica de Madrid(电信工程系,马德里理工大学);National University of Singapore(新加坡国立大学);Centre for Automation and Robotics UPM-CSIC(自动化与机器人中心 UPM-CSIC);Universidad Politécnica de Madrid(马德里理工大学)
tnGPS: Discovering Unknown Tensor Network Structure Search Algorithms via Large Language Models (LLMs)
School of Automation, Guangdong University of Technology(广东工业大学自动化学院);RIKEN Center for Advanced Intelligence Project (RIKEN-AIP)(理化学研究所先进智能中心);Tencent Inc.(腾讯公司)
Thinking More, Harnessing Better: State Machine Guided Harness Automatic Generation with Project Digestion and Workflow Decomposition
QI-ANXIN Technology Research Institute(奇安信技术研究院);Wuhan University(武汉大学);Information Support Force Engineering University(信息支援工程大学);Shandong University(山东大学)
Harness Handbook: Making Evolving Agent Harnesses Readable,Navigable, and Editable
Tencent(腾讯);Indiana University(印第安纳大学);University of Maryland, College Park(马里兰大学帕克分校);University of Georgia(佐治亚大学);National University of Singapore(新加坡国立大学)