TransFusion: Cross-view Fusion with Transformer for 3D Human Pose Estimation

Haoyu Ma, Liangjian Chen, Deying Kong, Zhe Wang, Xingwei Liu, Hao Tang, Xiangyi Yan, Yusheng Xie, Shih-Yao Lin, Xiaohui Xie

Abstract

Multi-view 3D human pose estimation often struggles with occlusions that hinder 2D keypoint detection. We present TransFusion, a lightweight transformer-based framework that fuses features across multiple camera views. By incorporating a novel "epipolar field" to guide 3D positional encodings, TransFusion learns cross-view correspondences while preserving essential semantic context. Our approach achieves state-of-the-art performance on the Human 3.6M benchmark with a 98% reduction in parameters compared to previous fusion models, demonstrating both high accuracy and exceptional efficiency.

Introduction

The standard pipeline for multi-view 3D human pose estimation involves detecting 2D keypoints in individual camera views and triangulating them into 3D space. However, 2D detectors frequently fail when body parts are occluded or viewed from challenging angles.

To address this, recent research has focused on "3D-aware" 2D detectors that fuse features from neighboring views. Existing methods typically fall into two categories: those using dense, fixed attention weights (which are parameter-heavy and rig-specific) and those using strict epipolar geometry to sample features along a 1D line. While geometrically accurate, strict line-sampling often discards valuable semantic context—such as the surrounding limb structure—necessary for localizing occluded joints.

Methodology

Architecture

TransFusion employs a unified transformer framework to integrate information from multiple views simultaneously. The process begins with a shallow CNN (e.g., the initial layers of a ResNet-50) to extract low-level features. These features are flattened and combined with two types of positional encodings: standard 2D sine encodings and a novel Geometry Positional Encoding (GPE).

The TransFusion architecture utilizes a Transformer Encoder to fuse flattened features from multiple views, guided by 2D and geometry-based positional encodings.

The resulting sequences from all views are concatenated and processed by a standard Transformer Encoder. The self-attention mechanism naturally identifies correlations both within a single image and across different camera views, facilitating robust feature fusion.

Geometry Positional Encoding and the Epipolar Field

To provide the transformer with 3D spatial awareness, the authors introduce GPE, which is based on the 3D ray direction of each pixel derived from camera calibration.

The core innovation is the Epipolar Field. Rather than strictly masking attention to a 1D epipolar line, TransFusion uses a soft "epipolar field" that assigns correspondence scores to all pixels in a reference view based on their angular distance to the true epipolar line. This field serves as a loss function during training, gently encouraging the transformer to attend to geometrically valid regions while allowing it to utilize surrounding semantic context.

Visualization of the epipolar field (right) compared to standard heatmaps (left), showing how the model identifies corresponding regions across views.

Results and Discussion

Performance on Benchmarks

TransFusion was evaluated on the Human 3.6M indoor dataset and the Ski-Pose outdoor dataset. On Human 3.6M, the model achieved a Mean Per Joint Position Error (MPJPE) of 25.8 mm, surpassing previous state-of-the-art methods like Cross-view Fusion (27.8 mm) and Epipolar Transformers (27.1 mm). Its performance on Ski-Pose (31.6 mm MPJPE) further demonstrates its robustness in complex, uncontrolled environments.

Efficiency and Speed

A key advantage of TransFusion is its efficiency. By leveraging dynamic self-attention instead of learned fixed weights, the model requires only 5M parameters—a 98% reduction compared to the 235M parameters of Cross-view Fusion. Furthermore, the parallelizable nature of transformer attention allows for an inference time of 0.032 seconds on a 2080Ti GPU, nearly three times faster than Epipolar Transformers.

Conclusion

TransFusion demonstrates that soft geometric constraints are more effective than hard constraints for multi-view feature fusion. By guiding a transformer with an epipolar field, the model maintains semantic context while achieving superior accuracy and efficiency. Future work will explore direct 3D joint regression to bypass the intermediate 2D heatmap stage entirely.

Summary updated

BibTeX
@misc{ma2021transfusion,
  author = {Haoyu Ma and Liangjian Chen and Deying Kong and Zhe Wang and Xingwei Liu and Hao Tang and Xiangyi Yan and Yusheng Xie and Shih-Yao Lin and Xiaohui Xie},
  title = {{TransFusion: Cross-view Fusion with Transformer for 3D Human Pose Estimation}},
  year = {2021},
  eprint = {2110.09554},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.09554},
}
Figure