NPLSD: Accelerating Line-Segment Detection on NPU Microcontrollers
cs.AR, cs.CV
Submitted: 2026-08-12
Updated: 2026-08-12
Comments: 7 pages, 5 figs
License: http://creativecommons.org/licenses/by/4.0/
The gist: Line-segment detection is fundamental to robotics, autonomous navigation, and industrial inspection.
Terminology
Abstract
Line-segment detection is fundamental to robotics, autonomous navigation, and industrial inspection. While transformer-based detectors achieve the highest accuracy, their deployment on microcontrollers remains impractical due to resource constraints. The STM32N6, with its Neural-ART NPU, promises to enable deep vision at the extreme edge. However, existing detectors rely on attention, grid-sampling, and normalization, operators that are unsupported by the convolution-oriented NPU. This architectural mismatch is characterized operator by operator: attention, grid-sampling, and normalization lack accelerator primitives, and the decoder's self-attention alone materializes a 39 MB score tensor that exceeds on-chip memory. To address this limitation, NPLSD is introduced as a pair of NPU-compatible line-segment detectors built from one design methodology. NPLSD-H retains the convolutional HGNetv2 backbone of LINEA and replaces the transformer head with a fully-convolutional feature pyramid and an F-Clip dense head. NPLSD-M adapts the M-LSD-tiny trunk to the supported operator set. Warm-started from ImageNet and trained on ShanghaiTech Wireframe, the 2.63M-parameter NPLSD-H reaches sAP 10=37.9 (35.9 int8); the 0.62M-parameter NPLSD-M reaches 41.9 (41.1 int8). A controlled ablation isolates the trunk as the only variable, and initialization alone accounts for 4.6 points.
Sources
- ELSED: Enhanced Line SEgment Drawing
- End-to-End Wireframe Parsing
- Holistically-Attracted Wireframe Parsing
- Holistically-Attracted Wireframe Parsing: From Supervised to Self-Supervised Learning
- Fully Convolutional Line Parsing
- DeepLSD: Line Segment Detection and Refinement with Deep Image Gradients
- Line Segment Detection Using Transformers without Edges
- Towards Light-weight and Real-time Line Segment Detection
- A Low-Latency ASIC Architecture for Real-Time Line Segment Detection
- D-FINE: Redefine Regression Task in DETRs as Fine-grained Distribution Refinement
- DETRs Beat YOLOs on Real-time Object Detection
- Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference
- MiLSD: A Micro Line-Segment Detector for Resource-Constrained Devices
- TP-LSD: Tri-Points Based Line Segment Detector
Related papers
- WitCert: Sound Runtime Risk Observability and Gating for KV-Cache Quantization
- Golden Ruler: A Numeric Format Catalog with Bit-Exact Conformance Vectors for FP8, BF16, MXFP4, and Microscaling Formats
- RFChipAgent: Multi-Agentic AI Flow for Analog/RF Chip Design
- PoisonCap: Efficient Hierarchical Temporal Safety for CHERI
- Provisioning to Runtime Optimization of a 100 MW-Scale AI Cluster
- Bit-Accurate Modeling of GPU Matrix Multiply-Accumulate Units: Demystifying Numerical Discrepancy and Accuracy