NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Point or Line? Using Line-based Representation for Panoptic Symbol Spotting in CAD Drawings

Xingguang Wei, Haomin Wang, Shenglong Ye, Ruifeng Luo, Yanting Zhang, Lixin Gu, Jifeng Dai, Yu Qiao, Wenhai Wang, Hongjie Zhang

Abstract

Panoptic symbol spotting in Computer-Aided Design (CAD) drawings requires the simultaneous identification of individual "thing" instances (e.g., furniture, doors) and the semantic segmentation of "stuff" regions (e.g., walls, railings). Traditional methods often rely on rasterization or point-based sampling, which can sacrifice geometric precision or ignore the inherent continuity of vector primitives. This paper presents VecFormer, a Transformer-based framework that adopts a line-based representation for CAD understanding. By treating primitives as structured line segments rather than isolated points, VecFormer preserves geometric fidelity and significantly reduces computational overhead. Our approach achieves a new state-of-the-art on the FloorPlanCAD benchmark, particularly excelling in the segmentation of complex "stuff" categories and demonstrating high robustness to missing metadata.

Introduction

CAD drawings are fundamental to architecture, engineering, and construction, serving as precise vector-based representations of physical spaces. Unlike natural images, these drawings consist of geometric primitives such as lines, arcs, and circles. The task of panoptic symbol spotting is critical for automating the interpretation of these drawings, requiring a model to categorize every primitive into either a discrete object instance ("things") or a continuous semantic region ("stuff").

Existing methodologies typically fall into three categories: raster-based methods that convert vectors into pixels (losing precision), graph-based methods (which struggle with scalability), and point-based methods. While point-based methods are currently popular, they often treat primitives as disconnected clouds of points. This lack of geometric continuity leads to "blurred" boundaries and difficulty in distinguishing overlapping symbols. We propose that a line-based representation is more naturally suited to the vector nature of CAD data, offering better preservation of the "flow" and connectivity of the original design.

Methodology: The VecFormer Framework

VecFormer introduces a paradigm shift by representing CAD primitives as sequences of short line segments. This approach ensures that the model perceives the drawing as a collection of structured geometric elements rather than independent coordinates.

1. Line-based Representation

Instead of sampling isolated points, VecFormer decomposes every primitive into a sequence of line segments. Each segment is characterized by its midpoint, unit vector (direction), length, and its relative position to the original primitive's centroid. This multi-faceted representation allows the model to capture both the local orientation and the global context of each geometric element.

2. Architecture and Feature Extraction

The model utilizes Point Transformer V3 (PTv3) as its backbone to extract features from the sampled line segments. To bridge the gap between segment-level features and the original primitives, a Line Pooling layer aggregates features, ensuring the model maintains a holistic understanding of each primitive. The architecture concludes with a dual-branch Transformer decoder: one branch focuses on instance-level detection for "things," while the other performs semantic labeling for "stuff."

3. Branch Fusion Refinement (BFR)

To resolve potential conflicts between the instance and semantic branches, we implement a Branch Fusion Refinement (BFR) module. BFR acts as a post-processing sanity check through three mechanisms:

  • Overriding: Prioritizing the branch with higher confidence.
  • Voting: Refining labels based on local majority agreement.
  • Remasking: Eliminating fragmented or inconsistent predictions to ensure clean final outputs.

Experimental Results

We evaluated VecFormer on the FloorPlanCAD dataset, the current standard for panoptic symbol spotting, featuring over 11,000 annotated drawings.

Performance Benchmarks

VecFormer established a new state-of-the-art with a Panoptic Quality (PQ) score of 91.1. The most significant improvements were observed in the "stuff" categories (walls, railings, etc.), where VecFormer outperformed previous methods by 9.6 points in standard settings.

Robustness and Efficiency

A key finding of our research is VecFormer's resilience to missing metadata. In real-world scenarios, CAD files often lack organized layer information. While competing models see a drastic drop in performance without this data, VecFormer's "Stuff-PQ" improved by a staggering 21.2 points over the previous best-in-class under these conditions. Furthermore, the line-based approach is highly efficient; by using segments instead of dense point clouds, the input sequence length is reduced by approximately 8x, leading to faster processing and better scalability for large-scale architectural drawings.

Discussion and Future Work

The success of VecFormer highlights that geometric continuity is essential for CAD understanding. By moving from points to lines, we achieve higher accuracy with lower computational costs. Currently, VecFormer utilizes uniform line sampling, which may be suboptimal for extremely intricate geometries or tight curves.

Future research will focus on geometry-aware dynamic sampling. By allowing the model to adaptively increase sampling density in complex areas while remaining sparse on straight lines, we aim to further optimize the balance between computational efficiency and geometric precision. This evolution will bring us closer to fully automated, high-fidelity interpretation of complex engineering documents.

Summary updated

BibTeX
@inproceedings{wei2025point,
  author = {Xingguang Wei and Haomin Wang and Shenglong Ye and Ruifeng Luo and Yanting Zhang and Lixin Gu and Jifeng Dai and Yu Qiao and Wenhai Wang and Hongjie Zhang},
  title = {{Point or Line? Using Line-based Representation for Panoptic Symbol Spotting in CAD Drawings}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=hwKnBsXwXd},
}
Figure