Interaction Models and Generalized Score Matching for Compositional Data

Shiqing Yu, Mathias Drton, Ali Shojaie

Abstract: Applications such as the analysis of microbiome data have led to renewed interest in statistical methods for compositional data, i.e., data in the form of relative proportions. In particular, there is considerable interest in modelling interactions among such proportions. To this end we propose a class of exponential family models that accommodate arbitrary patterns of pairwise interaction. Special cases include Dirichlet distributions as well as Aitchison’s additive logistic normal distributions. Generally, the distributions we consider have a density that features a difficult-to-compute normalizing constant. To circumvent this issue, we design effective estimation methods based on generalized versions of score matching.

Introduction

Compositional data—vectors of proportions that sum to one—are fundamental in fields ranging from geology to microbiology. However, the inherent constraints of the probability simplex pose significant modeling challenges. Traditional approaches often rely on log-ratio transformations, which fail in the presence of exact zeros—a common occurrence in sparse microbiome datasets. Furthermore, flexible exponential family models often involve intractable normalizing constants, making standard Maximum Likelihood Estimation (MLE) computationally prohibitive.

The Power Interaction Model

This work introduces a flexible class of "power interaction models" (or $a-b$ interaction models) designed for data on the simplex. The probability density function is defined as: $$p_{\eta,\mathbf{K}}(x) \propto \exp \left( -(2a)^{-1}x^{a\top}\mathbf{K}x^a + b^{-1}\eta^\top x^b \right)$$ where $x$ is a point on the simplex, $\mathbf{K}$ represents the interaction matrix, and $a, b$ are power parameters. By selecting $a, b > 0$, the model remains well-defined at the boundaries of the simplex ($x_j = 0$), allowing for the direct analysis of sparse data without the need for ad-hoc pseudo-counts.

Estimation via Generalized Score Matching

To estimate parameters without computing the normalizing constant, the authors utilize Generalized Score Matching (GSM). This technique minimizes the discrepancy between the model's score function and the empirical score function. To adapt GSM to the simplex, the authors "profile out" one coordinate, transforming the constrained problem into a full-dimensional one.

Visualization of basis functions and their combinations on the simplex, illustrating the model's capacity to capture complex interaction patterns.

A critical component of this estimator is the boundary weighting function $h(x)$. The authors demonstrate that a power-law weighting $h(x) = x^{2-a}$ provides optimal stability and accuracy for edge recovery in high-dimensional interaction networks.

Experimental Results

The framework was validated through both synthetic simulations and real-world microbiome analysis:

  • Synthetic Data: The GSM estimator successfully recovered sparse interaction patterns in high-dimensional settings ($m=100$), showing that the required sample size scales with $\log(m)$.
  • Microbiome Analysis: Applying the model to human gut microbiome data revealed age-specific "hub microbes." The interaction networks for children (under 3 years) differed significantly from those of adults, suggesting a structural maturation of the gut microbiome over time.

Conclusion

The proposed power interaction models and GSM-based estimation provide a mathematically rigorous and computationally efficient framework for compositional data. By directly handling zeros and bypassing intractable constants, this approach offers a significant advancement for high-dimensional microbiome research and other fields dealing with constrained proportional data.

This paper was presented at the 2023 Learning on Graphs (LoG) Conference.

Summary updated

BibTeX
@inproceedings{yu2023interaction,
  author = {Shiqing Yu and Mathias Drton and Ali Shojaie},
  title = {{Interaction Models and Generalized Score Matching for Compositional Data}},
  booktitle = {LoG},
  year = {2023},
  url = {https://openreview.net/forum?id=xCcC3PTVdY},
}
Figure