TL;DR
This paper introduces CAPE, a novel system for explaining surprising aggregation query results. Instead of just looking at the direct causes (provenance), CAPE explains outliers by identifying related "counterbalancing" outliers in the opposite direction, leveraging learned "aggregate regression patterns" (ARPs) that capture coarse-grained data trends.
What Problem Does This Paper Address?
When users run aggregation queries on large datasets, they often encounter unexpected results – outliers. Traditional methods for explaining these outliers typically rely on provenance, which involves identifying specific input data points whose removal or alteration would significantly change the outlier result. However, this approach has limitations: it may not work when the cause isn't directly in the provenance, or when explaining a "low" outlier (e.g., fewer publications than expected). CAPE addresses this by proposing a new explanation paradigm: "counterbalancing." This means explaining a high outlier by pointing to a related low outlier, or vice-versa. For instance, a surprisingly high publication count in one year might be explained by a surprisingly low count in the previous year, suggesting a shift in publication timing.
Methods
CAPE's core innovation lies in its use of Aggregate Regression Patterns (ARPs) and explanation by counterbalance.
- Aggregate Regression Patterns (ARPs): These are learned models that describe coarse-grained trends in aggregation query results. An ARP partitions the query results based on certain attributes (partition attributes) and then models the relationship between other attributes (predictor attributes) and the aggregated value using a regression model (e.g., linear). For example, an ARP might state that for many authors, their publication count increases linearly with the year. CAPE includes an efficient algorithm for mining these patterns from data.
- Explanation by Counterbalance: Once ARPs are learned, CAPE uses them to find explanations. When a user identifies an outlier tuple, CAPE looks for other tuples that are also outliers according to an ARP, but in the opposite direction of the original outlier. For example, if a user's query result for author Ax shows a high publication count in 2018, CAPE might find that Ax had a surprisingly low publication count in 2017, and this low count in 2017 is explained by an ARP. The system ranks these counterbalancing explanations based on a score that combines the "similarity" of the counterbalance to the original outlier and its "outlierness" (how much it deviates from the ARP's prediction).
Datasets
The paper mentions using three real-world datasets for demonstration:
- The DBLP publication dataset (used extensively in examples).
- A Crime dataset from the City of Chicago data portal.
- A NYC Taxi dataset.
No new benchmarks were introduced.
Key Insights and Ideas
- Counterbalancing as a Powerful Explanation Paradigm: The core insight is that explaining an outlier by pointing to a related outlier in the opposite direction can be more intuitive and informative than traditional provenance-based methods, especially for low outliers or when direct causal links are complex.
- ARPs as a Foundation for Understanding Trends: Learning aggregate regression patterns provides a structured way to understand expected data behavior, which is crucial for identifying what constitutes an "outlier" in the first place.
- Bridging the Gap Between Data Trends and User Questions: CAPE effectively connects learned data patterns (ARPs) with specific user queries and identified outliers, providing actionable explanations.
Key Results
The paper focuses on a demonstration of the CAPE system rather than extensive quantitative results. The key qualitative finding is that CAPE can provide meaningful explanations for outliers that are not easily explained by traditional provenance-based methods. The example with author Ax's publication count demonstrates how a low count in 2007 can explain a high count in 2018, a type of explanation not covered by prior work. The system's user interface allows users to explore queries, patterns, and explanations interactively.
Limitations and Future Work
- Limitations: The authors acknowledge that not all outliers can be explained through counterbalancing; some might be due to data entry errors. The effectiveness of CAPE relies on the existence of meaningful ARPs in the data.
- Future Work: The authors suggest integrating CAPE's ideas with other outlier explanation techniques as an interesting and challenging research direction. They also mention that the system is available as open source.
Summary updated