Selecting Samples on Graphs: A Unified Dataset Pruning Framework for Lossless Training Acceleration

Dongyue Wu, Zilin Guo, Xiaoyu Li, Jiajia Liu, Jingdong Chen, Nong Sang, Changxin Gao

Training modern AI models on massive datasets is becoming prohibitively expensive. As datasets scale to millions or billions of examples, the "data efficiency" of training has emerged as a major bottleneck. Dataset Pruning (DP) aims to solve this by selecting only the most informative subset of data to train on.

This paper introduces UGIES (Unified Graph-based Importance Evaluation System), a novel framework that treats dataset pruning as a Maximum Weight Clique Problem. By balancing individual sample importance with group diversity, UGIES achieves "lossless" acceleration—reducing training time by over 40% on ImageNet-1k without any drop in final model accuracy.

The Two Camps of Dataset Pruning

Historically, dataset pruning methods have been split into two distinct camps, each with its own blind spots:

  1. Intrinsic Methods: These evaluate samples in isolation (e.g., "how high is the loss for this specific image?"). While computationally fast, they often select highly redundant data.
  2. Extrinsic Methods: These evaluate relationships (e.g., "how different is this image from the ones already selected?"). While they promote diversity, they risk picking "diverse" outliers that are actually useless for learning.

The challenge is that neither approach is robust across all scenarios. Intrinsic signals work well when pruning lightly (e.g., keeping 70% of the data), while extrinsic diversity becomes vital when pruning aggressively (e.g., keeping only 30%). UGIES seeks a principled way to unify these two perspectives into a single, mathematically grounded framework.

UGIES: A Unified Graph-Based Approach

The core innovation of UGIES is modeling the entire dataset as a weighted graph:

  • Nodes: Each vertex represents a data sample. The node weight represents its intrinsic importance (such as prediction entropy or loss).
  • Edges: Each edge between two samples represents their extrinsic interaction. A negative edge weight indicates redundancy; if two samples are too similar, keeping both penalizes the total score.

By structuring the data this way, selecting the best subset becomes a Maximum Weight Clique Problem (MWCP).

While MWCP is famously NP-hard (computationally infeasible to solve perfectly for large sets), the authors demonstrate that under mild conditions—such as non-positive edge weights—the objective function becomes submodular. This mathematical property allows them to use a greedy approximation algorithm with a provable performance guarantee.

To scale this to millions of images, the authors utilize Structured Graph Sparsification. By clustering data by class and feature similarity, the system only calculates interactions between "nearby" samples rather than every possible pair, leveraging the insight that data redundancy is almost entirely a local phenomenon.

Experimental Results: Lossless Acceleration

The framework was rigorously tested across standard benchmarks (CIFAR-10/100, ImageNet-1k), architectures (ResNet-18/50, Swin-Transformer), and downstream tasks (semantic segmentation on PASCAL VOC 2012, object detection on COCO2017).

Key findings include:

  • Lossless Acceleration: On ImageNet-1k with a ResNet-50, UGIES achieved 76.5% accuracy using only 50% of the data, slightly edging out the full-data baseline of 76.4%.
  • Significant Speedup: Even when including the computational overhead required to build the graph and prune the data, the total wall-clock training time was reduced by 43.2%.
  • Superiority over Hybrids: UGIES consistently outperformed other recent "hybrid" methods (like $D^2$-pruning and InfoMax) because it dynamically adapts to the pruning budget rather than relying on fixed heuristics.
  • Cross-Architecture Success: The method achieved lossless results on Swin-Transformers by pruning 30% of the data, proving it is not overfitted to standard CNNs.

Limitations and Future Directions

While UGIES is highly effective, the authors note a few areas for future improvement. First, despite sparsification, calculating pairwise interactions for extremely large-scale datasets (billions of samples) still introduces memory and compute costs. Second, the greedy solver is an approximation; exploring tighter solvers or adaptive selection strategies might squeeze out even more performance in aggressive pruning regimes (e.g., keeping only 10% of data). Finally, while the framework is flexible, the choice of which intrinsic metric to use can still affect results depending on the specific downstream task.

Summary updated

BibTeX
@inproceedings{wu2026selecting,
  author = {Dongyue Wu and Zilin Guo and Xiaoyu Li and Jiajia Liu and Jingdong Chen and Nong Sang and Changxin Gao},
  title = {{Selecting Samples on Graphs: A Unified Dataset Pruning Framework for Lossless Training Acceleration}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=a3GdvuPItd},
}
Figure