1 DreamNet

DreamNet is a deep SPD classification network that appends a shortcut-connected stacked Riemannian autoencoder to an SPDNet backbone to mitigate statistical-information degradation as depth increases.

Date of publication: 26/02/2023

Ref: @wangDreamNetDeepRiemannian2023

Code available at https://github.com/GitWR/DreamNet

Overview

The paper’s actual title is “DreamNet: A Deep Riemannian Manifold Network for SPD Matrix Learning.”

DreamNet uses a four-layer SPDNet backbone followed by a stacked Riemannian autoencoder (SRAE). Reconstruction supervision encourages the SRAE and its constituent Riemannian autoencoders (RAEs) to approximate identity mappings, while shortcut connections allow later RAEs to recover residual structural information from earlier stages. Each RAE has its own classifier; predictions are combined by maximum voting. Evaluated on AFEW (emotion), FPHA (hand action), and UAV-Human (skeleton action).

In the authors’ words, a “stacked Riemannian auto-encoder (SRAE) on the tail of the backbone network, i.e., SPDNet. […] we implant several residual-like blocks using shortcut connections to augment the representational capacity of SRAE, and to simplify the training of a deeper network.”

Architecture

Input representation: a sequence is represented by the covariance

regularized as with .

The four-layer SPDNet backbone is

giving . The SRAE contains cascaded RAEs, each with five layers:

with encoder/decoder bilinear maps

where . Every hidden representation also feeds a classifier ( or → LogEig → FC → cross-entropy).

Shortcut connections use ambient element-wise matrix addition:

followed by ReEig. Addition introduces no parameters, preserves positive definiteness when both operands are SPD, and is cheaper than the paper’s alternative Abelian group operation, which requires at least computation. This is a residual-like SPD operation, but it is not the log-domain LogEuclideanResidual operation - DreamNet explicitly uses element-wise addition for efficiency.

The compound loss is

where is the cross-entropy of the -th classifier and

The authors justify the Euclidean/Frobenius reconstruction distance (instead of the Log-Euclidean metric) because it avoids matrix inversion during backpropagation and directly measures “statistical-level” similarity; by smoothness of and , infinitesimal Euclidean distance implies infinitesimal Log-Euclidean distance and conversely. Empirically, on AFEW, Euclidean reconstruction gives 36.59% at 31.32 s/epoch vs Log-Euclidean 36.71% at 88.16 s/epoch.

Model Parameters

DatasetInput SPDBackbone dimensionsPer-RAE dimensions
AFEW, ,
FPHA, ,
UAV-Human, ,

Depth variants: DreamNet-27 ( RAEs), DreamNet-47 (), DreamNet-92 (), DreamNet-182 (). Parameter counts for 27/47/92: AFEW 0.36M / 0.53M / 0.95M; FPHA 0.11M / 0.18M / 0.36M; UAV-Human 0.10M / 0.16M / 0.31M.

Training Parameters

  • Learning rate: 0.01.
  • Batch size: 30.
  • BiMap initialization: random semi-orthogonal matrices; FC: random matrices.
  • ReEig threshold: (AFEW, FPHA); (UAV-Human).
  • Reconstruction-loss trade-off : described only as a “small value” (exact value not reported).
  • Optimizer, epochs, weight decay, momentum: not reported.
  • Hardware: Intel i7-9700 3.4 GHz, 16 GB RAM; a GTX 2080 Ti did not accelerate training (eigenvalue operations are the bottleneck).
  • FCMNet ablation: initial lr 0.02 / 0.05 (FCMNet-47 / FCMNet-92), attenuated ×0.9 every 100 epochs.

Results

Depth ablation (accuracy % and s/epoch):

DatasetDreamNet-27DreamNet-47DreamNet-92
AFEW36.59 (31.32 s)36.98 (46.98 s)37.47 (80.62 s)
FPHA87.78 (2.60 s)88.64 (3.66 s)88.12 (6.70 s)
UAV-Human44.88 (49.04 s)45.57 (71.33 s)46.28 (129.29 s)

DreamNet-182 obtains 46.03% on UAV-Human. Shortcut ablation (wSCMNet without shortcuts) on UAV-Human: 43.86 / 44.04 / 44.40 for 27/47/92 - all below the corresponding DreamNets. Classifier ablation on FPHA (DreamNet-27): all three classifiers combined 87.78%; single best classifier 87.39%; FCMNet (final classifier only) 87.18 / 87.60 / 87.30 for 27/47/92.

Comparison with SPDNet (best DreamNet):

DatasetSPDNetSPDNetBNBest DreamNet
AFEW34.2336.1237.47
FPHA86.2686.8388.64
UAV-Human42.3143.2846.28