TERM Model: Tensor Ring Mixture Model for Density Estimation

Ruituo Wu, Jiani Liu, Bing Li, Anh Huy Phan, Ivan Oseledets, Ce Zhu, Yipeng Liu

TL;DR

This paper introduces TERM, a novel density estimation model based on Tensor Ring Decomposition (TRDE) and an ensemble approach. TERM effectively captures complex data distributions by combining multiple tensor structures, offering improved accuracy and sampling capabilities compared to existing methods, especially for moderately dimensional data.

What Problem Does This Paper Address?

Density estimation, the task of approximating probability distributions, is fundamental to many machine learning applications. While neural network-based methods like VAEs and GANs have shown promise, they often lack interpretability and can be challenging to train. Traditional tensor-based methods, while offering interpretability, struggle with the vast number of possible tensor structure permutations, which can limit their expressive power. This paper addresses the challenge of finding a balance between expressive power, interpretability, and computational tractability in density estimation, particularly for moderately dimensional data where traditional methods falter.

Methods

The core of the proposed method is the Tensor Ring Decomposition (TRDE) for density estimation. TRDE offers a more efficient way to decompose tensors compared to Tensor Train (TT) decomposition, reducing the number of permutation candidates and enhancing expressive capabilities. The authors then build upon this by proposing a mixture model called TERM. This model ensembles multiple TRDE "basis learners," each representing a different tensor permutation. These learners are assigned adaptive weights, inspired by ensemble learning and Gaussian Mixture Models, allowing the model to capture a wider range of data structures and improve flexibility. The approach also emphasizes the ability to perform exact sampling and compute marginal and conditional densities efficiently.

Datasets

The paper evaluates the proposed methods on:

  • 2D toy distributions: Including 2-Spirals, Checkerboard, Rings, Swissroll, and Pinwheel.
  • 3D synthetic datasets: Swissroll, Circles, and S-curve.
  • Real-world tabular UCI datasets: POWER, GAS, HEPMASS, and MINIBOONE.

Key Insights and Ideas

  • Ensembling Suboptimal Permutations: The paper's key insight is that instead of searching for a single "optimal" tensor structure, combining multiple "suboptimal" structures (different tensor permutations) can lead to superior density estimation and sampling performance. This is analogous to ensemble learning in other ML domains.
  • TRDE's Advantage: Tensor Ring Decomposition is highlighted as a more efficient and expressive alternative to Tensor Train decomposition for density estimation, particularly due to its rotational invariance which reduces permutation candidates.
  • Interpretability and Tractability: TERM retains the interpretability benefits of tensor methods while achieving competitive or superior performance to neural network-based approaches, especially in terms of tractable inference (sampling, marginal/conditional densities).
  • Adaptive Weighting: The mixture model's ability to adaptively learn weights for different tensor structures allows it to dynamically capture the most relevant aspects of the data distribution.

Key Results

  • Superior Density Estimation: TERM consistently outperforms existing normalizing flow models and autoregressive models on the POWER and GAS datasets, achieving higher log-likelihood scores.
  • Effective Sampling: Visualizations show TERM generating high-quality samples that accurately capture intricate details and reduce noise, outperforming Real NVP and NSF on various 2D and 3D datasets.
  • Efficiency: TERM demonstrates competitive or superior performance with a lower parameter count and shorter sampling times compared to other state-of-the-art models, particularly on 3D datasets.
  • Robustness: On the Circle dataset, TERM avoids extraneous clusters of noise seen in TTDE and NSF, showcasing its robustness.
  • Parameter Sensitivity: Experiments show that increasing basis size and TR rank generally improves performance, but higher ranks can lead to exponential growth in model size and training time.

Limitations and Future Work

  • Overfitting on Limited Data: The paper notes that on datasets with limited training data (HEPMASS, MINIBOONE), TERM can exhibit overfitting, similar to TTDE. This issue is exacerbated by increasing the number of mixture components.
  • Numerical Instability with Large Ranks: The authors mention that while TR is expressive, its loop structure can lead to numerical instability and performance degradation with very large ranks.
  • Future Work: The paper suggests exploring further research into optimizing the number of mixture components and investigating more advanced techniques to mitigate potential numerical instabilities. The authors also implicitly suggest that this ensemble approach could be extended to other tensor network structures.

Summary updated

BibTeX
@article{wu2026term,
  author = {Ruituo Wu and Jiani Liu and Bing Li and Anh Huy Phan and Ivan Oseledets and Ce Zhu and Yipeng Liu},
  title = {{TERM Model: Tensor Ring Mixture Model for Density Estimation}},
  journal = {IEEE Trans. Big Data},
  year = {2026},
  doi = {10.1109/tbdata.2025.3648288},
}
Figure