NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Exploiting compositionality to explore a large space of model structures

Roger B. Grosse, Ruslan Salakhutdinov, William T. Freeman, Joshua B. Tenenbaum · OpenReview

Introduction

In machine learning, selecting an appropriate model structure for a given dataset typically requires significant human expertise and intuition. Researchers often manually decide whether a problem is best suited for clustering, dimensionality reduction, or temporal modeling. This manual engineering not only limits the exploration of the model space to well-known classes but also introduces human bias. This paper proposes an automated model discovery framework that treats model structures as "sentences" in a context-free grammar (CFG), allowing a system to automatically identify the underlying structural assumptions of a raw data matrix.

Methodology

The core of the proposed approach is a compositional language for matrix decompositions. By defining a set of base components and algebraic combination rules, the system can represent a vast array of probabilistic models.

The Grammar of Models

The authors define base components such as Gaussian ($G$), Multinomial ($M$), Bernoulli ($B$), and Integration ($C$). These are combined using operations like addition and multiplication. For instance, the rule $G \to MG + G$ corresponds to a clustering model, while $G \to GG + G$ represents a low-rank approximation similar to Principal Component Analysis (PCA). More complex structures, such as sparse coding, are represented by $G \to (\exp(G) \circ G)G + G$.

The compositional space of models generated by the grammar, showing how simple components combine into complex structures.

Search and Inference

Given the effectively infinite space of possible models, the system employs a greedy search strategy. Starting from a structureless model, it iteratively expands the current best candidates using the grammar rules. To evaluate these candidates, the authors utilize a "toolbox" of reusable inference algorithms, including Gibbs sampling and Rauch-Tung-Striebel smoothing. Models are scored based on predictive likelihood—specifically, their ability to predict held-out data—using a combination of Variational Bayes and Annealed Importance Sampling (AIS).

Experimental Setup

The framework was evaluated on both synthetic data and several diverse real-world datasets:

  • Synthetic Data: Ten known structures with varying noise levels to test recovery accuracy.
  • Motion Capture: 45 variables over 200 frames of a person walking.
  • Natural Image Patches: 1,000 $12 \times 12$ patches from the Sparsenet dataset.
  • 20 Questions: User responses to 218 questions about 1,000 nouns.
  • U.S. Senate Votes: Roll call votes from the 111th Senate.

Results and Discussion

The system demonstrated a remarkable ability to recover known structures and discover meaningful new ones. In synthetic tests, it perfectly identified 7 out of 10 structures in low-noise environments. As noise increased, the system exhibited an "automatic Occam's Razor," backing off from complex hierarchical models to simpler, more robust ones like basic clustering or structureless Gaussians.

Discovered model structures across different real-world datasets at varying levels of complexity.

On real-world data, the results were highly interpretable:

  • Image Patches: The search path mirrored the historical progression of computer vision research, moving from low-rank models to sparse coding and eventually to dependent Gaussian scale mixtures.
  • Senate Votes: The system captured the polarization of the 111th Senate by discovering both party-based clusters and a liberal-conservative latent axis.
  • 20 Questions: The model identified 39 semantically coherent clusters and determined that "living vs. nonliving" was a primary dimension of variation.

Conclusion

By exploiting compositionality, this research provides a path toward truly automated machine learning. The ability to treat model discovery as a search problem over a structured grammar allows for the recovery of classic models and the invention of complex hybrids without human intervention. Future work may extend this grammar to tensors and tree-based embeddings to capture even more sophisticated data relationships.

Summary updated

BibTeX
@misc{grosse2012exploiting,
  author = {Roger B. Grosse and Ruslan Salakhutdinov and William T. Freeman and Joshua B. Tenenbaum},
  title = {{Exploiting compositionality to explore a large space of model structures}},
  year = {2012},
  eprint = {1210.4856},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1210.4856},
}
Figure