CrossCat: A Fully Bayesian Nonparametric Method for Analyzing Heterogeneous, High Dimensional Data

Vikash Mansinghka, Patrick Shafto, Eric Jonas, Cap Petschulat, Max Gasner, Joshua B. Tenenbaum

TL;DR

CrossCat is a domain-general Bayesian method for analyzing high-dimensional, heterogeneous data tables. It automatically partitions variables into independent "views" and clusters rows within each view, allowing it to discover complex hidden structures and provide accurate predictions without requiring manual feature engineering or restrictive modeling assumptions.

What Problem Does This Paper Address?

Modern datasets are often high-dimensional, containing hundreds or thousands of variables of different types (binary, categorical, continuous). Traditional statistical tools struggle with this complexity:

  • Bayesian Networks are great for structure but scale poorly and struggle with complex, non-linear joint distributions.
  • Standard Mixture Models assume all variables are related, which leads to "under-fitting" in high dimensions—the model gets distracted by noise and misses subtle signals in subsets of the data.
  • Multivariate Gaussians are fast but assume everything is linear and continuous, which fails for real-world tabular data.

The authors introduce CrossCat to bridge these gaps, providing a method that is as flexible as a mixture model, as structured as a Bayesian network, and scalable enough to handle millions of data cells.

Methods

CrossCat is based on a hierarchical, nonparametric Bayesian model. Specifically, it uses a Dirichlet Process (DP) mixture of DP mixtures:

  1. The "Outer" Partition: An "outer" Dirichlet Process partitions the columns (variables) of a table into non-overlapping views. Variables in different views are treated as statistically independent.
  2. The "Inner" Partition: For each view, an "inner" Dirichlet Process partitions the rows (entities) into categories. This means the same entities can be clustered differently depending on which subset of variables you are looking at.
  3. Component Models: Within each (category, variable) pair, CrossCat uses simple parametric models (like Beta-Bernoulli for binary data or Normal-Gamma for continuous data) to describe the values.

Inference is performed using a scalable collapsed Gibbs sampling scheme. This allows the model to "learn" the number of views, the number of categories per view, and the dependencies between variables directly from the data.

Figure 1: An illustration of the latent structure posited by cross-categorization on a dataset of common-sense judgments about animals. CrossCat finds three independent signals, or views: taxonomic clustering (A), ecological clustering (C), and a "noise" view for idiosyncratic features (B).

Datasets

The authors evaluated CrossCat on a diverse range of datasets to prove its domain-generality:

  • Common-sense Animal Data: 50 animals and 85 properties.
  • Dartmouth Atlas of Health Care: 74 variables describing hospital capacity, quality, and cost across ~300 regions.
  • 111th US Senate Voting Records: 397 votes for 106 senators.
  • MNIST Handwritten Digits: 256-dimensional binary vectors representing images.
  • Longitudinal Unemployment Data: Monthly state-level rates from 1976 to 2011.
  • Gene Expression Data: High-dimensional biological measurements (up to 10,000 probes).
  • Synthetic Data: Used to test robustness against high-dimensional Gaussian noise.

Key Insights and Ideas

  • Cross-Categorization: The core "aha" moment is that high-dimensional data is rarely explained by a single clustering. For example, animals can be clustered by biology (mammals vs. birds) or by habitat (land vs. sea). CrossCat captures both simultaneously by placing these variable groups into different views.
  • Automatic Feature Selection: By allowing variables to be independent, CrossCat naturally isolates "distractor" or noise variables into their own views, preventing them from degrading the predictive power of the "signal" variables.
  • Context-Sensitive Similarity: CrossCat provides a way to measure how similar two rows are relative to a specific variable. Two senators might be very similar when voting on energy but very different when voting on healthcare.

Key Results

  • Robustness to Noise: In synthetic tests, CrossCat maintained high predictive accuracy even when "distractor" variables outnumbered "signal" variables by 100 to 1. Standard mixture models failed once the number of distractors equaled the number of signals.
  • Real-World Discovery: On the Dartmouth Atlas data, CrossCat recovered a famous (and controversial) finding: hospital quality scores are almost entirely independent of hospital costs.
  • Predictive Accuracy: CrossCat outperformed Bayesian networks on voting records and was competitive with (though slightly behind) specialized Gaussian SVMs on image classification, despite being a general-purpose model.
  • Scalability: The authors demonstrated successful runs on datasets with up to 10 million cells, with runtimes scaling linearly with the number of cells.

Limitations and Future Work

  • Temporal Data: While CrossCat successfully identified US business cycles in unemployment data, it currently treats time points as independent columns. The authors suggest integrating nonparametric state machines to handle time-series data more natively.
  • Discriminative Performance: For pure classification tasks where labels are plentiful, specialized discriminative models (like Deep Learning or SVMs) may still outperform CrossCat.
  • Data Types: The current implementation needs more component models to handle complex types like timestamps, geographic coordinates, or open-ended text.
  • Engineering Complexity: While the Gibbs sampler is simple in theory, achieving high performance on millions of rows required significant software engineering (custom numerical libraries and streaming architectures).

Summary updated

BibTeX
@article{mansinghka2016crosscat,
  author = {Vikash Mansinghka and Patrick Shafto and Eric Jonas and Cap Petschulat and Max Gasner and Joshua B. Tenenbaum},
  title = {{CrossCat: A Fully Bayesian Nonparametric Method for Analyzing Heterogeneous, High Dimensional Data}},
  journal = {J. Mach. Learn. Res.},
  year = {2016},
}
Figure