TensorX
返回文献探索

Paper · arXiv 2504.14655

LeetCodeDataset: A Temporal Dataset for Robust Evaluation and Efficient Training of Code LLMs

Yunhui Xia, Wei Shen, Yan Wang, Jason Klein Liu, Huifeng Sun, Siyue Wu, Jian Hu, Xiaolong Xu

21 upvotesApril 20, 2025arXiv 预印本
AI 摘要

LeetCodeDataset provides a benchmark for evaluating and training code-generation models with reasoning-focused coding tasks and supports efficient supervised fine-tuning.

code-generation modelsreasoning-focused codingself-contained training testbedsrich metadatabroad coveragetemporal splitssupervised fine-tuningreasoning modelsmodel-generated solutions

Abstract

We introduce LeetCodeDataset, a high-quality benchmark for evaluating and training code-generation models, addressing two key challenges in LLM research: the lack of reasoning-focused coding benchmarks and self-contained training testbeds. By curating LeetCode Python problems with rich metadata, broad coverage, 100+ test cases per problem, and temporal splits (pre/post July 2024), our dataset enables contamination-free evaluation and efficient supervised fine-tuning (SFT). Experiments show reasoning models significantly outperform non-reasoning counterparts, while SFT with only 2.6K model-generated solutions achieves performance comparable to 110K-sample counterparts. The dataset and evaluation framework are available on Hugging Face and Github.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
LeetCodeDataset: A Temporal Dataset for Robust Evaluation and Efficient Training of Code LLMs | TensorX