Bilateral Distribution Compression: Reducing Both Data Size and Dimensionality

Dominic Broadbent, Nick Whiteley, Robert Allison, Tom Lovett

TL;DR

Bilateral Distribution Compression (BDC) is a novel two-stage framework that simultaneously shrinks a dataset's sample size and dimensionality while preserving its underlying statistical distribution. By optimizing Maximum Mean Discrepancy (MMD) variants in a learned latent space, BDC achieves massive compression rates and order-of-magnitude speedups over traditional ambient-space methods with linear time and memory complexity.

What Problem Does This Paper Address?

Modern machine learning relies on massive datasets that are often both high-volume (large number of samples, $n$) and high-dimensional (large number of features, $d$). Training frontier models on this data incurs immense computational, financial, and environmental costs.

Existing data reduction methods only solve half the problem. Distribution compression methods (like kernel herding or kernel thinning) reduce the number of observations ($m \ll n$) but leave the dimensionality untouched. Conversely, dimensionality reduction techniques (like PCA or autoencoders) compress features ($p \ll d$) but keep every single sample.

This paper introduces Bilateral Distribution Compression (BDC) to tackle both axes simultaneously, creating a tiny, low-dimensional proxy dataset that faithfully preserves the full statistical properties (including higher-order moments) of the original data.

Methods

Directly optimizing a compressed set in a decoded space is highly non-convex and prone to overfitting (where a flexible decoder simply memorizes the target data). To circumvent this, the authors propose a decoupled, two-stage framework:

  1. Autoencoder Training: An encoder ($\psi$) and decoder ($\phi$) are trained to map data into a lower-dimensional latent space. Instead of just minimizing standard Mean Squared Reconstruction Error (MSRE), they minimize Reconstruction MMD (RMMD) to ensure the entire distribution is reconstructed accurately. For neural networks, a hybrid loss combining RMMD and MSRE is used to prevent cluster mixing and preserve topology.
  2. Latent Compression: With the autoencoder fixed, the full dataset is projected into the latent space. A small, optimized compressed set is then generated by minimizing the Encoded MMD (EMMD) against the latent representations.

The authors prove theoretically that minimizing these two components successfully minimizes the Decoded MMD (DMMD), guaranteeing distributional fidelity in the original ambient space. They explore both linear autoencoders (optimized on the Stiefel manifold) and nonlinear neural autoencoders, and extend the framework to supervised tasks using tensor product kernels.

The Bilateral Distribution Compression framework overview.

Datasets

The authors evaluate BDC on both synthetic and real-world benchmarks:

  • Swiss-Roll Manifold: A classic non-linear 3D manifold projected into a 200-dimensional ambient space with added Gaussian noise.
  • Gaussian Mixture: A 2D mixture of 9 Gaussians projected into a 250-dimensional space.
  • Synthetic Clusters: 10 clusters of varying shapes plus uniform noise projected into 500 dimensions.
  • CT-Slice: A real-world dataset containing 53,500 instances and 384 features derived from CT scans.
  • MNIST: The standard handwritten digit dataset consisting of 70,000 images in 784 dimensions.

Key Insights and Ideas

  • PCA as a Special Case: The authors show that minimizing RMMD with a simple quadratic kernel exactly recovers Principal Component Analysis (PCA). However, using characteristic kernels allows RMMD to capture higher-order statistical moments that PCA completely misses.
  • The Need for Hybrid Loss: Optimizing a highly flexible neural network purely on RMMD can lead to "distributional matching" where distinct clusters are erroneously merged or swapped because the aggregate distribution looks correct. Adding an MSRE term acts as a vital topological regularizer, ensuring the mapping behaves as a proper homeomorphism.
Comparison of latent representations trained with MSRE, RMMD, and the hybrid loss.
  • Linear Complexity Scaling: Unlike standard ambient-space MMD methods that scale quadratically or require expensive approximations in high dimensions, BDC operates linearly $\mathcal{O}(nd)$ with respect to both dataset size and feature dimension, making it highly scalable.

Key Results

  • Massive Speedups: On the MNIST dataset, BDC-L constructed the compressed set and completed downstream task fitting in just 72.26 seconds, compared to 1003.62 seconds for Ambient-space Distribution Compression (ADC)—a 14x speedup.
  • Extreme Compression Rates: For the Swiss-Roll dataset, BDC-NL achieved 99.99% compression (reducing data to $m=200, p=3$), outperforming ambient-space methods in downstream Gaussian Process regression accuracy and uncertainty calibration while running 20x faster.
  • Storage Efficiency: On a 250-dimensional Gaussian mixture, BDC achieved exact MMD matching to the true distribution while requiring only 0.018% of the original storage space.

Limitations and Future Work

  • Manifold Dependency: BDC relies heavily on the Manifold Hypothesis (the assumption that high-dimensional data lies near a lower-dimensional manifold). If the data lacks this underlying structure, reducing dimensionality risks discarding critical information, causing BDC to underperform ambient-space alternatives.
  • Optimization Guarantees: While the latent compression stage (Step 2) has global convergence guarantees under Wasserstein gradient flow, the autoencoder training stage (Step 1) lacks general theoretical convergence proofs for non-linear networks.
  • Hyperparameter Tuning: Selecting the optimal latent dimension $p$ and compressed size $m$ remains a pragmatic challenge, though the authors suggest using intrinsic dimension estimators (like skdim) as a reliable starting point.
  • Future Directions: Extending the framework to conditional distributions (e.g., via the Average Maximum Conditional Mean Discrepancy) and exploring semi-supervised learning setups where unlabeled data is abundant.

Summary updated

BibTeX
@misc{broadbent2025bilateral,
  author = {Dominic Broadbent and Nick Whiteley and Robert Allison and Tom Lovett},
  title = {{Bilateral Distribution Compression: Reducing Both Data Size and Dimensionality}},
  year = {2025},
  eprint = {2509.17543},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.17543},
}
Figure