Attention-based 3D Object Reconstruction from a Single Image

Andrey Salvi, Nathan Gavenski, Eduardo H. P. Pooch, Felipe Tasoniero, Rodrigo C. Barros · DOI

Abstract

Single-view 3D reconstruction remains a significant challenge due to the inherent difficulty of inferring global structural dependencies from local 2D features. This paper presents an improved approach to 3D object reconstruction by integrating self-attention mechanisms into Occupancy Networks (ONet). By modifying the standard ResNet-18 encoder to capture long-range spatial relationships, the proposed method achieves a 10x reduction in Chamfer-L1 distance and significantly enhances the structural consistency of generated meshes compared to baseline convolutional models.

Introduction

Reconstructing a 3D model from a single 2D image is a fundamental task for robotics, augmented reality, and autonomous systems. While Convolutional Neural Networks (CNNs) have become the standard for feature extraction, they suffer from a "local bias" due to their restricted receptive fields. In 3D reconstruction, this limitation often results in fragmented or structurally unsound models—such as chairs missing legs or sofas with disconnected components—because the network cannot effectively relate distant parts of an object.

To address this, we propose leveraging self-attention to provide the "connective tissue" necessary for global context. Unlike standard convolutions, self-attention allows the network to calculate the importance of every pixel relative to all others, ensuring that global symmetry and structural logic are preserved during the reconstruction process.

Methodology

Attentioned Encoder Architecture

The core innovation lies in the integration of self-attention modules into a ResNet-18 encoder. These modules, inspired by Self-Attention Generative Adversarial Networks (SAGAN), enable the encoder to capture global dependencies that are often lost in deep convolutional stacks.

The Attentioned ResNet-18 encoder architecture, featuring self-attention modules integrated with standard ResNet layers.

Strategic placement of these modules is critical. Experimental results indicate that attention in early layers helps capture fine-grained surface details, while attention in later layers is essential for maintaining the overall structural frame of the object.

Ensemble Specialization

Beyond architectural changes, we found that a single universal model often struggles with the diverse structural logic of different object categories. We implemented an ensemble approach where specialized models are trained for specific classes (e.g., "bench," "lamp," "car"). This allows the self-attention mechanism to specialize in the unique geometric constraints of each category.

Experiments and Results

Datasets and Evaluation

The model was trained and evaluated on ShapeNet, a large-scale dataset of synthetic 3D models. To test real-world generalization, we also evaluated the model on the Stanford Online Products dataset, which contains complex real-world images from eBay.

Quantitative Performance

The "Attentioned ONet" consistently outperformed the baseline ONet across all primary metrics:

  • Intersection over Union (IoU): Improved by an average of 5.05%.
  • Chamfer-L1 Distance: Achieved a 10x reduction in error, indicating high surface fidelity.
  • Normal Consistency: Improved by 0.83%, resulting in smoother and more realistic mesh surfaces.

Qualitative Analysis

Qualitatively, the attention mechanism allows the model to ignore irrelevant background noise in real-world photos and focus on the object's core geometry. As shown in the comparison below, our method produces significantly more complete and structurally accurate meshes than the baseline ONet, particularly for objects with complex or thin structures.

Qualitative comparison between the baseline ONet and our proposed method across various challenging object categories.

In a human evaluation survey involving 130 participants, our method's reconstructions were preferred over the original ONet's outputs more than 90% of the time.

Discussion and Future Work

While the integration of self-attention into the encoder yields substantial improvements, extending this to the 3D decoder remains a challenge. Current hardware limitations make adding self-attention to the coordinate-processing stage computationally prohibitive, requiring over 300 GB of VRAM. Future research will focus on developing memory-efficient attention mechanisms for the decoding stage.

Additionally, while the ensemble approach improves accuracy, it currently requires prior knowledge of the object's category. Developing a unified, universal attention model that maintains this level of performance across all categories without explicit specialization is a key goal for future iterations.

Summary updated

BibTeX
@inproceedings{salvi2020attention,
  author = {Andrey Salvi and Nathan Gavenski and Eduardo H. P. Pooch and Felipe Tasoniero and Rodrigo C. Barros},
  title = {{Attention-based 3D Object Reconstruction from a Single Image}},
  booktitle = {IJCNN},
  year = {2020},
  doi = {10.1109/ijcnn48605.2020.9206776},
}
Figure