What is it about?
THOI (Torch-based High-Order Interactions) is an open-source Python library for computing higher-order interactions (HOI) in continuous multivariate systems. The library was designed to make HOI analysis both computationally efficient and easy to integrate into real-world scientific workflows. THOI combines Gaussian-copula entropy estimation with modern batch-processing and parallelization strategies to accelerate computations across CPUs, GPUs, and TPUs. This allows users to efficiently compute higher-order information-theoretic measures that are traditionally expensive and difficult to scale. The project includes: * an installable Python package, * optimized implementations for large-scale analyses, * support for exhaustive and optimization-based HOI exploration, * and a collection of open tutorials reproducing the analyses from the paper as practical examples for new users. THOI is fully open source and openly available to the community, with all code, tutorials, and analysis pipelines publicly released to encourage reproducibility, reuse, and community contributions through issues and pull requests.
Featured Image
Photo by Max Harlynking on Unsplash
Why is it important?
Many real-world systems cannot be fully understood by studying variables two at a time. Brain activity, ecosystems, financial markets, social dynamics, and biological systems all exhibit collective behaviors that emerge from interactions involving many components simultaneously. Higher-order interaction (HOI) analyses provide a way to study these collective effects, revealing patterns that remain invisible to standard pairwise approaches. Despite this potential, HOI methods have historically been underused because they are computationally demanding and difficult to scale. As the number of variables increases, the number of possible interactions grows explosively, often making analyses prohibitively slow or inaccessible for many researchers. THOI is important because it helps bridge this gap between theory and practice. By making HOI computations dramatically faster and easier to use, THOI allows researchers to incorporate higher-order analyses into everyday scientific workflows instead of treating them as niche or impractical methods. This opens the possibility of exploring collective dynamics at scales that were previously difficult to analyze, even on standard workstation hardware. In addition, THOI promotes reproducible and open science by providing open-source implementations, accessible tutorials, and reproducible analysis pipelines. We hope this lowers the barrier for researchers from different disciplines to explore higher-order interactions in their own data and contributes to broader adoption of HOI methods across science.
Perspectives
We believe that making higher-order interaction analysis computationally accessible can significantly broaden its use across scientific disciplines. Many fields already work with increasingly large and complex multivariate datasets, but practical limitations have often restricted analyses to pairwise relationships. By reducing the computational and technical barriers associated with HOI methods, THOI aims to help researchers explore collective dynamics that were previously difficult to study in practice. Beyond the current implementation, we see THOI as a foundation for future developments in scalable information-theoretic analysis. Potential directions include new entropy estimators, support for additional HOI measures, tighter integration with machine learning workflows, distributed computing strategies, and applications to increasingly large multimodal datasets. An important aspect of the project is its open and community-driven nature. We hope the library can evolve through contributions from researchers across neuroscience, physics, biology, computer science, and related fields. By openly sharing the code, tutorials, and analysis pipelines, we aim to contribute to a more reproducible and collaborative ecosystem around higher-order interaction research.
Laouen Belloli
Paris Brain Institute
Read the Original
This page is a summary of: THOI: An efficient and accessible library for computing higher-order interactions enhanced by batch-processing, PLOS One, May 2026, PLOS,
DOI: 10.1371/journal.pone.0348005.
You can read the full text:
Resources
Contributors
The following have contributed to this page







