potentialpaper

How Many Code and Test Cases Are Enough? Evaluating Test Cases Generation from a Binary-Matrix Perspective

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 18:44 UTC · ad0a5bfb52c7 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,28 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "RomWar2kVN"
- }
- ],
- "title": "How Many Code and Test Cases Are Enough? Evaluating Test Cases Generation from a Binary-Matrix Perspective",
- "authors": [
- "Xianzhen Luo",
- "JinYang Huang",
- "Wenzhen Zheng",
- "Qingfu Zhu",
- "Mingzheng Xu",
- "Yiheng Xu",
- "YuanTao Fan",
- "Wanxiang Che"
- ],
- "abstract": "Evaluating test cases automatically generated by Large Language Models (LLMs) is a critical yet challenging task. \nExisting benchmarks often evaluate the exclusion ratio on large, unstructured collections of wrong codes, \nsuffering from high computational costs and score inflation.\nFurthermore, they inadvertently reward generators that detect common, trivial bugs, while failing to penalize their inability to identify rare yet critical faults.\nIn this work, we connect two fundamental questions: (1) What is the minimal set of wrong codes sufficient to represent the entire error space? and (2) What is the minimal set of test cases needed to distinguish them?\nWe introduce a novel framework that formalizes benchmark construction as finding an optimal diagnostic basis in a binary code-test matrix, where rows represent wrong codes and columns represent test case results.\nThe rank of this matrix specifies the minimal number of independent error patterns (wrong codes) and provides a tight upper bound on the number of test cases required for complete fault coverage.\nOur objective is to identify a basis of size equal to the matrix rank that maximizes internal diversity.\nTo tackle this NP-hard problem, we propose WrongSelect, an efficient approximation algorithm to select maximally diverse wrong codes.\nApplying this framework to millions of competitive programming submissions, we construct TC-Bench, a compact, diverse, and inflation-resistant benchmark. Extensive experiments show that even the most advanced test case generation methods achieve only ~60\\% exclusion rates on TC-Bench, exposing a significant gap in their diagnostic power and highlighting substantial room for future improvement.\nOur dataset is available at: https://huggingface.co/datasets/Luoberta/TC-Bench and our code is at: https://github.com/Luowaterbi/TC-Bench.",
- "year": 2026,
- "venue": "ICLR 2026",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "4c56ef81-a941-4d3a-8dbe-bd97df806537"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,18 @@
+{
+ "title": "How Many Code and Test Cases Are Enough? Evaluating Test Cases Generation from a Binary-Matrix Perspective",
+ "authors": [
+ "Xianzhen Luo",
+ "JinYang Huang",
+ "Wenzhen Zheng",
+ "Qingfu Zhu",
+ "Mingzheng Xu",
+ "Yiheng Xu",
+ "YuanTao Fan",
+ "Wanxiang Che"
+ ],
+ "abstract": "Evaluating test cases automatically generated by Large Language Models (LLMs) is a critical yet challenging task. \nExisting benchmarks often evaluate the exclusion ratio on large, unstructured collections of wrong codes, \nsuffering from high computational costs and score inflation.\nFurthermore, they inadvertently reward generators that detect common, trivial bugs, while failing to penalize their inability to identify rare yet critical faults.\nIn this work, we connect two fundamental questions: (1) What is the minimal set of wrong codes sufficient to represent the entire error space? and (2) What is the minimal set of test cases needed to distinguish them?\nWe introduce a novel framework that formalizes benchmark construction as finding an optimal diagnostic basis in a binary code-test matrix, where rows represent wrong codes and columns represent test case results.\nThe rank of this matrix specifies the minimal number of independent error patterns (wrong codes) and provides a tight upper bound on the number of test cases required for complete fault coverage.\nOur objective is to identify a basis of size equal to the matrix rank that maximizes internal diversity.\nTo tackle this NP-hard problem, we propose WrongSelect, an efficient approximation algorithm to select maximally diverse wrong codes.\nApplying this framework to millions of competitive programming submissions, we construct TC-Bench, a compact, diverse, and inflation-resistant benchmark. Extensive experiments show that even the most advanced test case generation methods achieve only ~60\\% exclusion rates on TC-Bench, exposing a significant gap in their diagnostic power and highlighting substantial room for future improvement.\nOur dataset is available at: https://huggingface.co/datasets/Luoberta/TC-Bench and our code is at: https://github.com/Luowaterbi/TC-Bench.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}