# Fast Approximate Line Nearest Neighbor Search

DevFeed: [Fast Approximate Line Nearest Neighbor Search](<https://devfeed.tech/articles/fast-approximate-line-nearest-neighbor-search-103411.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.37256>)

Author: Jiadong Xie, Jeffrey Xu Yu, Yingfan Liu

Published: 2026-10-28T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [ann](<https://devfeed.tech/topics/ann.md>)

Tags: [animation](<https://devfeed.tech/tags/animation.md>), [ann](<https://devfeed.tech/tags/ann.md>), [approximate-nearest-neighbor](<https://devfeed.tech/tags/approximate-nearest-neighbor.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [database](<https://devfeed.tech/tags/database.md>), [databases](<https://devfeed.tech/tags/databases.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [efficiently](<https://devfeed.tech/tags/efficiently.md>), [fast](<https://devfeed.tech/tags/fast.md>), [graph](<https://devfeed.tech/tags/graph.md>), [navigation](<https://devfeed.tech/tags/navigation.md>), [nearest-neighbor](<https://devfeed.tech/tags/nearest-neighbor.md>), [performance](<https://devfeed.tech/tags/performance.md>), [photo](<https://devfeed.tech/tags/photo.md>), [point](<https://devfeed.tech/tags/point.md>), [proximity](<https://devfeed.tech/tags/proximity.md>), [query](<https://devfeed.tech/tags/query.md>), [region](<https://devfeed.tech/tags/region.md>), [regions](<https://devfeed.tech/tags/regions.md>), [score](<https://devfeed.tech/tags/score.md>), [search](<https://devfeed.tech/tags/search.md>)

## AI overview

Approximate line nearest neighbor (LANN) search finds database points close to an infinite query line, allowing variation along a specified direction, such as illumination, while matching content. The abstract says dimension lifting for ordinary point search raises construction and query costs, while using a standard proximity graph directly can miss separate regions near the line. LinePG augments an existing proximity graph with pair edges to connect those regions. It selects candidate region pairs that are spatially or graph-separated and near the line, then scores edges to guide endpoint selection. The authors report performance studies showing accuracy and efficiency against baseline approaches.

## Source excerpt

arXiv:2610.37256v1 Announce Type: new Abstract: Approximate nearest neighbor (ANN) search, which retrieves vectors close to a given query vector, is a fundamental operation in vector databases. However, emerging applications, such as selecting source images for photo-based animation and video synthesis, may require matching content while allowing a query-specified aspect contrast, such as an illumination change, to vary; a single query point does not directly express this requirement. In this paper, we study approximate line nearest neighbor (LANN) search, where an infinite query line removes the distance contribution along a specified direction while database records remain points. Prior approaches focus on top-$1$ search only for LANN and can incur high construction costs. Converting LANN into ordinary point ANN search through dimension lifting substantially increases index construction and query costs, while direct search on a proximity graph built for ordinary point ANN search can miss distinct regions close to a line. To address these issues, we propose LinePG, which enhances an existing proximity graph with pair edges to facilitate navigation between separated near-line regions. To find these pair edges efficiently, we first generate region pairs with spatial or graph separation, and near a line. We then score edges between the selected region pairs to guide the point endpoint selections. We conduct extensive performance studies and confirm the accuracy and efficiency of LinePG in comparison with the baseline approaches.