Papers
Topics
Authors
Recent
Search
2000 character limit reached

EdgeFormer: local patch-based edge detection transformer on point clouds

Published 23 Apr 2026 in cs.CV | (2604.21387v1)

Abstract: Edge points on 3D point clouds can clearly convey 3D geometry and surface characteristics, therefore, edge detection is widely used in many vision applications with high industrial and commercial demands. However, the fine-grained edge features are difficult to detect effectively as they are generally densely distributed or exhibit small-scale surface gradients. To address this issue, we present a learning-based edge detection network, named EdgeFormer, which mainly consists of two stages. Based on the observation that spatially neighboring points tend to exhibit high correlation, forming the local underlying surface, we convert the edge detection of the entire point cloud into a point classification based on local patches. Therefore, in the first stage, we construct local patch feature descriptors that describe the local neighborhood around each point. In the second stage, we classify each point by analyzing the local patch feature descriptors generated in the first stage. Due to the conversion of the point cloud into local patches, the proposed method can effectively extract the finer details. The experimental results show that our model demonstrates competitive performance compared to six baselines.

Summary

  • The paper introduces a novel Transformer-based method utilizing local patch descriptors for precise 3D edge detection.
  • It leverages dual projection distances and multi-head self-attention to capture both sharp and smooth edge transitions.
  • Experimental results on ABC and PartNet datasets show superior performance with high precision (0.890) and recall (0.922).

EdgeFormer: Transformer-Based Local Patch Edge Detection in 3D Point Clouds

Introduction

Edge detection in 3D point clouds is a critical task underpinning numerous vision applications, including simplification, segmentation, reconstruction, and part-level analysis. As surfaces in point clouds present both irregular sampling and varying scale features, traditional geometric and surface fitting approaches struggle with detecting fine-grained and smooth edges, especially in densely distributed regions or with small-scale gradients. Learning-based methods have improved efficiency and representation, but suffer from input-size limitations or lack of resolution for structural detail.

EdgeFormer introduces a novel paradigm based on local patch analysis and Transformer architectures for edge classification in 3D point clouds (2604.21387). By associating each point with its kk-nearest neighborhood, the method encodes relative projection distances—namely, dpipjd_{p_i p_j} and dpjpid_{p_j p_i} between target and neighbor points—for superior local surface gradient approximation. This encoding schema forms the cornerstone of robust feature descriptors that capture both sharp and smooth transitions. The Transformer, operating on these local patches, models relational dependencies and yields edge predictions on a per-point basis. Rigorous testing on large-scale datasets demonstrates the effectiveness and robustness of the architecture.

Problem Formulation and Local Patch Feature Encoding

EdgeFormer reframes edge detection as a per-point binary classification problem. Each point serves as the anchor of a local surface patch formed by its kkNN, which enables patch-wise training samples. The primary feature descriptor encapsulates geometric relationships via projection distances, defined as:

  • dpipjd_{p_i p_j}: Projection distance from pip_i onto pjp_j’s normal.
  • dpjpid_{p_j p_i}: Projection from pjp_j onto pip_i’s normal.

The difference between these values is maximal for edge points (indicating large or small gradients), minimal for non-edge points. This approach leverages the spatial coherence of point normals, translating surface transitions into numerical descriptors. Figure 1

Figure 1: EdgeFormer feature descriptor leverages projection distance between neighboring points to distinguish edge and non-edge characteristics.

EdgeFormer Architecture

The EdgeFormer network consists of four principal modules:

  1. Feature Embedding: Converts local descriptor matrices into high-dimensional representations, employing MLPs for dimension mapping.
  2. Feature Enhancement: Utilizes a multi-layer Transformer encoder with multi-head self-attention to capture global contextual relationships within patches.
  3. Feature Fusion: Merges enhanced features from both projection directions, preventing loss during concatenation and providing comprehensive patch descriptors.
  4. Feature Decoder and Point Classification: Applies stacked MLPs with ReLU activations, BatchNorm, and dropout for probability estimation, culminating in category logits. Figure 2

    Figure 2: Architecture of the EdgeFormer network, detailing patch encoding, Transformer enhancement, feature fusion, and classification modules.

The computational complexity is mitigated by restricting the Transformer’s scope to local patches, ensuring scalability for dense point clouds.

Datasets and Experimental Setup

Evaluation utilizes the ABC dataset—a repository of CAD models with annotated sharp features—and PartNet, which provides hierarchical part-level segmentation labels. The ABC dataset enables comprehensive quantitative benchmarking through parametric curve ground truth (feature lines and surfaces). PartNet is used for generalization assessment. Figure 3

Figure 3: Example CAD models from ABC dataset, highlighting diverse structures and edge complexity.

Figure 4

Figure 4: Sample objects from PartNet dataset used for evaluating cross-domain generalization capability.

Quantitative and Qualitative Results

EdgeFormer is benchmarked against six baselines: BE, PBRG, SGLBP (geometric), EC-Net, PIE-Net, and NerVE (deep learning).

  • Hausdorff Distance: EdgeFormer achieves 0.115, outperforming all baselines.
  • IoU & MCC: 0.839 and 0.885, respectively—comprehensively superior.
  • Precision & Recall: High values (0.890, 0.922), reflecting the network’s ability to avoid false positives and miss fewer true edges.

Qualitative experiments further illustrate EdgeFormer’s capability to localize sharp, smooth, and fine-grained features that baselines often miss. EdgeFormer’s output aligns closely with the ground truth, especially for minute structural elements. Figure 5

Figure 5: Visual comparison between EdgeFormer, baselines, and ground truth on ABC dataset, with sharp, smooth, and fine-grained features highlighted.

Figure 6

Figure 6: Additional ABC results showing EdgeFormer’s high fidelity to ground truth across representative shapes.

Figure 7

Figure 7: Edge detection performance on PartNet objects, demonstrating generalization and resilience, in comparison to EC-Net and NerVE.

Robustness Studies

EdgeFormer demonstrates notable robustness against reduced sampling density and noise perturbations:

  • Sampling Density: EdgeFormer retains high accuracy under aggressive downsampling (to dpipjd_{p_i p_j}0), with only moderate degradation in Chamfer Distance (CD).
  • Noise Perturbation: Maintains reliable edge detection with Gaussian noise up to dpipjd_{p_i p_j}1, confirming stability for real-world noisy inputs. Figure 8

    Figure 8: Edge detection results under varying point cloud densities, showcasing resilience.

    Figure 9

    Figure 9: Edge detection results subjected to escalating noise, preserving accuracy and localization.

Ablation and Efficiency Analysis

Ablation studies verify the criticality of the full feature descriptor and the combination of MLP and Transformer components. Removing either dpipjd_{p_i p_j}2 or dpipjd_{p_i p_j}3 significantly impacts performance; substituting classic descriptors (Spin Image, 3DSC, SHOT, PFH) results in inferior accuracy.

Runtime measurements show that EdgeFormer processes large (90k point) clouds within 13.574 seconds, underscoring efficiency due to the local patch strategy.

Limitations

EdgeFormer may falter when local patches are excessively sparse, leading to incomplete representation and degraded classification performance. The method assumes sufficient neighborhood structure for accurate normal and descriptor computation.

Implications and Future Directions

The methodology of local patch encoding combined with Transformer modeling offers a scalable and precise solution for 3D edge detection, improving upon both traditional geometric and deep learning approaches. The explicit use of projection distances as features is empirically superior to classical descriptors and generic neural embeddings.

Practically, EdgeFormer can be integrated in downstream tasks such as surface reconstruction, part segmentation, and non-realistic rendering, where edge fidelity is paramount. Theoretically, the demonstrated robustness and generalization highlight the Transformer’s adaptability to irregular domains; this paradigm may inspire granular, locality-preserving architectures for other 3D vision problems, including shape analysis and scene understanding.

Further research should explore the extension of patch-based descriptors to semantic segmentation, unsupervised structural clustering, and differentiable reconstruction pipelines.

Conclusion

EdgeFormer establishes a rigorous, Transformer-driven approach to point cloud edge detection, leveraging point-wise local patch descriptors for robust classification. Its performance across dense, noisy, and cross-domain datasets substantiates its utility for both academic and industrial applications. The architecture’s modularity and efficiency recommend it as a candidate for future models handling complex 3D geometry.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.