Explaining Aggregates for Exploratory Analytics

Fotis Savva, Christos Anagnostopoulos, Peter Triantafillou

Introduction

In exploratory data analysis (EDA), analysts frequently rely on aggregate queries (AQs) to summarize vast datasets. A typical query might ask for the count of events within a specific geographic radius or the average value of a metric within a certain range. However, standard database management systems (DBMS) return these results as "information-poor" scalars—single numbers that offer no insight into the underlying data distribution or how the result might change with slight adjustments to the query parameters.

To understand the context of a result, analysts often resort to a "barrage" of follow-up queries, which is both time-consuming and computationally expensive on massive datasets. This paper introduces XAXA (eXplaining Aggregates for eXploratory Analytics), a framework designed to transform these static scalars into rich, functional explanations that describe the data subspace in real-time.

The XAXA Framework

XAXA shifts the paradigm from data-driven explanations to query-driven modeling. It treats the result of an aggregate query not as a fixed value, but as a point on a multi-dimensional surface defined by the query's selection parameters.

System Architecture

The framework operates through three distinct phases:

  1. Pre-Processing: XAXA utilizes historical query logs to "jump-start" the system by clustering the query space, identifying common areas of interest through Location Representatives (LR) and Radius Representatives (RR).
  2. On-line Training: As analysts issue new queries, XAXA intercepts the (query, result) pairs. It employs Stochastic Gradient Descent (SGD) to update its internal models incrementally. This allows the system to learn the data distribution "on the fly" without scanning the raw data.
  3. Explanation Generation: When an analyst requests an explanation for a specific region, XAXA provides a functional explanation using Piecewise Linear Regression (PLR).

Modeling Non-Linearity

A key innovation in XAXA is its use of Multivariate Adaptive Regression Splines (MARS) to fit local linear functions. Because real-world data is rarely uniform—featuring sudden spikes in crime rates or localized clusters of activity—a single global linear model is insufficient. By switching between different linear segments based on the query radius, XAXA captures these non-linearities with high precision.

Experimental Evaluation

The researchers evaluated XAXA using diverse datasets, including the Chicago Crimes Dataset (~6 million records) and the Milan Telecom Dataset (~5.6 million records), alongside synthetic workloads designed to simulate complex "zooming" and exploration patterns.

Key Findings

  • Accuracy: XAXA demonstrated exceptional fidelity. For COUNT queries, the coefficient of determination ($R^2$) was frequently near 1.0. For more volatile AVG queries, the Normalized Root-Mean-Square Error (NRMSE) typically remained below 4%.
  • Efficiency: While traditional database scans can take seconds or minutes, XAXA generates functional explanations in milliseconds.
  • Scalability: Because XAXA learns from query-answer pairs rather than raw records, its performance is invariant to the size of the underlying dataset. The system remains equally fast whether the database contains millions or billions of rows.
  • Zero Data Access: Once the model is trained, it requires no further access to the raw data, enhancing both performance and data privacy.

Discussion and Future Work

XAXA represents a significant step forward in making EDA more interactive. By viewing aggregates as surfaces, it allows analysts to "predict" results for unsampled query parameters, facilitating a smoother exploration process. This functional approach can be visualized as concentric circles with varying rates of increase, immediately showing analysts where data density shifts.

However, the current implementation focuses primarily on Center-Radius Selection (CRS) operators, which are common in spatial analytics. Future research is needed to extend this functional explanation approach to more complex SQL predicates, such as multi-way joins. Additionally, the system's learning rate is dependent on query locality; it performs best when analysts explore related subspaces rather than issuing completely random queries.

Conclusion

XAXA provides a lightweight, privacy-preserving, and highly efficient method for explaining aggregate results. By leveraging on-line machine learning to model the query-answer surface, it empowers analysts to explore data subspaces with millisecond latency, fundamentally changing how we interact with large-scale data aggregates.

Summary updated

BibTeX
@inproceedings{savva2018explaining,
  author = {Fotis Savva and Christos Anagnostopoulos and Peter Triantafillou},
  title = {{Explaining Aggregates for Exploratory Analytics}},
  booktitle = {IEEE BigData},
  year = {2018},
  doi = {10.1109/bigdata.2018.8621953},
}
Figure