Abstract
Point-to-Hyperplane Nearest Neighbor Search (P2HNNS) is a critical operation in machine learning, particularly for active learning with Support Vector Machines (SVMs). While Locality-Sensitive Hashing (LSH) is the current state-of-the-art, it suffers from significant dimensionality expansion and high indexing overhead. This paper revitalizes the classic Ball-Tree data structure by introducing the Ball-Cone Tree (BC-Tree). By deriving novel node-level and point-level bounds that incorporate both distance and angular information, the BC-Tree achieves query speeds up to 10x faster than hashing baselines while reducing indexing time and memory usage by orders of magnitude.
Introduction
The P2HNNS problem involves finding the data point in a set $S$ that is closest to a query hyperplane. This is essential for identifying "uncertain" points near a decision boundary in active learning. However, P2HNNS is challenging because the point-to-hyperplane distance is non-metric and does not satisfy the triangle inequality.
Existing solutions primarily use asymmetric transformations to map the problem into a space where LSH can be applied. Unfortunately, this mapping expands the dimensionality from $d$ to $\Omega(d^2)$, leading to a "curse of dimensionality" that results in massive memory consumption and slow indexing.
Revitalizing the Ball-Tree
To avoid the overhead of high-dimensional hashing, this work returns to tree-based space partitioning. The authors first establish a Node-Level Ball Bound. This allows a standard Ball-Tree to perform branch-and-bound search by calculating the minimum possible distance between a query hyperplane and any point within a node's bounding ball.
The BC-Tree: Integrating Angular Information
The core innovation is the BC-Tree (Ball-Cone Tree). While a standard Ball-Tree only considers the radius of a node, the BC-Tree incorporates angular metadata. In each leaf node, the structure maintains:
- Ball Structure: The distance ($r_x$) from a point to the node's center.
- Cone Structure: The angle ($\phi_x$) of the point relative to the node's center.
By combining these, the authors derive a Point-Level Cone Bound. This bound is significantly tighter than the ball bound alone, allowing the algorithm to prune large numbers of candidate points without expensive distance calculations. Furthermore, by sorting points within leaf nodes by their radius, the BC-Tree can perform efficient batch pruning.
Collaborative Inner Product Computing
To further optimize tree traversal, the authors introduce Collaborative Inner Product Computing. By leveraging the linear properties of inner products, the algorithm can derive the inner product for a child node in $O(1)$ time if the parent's and sibling's values are known. This optimization nearly halves the computational cost of calculating bounds during search.
Experimental Evaluation
The proposed methods were evaluated against state-of-the-art hashing baselines (NH and FH) across 16 real-world datasets, ranging from small biological data to 100-million-point image datasets.
Key Results:
- Speed: BC-Tree is 1.1x to 10x faster than hashing baselines.
- Efficiency: Indexing time and size are reduced by 1 to 3 orders of magnitude. For the P53 dataset, indexing time dropped from ~2,000 seconds (FH) to just 11 seconds (Ball-Tree).
- Memory: The memory footprint is up to 2,400x smaller than hashing methods due to the absence of expanded dimensions.
- Scalability: The approach scales effectively to 100 million points, maintaining sub-millisecond query times.
Conclusion
The BC-Tree demonstrates that revitalizing traditional spatial indexes can outperform complex hashing schemes for non-metric search problems. By staying in the original dimensionality and utilizing angular information, the BC-Tree provides a lightweight yet highly efficient solution for P2HNNS. Future work will explore applying these bounds to other problems like Maximum Inner Product Search (MIPS).
Summary updated