paper-with-me

홈 › Papers

CodeHacker: Automated Test Case Generation for Detecting Vulnerabilities in Competitive Programming Solutions

2026-02-23 · Jingwei Shi, Xinxiang Yin, Jing Huang, Jinman Zhao, Shengyu Tao arxiv

The evaluation of Large Language Models (LLMs) for code generation relies heavily on the quality and robustness of test cases. However, existing benchmarks often lack coverage for subtle corner cases, allowing incorrect solutions to pass. To bridge this gap, we propose CodeHacker, an automated agent framework dedicated to generating targeted adversarial test cases that expose latent vulnerabilities in program submissions. Mimicking the hack mechanism in competitive programming, CodeHacker employs a multi-strategy approach, including stress testing, anti-hash attacks, and logic-specific targeting to break specific code submissions. To ensure the validity and reliability of these attacks, we introduce a Calibration Phase, where the agent iteratively refines its own Validator and Checker via self-generated adversarial probes before evaluating contestant code.Experiments demonstrate that CodeHacker significantly improves the True Negative Rate (TNR) of existing datasets, effectively filtering out incorrect solutions that were previously accepted. Furthermore, generated adversarial cases prove to be superior training data, boosting the performance of RL-trained models on benchmarks like LiveCodeBench.

📄 PDF Abstract BibTeX arXiv:2602.20213

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

Automated Test Generation to Detect Individual Discrimination in AI Models

2018-09-10 · Aniya Agarwal, Pranay Lohia, Seema Nagar, Kuntal Dey 외

Dependability on AI models is of utmost importance to ensure full acceptance of the AI systems. One of the key aspects of the dependable AI system is to ensure that all its decisions are fair and not biased towards any i…

CoCoEvo: Co-Evolution of Programs and Test Cases to Enhance Code Generation

2025-02-15 · Kefan Li, Hongyue Yu, Tingyu Guo, Shijie Cao 외

Large Language Models (LLMs) have shown remarkable performance in automated code generation. However, existing approaches often rely heavily on pre-defined test cases, which become impractical in scenarios where such cas…

Code Generation

DeepEvolution: A Search-Based Testing Approach for Deep Neural Networks

2019-09-05 · Houssem Ben Braiek, Foutse khomh

The increasing inclusion of Deep Learning (DL) models in safety-critical systems such as autonomous vehicles have led to the development of multiple model-based DL testing techniques. One common denominator of these test…

Autonomous VehiclesDiversityQuantization

RTL-BenchMT: Dynamic Maintenance of RTL Generation Benchmark Through Agent-Assisted Analysis and Revision

2026-05-15 · Jing Wang, Shang Liu, Hangan Zhou, Zhiyao Xie arxiv

This paper introduces RTL-BenchMT, an agentic framework for dynamically maintaining RTL generation benchmarks. Large Language Models (LLMs) assisted automated RTL generation is one of the most important directions in EDA…

No Offense Taken: Eliciting Offensiveness from Language Models

2023-10-02 · Anugya Srivastava, Rahul Ahuja, Rohith Mukku

This work was completed in May 2022. For safe and reliable deployment of language models in the real world, testing needs to be robust. This robustness can be characterized by the difficulty and diversity of the test cas…

DiversityRed Teaming