Task-Driven Data Verification via Gradient Descent

Siavash Golkar, Kyunghyun ChoarXiv 2019

Abstract

We introduce a novel algorithm for the detection of possible sample corruption such as mislabeled samples in a training dataset given a small clean validation set. We use a set of inclusion variables which determine whether or not any element of the noisy training set should be included in the training of a network. We compute these inclusion variables by optimizing the performance of the network on the clean validation set via "gradient descent on gradient descent" based learning. The inclusion variables as well as the network trained in such a way form the basis of our methods, which we call Corruption Detection via Gradient Descent (CDGD). This algorithm can be applied to any supervised machine learning task and is not limited to classification problems. We provide a quantitative comparison of these methods on synthetic and real world datasets.

1. Introduction

In modern machine learning, data is often the primary bottleneck. While massive datasets can be collected via crowdsourcing platforms like Amazon Mechanical Turk, these datasets are frequently riddled with errors, such as incorrect labels. Manually verifying every single sample is prohibitively expensive and slow, creating a need for automated solutions.

Existing outlier detection methods often struggle to distinguish between truly corrupt samples and rare but valid "hard" samples. Furthermore, many of these methods are unsupervised and do not account for the specific task at hand. This work introduces a task-driven verification tool: an automated system designed to identify specific samples that are likely incorrect and should be prioritized for human review.

2. Methodology: Corruption Detection via Gradient Descent (CDGD)

The core innovation of this work is a bi-level optimization framework that treats the inclusion of each training sample as a learnable parameter. Instead of a binary selection, each sample $x_i$ in the noisy training set is assigned a continuous inclusion variable $\alpha_i$ between 0 and 1.

Proposed task-driven data verification workflow integrating machine learning-based corruption detection.

The process involves an inner and outer loop:

  • Inner Loop: A model is trained on the noisy dataset, with each sample's contribution to the loss weighted by its corresponding $\alpha_i$.
  • Outer Loop: The model's performance is evaluated on a small, verified "clean" validation set. The algorithm then performs gradient descent on the $\alpha$ values to optimize performance on this clean data.

This "gradient descent on gradient descent" approach allows the system to backpropagate through the training history to update sample weights. To ensure robustness, the authors re-randomize model weights at the start of each inner loop and employ truncated backpropagation to manage computational and memory overhead.

Two variants are proposed:

  • CDGD$_\alpha$: Directly uses learned weights to flag samples with $\alpha < 0.5$ as corrupt.
  • CDGD$_T$: Flags samples that a model trained with the learned weights still classifies incorrectly.

3. Experimental Evaluation

The CDGD method was evaluated across several benchmarks:

  • Concentric Spheres: A synthetic binary classification task in 2D, 15D, and 80D with simulated label noise.
  • MNIST & CIFAR-10: Standard image datasets with 10% and 40% of labels randomly flipped to test performance on real-world data structures.

4. Results and Analysis

CDGD consistently outperformed baselines, including models trained on the full noisy set or only the small clean set. The method proved particularly resilient in high-noise scenarios. For instance, on CIFAR-10 with 40% noise, CDGD$_T$ achieved a ~25% relative improvement in F1 score over the best baseline for identifying corrupt samples.

Quantitative evaluation of CDGD variants against baselines on synthetic datasets (15D and 80D) with varying noise levels.

Key insights from the results include:

  • High Precision: The method maintains high precision in flagging corrupt samples, which is crucial for minimizing the manual effort required from practitioners.
  • Dimensionality Robustness: Performance remained strong even as data dimensionality increased from 15D to 80D in synthetic experiments.
  • Task-Specific Cleaning: By optimizing for the final task, CDGD effectively identifies corruption that specifically hinders model performance.

5. Limitations and Future Work

While effective, bi-level optimization introduces significant computational overhead, requiring multiple training cycles. Memory constraints also necessitate aggressive truncation of the gradient history for large-scale tasks. Future work will explore the theoretical properties of this approach as a constrained optimization problem and extend its application beyond classification to tasks such as regression and translation.

Summary updated

BibTeX
@misc{golkar2019task,
  author = {Siavash Golkar and Kyunghyun Cho},
  title = {{Task-Driven Data Verification via Gradient Descent}},
  year = {2019},
  eprint = {1905.05843},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.05843},
}
Figure