Neural Feature Learning in Function Space

Xiangxiang Xu, Lizhong Zheng

TL;DR

This paper introduces feature geometry, a framework that models statistical dependence between variables as vectors within a Hilbert space of functions. By using a novel nesting technique to optimize objective functions (nested H-scores), deep neural networks can directly learn orthogonal, maximally informative feature representations that can be flexibly reassembled for downstream inference—such as conditional inference or multimodal learning with missing modalities—without retraining.

What Problem Does This Paper Address?

Deep learning models typically operate end-to-end: feature extraction and inference (e.g., classification or regression) are tightly coupled. Consequently, features trained for one specific task or assembling module act as "black boxes" that are hard to interpret, reuse, or adapt when conditions change (such as when data modalities are missing or side information becomes available). While classical information-theoretic metrics like mutual information quantify dependence, they are invariant under any bijective transformation, making them ill-suited as direct optimization objectives for extracting geometrically structured, linearly usable representations.

The authors bridge this gap by developing an operational, function-space approach that unifies statistical dependence, feature learning, and inference model assembly.

Methods

The paper develops a geometric framework in $L^2$ function space:

  • Canonical Dependence Kernel (CDK): For variables $(X, Y)$, statistical dependence is represented as a function $i_{X;Y}(x,y) = \frac{P_{X,Y}(x,y) - P_X(x)P_Y(y)}{P_X(x)P_Y(y)}$. Dependence energy $\|i_{X;Y}\|^2$ corresponds to Pearson’s mean-square contingency.
  • Modal Decomposition (Functional SVD): Performing low-rank approximation on $i_{X;Y}$ yields the Hirschfeld–Gebelein–Rényi (HGR) maximal correlation functions. Linear Canonical Correlation Analysis (CCA) emerges as a special case constrained to linear function subspaces.
  • H-Score Optimization: Instead of computing matrix inversions or explicit whitening steps, feature extractors $f$ and $g$ are trained using the H-score, an unconstrained, sample-computable surrogate that directly maximizes correlation while penalizing redundancy: $$\mathcal{H}(f, g) = \mathbb{E}[f(X)^T g(Y)] - \mathbb{E}[f(X)]^T \mathbb{E}[g(Y)] - \frac{1}{2}\mathrm{tr}(\Lambda_f \Lambda_g)$$
  • The Nesting Technique: To isolate specific components (e.g., orthogonal projections or individual spectral modes) in a single training run, the authors define nested objectives $\sum_{i=1}^l \mathcal{H}(f_{[k_i]}, g_{[k_i]})$. This enforces nested optimality: taking the first $d$ dimensions of a $k$-dimensional model immediately yields the optimal rank-$d$ feature extractor without retraining.
  • Multivariate Extensions:
  • Side Information ($S$): Decomposes dependence into a Markov component $i_{X;S}$ and a conditional component $i_{X;Y|S}$.
  • Multimodal Learning ($X_1, X_2 \to Y$): Decomposes dependence into a bivariate component $\pi_B$ (capturing pairwise effects) and a higher-order interaction component $\pi_I$.

Datasets

The authors evaluated their algorithms on several synthetic and structured benchmarks designed to admit known analytical solutions:

  1. Synthetic Discrete Data: Randomly generated joint distributions with $|X|=8, |Y|=6$ ($N = 30,000$ pairs).
  2. Continuous Raised Cosine Dataset: 2D continuous variables $(X, Y) \in [-1, 1]^2$ with density $p_{X,Y}(x,y) = \frac{1}{4}[1 + \cos(\pi(x-y))]$, exhibiting degenerate singular modes ($N = 50,000$ pairs).
  3. Sequential Binary Markov Sequences: Synthetic binary sequences generated via hidden binary Markov sources ($X - U - V - Y$) of lengths $l=40, m=30$ ($N = 50,000$ train, $10,000$ test).
  4. Multitask / Side-Information Discrete Set: Categorical variables with $|X|=8, |S|=3, |Y|=3$ ($N = 50,000$ triplets).
  5. Continuous Multimodal Benchmark: Complete and incomplete pairwise triplets $(X_1, X_2, Y)$ with $X_1, X_2 \in [-1, 1]$ and binary labels $Y \in \{-1, 1\}$ ($N = 50,000$).

Key Insights and Ideas

  • Decoupling Learning from Assembling: By viewing feature extraction as approximating the CDK $i_{X;Y}$ rather than fitting a task loss, the resulting representations can be assembled on the fly into posterior probabilities ($P_{Y|X}$), conditional expectations, or MMSE estimators via simple inner products.
  • Local Geometric Equivalence to Cross-Entropy DNNs: Under weak dependence ($\epsilon$-dependence), maximizing cross-entropy in standard classification networks with softmax output is shown to be asymptotically equivalent to maximizing the H-score.
  • Unified Multimodal Handling: The bivariate component $\pi_B$ of multimodal data can be fully reconstructed even if the data arrives as disparate, pairwise sets (e.g., only observing $(X_1, X_2)$, $(X_1, Y)$, and $(X_2, Y)$ separately). Furthermore, $\pi_B$ matches the maximum entropy distribution over pairwise marginals in the local regime.
  • Principled Dimensionality Selection: Because nested H-scores order features by singular value, users can inspect the learned singular spectrum and truncate the representation to dimension $d$ with mathematically guaranteed optimality.

Key Results

  • Analytical Concordance: On continuous raised-cosine data, the learned neural features converged to exact quadrature sinusoids ($\sqrt{2}\cos(\pi x + \theta_0)$ and $\sqrt{2}\sin(\pi x + \theta_0)$), recovering theoretical singular values ($\sigma_1 = \sigma_2 = 0.5$).
  • Sequence Factor Reconstruction: For the Markov sequence experiment, single-dimensional features learned via H-score achieved correlation coefficients $> 0.99$ with theoretical optimal transformations, separating underlying latent states into distinct clusters.
  • Multitask Alignment: In the side-information setup, features learned by the nested H-score matched the heads of a standard multihead multitask classification neural network.
  • Robustness to Missing Modalities: In the multimodal setting, models trained with complete triplets or only pairwise observations achieved accurate MAP decision boundaries (thresholding at $P_{Y|X_i} = 0.5$) under missing modalities without modifying the underlying feature spaces.

Limitations and Future Work

  • Expressive Power Assumptions: The theoretical derivations primarily assume universal approximators with sufficient capacity; finite-width/depth effects and optimization landscapes require further investigation.
  • Weak Dependence Regime: Several formal equivalences to cross-entropy loss and maximum entropy principles rely on local approximations ($\epsilon$-dependence).
  • Scalability to High-Order Modalities: Extending beyond two input modalities involves more complex subspace decompositions, and sample complexity bounds for finite data in these regimes remain an open challenge.
  • Future Directions: Incorporating generative models to synthesize data under geometric dependence constraints, and studying how feature geometry interacts with geometric deep learning (group symmetries and manifold structures).

Summary updated

BibTeX
@article{xu2024neural,
  author = {Xiangxiang Xu and Lizhong Zheng},
  title = {{Neural Feature Learning in Function Space}},
  journal = {J. Mach. Learn. Res.},
  year = {2024},
  url = {https://openreview.net/forum?id=AsCQqXCsba},
}
Figure