Spectral Regularization Allows Data-frugal Learning over Combinatorial Spaces

Amirali Aghazadeh, Nived Rajaraman, Tony Tu, Kannan Ramchandran

Introduction

In fields ranging from genomics to quantum physics, researchers frequently encounter the challenge of learning complex functions over combinatorial spaces. These "pseudo-Boolean" functions map high-dimensional binary vectors—such as a sequence of protein mutations or a configuration of spins in an Ising model—to real-valued scalars like fitness or energy. Because the search space for these problems grows exponentially ($2^d$), and the cost of acquiring labeled data is often prohibitive, models must operate in "data-frugal" regimes where the number of samples ($n$) is significantly smaller than the dimensionality of the space.

This research, published in Transactions on Machine Learning Research, establishes a theoretical and empirical bridge between combinatorial optimization and deep learning. The authors demonstrate that spectral regularization (SP)—the practice of promoting sparsity in the Walsh-Hadamard Transform (WHT) domain—fundamentally reshapes the loss landscape of non-linear models, allowing them to generalize optimally even from minimal data.

The Challenge of Data-Frugal Learning

Standard machine learning approaches often struggle with combinatorial inputs. Linear models like LASSO are effective for simple interactions but fail to capture the high-order non-linearities inherent in biological and physical systems. Conversely, deep neural networks (DNNs) possess the expressive power to model these complexities but typically require massive datasets to avoid overfitting.

In the "low-$n$" regime, the primary hurdle is not just finding a model that fits the training data, but finding one that captures the underlying "simplicity" of the system. In many natural systems, this simplicity manifests as spectral sparsity: the function's behavior is driven by a relatively small number of key interactions between variables (epistasis).

Methods: Spectral Regularization (SP)

To address this, the authors propose a regularization technique centered on the Walsh-Hadamard Transform (WHT). The WHT serves as the Fourier transform for the Boolean hypercube. A function with a sparse WHT is one that can be represented by a limited set of interactions between its input bits.

Instead of applying traditional $L_1$ or $L_2$ penalties to the weights of a neural network, the researchers apply an $L_1$ penalty to the $L_1$ norm of the function’s WHT. This encourages the model to find a functional form that is sparse in the frequency domain, regardless of the internal complexity of the network's weights. This approach allows the model to retain its non-linear representational power while adhering to a "simplicity prior" that is physically and biologically relevant.

Theoretical Framework: Reshaping the Landscape

The core theoretical contribution of the paper is an analysis of how SP affects the geometry of the error surface. The authors utilize two specific geometric conditions:

  1. Restricted Secant Inequality (RSI): This ensures that the gradient of the loss function points generally toward the global minimum, preventing the optimizer from getting lost in flat regions.
  2. Quadratic Growth (QG): This ensures that the loss increases at least quadratically as the model moves away from the optimal solution.

The researchers prove that when these conditions are met, any first-order stationary point of the regularized loss achieves statistically optimal generalization. This suggests that spectral regularization does more than just break ties between equally good models; it actively reshapes the loss landscape to make high-performing, sparse solutions easier for gradient-based optimizers to locate.

Empirical Validation

The authors validated their framework across synthetic benchmarks and high-impact biological datasets:

  • Synthetic Polynomials: Testing on functions with specific interaction orders (Monomial, Power Law, and Staircase) confirmed that the theory holds across various degrees of complexity.
  • Protein Fitness: Using a dataset of $2^{13}$ variants of the Entacmaea quadricolor protein, the researchers tested the model's ability to predict fluorescence levels.
  • Genomic Repair: The models were tasked with predicting DNA repair outcomes (deletion lengths) following CRISPR-Cas9 editing in T cells and cancer cells.

Key Results

  • Superior Generalization: In extreme low-data scenarios (e.g., $n=30$), SP-regularized neural networks significantly outperformed established baselines, including Random Forests, XGBoost, SVMs, and LASSO.
  • Theoretical Optimality: The authors established a new generalization bound where the error scales with $\sqrt{kd/n}$ (where $k$ is sparsity, $d$ is dimension, and $n$ is sample size).
  • Robustness: SP regularization was found to reduce performance variance across different data splits, suggesting that the regularized landscape leads to more stable and reproducible learning.

Discussion and Future Work

While spectral regularization offers a powerful tool for data-frugal learning, it is not without challenges. Computing the full WHT is exponentially expensive ($2^d$), necessitating the use of sparse WHT algorithms for higher-dimensional problems. Additionally, the authors noted that the optimization process is sensitive to initialization; a "warm start" (briefly training without regularization) often helps the model settle into the correct sparse spectral region.

Ultimately, this work provides a rigorous justification for why spectral priors are so effective in combinatorial domains. By aligning the inductive bias of neural networks with the sparse interaction patterns found in nature, spectral regularization enables deep learning to succeed in the data-starved frontiers of biology and physics.

Summary updated

BibTeX
@article{aghazadeh2023spectral,
  author = {Amirali Aghazadeh and Nived Rajaraman and Tony Tu and Kannan Ramchandran},
  title = {{Spectral Regularization Allows Data-frugal Learning over Combinatorial Spaces}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2023},
  url = {https://openreview.net/forum?id=pOGkgdP8NC},
}
Figure