LogiCase: Effective Test Case Generation from Logical Description in Competitive Programming
Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 7742-7750.
https://doi.org/10.24963/ijcai.2025/861
Keywords
- Natural Language Processing: NLP: Language models
- Multidisciplinary Topics and Applications: MTA: Software engineering
Abstract
Automated Test Case Generation (ATCG) is crucial for evaluating software reliability, particularly in competitive programming where robust algorithm assessments depend on diverse and accurate test cases. However, existing ATCG methods often fail to meet complex specifications or generate effective corner cases, limiting their utility. In this work, we introduce Context-Free Grammars with Counters (CCFGs), a formalism that captures both syntactic and semantic structures in input specifications. Using a fine-tuned CodeT5 model, we translate natural language input specifications into CCFGs, enabling the systematic generation of high-quality test cases. Experiments on the CodeContests dataset demonstrate that CCFG-based test cases outperform baseline methods in identifying incorrect algorithms, achieving significant gains in validity and effectiveness. Our approach provides a scalable and reliable grammar-driven framework for enhancing automated competitive programming evaluations.
@inproceedings{ijcai2025p861,
title = {LogiCase: Effective Test Case Generation from Logical Description in Competitive Programming},
author = {Sung, Sicheol and Aditi and Kim, Dogyu and Han, Yo-Sub and Ko, Sang-Ki},
booktitle = {Proceedings of the Thirty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-25}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {James Kwok},
pages = {7742--7750},
year = {2025},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2025/861},
url = {https://doi.org/10.24963/ijcai.2025/861},
}
TY - CPAPER TI - LogiCase: Effective Test Case Generation from Logical Description in Competitive Programming AU - Sung, Sicheol AU - Aditi AU - Kim, Dogyu AU - Han, Yo-Sub AU - Ko, Sang-Ki T2 - Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2025 SP - 7742 EP - 7750 DO - 10.24963/ijcai.2025/861 UR - https://doi.org/10.24963/ijcai.2025/861 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: