Eclipse: Generalizing kNN and Skyline

Jinfei Liu, Li Xiong, Qiuchen Zhang, Jian Pei, Jun Luo · OpenReview

TL;DR

This paper introduces "eclipse," a novel query operator that generalizes kNN and skyline queries by allowing users to specify a range of attribute preferences, not just a single preference. This offers a more flexible and customizable way to retrieve relevant data points, bridging the gap between the specificity of kNN and the potential for overwhelming results from skyline queries.

What Problem Does This Paper Address?

Traditional kNN (k-Nearest Neighbors) queries require users to define exact attribute weights, which can be too rigid and unrealistic for many real-world scenarios. On the other hand, skyline queries return all non-dominated points, offering flexibility by not requiring specific weights, but this can lead to an unmanageably large number of results. The authors identify a need for a query operator that strikes a balance, allowing users to express "rough" or "range-based" preferences for attributes, thereby controlling the trade-off between result set size and specificity.

Methods

The core contribution is the eclipse operator, defined by a generalized notion of dominance. A point p eclipse-dominates p' if p is at least as good as p' across all attribute weight ratios within a user-specified range [l, h]. This generalizes both 1NN (where l=h) and skyline (where the range is [0, +∞)).

To process eclipse queries, the authors propose several algorithms:

  • Baseline Algorithm: A straightforward O(n²2^(d-1)) algorithm that checks dominance for all pairs of points against all critical domination vectors.
  • Transformation-based Algorithms: These algorithms transform the eclipse problem into a skyline problem, achieving better time complexities.
  • For 2D: O(n log n) by mapping points to a new space.
  • For high-dimensional (dD): O(n log^(d-1) n) by carefully selecting d domination vectors to represent the dominance hyperplanes.
  • Index-based Algorithms: These algorithms build index structures (Order Vector Index and Intersection Index) to speed up query processing, achieving O(u + m) time complexity for queries, where u is the number of skyline points and m is the number of intersections. They explore both Line Quadtree (average case) and Cutting Tree (worst case) for indexing.

Datasets

  • Synthetic Datasets: Independent (INDE), Correlated (CORR), and Anti-correlated (ANTI) datasets were generated.
  • Real NBA Dataset: A dataset containing 2384 NBA players with five attributes (Points, Rebounds, Assists, Steals, Blocks) was used.

Key Insights and Ideas

  • The "Eclipse" Concept: The idea of a range of attribute weights is a powerful generalization. It allows for more nuanced user preferences than a single fixed weight vector (kNN) or no weights at all (skyline).
  • Duality Transform: Mapping the problem from the primal space (points) to the dual space (lines/hyperplanes) is a key technique that simplifies dominance comparisons and enables efficient indexing.
  • Transformation to Skyline: Reducing the eclipse problem to a skyline problem is a clever way to leverage existing efficient skyline algorithms.
  • Index Structures for Efficiency: The development of Order Vector Index and Intersection Index is crucial for achieving efficient query times, especially for large datasets and high dimensions.

Key Results

  • Algorithm Efficiency: The proposed algorithms offer significant improvements over the baseline. Transformation-based algorithms achieve O(n log^(d-1) n), and index-based algorithms achieve O(u + m) query time, which is much faster than the baseline O(n²2^(d-1)).
  • Experimental Validation: Experiments on synthetic and real NBA data demonstrated that the index-based algorithms (QUAD and CUTTING) significantly outperform transformation-based algorithms (TRAN), especially for larger datasets and higher dimensions.
  • User Study: A case study indicated that users found the "eclipse-category" system (where attribute importance is described in qualitative terms like "very important") to be the most attractive, suggesting the practical utility of the eclipse concept.
  • Impact of Parameters: The number of dimensions and attribute weight ratios significantly impact the number of eclipse points returned, while the number of data points has a smaller effect.

Limitations and Future Work

  • Worst-Case Performance of Line Quadtree: The paper notes that the Line Quadtree index structure can be unbalanced in the worst case, leading to O(n) query time. The Cutting Tree offers better worst-case guarantees but involves more complex implementation.
  • Parameter Tuning: While the eclipse operator offers flexibility, users still need to choose appropriate weight ranges. The paper suggests that understanding the expected number of eclipse points for different ranges can help users adjust these parameters.
  • Further Indexing Research: The paper mentions the complexity of implementing intersection indices in high-dimensional space and proposes line quadtree and cutting tree with different tradeoffs, suggesting ongoing research in this area.
  • Real-time Querying: While index-based algorithms are efficient, the paper acknowledges that they might still be computationally expensive for true real-time queries, hinting at further optimization possibilities.

Summary updated

BibTeX
@misc{liu2019eclipse,
  author = {Jinfei Liu and Li Xiong and Qiuchen Zhang and Jian Pei and Jun Luo},
  title = {{Eclipse: Generalizing kNN and Skyline}},
  year = {2019},
  eprint = {1906.06314},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.06314},
}
Figure