Cross-Attention of Disentangled Modalities for 3D Human Mesh Recovery with Transformers

Junhyeong Cho, Kim Youwang, Tae-Hyun Oh

Introduction

Estimating the 3D pose and shape of a human from a single 2D image—monocular 3D Human Mesh Recovery (HMR)—is a fundamental yet challenging task in computer vision. The problem is inherently ill-posed due to depth ambiguities and frequent self-occlusions. Recent advancements have seen Transformer-based architectures, such as METRO and Mesh Graphormer, achieve state-of-the-art results by modeling the global dependencies between body joints and mesh vertices. However, these models are characterized by significant computational overhead, limiting their utility in real-time applications.

This paper introduces FastMETRO, a novel transformer encoder-decoder architecture designed to address these efficiency bottlenecks. By disentangling image encoding from mesh estimation and leveraging human body topology through attention masking, FastMETRO achieves superior accuracy with a fraction of the parameters and significantly faster inference speeds than previous transformer-based models.

The Redundancy Problem in Transformer-based HMR

Previous state-of-the-art methods typically utilize a Transformer encoder-only architecture. In these designs, a global image feature vector is concatenated with every joint and vertex token. This "token design" leads to two primary issues:

  1. Computational Redundancy: The same image information is duplicated thousands of times across tokens. Analysis reveals that in these models, informative signals (the 3D coordinates) constitute only 0.15% of the input tokens, while 99.85% is redundant image data.
  2. Spatial Information Loss: Collapsing an entire image into a single global vector discards vital spatial context necessary for precise vertex localization.

Because of these overheads, previous models are often too slow and memory-intensive for practical, real-world applications.

Methodology: FastMETRO

FastMETRO shifts the paradigm from an encoder-only bottleneck to an efficient encoder-decoder framework.

Disentangled Modalities and Cross-Attention

Instead of merging image and mesh data into a single token set, FastMETRO disentangles these modalities. A CNN-based encoder extracts spatial image features, preserving local context. A Transformer decoder then processes learnable "joint" and "vertex" tokens. Through cross-attention, these tokens selectively "look" at relevant regions within the spatial image features. This ensures that the model processes the image features only once, drastically reducing memory and computation.

Topology-Guided Attention Masking

To incorporate the physical structure of the human body, FastMETRO utilizes the known mesh topology (how vertices are connected). The authors implement attention masking within the decoder, forcing vertices to primarily attend to their immediate neighbors. This effectively injects a "morphological prior" into the Transformer, mimicking the strengths of Graph Convolutional Networks (GCNs) while maintaining the Transformer’s powerful non-local modeling capabilities.

Efficiency Optimizations

The architecture incorporates several additional strategies for speed and performance:

  • Progressive Dimensionality Reduction: The hidden dimensions of the transformer layers are reduced progressively to keep the model lightweight.
  • Coarse-to-Fine Upsampling: The model initially estimates a coarse mesh, which is then refined using a pre-computed upsampling matrix to generate the final high-resolution output, reducing optimization difficulty.

Experiments and Results

FastMETRO was trained and evaluated on standard benchmarks, including Human3.6M, 3DPW (3D Pose in the Wild), and FreiHAND. To improve robustness, the authors also utilized auxiliary datasets such as UP-3D, MuCo-3DHP, COCO, and MPII.

Performance and Efficiency

The model establishes a new Pareto-front for the accuracy-efficiency trade-off:

  • State-of-the-Art Accuracy: The large variant, FastMETRO-L, outperforms previous image-based methods, achieving a PA-MPJPE (Reconstruction Error) of 33.7mm on Human3.6M. Furthermore, FastMETRO-L reaches higher accuracy in 60 epochs than previous models did in 200.
  • Massive Speedup: The small variant, FastMETRO-S, operates at nearly 60 FPS on a V100 GPU, a significant improvement over the 14-30 FPS range of previous SOTA models.
  • Model Size: FastMETRO-S utilizes only approximately 9% of the parameters of the original METRO architecture while remaining competitive in accuracy.

Generalizability

Beyond human bodies, the model was validated on the FreiHAND dataset for 3D hand mesh reconstruction. The successful results demonstrate that the architecture is not over-fitted to human morphology but is a generalizable framework for any mesh-based object reconstruction.

Conclusion

FastMETRO demonstrates that disentangling image features from mesh tokens and utilizing cross-attention can resolve the massive redundancies found in previous Transformer-based HMR models. By combining this with topology-based masking, the model achieves state-of-the-art performance with significantly lower computational costs. While the model remains "data-hungry"—requiring substantial training samples to reach its full potential—its efficiency and speed mark a significant step toward practical, real-time 3D human mesh recovery.

Summary updated

BibTeX
@inproceedings{cho2022cross,
  author = {Junhyeong Cho and Kim Youwang and Tae-Hyun Oh},
  title = {{Cross-Attention of Disentangled Modalities for 3D Human Mesh Recovery with Transformers}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19769-7\_20},
}
Figure