When a training set grows, much of the new data lands in regions the model has already seen many times, and each extra example there adds almost nothing. This proposal measures that crowding directly. First, split the data into coarse clusters. Inside each cluster, lay the examples out in two to four dimensions with multidimensional scaling (MDS), a method that places points so their distances on the page match their original pairwise distances. Then overlay a regular grid and count how many examples fall in each cell. Because every grid cell has the same volume, the count is a direct estimate of local density. The data is then pruned by one rule: keep at most $q$ examples per cell, with $q$ set by the training budget.
The claim is that this local, volume-normalized density is the quantity that governs diminishing returns. The usual proxies are distance to a cluster center or a single quality score. A grid only works in very low dimension, which is why MDS is needed here, and it is applied locally, where data is plausibly low-dimensional.
The opportunity comes from two literatures that have not met. Spatial databases learned long ago that cheap grid cells can decide in linear time which regions are crowded. Algorithms for Mining Distance-Based Outliers in Large Datasets does this with neighbor-cell counts for outlier detection. It also proves the method only pays off up to four dimensions, because the number of neighboring cells grows as $3^k$. Data-pruning work in machine learning operates in 768- to 4096-dimensional embedding spaces, where no such grid is possible. It therefore uses proxies that do not measure density per unit volume:
- Beyond neural scaling laws ranks examples by distance to k-means centroids.
- DEITA filters greedily by cosine distance to already-selected examples. - Scaling Laws for Data Filtering thresholds a single score.
Core Claim
A k-means partition adapts to the data: clusters shrink where data is dense, so balancing counts across clusters equalizes mass, not density. An equal-volume grid does the opposite. A dense cell really is a region of repeated content. We hypothesize that capping examples per equal-volume cell reproduces two effects the pruning literature has found only separately:
- Keep easy examples when data is scarce. At a small budget $q$ is small, so every region keeps a few representative examples. This matches the easy-first regime of Sorscher et al.
- Keep variety when compute is abundant. At a large budget, sparse and atypical regions are kept whole while crowded regions stay capped. This matches their hard-example regime. It also bounds how often near-duplicates recur, which is the repetition decay that produces the "reversal point" in Goyal et al.
For a budget of $B$ examples and cell counts $n_c$, the cap $q$ is the water-filling level solving
$$\sum_{c} \min(n_c, q) = B.$$
The rule has no learned scorer and one scale parameter, the cell side. Within a capped cell, examples are chosen to be spread out, using a neighbor-cell exclusion in the style of Knorr and Ng.
Research Program
The pipeline has three stages.
- Embed and cluster. Embed the pool with an existing encoder: SwAV (a self-supervised image encoder) for images, CLIP for image-text pairs, and sentence embeddings for instructions. Cluster coarsely with k-means into clusters of a few thousand points.
- Lay out each cluster with MDS. Within each cluster, run metric MDS into $k \in \{2,3,4\}$ dimensions, initialized from classical MDS. Keeping clusters small bounds the all-pairs cost of MDS to cluster size rather than $N^2$. This addresses the scaling barrier that makes MDS impractical at $N > 10^5$.
- Grid, count, and cap. Overlay a grid inside each cluster's layout. Cell side is set relative to the cluster's median nearest-neighbor distance. Store occupancy in flat, contiguous per-cell buckets, following the layout lessons of Spatial Joins in Main Memory: Implementation Matters!. That paper cut a naive grid's L3 cache misses from 325M to 67M simply by flattening its memory.
Local layout is required by a known constraint. Artefactual Structure from Least-Squares Multidimensional Scaling shows that least-squares MDS can invent clusters and horseshoe shapes that are not in the data. A single global 3-D layout of ImageNet would be exactly such an artifact. We therefore record, per cluster, both the MDS stress (the normalized mismatch between layout distances and original distances) and the fraction of original 10-nearest neighbors preserved. Any cluster above a stress threshold falls back to high-dimensional cell-free counting by radius queries. The fraction of data needing fallback is itself a reported result. If it is large, the premise that data is locally low-dimensional fails.
A secondary analysis connects to Scaling Laws are Redundancy Laws. That paper derives the scaling exponent from the tail decay of the data covariance spectrum. We will test whether the heaviness of the cell-occupancy distribution tracks the fitted scaling exponent across datasets. This is exploratory. We do not claim MDS preserves that spectrum; MDS is not invertible, so the paper's invariance result does not apply.
Baselines
Do nothing: random subsets. The naive reference is uniform random subsets at each budget, plus training on the full pool. Every method uses the same encoder embeddings, the same training recipe, and the same number of training steps per budget. The scaling curve of error against subset size for random sampling is the power law every method must beat.
Prototype pruning. The strongest competitor on images is the method of Beyond neural scaling laws: k-means in SwAV space, ranking by centroid distance, and switching from easy to hard as the budget grows. It is the method that actually bent the scaling curve on ImageNet. It pruned 20% of ImageNet-1K without degradation, and on CIFAR-10 ViT fine-tuning it matched full-data performance with 10% of the data. The file gives these as qualitative statements; no reported accuracy value found on Lacuna for either setting. We run it with the same embeddings and the same number of clusters as our coarse clustering, and tune its easy/hard switch point with the same budget we use for our cell side. Beating it means a lower error curve at the aggressive end, 10–30% kept, where the authors themselves report reversion to a power law.
DEITA diversity filter. For instruction tuning, the strongest baseline is DEITA: Mistral-7B trained on 6K samples scored 7.22 on MT-Bench. We keep DEITA's complexity and quality scoring fixed and replace only its greedy cosine-threshold "Repr Filter" with the cell cap. Beating it means at least 7.22 MT-Bench at 6K samples, or matching it with fewer samples or less selection time. NAIT is a secondary reference: it reports a 3.24% average gain for LLaMA-2-7b using 10% of Alpaca-GPT4.
Ablations of the key ingredient. Two ablations isolate what is new:
- Equal-mass versus equal-volume. Within each coarse cluster, replace the grid with equal-mass k-means sub-clusters and cap per sub-cluster. The number of cells is matched. This tests whether equal volume is what matters.
- Layout method. Replace MDS with within-cluster PCA and with random projection to the same $k$, keeping the grid and the cap. This tests whether MDS's distance preservation earns its cost.
Why not just…?
Why not just balance counts across k-means clusters in the original space? This is the most serious threat. With enough small clusters, cluster-balanced sampling may approximate a density cap. The argument against it is structural: k-means cells have unequal volumes, so equal quotas do not flatten density. That argument is untested. The equal-mass ablation settles it. If sub-cluster balancing matches the grid at matched cell counts, the grid and MDS add nothing, and we would report that the contribution reduces to hierarchical cluster balancing.
Why not just use PCA or random projection instead of MDS? PCA preserves global variance, not local neighborhoods. Within a small cluster, however, the two may nearly coincide, and PCA is deterministic and cheaper. The layout ablation, with neighbor-preservation scores reported per cluster, decides this. We would switch to PCA if it matches downstream accuracy. MDS remains required only for inputs with no coordinates at all, such as edit distances between strings, the setting of Comparison and Classification of Dialects.
Why not just filter by a scalar quality score? Scalar filters do work at scale. DataComp reached 79.2% zero-shot ImageNet accuracy with a ViT-L/14 trained on a CLIP-score-filtered subset. However, Goyal et al. show that top-bucket filtering is overtaken by broader pools as compute grows, and DEITA found that ranking by score alone selects near-duplicate prompts. Our DataComp experiment applies the cap on top of a CLIP-score filter, so the question is whether it adds anything to scores rather than whether it replaces them.
Why not just deduplicate with greedy cosine thresholds? DEITA's filter needs a number of distance checks proportional to pool size times selected-set size. It also makes a binary keep/drop decision, with no budget-dependent level like $q$. The DEITA swap-in experiment measures both quality and wall-clock selection time.
Proposed Experiments
Scaling curves on images. On CIFAR-10 and ImageNet-1K with SwAV embeddings, we train at kept fractions from 10% to 90%. We fit error-versus-size curves for random selection, prototype pruning, the two ablations, and the cell cap. The decisive check is the aggressive end: does the cell cap stay below prototype pruning where the latter reverts to power-law decay?
The reversal point on DataComp medium. On the 128M-pair DataComp medium pool, we follow Goyal et al. in scaling training up to 640M samples seen. We compare a CLIP-score top-bucket filter against the same filter followed by the cell cap. Zero-shot ImageNet accuracy and the 38-task average are measured at each compute level. No reported per-bucket numbers found on Lacuna for this setting, so our own top-bucket run is the reference. The prediction is that the cap delays or removes the compute level at which the curated subset loses to broader pools, because it limits how often crowded regions repeat.
Instruction tuning. In the DEITA swap-in on its 300K pool, we select 6K samples and fine-tune Mistral-7B. We report MT-Bench against 7.22, together with selection wall-clock time.
Failure checks. Across all three settings we report per-cluster MDS stress, neighbor preservation, the fraction of clusters falling back to high-dimensional counting, and per-class retention. That last check probes whether density caps avoid wiping out minority classes, the way margin-based pruning can.
References
- Algorithms for Mining Distance-Based Outliers in Large Datasets
- Beyond neural scaling laws: beating power law scaling via data pruning
- What Makes Good Data for Alignment? A Comprehensive Study of Automatic Data Selection in Instruction Tuning
- Scaling Laws for Data Filtering - Data Curation cannot be Compute Agnostic
- Spatial Joins in Main Memory: Implementation Matters!
- Artefactual Structure from Least-Squares Multidimensional Scaling
- Scaling Laws are Redundancy Laws
- Neuron-Aware Data Selection in Instruction Tuning for Large Language Models
- Comparison and Classification of Dialects
- DataComp: In search of the next generation of multimodal datasets