infomeasure-rs: A High-Performance Rust Library for Information-Theoretic Measures and Estimators

Information theory has become a standard tool across the natural and social sciences, yet practical use is limited by estimator choice, fragmented software, reproducibility, and computational cost. We present infomeasure-rs, an open-source Rust library that brings a broad set of information-theoretic measures and estimators into one self-contained, type-safe package. It covers entropy, mutual information, conditional mutual information, transfer entropy, conditional transfer entropy, cross-entropy, and the Kullback–Leibler and Jensen–Shannon divergences, with discrete (plug-in and bias-corrected), kernel, ordinal, and nearest-neighbour estimators, including the Rényi and Tsallis entropies, and exposes local and global values and significance testing through a consistent trait interface. It compiles to self-contained native code with no language runtime dependency and is continuously validated against a reference implementation. On a single central processing unit (CPU) core, and even without its GPU or parallel paths, it is the fastest of the packages we compared across languages, matching the closest packages only for plug-in discrete entropy and substantially faster for mutual information, the conditional and transfer measures, and the kernel, ordinal, and generalised-entropy estimators. The optional GPU and multi-threaded paths accelerate selected estimators further. The library is open source and, to our knowledge, the most complete information-theory package for Rust.

Authors

Institutions

Publication Details

Journal
Entropy
Published
2026-11-25
DOI
https://doi.org/10.3390/e28121309
Primary Topic
Statistical Mechanics and Entropy
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

infomeasure-rs: A High-Performance Rust Library for Information-Theoretic Measures and Estimators

Carlson Moses Büth
1 links
Entropy
Statistical Mechanics and Entropy
article

infomeasure-rs: A High-Performance Rust Library for Information-Theoretic Measures and Estimators

Carlson Moses Büth
article en

Abstract

Information theory has become a standard tool across the natural and social sciences, yet practical use is limited by estimator choice, fragmented software, reproducibility, and computational cost. We present infomeasure-rs, an open-source Rust library that brings a broad set of information-theoretic measures and estimators into one self-contained, type-safe package. It covers entropy, mutual information, conditional mutual information, transfer entropy, conditional transfer entropy, cross-entropy, and the Kullback–Leibler and Jensen–Shannon divergences, with discrete (plug-in and bias-corrected), kernel, ordinal, and nearest-neighbour estimators, including the Rényi and Tsallis entropies, and exposes local and global values and significance testing through a consistent trait interface. It compiles to self-contained native code with no language runtime dependency and is continuously validated against a reference implementation. On a single central processing unit (CPU) core, and even without its GPU or parallel paths, it is the fastest of the packages we compared across languages, matching the closest packages only for plug-in discrete entropy and substantially faster for mutual information, the conditional and transfer measures, and the kernel, ordinal, and generalised-entropy estimators. The optional GPU and multi-threaded paths accelerate selected estimators further. The library is open source and, to our knowledge, the most complete information-theory package for Rust.

EntropyVol. 28(12)
Consejo Superior de Investigaciones Científicas (ES), University of Zurich (CH), Institute for Cross-Disciplinary Physics and Complex Systems (ES), Universitat de les Illes Balears (ES)
Statistical Mechanics and Entropy
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon