HumanEval's Memorization Trap: Benchmarking Bias Exposed
HumanEval scores are increasingly inflated because models have been trained on its publicly available problems and solutions since 2021, with studies finding 8-18% verbatim overlap with training data, measuring memorization over true reasoning.
The top 3
- HumanEval's Hidden Overlap: Up to 18% of Prompts Leaked to Training Data: Studies have revealed a significant data contamination issue, with 8-18% verbatim overlap between HumanEval's programming prompts and large pretraining datasets such as RedPajama-Data-1T and StarCoder-Data. This leakage artificially inflates model performance, as some models fine-tuned on undetected rephrased samples achieved pass@1 scores exceeding even GPT-4's reported levels.
- Beyond Memorization: HumanEval's Weak Tests Exposed Subtly Flawed Code: The original HumanEval benchmark, comprising 164 problems with an average of only 7.7 unit tests each, often allowed models to pass with subtly incorrect code. When the test suite was expanded significantly (e.g., 80 times more tests in HumanEval+), models' pass@k scores dropped by 19.3 to 28.9 percentage points, revealing that initial high scores were partly due to insufficient test coverage rather than robust reasoning.
- Top 3 Next-Gen Code Benchmarks Replacing HumanEval's Flaws: To address HumanEval's limitations, new benchmarks are emerging: LiveCodeBench continuously scrapes fresh competitive-programming problems monthly; SWE-bench features 2294 real-world GitHub issues for repository-level tasks; and HumanEval_T uses combinatorial test design with template tasks to generate novel problems, minimizing data leakage and assessing true generalization.
Sources
Open the full topic