A survey on making skylines more flexible
Abstract
Top- queries and skylines are the two most common approaches to finding the most interesting entries in a homogeneous multi-dimensional dataset. However, both of these strategies have some shortcomings. Top- queries are very challenging to specify precisely and skylines are not customizable to specific scenarios, on top of having unpredictable output cardinalities. We describe some alternative methods aimed at adressing the shortcomings of top- queries and sklyines and compare all approaches to illustrate which of the desired properties each of them possesses.
Keywords: top- query, skyline, multi-dimensional optimization
1 Introduction
Selecting the most interesting entries from a multi-dimensional dataset is an important operation in today’s recommender systems [8][15]. In order to perform this task, the two most commonly used approaches are top- queries [7] and skylines [1].
Given a multi-dimensional dataset and a scoring function , the top- query on with returns the tuples for which is smaller than any tuple not included in the query result. Top- queries are expressive and precise and we have fast algorithms [5][6] to compute them. However, defining ”most interesting” as a function of dataset attributes proves to be a significant challenge, even though techniques such as crowdsourcing [4] provide some tangible results. Additionally, query results may differ significantly with slight alterations on depending on the dataset, which poses a considerable problem given the natural inaccuracy we have in determining .
On the other hand, a skyline query returns the tuples in a dataset that are not Pareto dominated. In other words, it picks the tuples for which there are no other tuples such that is no worse than for all attributes and better than for at least one attribute. It’s worth noting that tuples in the skyline are the top-1 result for some scoring function. The notion of a skyline can be extended to a -skyband, the tuples that have less than tuples Pareto dominating them, or equivalently, top- results for some scoring function.
Skylines do not suffer from the same challenge as top- queries do since they require no scoring function to be specified. However, due to the same reason, they are not in any way customizable. There is no way to alter a skyline query to fit a user’s preferences, which is crucial in recommender systems. Another shortcoming of skyline queries is that their output cardinality is unbounded. In fact, for datasets with high dimensionality, the skyline may comprise the whole dataset [10], which renders the skyline operator useless. In general, a high number of results is undesirable in skyline queries.
To address the shortcomings of skylines and top- queries, multiple alternative operators have been introduced. In this paper, we describe some of those proposed solutions and investigate how they relate to each other in Section 2. We compare the different approaches in Section 3 and conclude in Section 4.
2 Proposed Solutions
2.1 Flexible Skylines
As mentioned before, one of the major shortcomings of skylines is customization. The skyline of a dataset does not depend on any kind of parameter, only on the dataset itself. As a result, the skyline query can not be customized in any way. -skylines are a generalization of the skyline that introduces a parameter to the query while compromising very little from the simplicity of skyline queries [3].
Before we define what an -skyline is, let us define -domination. A tuple -dominates another tuple if and only if is at least as good as for all scoring functions in and better than for at least one scoring function. In formal terms:
If is the set of all monotonic functions, -domination reduces to Pareto domination.
Given a dataset and a set of monotone scoring functions , the two flexible skyline operators are defined as follows:
The first operator, , denotes all non -dominated tuples of and the second operator, , denotes the tuples in that are optimal for at least one of the functions in . When is the set of all monotonic functions, both and converge to the skyline of . However, in the general case, they are not necessarily equal [3].
and are both customizable since they have an additional parameter, , that enables customized queries. In addition, they partially address the other shortcoming of skylines, they lower the output cardinality for non-universal choices of . One can show for all choices of and . Thus guaranteeing neither , nor will have a greater cardinality than the skyline. Experimental results [3] depict that the cardinality of is dramatically lower than the skyline even with only a few constraints on and the cardinality of is even lower.
Customizability and control over result cardinality, the two properties flexible skylines provide, are already available in top- queries, although flexible skylines do not require precisely defined scoring functions as top- queries do. As an example, consider a simplified universe of functions comprising only weighted sums over the attributes with normalized weights, functions of the form where denotes an attribute in the schema of . A top- query would need to specify a precise scoring function (or equivalently, a precise vector ) but a flexible skyline allows less precise queries such as . Such constraints are significantly easier to obtain [12]. For instance, if a user prefers the tuple to , we can argue:
Flexible skylines merge the idea of scoring functions of top- queries with traditional skylines. This is further illustrated by the fact that choosing to be the set of all monotonic functions reduces both operators to the traditional skyline but choosing it to contain a single monotonic function reduces them to the top-1 query result. By combining the two approaches, flexible skylines are both easy to specify and customizable at the same time.
2.2 Output Size Specified (OSS) operators
Another solution approach [10] to the same problem introduces the notion of -dominance and two operators that utilize this relation to provide types of queries that are not as precise as top- queries but still have query customization and smaller output cardinality than the skyline. In fact, these operators allow specifying the cardinality of their output as a parameter.
These operators only use weighted sums over attributes with normalized preferences as scoring functions. They define a new kind of dominance, much like -dominance. Given an estimate preference vector and tuples , -dominates if the following conditions are satisfied:
-
1.
-
2.
In other words, they relax the normalized preference vector up to a distance of and check dominance for every preference vector inside the resulting hypersphere. If a performs at least as good as for all vectors and better than for at least one, -dominates , much like the concept of domination in flexible skylines.
The first output size specified operator is called , it is Output size specified, has relaxed input and is dominance oriented. Given an estimate preference vector , an output size and a dataset , denotes tuples in that are not -dominated for the minimum value of that allows tuples.
The second output size specified operator is , again because it is Output size specified, has relaxed input and it is utility-oriented. denotes tuples in that are optimal for at least one preference vector with a maximum distance of from .
Both of these operators can be further generalized by relaxing to contain tuples that are dominated by fewer than others and relaxing to contain tuples that are in the top- result for at least one vector.
This approach is very similar to flexible skylines. In fact, for any preference vector and distance , weighted sums with weight vectors inside the hypersphere centered around with radius specifies a set of functions . In fact, for any dataset , non--dominated tuples in are precisely and tuples that are optimal for at least one vector are precisely .
2.3 UTK queries
Another parallel method that addresses the problem of relaxing the input preference vector is uncertain top- (UTK) queries [11]. Similar to OSS operators, these queries only consider weighted sums over the attributes as scoring functions. Likewise, each UTK query operates on a set of possible preference vectors rather than a single vector and these possible preference vectors form a convex polytope in the dimensional simplex. Instead of specifying the region of possible vectors via a central vector and a radius, UTK queries allow the region to be specified as a parameter on its own.
[11] defines two different UTK operators, and . Given a dimensional dataset , a desired output cardinality and a preference region , contains the tuples in that are in the top- result for a preference vector in and partitions so that vectors in each partition produce the same top- result and labels the partitions with the top- results they correspond to.
UTK queries can express a larger family of scoring functions than OSS operators since every dimensional hypersphere is a dimensional polytope but the converse is not true. However, flexible skylines can express an even larger family of scoring functions since UTK is still limited to functions that are linear in the tuple attributes.
The sets of tuples computed by queries correspond to the tuples computed by and operators for matching inputs. Since queries only check optimality and not domination, and can not be computed by queries.
2.4 -skylines
-skylines [14] is one of the earlier approaches to addressing the shortcomings of top- and skyline queries. Similar to OSS operators, -skylines only consider weighted sums as scoring functions. They use the notion of -dominance, which, given a dataset , a normalized preference vector and a constant is defined as:
it is a relaxed version of Pareto dominance where the dominant tuple is allowed to be worse in some attributes up to an additive constant . In fact, when we pick , -dominance reduces to Pareto dominance.
The skyline of a dataset for a preference vector and constant is simply the set of non--dominated tuples. Unlike traditional skylines, -skylines are customizable in both preferences and output cardinality. Since is scaled with the weights while checking dominance, changing enables the operator to respond to the preferences of a user. The impact of on dominance decreases as the weight of an attribute increases.
Regarding the output cardinality, -skylines do not provide a precise number but allow controlling the cardinality via changing . For positive , every tuple’s -dominance region is larger than their Pareto dominance region, resulting in a smaller number of non-dominated tuples. Conversely, negative shrink the -dominance regions and result in a larger number of non-dominated tuples. In fact, for datasets with traditional skylines that contain at least two tuples, produces the whole dataset and produces the empty set[14].
2.5 Representative Skylines
The approaches described so far have focused on customizing the query somehow to include user preferences. Representative skylines [9][13] take an orthogonal approach, they reduce the cardinality of the skyline directly, by picking representative tuples from the skyline. The original implementation [9] picks the tuples that maximize the number of non-skyline tuples dominated by the picked tuples. A variant [13] of this implementation picks the tuples that minimize the maximum distance between a non-picked skyline tuple and any picked tuple.

Both versions have some drawbacks [13]. Consider the example in Figure 1, the skyline of the given dataset is . If we optimize the number of dominated non-skyline tuples and pick , we get . These two tuples are very similar in the trade-off they offer between attributes and . This subset fails to represent the overall skyline since it does not include any other types of trade-off in the skyline and focuses on a small cluster of tuples. On the other hand, minimizing the maximum distance gives . This selection presents other trade-offs much better, but it fails to capture that most of the tuples in the skyline have a trade-off similar To that of .
Representative skylines have the benefit of requiring no user input. They provide a way to limit output cardinality, with different diversification techniques, without compromising the simplicity of skyline queries. On the other hand, since they admit no input other than the dataset itself, they are not customizable save for the output cardinality.
3 Comparison
In this section, we discuss how the various proposed solutions compare to each other, as well as traditional top- queries and skylines. We analyze which problems each solution can address by inspecting four properties: input flexibility, customizability, control over cardinality and ranked output. These properties will be discussed one by one in the following subsections. This discussion is summarized in Table 1.
Input Flexibility | Customizability | Cardinality Control | Ranked Output | |
Top- queries | No | Yes | Yes | Yes |
Traditional Skylines | Yes | No | No | No |
Flexible Skylines | Yes | Yes | Partial | No |
OSS Operators | Yes | Partial | Yes | No |
UTK Queries | Yes | Partial | Yes | No |
-skylines | Yes | Partial | Partial | No |
Representative Skylines | Yes | No | Yes | Yes |
3.1 Input flexibility
A query’s input is said to be flexible if it does not need to be precise and if small changes in the input do not cause significant changes in the output. Traditional skylines and representative skylines are the obvious superior choices for input flexibility since they have no input but the dataset itself. Thus, no additional parameter needs to be defined to make these queries. -skylines are a bit less flexible, they require a value for and a weight vector but the weight vector does not affect the output as directly as it does in some other approaches. OSS operators, flexible skylines and UTK queries are somewhat less flexible because they require some specifics about either the estimate preference weights or the family of scoring functions. Finally, top- queries are easily the least flexible of the queries we consider, they require a precisely defined scoring function which affects the output dramatically.
3.2 Customizability
A query is said to be customizable if it can adapt to the specific requirements of a user or a scenario. Traditional skylines are not customizable in any way, they simply return the same set of tuples for every scenario. Representative skylines, however, are mildly customizable since the output cardinality can be controlled. -skylines, OSS skylines and UTK queries have noticeably higher customizability since they allow weight vectors to represent preferences over the attributes, though they only allow preferences to be expressed in the form of weighted sums. Top- queries and flexible skylines are fully customizable, they can be configured to return any tuple in the skyline.
3.3 Control over cardinality
The approaches are clearly divided into three groups on this property: Traditional skyline queries offer no control over the output cardinality. skylines and flexible skylines provide methods to increase or decrease the cardinality but offer no precise control. Lastly, top- queries, representative skylines, UTK queries and OSS operators have a parameter to specify the output cardinality.
3.4 Ranked output
Top- queries and representative skylines provide a ranking between the tuples they return. None of the other approaches have this property.
4 Conclusion
In this paper, we mentioned the commonly used strategies to select the most interesting tuples in homogeneous multi-dimensional datasets together with their well-known shortcomings. Then, we described some strategies that aim to address the shortcomings of the conventional methods: Flexible skylines, output size specified operators, UTK queries, -skylines and representative skylines. Finally, we compared these proposed solutions with each other and the traditional strategies, pointing out which issues each one can address.
Future work on flexible skylines could include estimating the output cardinality or limiting it by construction similar to what output size specified operators do. Discovering other families of scoring functions that are representative of users’ preferences and can be efficiently computed by flexible skylines could also be worthwhile research. Ranking the items contained in flexible skylines and computing the skyline tuple-by-tuple could be other directions to improve on this notion.
References
- [1] Stephan Börzsönyi, Donald Kossmann, and Konrad Stocker. The skyline operator. Proceedings 17th International Conference on Data Engineering, pages 421–430, 2001.
- [2] Paolo Ciaccia and Davide Martinenghi. Fa + ta ¡ fsa: Flexible score aggregation. CIKM ’18, page 57–66, New York, NY, USA, 2018. Association For Computing Machinery.
- [3] Paolo Ciaccia and Davide Martinenghi. Flexible skylines: Dominance for arbitrary sets of monotone functions. ACM Trans. Database Syst., 45(4), dec 2020.
- [4] Eleonora Ciceri, Piero Fraternali, Davide Martinenghi, and Marco Tagliasacchi. Crowdsourcing for top-k query processing over uncertain data. IEEE Transactions on Knowledge and Data Engineering, 28(1):41–53, 2016.
- [5] Ronald Fagin. Combining fuzzy information from multiple systems (extended abstract). In Proceedings of the Fifteenth ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, PODS ’96, page 216–226, New York, NY, USA, 1996. Association for Computing Machinery.
- [6] Ronald Fagin, Amnon Lotem, and Moni Naor. Optimal aggregation algorithms for middleware. In Proceedings of the Twentieth ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems, PODS ’01, page 102–113, New York, NY, USA, 2001. Association for Computing Machinery.
- [7] Ihab F. Ilyas, George Beskales, and Mohamed A. Soliman. A survey of top-¡i¿k¡/i¿ query processing techniques in relational database systems. ACM Comput. Surv., 40(4), oct 2008.
- [8] Shuhei Kishida, Seiji Ueda, Atsushi Keyaki, and Jun Miyazaki. Skyline-based recommendation considering user preferences. In Lei Chen, Christian S. Jensen, Cyrus Shahabi, Xiaochun Yang, and Xiang Lian, editors, Web and Big Data, pages 133–141, Cham, 2017. Springer International Publishing.
- [9] Xuemin Lin, Yidong Yuan, Qing Zhang, and Ying Zhang. Selecting stars: The k most representative skyline operator. In 2007 IEEE 23rd International Conference on Data Engineering, pages 86–95, 2007.
- [10] Kyriakos Mouratidis, Keming Li, and Bo Tang. Marrying Top-k with Skyline Queries: Relaxing the Preference Input While Producing Output of Controllable Size, page 1317–1330. Association for Computing Machinery, New York, NY, USA, 2021.
- [11] Kyriakos Mouratidis and Bo Tang. Exact processing of uncertain top-k queries in multi-criteria settings. Proc. VLDB Endow., 11(8):866–879, apr 2018.
- [12] Li Qian, Jinyang Gao, and H. V. Jagadish. Learning user preferences by adaptive pairwise comparison. Proc. VLDB Endow., 8(11):1322–1333, jul 2015.
- [13] Yufei Tao, Ling Ding, Xuemin Lin, and Jian Pei. Distance-based representative skyline. In 2009 IEEE 25th International Conference on Data Engineering, pages 892–903, 2009.
- [14] Tian Xia, Donghui Zhang, and Yufei Tao. On skylining with flexible dominance relation. In 2008 IEEE 24th International Conference on Data Engineering, pages 1397–1399, 2008.
- [15] Xiwang Yang, Harald Steck, Yang Guo, and Yong Liu. On top-k recommendation using social networks. In Proceedings of the Sixth ACM Conference on Recommender Systems, RecSys ’12, page 67–74, New York, NY, USA, 2012. Association for Computing Machinery.