Machine learning in spectral domain

Lorenzo Giambagli, Lorenzo Buffoni, Timoteo Carletti, Walter Nocentini, Duccio Fanelli · DOI

TL;DR

This paper introduces a novel machine learning paradigm that trains neural networks in the spectral (reciprocal) domain rather than the standard node-to-node direct space. By optimizing the eigenvalues and eigenvectors of layer-bridging transfer operators, the network learns via global collective modes rather than local pairwise weight adjustments, achieving superior performance under parameter constraints and offering a powerful new strategy for network pre-training and compression.

What Problem Does This Paper Address?

Conventional deep learning algorithms rely on adjusting millions or billions of individual pairwise weights connecting nodes across layers. While highly successful, this local approach makes it difficult to understand how these massive collections of numbers synergize globally to process information. Furthermore, standard training can be computationally expensive and prone to overfitting.

The authors address this by asking: Can we anchor the learning process to a global framework instead of local node connections? By shifting the training target to the spectral domain—modifying the collective modes of the network rather than individual links—they aim to create more parameter-efficient, interpretable, and compressible neural architectures.

Methods

The authors propose Spectral Learning, where the traditional adjacency matrices $A_k$ that define connections between adjacent layers are parameterized by their spectral properties: eigenvectors ($\Phi_k$) and eigenvalues ($\Lambda_k$).

To maintain a standard feedforward architecture in direct space, the authors introduce a specific "nested indentation" structure for the eigenvectors. The training process can then be executed in two primary modalities:

  1. Eigenvalue-only training: The eigenvectors are frozen to a random initial reference setting, and optimization acts solely on the eigenvalues. This drastically reduces the number of trainable parameters (down to about 10% of direct space parameters).
  2. Simultaneous training: Both eigenvalues and a fraction of the eigenvector entries are optimized concurrently.

Additionally, the paper introduces the concept of a telescopic neural network. Linear processing units are inserted between non-linear layers during the training phase to artificially expand the set of trainable eigenvalues. Once training is complete, these linear layers can be mathematically "retracted" or compressed back into a single compact matrix for efficient operational deployment.

Datasets

The proposed method was evaluated using the MNIST database of handwritten digits, a standard machine learning benchmark consisting of 60,000 training examples and 10,000 test examples. Each sample is a $28 \times 28$ pixel grayscale image.

Figure 1. Each image of the training set is mapped into a column vector ⃗n1, of size N, whose first

As shown in Figure 1, each image is flattened into a column vector $\vec{n}_1$ of size $N$, where the first $N_1 = 784$ entries represent pixel intensities, and the remaining entries are initially padded with zeros to accommodate the expanded reciprocal space.

Key Insights and Ideas

  • Global vs. Local Learning: Tuning eigenvalues modifies the network's "collective modes" (eigen-directions). This acts as a global dial that promotes or inhibits entire pathways of information flow, contrasting sharply with the local, pairwise adjustments of standard backpropagation.
  • The Pre-training "Aha" Moment: Remarkably, when learning is restricted strictly to eigenvalues, the resulting distribution of weights in direct space closely mirrors the distribution obtained via full, unconstrained direct-space training. Because eigenvalue training uses a fraction of the parameters, it serves as an exceptionally effective, low-overhead pre-training strategy.
  • Telescopic Compression: The ability to extract linear "booms" during training to capture complex spectral features, and then retract them for inference, provides a mathematically rigorous pathway for network compression without sacrificing classification accuracy.

Key Results

  • Linear Configuration: For a single-layer perceptron equivalent trained on MNIST, restricting optimization to just the $N_1 + N_2 = 794$ eigenvalues achieved an accuracy of $82 \pm 2\%$. This outperformed standard direct-space training restricted to an identical number of random parameters ($79 \pm 3\%$).
  • Full Optimization: When both eigenvalues and the sub-diagonal entries of the eigenvector matrix were optimized, the spectral method achieved $92.5 \pm 0.2\%$ accuracy, matching conventional full direct-space training ($92.7 \pm 0.1\%$) despite operating in the dual space.
  • Overfitting Resistance: In non-linear multi-layered architectures, simultaneous spectral training matched the accuracy of full direct-space training but demonstrated superior robustness against overfitting as the size of the intermediate layers increased.

Limitations and Future Work

While promising, the authors note several limitations and areas for future exploration:

  • Problem Complexity: The method was only validated on the relatively simple MNIST dataset. Testing on more complex, high-dimensional tasks (like ImageNet or NLP benchmarks) is required to see how well spectral learning scales.
  • Initialization Sensitivity: Optimizing the initial ranges and distributions from which the starting eigenvalues and eigenvectors are drawn remains an open problem that was not fully tackled in this study.
  • Alternative Topologies: The current implementation enforces a feedforward structure via nested eigenvectors. The authors suggest that relaxing this assumption and using alternative non-orthogonal bases could allow spectral learning to be exported to other frameworks, such as reservoir computing.

Summary updated

BibTeX
@misc{giambagli2020machine,
  author = {Lorenzo Giambagli and Lorenzo Buffoni and Timoteo Carletti and Walter Nocentini and Duccio Fanelli},
  title = {{Machine learning in spectral domain}},
  year = {2020},
  eprint = {2005.14436},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.14436},
}
Figure