Nonlinear classification of neural manifolds with contextual information

Francesca Mignacco, Chi-Ning Chou, SueYeon Chung · DOI

Introduction

In neuroscience and artificial intelligence, objects are often represented as neural manifolds—high-dimensional clusters of activity patterns that account for variations in appearance, such as pose or lighting. A fundamental question is how many such objects a neural population can distinguish, a metric known as "manifold capacity." Traditionally, this has been measured using linear readouts. However, linear analysis often fails to capture the "untangling" of information in the early layers of deep networks or biological sensory systems, where data is nonlinearly separable.

Conceptual representation of neural manifolds across different sensory and semantic contexts.

The Context-Dependent Framework

To bridge the gap between linear theory and complex biological processing, this research introduces a framework based on context-dependent gating. In this model, the input space is partitioned into distinct "contexts" via hyperplanes. Depending on the context an input falls into, a specific "expert" linear classifier is activated. This creates a piecewise linear decision boundary, allowing for nonlinear classification.

The authors utilized the replica method from statistical mechanics to derive an analytical formula for context-dependent manifold capacity. This formula incorporates manifold geometry, the number of contexts ($2^K$), and the correlations between these contexts.

Key Insights: Untangling and Orthogonality

A major finding is that nonlinear metrics reveal "untangling" in early network layers that appears invisible to linear decoders. While linear capacity might remain low, the nonlinear capacity shows that the network is actively restructuring data into a form that can be separated by multiple "cuts."

Furthermore, the research highlights the importance of orthogonality. Capacity increases most efficiently when contexts are uncorrelated. This mirrors biological findings where the brain employs orthogonal representations to prevent interference between different tasks or sensory modalities. The choice of context gates also matters; using informative directions, such as the Principal Components of the data, yields significantly higher capacity than random gating.

Quantitative Results and Scaling

The theoretical framework was validated against synthetic manifolds and features from deep networks like ResNet-50 (both supervised and self-supervised).

Manifold capacity alpha* as a function of context correlation phi for varying numbers of contexts.

As shown in the figure above, capacity scales with the number of contexts. For random points, the maximal capacity for $2^K$ contexts is $2^{K+1}$, generalizing Cover’s theorem. The results also demonstrate that as the correlation between contexts ($\phi$) increases, the total capacity of the system decreases, emphasizing the benefit of distinct, non-overlapping contextual representations.

Conclusion

This work provides a rigorous mathematical tool for diagnosing how deep networks and biological systems process information nonlinearly. By accounting for context, the theory offers a more nuanced view of neural representation than traditional linear metrics. Future work will focus on how these context gates are learned and how they might be implemented through biological mechanisms like dendritic gating.

Summary updated

BibTeX
@inproceedings{mignacco2025nonlinear,
  author = {Francesca Mignacco and Chi-Ning Chou and SueYeon Chung},
  title = {{Nonlinear classification of neural manifolds with contextual information}},
  booktitle = {Physical},
  year = {2025},
  doi = {10.1103/physreve.111.035302},
}
Figure