[Paper Review] Boundary Attention: Learning curves, corners, junctions and grouping
This paper introduces Boundary Attention, a differentiable deep learning mechanism that explicitly models geometric boundaries—such as curves, corners, and junctions—using adaptive, local attention over image patches. The model achieves sub-pixel precision and robustness to high noise levels, generalizing well from simple synthetic data to real-world images while processing any resolution natively and running orders of magnitude faster than prior methods.
We present a lightweight network that infers grouping and boundaries, including curves, corners and junctions. It operates in a bottom-up fashion, analogous to classical methods for sub-pixel edge localization and edge-linking, but with a higher-dimensional representation of local boundary structure, and notions of local scale and spatial consistency that are learned instead of designed. Our network uses a mechanism that we call boundary attention: a geometry-aware local attention operation that, when applied densely and repeatedly, progressively refines a pixel-resolution field of variables that specify the boundary structure in every overlapping patch within an image. Unlike many edge detectors that produce rasterized binary edge maps, our model provides a rich, unrasterized representation of the geometric structure in every local region. We find that its intentional geometric bias allows it to be trained on simple synthetic shapes and then generalize to extracting boundaries from noisy low-light photographs.
Motivation & Objective
- To address the challenge of detecting faint, noisy boundaries in images with sub-pixel accuracy and geometric consistency.
- To develop a differentiable, end-to-end trainable model that reasons explicitly about geometric primitives like edges, corners, and junctions.
- To enable processing of images at their native resolution and aspect ratio, without downsampling or striding.
- To achieve robust performance under extreme noise conditions where classical and deep learning methods often fail.
- To generalize effectively from simple synthetic data (e.g., random colored shapes with noise) to complex real-world images.
Proposed method
- The core mechanism is Boundary Attention: a local, differentiable attention operation that refines a field of geometric primitives per image patch.
- Each patch token encodes an adaptive-sized geometric primitive (edge, corner, junction) representing local boundary structure.
- The model uses a parametric embedding space for junctions, enabling smooth interpolation and spatial consistency.
- The output is a field of overlapping geometric primitives that directly enables boundary-aware smoothing and unsigned distance maps.
- The model is trained on synthetic data consisting of uniformly colored random circles and triangles corrupted by Gaussian noise.
- All components are local and shift-invariant, allowing deployment on images of any size or resolution after training on small crops.
Experimental results
Research questions
- RQ1Can a differentiable deep learning model learn to detect faint boundaries with sub-pixel precision in high-noise environments?
- RQ2Can such a model generalize from simple synthetic data to complex real images without fine-tuning?
- RQ3Does explicit modeling of geometric primitives (edges, corners, junctions) improve robustness to noise compared to standard rasterized edge detection?
- RQ4Can the model process images at their native resolution and aspect ratio without downsampling or striding?
- RQ5How does the model’s performance and efficiency compare to state-of-the-art methods like Field of Junctions and EDTER?
Key findings
- The model achieves high F-scores across all matching thresholds on noisy inputs, demonstrating robustness even under extreme sensor noise.
- It generalizes effectively to real images from the SIDD dataset, producing crisp, well-defined boundaries despite low-light and high-noise conditions.
- The model runs 10–100× faster than Field of Junctions (FoJ), with inference times of 0.0823s on 125×125 and 0.678s on 320×320 images on an A100 GPU.
- Despite only 207k parameters, the model outperforms state-of-the-art methods like EDTER and FoJ in boundary detection accuracy under high noise.
- The learned junction embedding space is smooth and interpretable, with linear interpolation producing natural transitions between junction types.
- The model’s hidden state learns a spatially smooth manifold of junctions, indicating effective internal representation of geometric structure.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.