Point-In-Context: Understanding Point Cloud via In-Context Learning

Mengyuan Liu, Zhongbin Fang, Xia Li 0005, Joachim M. Buhmann, Xiangtai Li, Chen Change Loy · DOI

Abstract

Point-In-Context (PIC) is the first framework to bring in-context learning (ICL)—the ability to learn a task from a few examples without updating model weights—to 3D point cloud understanding. By introducing a novel Joint Sampling module and dynamic labeling strategies, PIC enables a single "generalist" model to perform tasks like reconstruction, denoising, and part segmentation across diverse, unseen datasets using only visual prompts. Unlike traditional models that rely on fixed task heads, PIC treats 3D understanding as a coordinate-based translation problem, achieving state-of-the-art performance in multi-task and cross-dataset settings.

Introduction

In-context learning has revolutionized natural language processing and 2D computer vision, allowing models like GPT-4 or SegGPT to adapt to new tasks simply by observing a few input-output examples. However, extending this capability to 3D point clouds has been hindered by three primary challenges: information leakage in masked modeling, the unordered nature of point sets, and the rigidity of traditional classification labels.

Overview of the PIC framework, showing PIC-Generalist (PIC-G) for multitasking and PIC-Segmenter (PIC-S) for cross-dataset segmentation.

Standard 3D Masked Point Modeling (MPM) often uses patch center coordinates for positional encoding. If a patch is masked but its center is provided, the model can "cheat" by knowing the exact location of missing data. Furthermore, the lack of a rigid grid makes it difficult to maintain spatial alignment between input and target sequences. PIC addresses these hurdles through a unified architecture designed for 3D in-context prompts.

Methodology

The PIC framework consists of two specialized variants: PIC-Generalist (PIC-G) for multi-tasking and PIC-Segmenter (PIC-S) for specialized, cross-dataset segmentation. The core technical innovation is the Joint Sampling (JS) Module.

Joint Sampling (JS) Module

To solve the issues of information leakage and spatial misalignment, the JS module records the indices of sampled center points from the input and applies them identically to the target. This ensures that input and target tokens are perfectly aligned in the transformer's sequence without revealing the target's geometric structure prematurely. This alignment is critical for the transformer to correlate input patches with their corresponding target patches.

The Joint Sampling module prevents information leakage and ensures consistency between input and target point clouds.

In-Context Labeling and Enhancing

For segmentation, PIC-S moves away from fixed classification heads. Instead, it randomly assigns XYZ coordinates to part categories for each sample. The model must analyze the "prompt" (an example pair) to determine which coordinate represents which part, forcing it to learn semantic relationships rather than memorizing a static label map. Additionally, an "In-Context Enhancing" strategy provides the model with corrupted/restored pairs as prompts, increasing robustness against noise.

Experiments and Results

The authors evaluated PIC on several benchmarks, including a curated ShapeNet In-Context Dataset (~217k samples) and a Human & Object Segmentation Benchmark (~140k samples).

Key Findings

  • Generalist Superiority: PIC-G outperforms standard multitask models (which use shared backbones but separate heads) across reconstruction, denoising, registration, and segmentation. It achieves a Chamfer Distance (CD) of 4.3 on reconstruction and 78.95 mIoU on segmentation.
  • Zero-Shot Generalization: PIC-S demonstrated remarkable flexibility on the unseen AKB-48 dataset, achieving 73.52 mIoU in a one-shot setting. This indicates the model's ability to segment new categories (e.g., articulated objects) it never encountered during training.
  • Customizable Prompts: Users can "program" the model's behavior via prompts. For instance, by providing a prompt that groups a chair's back and seat into one label, the model follows that specific logic rather than its default training patterns.

Conclusion

PIC represents a significant step toward generalist 3D vision models. By solving the alignment and labeling challenges unique to point clouds, it enables flexible, prompt-based interaction with 3D data. While a performance gap remains between PIC and specialized models fine-tuned for single tasks, its ability to generalize to unseen datasets and tasks without retraining marks a new frontier for 3D deep learning. Future work will focus on automating prompt selection and reducing the computational overhead of long transformer sequences.

Summary updated

BibTeX
@article{liu2026point,
  author = {Mengyuan Liu and Zhongbin Fang and Xia Li and Joachim M. Buhmann and Xiangtai Li and Chen Change Loy},
  title = {{Point-In-Context: Understanding Point Cloud via In-Context Learning}},
  journal = {Int. J. Comput. Vis.},
  year = {2026},
  doi = {10.1007/s11263-026-02799-y},
}
Figure