DBExplorer: Exploratory Search in Databases

Manish Singh, Michael J. Cafarella, H. V. Jagadish

Introduction

Traditional relational databases are designed for "lookup search," where a user provides a precise SQL query and receives a precise set of results. However, users often engage in exploratory search, a process where they lack a specific goal or sufficient knowledge of the dataset to formulate an effective query. For instance, a car buyer might know they want an SUV but may not understand the specific trade-offs between price, mileage, and engine size across different brands.

Current solutions, such as faceted navigation (commonly seen on e-commerce sites like Amazon or Yelp), provide a flat summary of data but fail to capture complex dependencies between attributes. For example, they do not easily show how "Price" varies for a "Jeep" versus a "Toyota" when other factors like mileage are held constant. This lack of context makes it difficult for users to discover the underlying structure of the data they are browsing.

A traditional faceted search interface for used cars, showing the flat list of filters that DBExplorer aims to enhance.

The CAD View: Summarization in Context

To address these limitations, DBExplorer introduces the Conditional Attribute Dependency (CAD) View. This novel summarization tool helps users navigate unfamiliar databases by illustrating how attributes relate to one another within a specific context. Unlike global summaries (such as an average price for all records), the CAD View provides summaries conditioned on the user's current filters, making the information relevant to their specific exploration path.

The CAD View is a tabular summary organized around three primary components:

  1. The Pivot Attribute: A user-selected attribute (e.g., Make) that defines the rows of the view.
  2. Compare Attributes: The system automatically identifies the most "informative" attributes (e.g., Price, Engine, Year) that highlight differences between pivot values. This is achieved using a ChiSquare feature selection algorithm.
  3. IUnits (Interaction Units): Instead of displaying individual rows, the system clusters similar records into "IUnits." Each IUnit represents a meaningful subgroup, such as "midsized Chevrolet SUVs with V6 engines." These are generated via k-means clustering and a diversified top-k algorithm to ensure the summary covers a wide variety of data characteristics without redundancy.
An example of the CAD View, which clusters attributes into Interaction Units (IUnits) to show dependencies between car makes and features.

System Implementation and Performance

The CAD View is integrated into a system called TPFacet, which allows users to toggle between standard results and the exploratory CAD summary. A critical challenge for such a system is maintaining interactive latency. The authors found that for the system to be usable, it must respond in under a second.

To achieve this, DBExplorer utilizes sampling (typically 5,000 to 10,000 tuples) for feature selection and clustering. Research indicates that this sampling approach provides nearly identical quality to processing the full dataset while keeping latency under 500ms. The system was evaluated using two real-world datasets: the YahooUsedCar dataset (40,000 records) and the Mushroom Dataset from the UCI repository (8,124 records).

Key Insights

  • Revealing "Hidden" Attributes: Often, important characteristics (like a car's "look" or "prestige") aren't explicitly labeled in a database. By clustering attributes that are present, the CAD View can effectively act as a surrogate for these hidden features.
  • Diversification over Density: When summarizing data, showing the largest clusters isn't always best because they might be very similar. The authors use a diversification algorithm to ensure the IUnits shown cover a wide variety of data characteristics.
  • Contextual Relevance: By conditioning summaries on current user filters, the system avoids the "one size fits all" problem of global statistics, which are often useless in heterogeneous datasets.

Evaluation Results

A user study involving graduate students demonstrated the effectiveness of DBExplorer across several exploratory tasks. The results were significant:

  • Efficiency: For tasks involving finding similarities or differences between categories, users were 4-5 times faster using the CAD View compared to standard faceted search.
  • Accuracy: In a "Simple Classifier" task (building a rule to identify specific data types), users achieved a significantly higher F1 score (an increase of about 0.078) using TPFacet.
  • Search Quality: Users were able to find alternative search conditions with much lower error rates, indicating a deeper understanding of the underlying data structure.

Conclusion and Future Work

DBExplorer significantly improves the exploratory search experience by revealing attribute dependencies that are hidden in traditional interfaces. While the current implementation requires continuous numerical data to be "binned" into categories, future work will explore optimal pre-processing strategies and advanced UI designs to manage extremely high-dimensional data without overwhelming the user.

Summary updated

BibTeX
@inproceedings{singh2016dbexplorer,
  author = {Manish Singh and Michael J. Cafarella and H. V. Jagadish},
  title = {{DBExplorer: Exploratory Search in Databases}},
  booktitle = {EDBT},
  year = {2016},
  doi = {10.5441/002/edbt.2016.11},
}
Figure