1 of 46

Geometry and Latent Signal Representations in Machine Learning

Daniel D. Lee

2 of 46

Outline

  • How to understand empirical successes of large and deep neural networks?
  • Neural representations and manifolds
  • Statistical theory of manifold geometry for latent signals
  • Manifolds and generative models

​

3 of 46

Engineering applications

  • Development of autonomous robots and AI devices

Samsung AI Centers

DARPA Challenges

RoboCup

4 of 46

Power of scaling

Tan and Le (2019)

Hoffmann, et. al. (2022)

  • Moore’s law and Internet-scale data fueling large model performance improvements

5 of 46

Malthus’ Law

  • Limit to the scale of human created content

6 of 46

AI echo chambers

  • Difficulties in proper segregation between training, validation and test evaluation metrics

7 of 46

Physics and symmetries

  • Fourier modes are the eigenfunctions for translationally invariant signals

8 of 46

Brain Prize 2024

  • Three theoretical physicists awarded top prize in computational neuroscience

9 of 46

Ring attractor neural network

  • Fourier modes used to construct a nonlinear recurrent neural network (Ben-Yishai, et. al., 1995)

ReLU

10 of 46

Ring attractor geometry

  • Continuous, non-linear, low-dimensional manifold (ring) of stable states in neural activity space

Neural activity space

11 of 46

Biological head direction system

  • Head direction (compass) neurons recorded in the ellipsoidal body of the fly brain

Jayaraman (2017)

12 of 46

Larger and deeper networks

  • Success of more flexible models with increasing number of parameters

13 of 46

Conventional filterbank approach

  • Failure to model deeper layers as filters with receptive fields and response kernels

Hubel and Wiesel (1963)

14 of 46

Manifold hypothesis

  • Neural manifold representations become “untangled” in deeper layers of processing

DiCarlo and

Cox (2007)

15 of 46

Manifold geometry and perception

SueYeon Chung

(NYU/Flatiron)

​

Haim Sompolinsky

(Hebrew U./Harvard)

Uri Cohen

(U. Cambridge)

“Classification and geometry of general perceptual manifolds.” Physical Review X 8.3 (2018).

“Separability and geometry of object manifolds in deep neural networks.” Nature Comm. 11.1 (2020).

16 of 46

Signal data

🐶

🐱

Vector

Representation

  • High-dimensional signals for multi-modal data inputs

17 of 46

Perceptron model

Frank Rosenblatt (1958)

  • Classic biologically-inspired model of a logic neuron

18 of 46

Perceptron geometry

  • Weight vector and decision surface in embedding space

19 of 46

Linear separability

Training examples:

Linear classifier:

  • Output layer of neural networks is a simple linear classifier

20 of 46

Cover counting theorem

  • Dichotomies of points in general position

Number of linearly separable binary labellings�of P points in N dimensions:

Thomas Cover

(1965)

21 of 46

Recursion relation

  • Solve recursion relation between number of separable dichotomies with one additional point

P+1 point

22 of 46

Perceptron capacity

α=P/N

N=3

N=30

N=300

N=3000

  • Phase transition in capacity of perceptron as N goes to infinity

VC dim

αc=2

23 of 46

Margin

  • Large margin solution is robust to noise for better generalization error

Many possible solutions

Maximum margin

24 of 46

Gardner theory

  • Compute volume of hypothesis space

Elizabeth Gardner

(1988)

Volume of hypothesis space:

25 of 46

Replica trick

  • Reduction to Gaussian integrals and analytic continuation

Entropy is expected log volume:

26 of 46

Gardner results

  • Theoretical prediction for number of points at capacity, and fraction in interior or on the margin

Capacity as a function of margin:

Separable region

 

 

27 of 46

Data manifolds

  • Variability in pose, lighting, and expression give rise to low dimensional manifold structures

Lawrence Saul

28 of 46

Classifying manifolds

  • Conventional approaches use data augmentation to increase number of training points by sampling manifolds

Dichotomies of P manifolds�in N dimensions:

29 of 46

Manifold model

  • Mathematical description of the manifold�in terms of its convex hull

Geometrical description

30 of 46

Manifold capacity limits

  • Critical number of manifolds can vary greatly as size and shape are changed

Small (point limit):

Large (full hyperplanes):

Random point cloud (m points):

31 of 46

Manifold capacity formula

  • Prediction for maximum number of separable manifolds in terms of the margin

Critical number

of separable manifolds:

 

 

 

 

 

32 of 46

Effective geometry

  • Classification capacity of manifolds can be described by an effective radius and dimension

Interior balls

Embedded balls

Touching balls

Touching balls

Manifold radius:

Manifold dimension:

33 of 46

Support manifolds

  • Taxonomy of manifolds that are embedded in the margin planes

Margin planes

 

 

 

 

 

34 of 46

Deep network analysis

  • Analyzing the representations in different layers of a deep networks

VGG-16

ResNet

35 of 46

Input manifolds

  • Analysis of two types of image manifolds: continuous affine warped manifold and point cloud convex hulls from ImageNet

Affine warp manifold

ImageNet point cloud

36 of 46

Classification capacity

  • Capacity can be used to compare between layers as well as between different architectures

37 of 46

Manifold geometrical measures

  • Track changes to effective manifold radius and dimension through network layers

38 of 46

One-shot learning

  • Generalization error of one or few-shot learning predicted by manifold geometry

Sorcher, et. al.

(2021)

39 of 46

Neural data analysis

  • Dynamical changes to the geometry of neural activity manifolds in the brain

Chou, et. al.

(preprint)

Froudarakis, et. al.

(preprint)

40 of 46

Generative diffusion models

  • Generating probabilistic samples from data manifolds

41 of 46

Diffusion models

Ho, et. al. (2020)

Stable-Diffusion-v1.5

  • Forward diffusion process iteratively adds Gaussian noise to data samples

42 of 46

Diffusion dynamics

Stochastic differential equation:

Fokker-Planck equation:

Reverse diffusion drift score function:

43 of 46

Manifold diffusion model

Chung, et. al. (2022)

  • Novel score function dynamics with iterative manifold projections

44 of 46

Summary

  • Understanding structure of data signals and representations in machine learning
  • Geometrical measures of manifolds for classification performance
  • Manifold analysis of neural brain data and machine learning networks
  • Incorporating geometry can lead to more efficient algorithms

45 of 46

Messy embodied AI

Very large continuous state and action spaces, unknown and uncertainty in dynamics, nonstationary environments

46 of 46

Still much to learn