---
title: Deep Extrinsic Manifold Representation (DEMR)
url: https://www.emergentmind.com/topics/deep-extrinsic-manifold-representation-demr
type: topic
---

# Deep Extrinsic Manifold Representation (DEMR)

Deep Extrinsic Manifold Representation (DEMR) is a methodology for training deep networks to output predictions that reside on non-Euclidean manifolds, a scenario frequently encountered in manifold-valued tasks such as pose estimation, subspace learning, and geometric inference. DEMR achieves this by leveraging a geometry-preserving extrinsic embedding from the target manifold into a higher-dimensional Euclidean space, enabling neural networks to optimize standard losses in ambient coordinates while guaranteeing that eventual outputs are valid elements of the manifold. This approach combines theoretical assurances (bi-Lipschitz embeddings, asymptotic optimality under concentrated noise) with practical training advantages, including computational simplicity, rapid convergence, and adaptability to generic architectures.

## 1. Problem Structure and Motivation

Many tasks in computer vision, neural data analysis, and shape modeling require networks to produce outputs constrained to non-Euclidean manifolds $\mathcal{M}$ (examples: $SO(3)$, $SE(3)$, Grassmannians, symmetric positive definite matrices). Standard intrinsic approaches ("deep intrinsic manifold representation," DIMR) optimize geodesic distance losses $L_\text{intr}(\hat{y},y) = d_\mathcal{M}(\hat{y},y)$, which incur substantial computational costs: geodesic computations often necessitate matrix logarithms or nonlinear boundary value solves, impeding efficient gradient propagation. Moreover, direct manifold optimization can yield unstable dynamics and poor extrapolation due to tangent-space drift.

DEMR circumvents these limitations by embedding the manifold $\mathcal{M}$ into a Euclidean space $\mathbb{R}^n$ via a smooth injective map $J:\mathcal{M}\rightarrow\mathbb{R}^n$ and training the network using standard squared loss in embedding coordinates. At inference, network outputs are deterministically projected onto the embedded submanifold $\hat{\mathcal{M}} = J(\mathcal{M})$, ensuring valid manifold-valued predictions.

## 2. Extrinsic Embedding Formalism

An extrinsic embedding for DEMR is a smooth, injective map $J:\mathcal{M}\to\mathbb{R}^n$ such that $n\gg\dim(\mathcal{M})$ and $J(\mathcal{M})$ is diffeomorphic to $\mathcal{M}$. For prediction $\hat{y}^E\in\mathbb{R}^n$, one recovers the manifold output via
\[
\hat{y} = J^{-1}(\mathrm{Pr}(\hat{y}^E))\in\mathcal{M},
\]
where $\mathrm{Pr}:\mathbb{R}^n\rightarrow \hat{\mathcal{M}}$ is a Euclidean closest-point projection.

Common extrinsic embeddings include:
- $SO(3)$ via 9D SVD embedding: $J_{SO}(R) = \mathrm{vec}(R)\in\mathbb{R}^9$; $J_{SO}^{-1}$ reconstructs the closest orthogonal matrix via SVD with determinant adjustment.
- $SO(3)$ via 6D cross-product ([Zhou et al.’19]): $\hat{y}^E = [x_a;x_b]\in\mathbb{R}^6$, $x_c=x_a\times x_b$, $J^{-1}([x_a;x_b])=[x_a,x_b,x_c]$.
- $SE(3)$: concatenation of rotation (6D or 9D) with translation ($n=9$ or $12$).
- Grassmann $\mathrm{G}(m, \mathbb{R}^n)$: extrinsic representation as the SPD matrix $UU^\top$, with retraction by eigen-decomposition.

Equivariance under group symmetries (e.g., $J(gq)=\phi(g)J(q)$ for $g\in G$) preserves the underlying geometrical transformations in the embedding space.

## 3. Deep Network Integration and Training

DEMR modifies only the final layer of a conventional architecture (e.g., ResNet, PointNet) to output the embedding dimension $n$. The training target is the embedding of the ground truth, $y^E_\mathrm{gt}=J(y_\mathrm{gt})$, and the loss function is standard mean squared error:
\[
L_\mathrm{extr}(\hat{y}^E, y^E_\mathrm{gt}) = \|\hat{y}^E - y^E_\mathrm{gt}\|^2
\]
The output plumbing ($\mathrm{Pr}$ and $J^{-1}$) is treated as a non-differentiable post-processing step, so backpropagation and optimization remain entirely in $\mathbb{R}^n$. This design allows the use of arbitrary modern architectures with the sole requirement of dimension adaptation.

**Implementation steps:**
1. Select equivariant $J$ and $J^{-1}$ for $\mathcal{M}$.
2. Expand the network output layer to $\mathbb{R}^n$.
3. Train with Euclidean loss against $J(y_\mathrm{gt})$.
4. At inference, apply $\mathrm{Pr}$ and $J^{-1}$ to map predictions onto $\mathcal{M}$.

## 4. Theoretical Guarantees

DEMR possesses rigorous theoretical properties:

- **Bi-Lipschitz Embedding:** If $J$ is a diffeomorphism on compact $\mathcal{M}$, there exist constants $C$ so that
\[
C^{-1}\rho_\mathcal{M}(p,q) \le d_{\mathbb{R}^n}(J(p),J(q)) \le C\rho_\mathcal{M}(p,q),
\]
where $\rho_\mathcal{M}$ is intrinsic Riemannian distance.
Small Euclidean errors in the embedding thus guarantee small geodesic errors on $\mathcal{M}$.

- **Maximum Likelihood Approximation (MLE):** Under concentrated Gaussian noise models on matrix Lie groups, minimizing squared Frobenius norm in embedding space approximates MLE estimation. For instance, projecting to $SO(3)$ via SVD provides an MLE for rotation; likewise for $SE(3)$ (joint rotation and translation) and Grassmann (eigen-recovery of subspaces).

- **Generalization:** DEMR encoding layers cover entire symmetry groups and facilitate extrapolation beyond the span of training data, unlike Euclidean-output networks that are limited to convex combinations of learned features.

## 5. Empirical Evaluations

### Point-Cloud Alignment on $SE(3)$

- Architecture: Siamese PointNet backbone maps each point cloud $P\in\mathbb{R}^{N\times 3}$ to $z\in\mathbb{R}^{1024}$; concatenation and two FC layers yield $\hat{y}^E\in\mathbb{R}^n$.
- Task: Estimate relative transformation $T_\text{true}\in SE(3)$.
- Outputs: Euler-angles, axis-angle + translation, quaternion + translation, DEMR-6D, DEMR-9D.
- Metrics: Intrinsic geodesic distance $d_\text{int}(M_1, M_2)=\|\log(M_1^{-1}M_2)\|_F$; minimal-angle metric for rotation.
- Results: DEMR-6D and DEMR-9D achieve average geodesic errors $\approx 10.3^\circ$ and $10.2^\circ$, compared to Euler ($26.8^\circ$) and axis-angle ($32.0^\circ$). DEMR generalizes gracefully in limited-rotation regime, while Euclidean models fail to extrapolate.

### Illumination Subspace Learning on Grassmannians

- Data: YaleB faces under varying illumination ($d$-dimensional subspace in $\mathbb{R}^{784}$).
- Architecture: CNN with FC layers to $\hat{y}^E\in\mathbb{R}^{784\times d}$, interpreted as matrix $U$; embedding via projection and eigen-recovery.
- Baselines: GrassmannNet (tangent-space geodesic loss), DIMR (intrinsic geodesic loss), DEMR.
- Metric: Principal angle- and log-cos-based geodesic distances.
- Results: DEMR attains $D_\mathcal{G}\approx 3.47$ in $\sim140$ epochs, DIMR $3.45$ after $680$ epochs, while GrassmannNet reaches $9.68$ in $320$ epochs.

## 6. Comparison to Related Methods

Intrinsic geodesic-loss frameworks (DIMR, GrassmannNet) directly enforce manifold constraints but with high computational overhead, slow training, and poor extrapolation. Plain Euclidean-output networks do not naturally generalize beyond their training subdomain and can suffer catastrophic errors on out-of-distribution samples.

DEMR occupies a middle ground: preserving manifold structure with low computational complexity. Its embedding-based approach retains robust generalization, inherits statistical optimality (minimax MSE rates for empirical risk minimizers as in [2302.08606]), and allows plug-and-play integration with generic deep architectures. The only caveat is the ambient dimension of embedding, which may increase memory or computation costs, but does not affect the statistical rate due to dependence on intrinsic dimension.

## 7. Extensions, Robustness, and Practical Guidelines

DEMR methodology generalizes to higher-order and more complex manifolds, provided suitable extrinsic embeddings and projection operators are available. For piecewise-linear or monotonic-chain manifolds, modular deep architectures with nearly optimal parameter counts enable explicit, exact lattice embeddings ([1602.04723]). Robustness to off-manifold noise is quantifiable; for monotonic chains, error amplification is bounded by $\exp(cT)$, where $T$ is total turning angle (see [1602.04723]).

Practical implementation comprises:
1. **Preprocessing:** identify manifold patches (local PCA, clustering).
2. **Embedding construction:** assemble $A,a,B$ matrices according to chain decomposition.
3. **Dimension selection:** aggregate multiple chain modules for complex manifolds.
4. **Training and inference:** backprop solely on the embedding coordinates, post-process outputs for manifold validity.

DEMR also facilitates geometric analysis tasks, such as extrinsic curvature quantification of neural manifolds ([2212.10414]), using topologically-constrained VAEs followed by curvature computation via second fundamental form and Weingarten operator. Invariance under latent reparameterization and neuron permutation is mathematically guaranteed.

Taken together, Deep Extrinsic Manifold Representation constitutes a mathematically grounded, efficient, and versatile pipeline for manifold-valued learning and inference across diverse domains.

Source: https://www.emergentmind.com/topics/deep-extrinsic-manifold-representation-demr