Learning to Sample

Oren Dovrat, Itai Lang, Shai Avidan

Introduction

3D point clouds, which represent surfaces as collections of $(x, y, z)$ coordinates, are fundamental to modern 3D computer vision applications like autonomous driving and robotics. However, the sheer density of these clouds often presents a significant computational challenge for real-time applications and resource-constrained hardware. To address this, downsampling is typically employed as a preprocessing step to simplify the data.

The conventional approach to downsampling has been Farthest Point Sampling (FPS), a geometric heuristic that selects points to maximize their mutual distance, ensuring uniform coverage of the shape. While effective for preserving global geometry, FPS is "task-agnostic"—it treats all points as equally important, regardless of whether the final goal is classification, retrieval, or reconstruction. This paper presents S-NET, a deep learning framework that learns to prioritize points most critical for a specific downstream task, effectively implementing a learnable "visual attention" mechanism for 3D data.

The S-NET Architecture

The authors propose a two-stage approach to task-specific sampling, centered on the S-NET architecture.

Point Generation and Matching

S-NET utilizes a PointNet-inspired architecture, employing point-wise convolutions and global max-pooling to extract high-level features from an input cloud of $n$ points. From these features, the network generates a smaller set of $k$ "optimized" points. Because the points generated by S-NET are synthesized coordinates, they may not exist in the original input set. To ensure the output is a true subset of the input, a Nearest Neighbor (NN) matching step is performed during inference. This step maps each generated point to its closest counterpart in the original cloud.

The S-NET training and inference pipeline. During training, S-NET is optimized via a joint objective of task loss and sampling regularization. At inference, a matching step ensures the output is a subset of the input.

Joint Objective Function

S-NET is trained using a joint loss function that balances task performance with geometric fidelity:

  • Task Loss: Derived from a pre-trained, fixed task network (e.g., a classifier), this loss guides S-NET to select points that maximize the performance of the downstream model.
  • Sampling Regularization Loss: A geometric loss based on a generalized Chamfer distance that forces generated points to remain close to the original surface and prevents them from collapsing into a single location.

Progressive Sampling with ProgressiveNet

Standard S-NET models are trained for a fixed sampling size $k$. To provide greater flexibility, the authors introduced ProgressiveNet. This variant learns to order points by their relative importance to the task. This allows users to select any sampling ratio at inference time by simply taking the top $k$ points from the ordered sequence, eliminating the need for multiple task-specific models.

Experimental Evaluation

The researchers benchmarked S-NET and ProgressiveNet on the ModelNet40 dataset for classification and retrieval, and ShapeNet Core55 for reconstruction.

Classification and Retrieval

On ModelNet40, S-NET demonstrated significant performance gains over traditional methods, particularly at high compression ratios. When downsampling to just 32 points (a 32x reduction), S-NET achieved 87.3% accuracy, compared to 82.2% for FPS. At an extreme 64x reduction (16 points), S-NET maintained 85.6% accuracy, while FPS performance dropped to 76.7%.

Classification accuracy vs. sampling ratio on ModelNet40. S-NET (green) consistently outperforms traditional Farthest Point Sampling (FPS) and random sampling, maintaining higher accuracy even at extreme compression levels.

In retrieval tasks, S-NET proved even more robust. At a sampling ratio of 32, it achieved a mean Average Precision (mAP) of 59.0, nearly doubling the 37.7 mAP of FPS.

Reconstruction and Efficiency

For reconstruction, S-NET often produced non-uniform samples, concentrating points in areas of high geometric complexity. This non-uniformity allowed autoencoders to reconstruct shapes more accurately than with uniform FPS samples. Furthermore, the authors demonstrated that using S-NET as a front-end for a classifier can reduce total inference time by over 90% with negligible memory overhead, making it ideal for edge deployment.

Key Insights and Future Directions

A notable finding was the "adversarial" potential of learned sampling. The authors showed that S-NET could be trained to select points that "trick" an autoencoder into reconstructing a different object class, highlighting how the network learns to exploit specific features prioritized by the task model.

While S-NET currently requires task-specific training and a non-differentiable matching step, it represents a significant step toward intelligent data reduction. Future work could explore end-to-end differentiable sampling and extending this "learning to sample" philosophy to other domains, such as graph simplification or video processing.

Summary updated

BibTeX
@inproceedings{dovrat2019learning,
  author = {Oren Dovrat and Itai Lang and Shai Avidan},
  title = {{Learning to Sample}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00287},
}
Figure