ShapeNet: Shape Analysis of Functions and Curves via Orbit-valued Weights

Emmanuel Akeweje, Mimi ZhangarXiv 2026

TL;DR

When analyzing continuous signals like brainwaves or motion-capture curves, differences in timing (phase) constantly get tangled up with differences in shape (amplitude). ShapeNet introduces a neural network architecture whose weights aren't fixed numbers or static curves, but entire equivalence classes of time-warped templates. By combining these "orbit-valued weights" with a fast, smooth parametric time-warper, it extracts pure, timing-invariant shape features at GPU-friendly speeds without breaking backpropagation.

What Problem Does This Paper Address?

Imagine recording a dozen people performing a karate kick, or measuring brainwaves (EEG) across multiple trials. Even if the underlying pattern is identical, one trial might happen slightly faster, start later, or hesitate in the middle. If you naively average or compare these signals point-by-point, peaks cancel out, valleys blur, and genuine geometric structure vanishes into flat noise.

In statistics, elastic registration solves this by transforming signals into Square-Root Velocity (SRV) functions—a mathematical space where stretching or compressing time acts cleanly and prevents pathological "pinching" artifacts—and finding an optimal "warping" function to align their timelines.

Bringing elastic alignment inside deep neural networks, however, hits two major walls:

  1. Computational bottlenecks: Finding the optimal time-warp usually relies on dynamic programming, which is painfully slow to run inside every single forward pass of network training.
  2. Broken gradients: Small tweaks to network weights can cause the optimal alignment path to jump abruptly, making the mapping non-smooth and destabilizing backpropagation.

Methods

ShapeNet builds on Functional Neural Networks (networks where weights are continuous functions rather than scalars) using an autoencoder setup that maps continuous multi-dimensional curves to a vector latent space and reconstructs them using a phase-invariant elastic loss.

Figure 1. Architecture of ShapeNet. The plum block is an MLP autoencoder; the blue components denote functional nodes/edges.

What is newly introduced here are three tightly connected ideas:

  • Orbit-Valued Weights: Standard functional layers compute an inner product between an input curve and a learned weight function. ShapeNet replaces the weight function with a weight orbit—a shape template representing all valid time-reparameterizations of itself. The neuron outputs the maximum SRV agreement across all possible time-warps, guaranteeing phase-invariant features right at the first layer.
Comparison between standard functional layers (left) and ShapeNet's phase-invariant weight-orbit projection (right).
  • Parametric Warping Functions (PWF): Instead of discrete dynamic programming, ShapeNet models time-warps using cumulative softmax-parameterized Bernstein polynomials. By construction, these are guaranteed to be smooth, invertible, orientation-preserving time warps, and the authors prove they can approximate any valid smooth warp arbitrarily well.
  • Smart Initialization & Amortization: Because alignment optimization has many local minima, the authors seed PWF with 14 distinct warp shapes (convex, concave, S-shaped, etc.) generated via the incomplete Beta function. For large datasets, they train a lightweight ResNet amortizer on a subset of pairs to predict a single, well-informed starting warp directly from a pairwise time-matching grid.

Datasets

No new benchmarks are introduced; the authors evaluate on synthetic simulations and 13 public real-world datasets:

  • Simulated Data: Six curve-alignment scenarios (such as frequency-increasing chirp signals with heavy phase jitter).
  • Motion & Time Series: The optical motion-capture modality of the Berkeley Multimodal Human Action Database (BMHAD) alongside 11 datasets from the UEA & UCR Time Series Archives (including ECG200, SwedishLeaf, Symbols, Plane, NATOPS, and RacketSports).
  • Neuroimaging: Motor-imagery EEG recordings from BCI Competition IV Dataset 2a.

Key Insights and Ideas

  • Flipping the warp saves backpropagation: Because time-warping in SRV space is isometric (distance-preserving), warping the template to match the input gives the exact same similarity score as warping the input to match the template. ShapeNet warps the input to the learned template during training. This leaves the learnable template unwarped, giving gradients a clean, direct highway back to the weights and neatly decoupling alignment from backpropagation.
  • Tighter variance doesn't always mean better alignment: Raw Dynamic Time Warping (DTW) yields tighter error bands than ShapeNet on noisy curves, not because it aligns shapes better, but because it cheats by "pinching" horizontal/vertical segments to force noisy values together. Working in SRV space with smooth Bernstein polynomials preserves true diffeomorphic geometry.
  • Parallel GPU batching flattens scaling: Because PWF reduces alignment to unconstrained parameter optimization, thousands of curves can be aligned simultaneously in one GPU batch—making runtime nearly insensitive to curve length or batch size until GPU memory saturates.

Key Results

  • Curve Alignment & Speed: Using 14 Beta initializations, PWF accurately recovers high-frequency peaks and troughs where previous neural warpers (SrvfRegNet, SrvfNet) flatten out. On an RTX 5070 Ti GPU, single-init PWF aligns 1,000 curves ($T=500$) in 2.31s; quadrupling length to $T=2000$ takes 2.23s, and scaling 10$\times$ to 10,000 curves takes 2.57s (whereas 24-CPU elastic FastDTW jumps from 3.47s to 25.96s).
Figure 4. Alignment of 1000 simulated trajectories. The first panel in the top row shows a subset of 100 noisy trajectories. The remaining panels show the pointwise mean (solid line) and ±1 standard deviation (shaded band) of the curves, with the template overlaid as a dotted line. They cover in order: the unaligned curves; the proposed PWF initialized at the identity (α = β = 1), from a coarse FastDTW path (r = 1), and from 14 Beta-function initializations; FastDTW applied to the smoothed curves and to their SRV functions (elastic FastDTW) with r = 1 and r = 3; and the SrvfRegNet, SrvfNet and RF-DTAN alignments.
  • Unsupervised Clustering: Paired with Gaussian Mixture Models or K-means, ShapeNet achieves the highest Adjusted Mutual Information (AMI) and Adjusted Rand Index (ARI) on 8 out of 12 benchmarks (including a 1.000 AMI on Plane and 0.908 on BMHAD).
  • Supervised Classification & EEG: Attaching a linear head (ShapeNet-C) yields top or tied balanced accuracy on 7 of 12 datasets (e.g., 0.991 on BMHAD, 0.958 on ERing). Adding a parallel weight-orbit branch to EEGNet also absorbs trial-to-trial timing jitter in real brainwave classification.

Limitations and Future Work

  • Sharp, localized features: Because a single global Bernstein polynomial produces a smooth warp across the entire domain, PWF can struggle to align sharp, closely spaced local features and becomes sensitive to initialization in those regimes.
  • Future directions: The authors plan to explore localized or piecewise warping families to handle fine-grained local timing shifts, and extend their orbit-valued weights to other shape-preserving symmetries, such as 2D/3D rotations and uniform scaling of curves.

Summary updated

BibTeX
@misc{akeweje2026shapenet,
  author = {Emmanuel Akeweje and Mimi Zhang},
  title = {{ShapeNet: Shape Analysis of Functions and Curves via Orbit-valued Weights}},
  year = {2026},
  eprint = {2611.38291},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38291},
}
Figure