Better Datasets Start From RefineLab: Automatic Optimization for High-Quality Dataset Refinement

Xiaonan Luo, Yue Huang, Ping He, Xiangliang ZhangarXiv 2025 · DOI

Introduction

In the current landscape of Large Language Models (LLMs), benchmarks such as MMLU and GSM8K serve as the primary yardsticks for intelligence. However, these "gold-standard" datasets often carry significant "quality debt." They frequently suffer from topic gaps (e.g., the MMLU College Chemistry subset lacks biochemistry), difficulty skews that create "ceiling effects" for top-tier models, and factual errors that can lead to misleading evaluation results. Manual refinement is prohibitively slow, and naive LLM-based generation often lacks the fine-grained control necessary to fix specific distributional imbalances without incurring massive computational costs.

Methodology: The RefineLab Framework

RefineLab is the first LLM-driven framework designed to automatically transform raw or flawed Question-Answer (QA) datasets into high-quality benchmarks. It treats dataset refinement as a constrained optimization problem, specifically utilizing Integer Linear Programming (ILP) to maximize quality gains within a strict token budget.

The RefineLab framework pipeline, showing the modular approach to dataset refinement using an ILP-based Assignment Engine.

The framework follows a structured pipeline consisting of three primary components:

  1. Refinement Operators: These include a Coverage Refiner for topic expansion and a Difficulty Calibrator. The latter employs "Distractor Rewriting," a cost-effective method that modifies incorrect options to increase the cognitive load of a question without the expense of full generation.
  2. The Assignment Engine: Acting as the system's "brain," this engine estimates the quality gain and token cost for every possible operation on every sample. It then solves an ILP problem to select the optimal set of edits that maximize overall dataset quality while staying under a user-defined budget.
  3. The Validator: To ensure factual integrity and prevent hallucinations, RefineLab uses a two-pronged approach: Program-of-Thought (PoT) for mathematical rigor and Retrieval-Augmented Generation (RAG) against Wikipedia for factual grounding.

Experimental Results

RefineLab was evaluated across five diverse benchmarks: MMLU, RACE, GSM8K, OpenbookQA, and HumanEval. The results demonstrate that strategic editing is often more effective and cheaper than blind generation.

Impact of RefineLab on topic coverage (left) and difficulty distribution (right), showing the filling of gaps and increased challenge levels.

Distributional Alignment and Leaderboard Clarity

RefineLab reduced the Jensen-Shannon Divergence (JSD) from target distributions by over 90% for coverage and over 70% for difficulty across multiple datasets. A striking finding was the framework's ability to "stretch" the leaderboard. On the original GSM8K, the top five models were clustered within a 2.2% accuracy range. After RefineLab increased the difficulty and coverage, that spread widened to 11.8%, revealing true capability gaps that were previously obscured.

High Fidelity and Fine-Tuning Performance

Human evaluation confirmed that RefineLab maintains high accuracy, with an overall error rate typically below 4% and a successful correction ratio of over 94% for erroneous samples. Furthermore, using refined data for fine-tuning yielded significant gains; for example, a Llama-3.1-8B model fine-tuned on refined GSM8K data saw its accuracy jump from 58.7% to 65.6%.

Conclusion

RefineLab offers a scalable, budget-aware solution for the growing need for high-quality evaluation data. By formulating refinement as an optimization problem, researchers can achieve specific quality targets with high cost-efficiency—typically around $0.03$ per QA sample interaction. While currently optimized for textual multiple-choice questions, future iterations aim to incorporate long-form answers and multi-modal capabilities.

Summary updated

BibTeX
@misc{luo2025better,
  author = {Xiaonan Luo and Yue Huang and Ping He and Xiangliang Zhang},
  title = {{Better Datasets Start From RefineLab: Automatic Optimization for High-Quality Dataset Refinement}},
  year = {2025},
  eprint = {2511.06530},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.06530},
}
Figure