The Importance of Parameters in Database Queries

被引:0
|
作者
Grohe, Martin [1 ]
Kimelfeld, Benny [2 ]
Lindner, Peter [3 ]
Standke, Christoph [1 ]
机构
[1] Rhein Westfal TH Aachen, Aachen, Germany
[2] Technion Israel Inst Technol, Haifa, Israel
[3] Ecole Polytech Fed Lausanne, Lausanne, Switzerland
关键词
SHAP score; query parameters; Shapley value; EXPLANATIONS; TRACTABILITY; COMPLEXITY;
D O I
10.4230/LIPIcs.ICDT.2024.14
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We propose and study a framework for quantifying the importance of the choices of parameter values to the result of a query over a database. These parameters occur as constants in logical queries, such as conjunctive queries. In our framework, the importance of a parameter is its Shap score. This score is a popular instantiation of the game-theoretic Shapley value to measuring the importance of feature values in machine learning models. We make the case for the rationale of using this score by explaining the intuition behind Shap, and by showing that we arrive at this score in two different, apparently opposing, approaches to quantifying the contribution of a parameter. The application of the Shap score requires two components in addition to the query and the database: (a) a probability distribution over the combinations of parameter values, and (b) a utility function that measures the similarity between the result for the original parameters and the result for hypothetical parameters. The main question addressed in the paper is the complexity of calculating the Shap score for different distributions and similarity measures. We first address the case of probabilistically independent parameters. The problem is hard if we consider a fragment of queries that is hard to evaluate (as one would expect), and even for the fragment of acyclic conjunctive queries. In some cases, though, one can efficiently list all relevant parameter combinations, and then the Shap score can be computed in polynomial time under reasonable general conditions. Also tractable is the case of full acyclic conjunctive queries for certain (natural) similarity functions. We extend our results to conjunctive queries with inequalities between variables and parameters. Finally, we discuss a simple approximation technique for the case of correlated parameters.
引用
收藏
页数:17
相关论文
共 50 条
  • [21] QUERIES AND NOTES ON THE IMPORTANCE OF TERMINOLOGY
    HIGGINS, FR
    AMERICAN SOCIOLOGIST, 1979, 14 (04): : 185 - 189
  • [22] Satellite Image Database Search Engine which Allows Fuzzy Expression of Geophysical Parameters of Queries
    Arai, Kohei
    INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2020, 11 (05) : 69 - 73
  • [23] Satellite image database search engine which allows fuzzy expression of geophysical parameters of queries
    Arai K.
    International Journal of Advanced Computer Science and Applications, 2020, 11 (05): : 69 - 73
  • [24] Developing the MAMSat database and user queries
    Jolibert, S.
    Gourraud, P. A.
    Saint-Blancat, J.
    Derre, M.
    Larre, J. M.
    Thomsen, A. Cambon
    Thomsen, M.
    TISSUE ANTIGENS, 2007, 69 (05): : 526 - 526
  • [25] Relativistic quantum private database queries
    Sun, Si-Jia
    Yang, Yu-Guang
    Zhang, Ming-Ou
    QUANTUM INFORMATION PROCESSING, 2015, 14 (04) : 1443 - 1450
  • [26] EVALUATION OF QUERIES IN INDEPENDENT DATABASE SCHEMES
    SAGIV, Y
    JOURNAL OF THE ACM, 1991, 38 (01) : 120 - 161
  • [27] Detecting suspicious relational database queries
    Boettcher, Stefan
    Hartel, Rita
    Kirschner, Matthias
    ARES 2008: PROCEEDINGS OF THE THIRD INTERNATIONAL CONFERENCE ON AVAILABILITY, SECURITY AND RELIABILITY, 2008, : 771 - 778
  • [28] An Introduction to the Patstat Database with Example Queries
    de Rassenfosse, Gaetan
    Dernis, Helene
    Boedt, Geert
    AUSTRALIAN ECONOMIC REVIEW, 2014, 47 (03) : 395 - 408
  • [29] Distribution rules for array database queries
    van Ballegooij, A
    Cornacchia, R
    de Vries, AP
    Kersten, M
    DATABASE AND EXPERT SYSTEMS APPLICATIONS, PROCEEDINGS, 2005, 3588 : 55 - 64
  • [30] The trichotomy of HAVING queries on a probabilistic database
    Christopher Ré
    Dan Suciu
    The VLDB Journal, 2009, 18 : 1091 - 1116