Unified and Efficient Point-Line Local Features

François Costa, Raphael Kreft, Eckhard Goedeke, Felix Möller, Hardik Shah, Ramanathan Rajaraman, Shaohui Liu, Rémi Pautrat, Marc PollefeysarXiv 2026

TL;DR

UPAL (Unified Efficient Points and Lines) is a lightweight local feature extractor that jointly detects keypoints, line segments, and descriptors in a single forward pass. By sharing a backbone and accelerating the classic Line Segment Detector (LSD) algorithm on the GPU, UPAL achieves a 4× speedup and a 10× smaller memory footprint than state-of-the-art pipelines while matching or exceeding their accuracy.

What Problem Does This Paper Address?

In multi-view computer vision tasks like SLAM, 3D reconstruction, and visual localization, algorithms rely heavily on matching sparse keypoints across images. While points work well in textured scenes, adding line features provides crucial geometric structure, especially in human-made or low-texture environments (like corridors or minimalist indoor spaces).

However, current point-line pipelines are computationally heavy and inefficient. They typically run two separate deep networks—one for points and one for lines—which duplicates feature extraction efforts. Furthermore, state-of-the-art deep line detectors still rely on the classic Line Segment Detector (LSD) algorithm during post-processing. LSD is a CPU-bound, sequential algorithm with quadratic complexity relative to image size, creating a massive bottleneck that prevents real-time performance on embedded or low-power robotics platforms.

Methods

The authors introduce UPAL, a streamlined architecture designed to eliminate redundant computations through a unified network and an optimized post-processing pipeline.

Fig. 2: Overview of our network architecture. We use a shared convolutional encoder to generate a multi-scale feature map (orange). We then use three decoder branches: a keypoint detection branch (blue) with a Score Map Head (SMH) followed by Differentiable Keypoint Detection (DKD), a Sparse Deformable Descriptor Head (SDDH) to obtain descriptors (purple), and a branch predicting a distance field (green). The latter is then passed to our fast LSD to extract the line segments.
  1. Shared Backbone: UPAL adopts the lightweight convolutional encoder from ALIKED. It extracts multi-scale feature maps and concatenates them into a single bottleneck representation ($F$) that captures both low-level geometric edges and high-level contextual cues.
  2. Three Decoder Branches:
  3. Keypoint Branch: Uses a Score Map Head (SMH) and Differentiable Keypoint Detection (DKD) to find subpixel-accurate keypoints.
  4. Descriptor Branch: Uses a Sparse Deformable Descriptor Head (SDDH) to extract feature descriptors only at the detected keypoint locations.
  5. Line Branch: Predicts a line distance field using just three additional convolutional layers.
  6. Accelerated GPU-LSD: Instead of predicting both a distance and an angle field (like DeepLSD), UPAL only predicts the distance field and computes gradient angles directly on the GPU. It accelerates the line-growing process by downsampling the seed point grid with a stride of 2 and filtering out the top 80% of unpromising pixels directly on the GPU, speeding up the remaining CPU-bound line-growing stage by 3×.
  7. Knowledge Distillation: Because ground-truth labels for points and lines are hard to define perfectly, UPAL is trained using a student-teacher framework. It distills knowledge from heavy, state-of-the-art models: keypoints are supervised by a combination of SuperPoint and DaD, descriptors by ALIKED-n32, and the line distance field by DeepLSD.

Datasets

The model was trained on 10k distractor images from the Oxford-Paris dataset, featuring a mix of indoor and outdoor scenes.

Evaluation was performed across several standard benchmarks:

  • HPatches & RDNIM: For homography estimation, line localization error, and line repeatability under challenging illumination and day-night variations.
  • MegaDepth: For outdoor relative pose estimation.
  • ScanNet: For indoor relative pose estimation.
  • 7Scenes (specifically the "Stairs" scene): For hybrid point-line visual localization.
  • ETH3D: For multi-view point triangulation accuracy and completeness.

Key Insights and Ideas

  • Less is More for Line Fields: The authors discovered that predicting an angle field alongside a distance field (a common practice in deep line detection) is actually detrimental to performance. Relying on standard image-gradient orientations computed directly on the GPU simplifies the network and yields cleaner results.
  • Joint Training as a Regularizer: Training the network to look for points and lines simultaneously actually makes the point detector better. Lines encode structural cues like boundaries and intersections, which guides the shared backbone to localize keypoints more accurately in challenging indoor environments.
  • Intelligent Seed Filtering: You don't need to evaluate every pixel to find lines. By offloading a simple heuristic to the GPU—keeping only the top 20% of pixels closest to the predicted distance field—the quadratic bottleneck of the classic LSD algorithm disappears without any drop in line detection quality.

Key Results

UPAL achieves a remarkable balance of efficiency and accuracy, making it highly suitable for resource-constrained hardware.

Accuracy vs Latency comparison on CPU and GPU
  • Efficiency: UPAL contains only 0.78M parameters (compared to 9.2M for ALIKED+DeepLSD and 120M for DaD+DeDoDe v2+ScaleLSD). On an NVIDIA RTX 2080 Ti GPU, it achieves a mean inference time of 70 ms, representing a 4× speedup over the ALIKED + DeepLSD baseline.
  • Constrained Hardware Performance: When tested on a low-end GTX 1050 Ti (simulating an embedded system), UPAL runs in 186 ms, outperforming the heavy DaD + ScaleLSD pipeline by 18×.
  • Downstream Accuracy: On the indoor ScanNet dataset, UPAL achieved a pose accuracy (AUC @ 5°) of 15.6%, vastly outperforming its baseline descriptor ALIKED (6.9%) and matching heavy, point-only alternatives. On the 7Scenes visual localization benchmark, combining UPAL's points and lines yielded the highest overall pose accuracy (54.6%).

Limitations and Future Work

The primary limitation of UPAL lies in its line-matching strategy. To keep the pipeline lightweight, UPAL does not use a dedicated line descriptor network. Instead, it matches line segments by comparing the descriptors at their endpoints.

Because these endpoints are determined by handcrafted LSD segment terminations rather than repeatable deep keypoints, perspective and viewpoint changes can cause the endpoints to "slide" along the line. This alters the local descriptor appearance and leads to mismatches in viewpoint-heavy datasets like certain HPatches pairs. The authors note that developing a lightweight, jointly learned point-line matcher is a promising direction for future work to resolve this sensitivity.

Summary updated

BibTeX
@misc{costa2026unified,
  author = {François Costa and Raphael Kreft and Eckhard Goedeke and Felix Möller and Hardik Shah and Ramanathan Rajaraman and Shaohui Liu and Rémi Pautrat and Marc Pollefeys},
  title = {{Unified and Efficient Point-Line Local Features}},
  year = {2026},
  eprint = {2608.19894},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.19894},
}
Figure