Analogy-Forming Transformers for Few-Shot 3D Parsing

Nikolaos Gkanatsios, Mayank Singh, Zhaoyuan Fang, Shubham Tulsiani, Katerina Fragkiadaki

Abstract

We present Analogical Networks, a model that encodes domain knowledge explicitly, in a collection of structured labelled 3D scenes, in addition to implicitly, as model parameters, and segments 3D object scenes with analogical reasoning: instead of mapping a scene to part segments directly, our model first retrieves related scenes from memory and their corresponding part structures, and then predicts analogous part structures for the input scene, via an end-to-end learnable modulation mechanism. By conditioning on more than one retrieved memories, compositions of structures are predicted, that mix and match parts across the retrieved memories. One-shot, few-shot or many-shot learning are treated uniformly in Analogical Networks, by conditioning on the appropriate set of memories, whether taken from a single, few or many memory exemplars, and inferring analogous parses. We show Analogical Networks are competitive with state-of-the-art 3D segmentation transformers in many-shot settings, and outperform them, as well as existing paradigms of meta-learning and few-shot learning, in few-shot settings. Analogical Networks successfully segment instances of novel object categories simply by expanding their memory, without any weight updates.

Introduction

The dominant paradigm in deep learning is parametric: a network maps an input directly to an output based on patterns "baked" into its weights during training. While successful, these models struggle with few-shot learning—the ability to understand a new category from just one or two examples. Existing solutions like meta-learning often require complex optimization or suffer from "catastrophic forgetting."

Analogical Networks address this by treating inference as a process of finding analogies between the current scene and past experiences. By forcing the model to use memory features to segment the input, the authors bake "analogical reasoning" into the architecture. The model doesn't just ask "What is this?"; it asks "What part of the memory does this look like?"

Methodology

The Analogical Networks architecture consists of two main components:

  1. The Retriever: Given an unlabeled input 3D point cloud, the retriever searches a memory repository of labeled 3D scenes to find the top-$k$ most similar examples.
  2. The Modulator: This transformer-based architecture uses memory part queries—feature encodings of the parts from the retrieved scenes—instead of generic learnable queries. These queries perform cross-attention over the input scene’s features to identify analogous parts.
The Analogical Networks architecture consists of a Retriever that selects labeled memories and a Modulator that uses memory part queries to segment the input scene.

Within-Scene Pre-training

Learning part correspondences across different objects is challenging due to the rarity of fine-grained annotations. To overcome this, the authors employ a self-supervised technique: they take a single 3D scene, apply two different random augmentations, and task the model with parsing one version using the other as its "memory." Since both versions originate from the same instance, the ground-truth correspondence is known, allowing the model to learn the mechanics of analogy-making.

Experimental Results

The model was evaluated on PartNet, which contains thousands of 3D objects with hierarchical part annotations, and ScanObjectNN, a dataset of real-world, noisy 3D point clouds.

Few-Shot Performance

In 1-shot and 5-shot settings on PartNet, Analogical Networks outperformed standard parametric baselines (like DETR3D) by over 20% in Adjusted Rand Index (ARI). Notably, to "teach" the model a new category, one simply adds labeled examples to the memory bank—the model adapts immediately without any gradient steps.

Quantitative comparison on PartNet showing Analogical Networks' superior performance in few-shot settings compared to standard parametric baselines.

Competitive Many-Shot and Robustness

Even when data is abundant, the model remains competitive with state-of-the-art 3D transformers. Furthermore, the model successfully generalized to the noisy, real-world data of ScanObjectNN, maintaining plausible segmentations even when the input was incomplete.

Discussion and Future Work

Analogical Networks demonstrate that a semi-parametric approach can significantly improve few-shot 3D parsing. However, several areas for improvement remain:

  • Retriever Bottleneck: The retriever is currently a separate module. An "oracle" retriever significantly boosts performance, suggesting that end-to-end training of the retrieval logic is a major opportunity.
  • Scaling: Future work could extend this to complex, multi-object 3D scenes (e.g., entire rooms) and explore generative heads to "inpaint" missing parts of an object by referencing retrieved memories.

Summary updated

BibTeX
@inproceedings{gkanatsios2023analogy,
  author = {Nikolaos Gkanatsios and Mayank Singh and Zhaoyuan Fang and Shubham Tulsiani and Katerina Fragkiadaki},
  title = {{Analogy-Forming Transformers for Few-Shot 3D Parsing}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=SRIQZTh0IK},
}
Figure