Mutual information without training: method, architecture, and benchmarks

Giulio Franzese · Simone Rossi · Pietro Michiardi

Introduction

Definition of Mutual Information

\[\MI(X;Y)=\KL{p_{XY}}{p_X\otimes p_Y}=\E\!\left[\log\frac{p_{XY}(x,y)}{p_X(x)\,p_Y(y)}\right]\]

  • \(p_{XY}\): the joint distribution of \(X\) and \(Y\).
  • \(p_X\otimes p_Y\): what the joint would be if \(X\) and \(Y\) were independent.

\(X\) and \(Y\) can be vectors: a whole population, a whole trajectory.

Mutual Information as a Fundamental Measure

  • Zero if and only if \(X\) and \(Y\) are independent. Correlation = 0 is compatible with strong nonlinear dependence.
  • Invariant to invertible transformations: \(\MI(f(X);Y)=\MI(X;Y)\). Rescaling, changing units, or any other reparametrization has no effect.
  • A ceiling for every decoder: no decoder can extract more than \(\MI(X;Y)\) about \(X\) from \(Y\).

Channel view: \(X\) is the message, and \(Y\) is the received signal. \(\MI(X;Y)\) is the information available at the receiver. The accuracy of a decoder tells how much of it that specific decoder uses.

MI Estimators…?

More than 80 years of research in a few slides. First, the classical ones:

  • Assume a family. Approximate the distribution as Gaussian, and compute \[p(x,y)\simeq \mathcal{N}\!\left(\mu,\begin{bmatrix}\Sigma_{XX} &\Sigma_{XY}\\\Sigma_{XY}^\top &\Sigma_{YY}\end{bmatrix}\right) \;\rightarrow\; \MI(X;Y)=\tfrac{1}{2}\log\!\left(\frac{\det(\Sigma_{XX})\det(\Sigma_{YY})}{\det(\Sigma)}\right)\]
  • Bin and count. Estimate the histogram of joint occurrences, and plug it in: \[\hat{p}_{jk}=\frac{\#(x_i=j,\;y_i=k)}{N}, \qquad \hat{\MI}=\sum_{j,k}\hat{p}_{jk}\log \frac{\hat{p}_{jk}}{\hat{p}_{j}\,\hat{p}_{k}}\]
  • Nearest neighbors (KSG): estimate local densities from the distances between samples.

No training, few samples needed. All three break down as the dimension grows.

MI Estimators…? (cont.)

Second, the variational estimators (MINE, InfoNCE, NWJ):

  • Donsker-Varadhan Theorem: \[\KL{\mu}{\chi}=\sup_{T:\Omega\rightarrow\mathbb{R}}\;\E_\mu[T]-\log \E_\chi [\exp(T)]\]

  • From all possible functions \(T\) to the smaller class of neural networks: \[\MI(X;Y)\;\geq\; \sup_{\theta}\;\E_{p_{XY}}[T^\theta]-\log \E_{p_X\otimes p_Y} [\exp(T^\theta)]\]

  • A classifier separates joint samples from independent ones, in any dimension.
  • Big problems: i) good luck with the Monte Carlo estimation of \(\log \E [\exp(T^\theta)]\); ii) one network per distribution.

MI Estimators…? (cont.)

Third, the diffusion estimators. They start from noise.

  • Take a clean sample \(x_0\) and mix it with Gaussian noise \(\epsilon\): \[x_t=(1-t)\,x_0+t\,\epsilon,\qquad t\in[0,1]\] At \(t=0\): the data. At \(t=1\): pure noise.

  • The denoiser is the best guess of the clean sample, given the noisy one: \[D_t(x)=\E\!\left[x_0 \mid x_t=x\right]\]

Every distribution has its own denoiser. A sample that looks like noise is pulled back toward the regions where that distribution has its data.

MI Estimators…? (cont.)

Our result (MINDE, ICLR 2024): two distributions differ as much as their denoisers disagree.

\[\KL{p^A}{p^B}=\int_0^1\frac{1-t}{t^3}\;\E_{p^A}\!\left[\norm{D^A_t(x_t)-D^B_t(x_t)}^2\right]dt\]

For MI, compare the denoiser of the joint with the denoisers that see one variable clean:

\[\MI(X;Y)=\int_0^1\frac{1-t}{t^3}\;\E\Big[\underbrace{\norm{D_t(x_t,y_t)|_X-D_t(x_t\mid y_0)}^2}_{\text{denoise } X\text{: joint against } Y \text{ clean}}+\underbrace{\norm{D_t(x_t,y_t)|_Y-D_t(y_t\mid x_0)}^2}_{\text{denoise } Y\text{: joint against } X \text{ clean}}\Big]\,dt\]

  • If knowing \(Y\) does not help to denoise \(X\), the denoisers agree and \(\MI=0\).
  • No \(\log \E[\exp(\cdot)]\) to estimate.

In MINDE, we train a neural network to be these denoisers: state of the art on difficult distributions.

MI Estimators…? (cont.)

Problem: every accurate estimator is trained anew for each distribution, and needs many samples.

What neural estimators require

  • \(10^4\) to \(10^5\) paired samples
  • one training run per question
  • a GPU and hyperparameter tuning each time
  • a training run that can fail

What many problems provide

  • a few hundred to a few thousand samples
  • hundreds of questions: per feature, per layer, per time window
  • a different distribution for every question

The Landscape of MI Estimation

open extreme nonlinearity, few samples Classical Gaussian, binning, nearest neighbors any number of samples, simple distributions only Neural (trained per distribution) variational: MINE, InfoNCE · diffusion: MINDE many samples · a GPU training run and hyperparameter tuning for every distribution ALICE: memory limits the number of samples ALICE complex distributions, scarce data a few hundred samples · tens of dimensions no training, no tuning this is where many scientific applications live Complexity and dimensionality of the distribution Number of samples available simple, few dimensions nonlinear, many dimensions 10² 10⁵

ALICE

In-Context Learning

Classical learning

  • The data changes the weights.
  • One training run per task.
  • A new dataset: train again.
dataset
→
training → weights

In-context learning

  • The weights are frozen.
  • The data is part of the input.
  • A new dataset: one forward pass.
dataset + question
→
frozen model → answer

For us, a task is a distribution:

  • the dataset is a set of samples of that distribution (the context);
  • the question is a noisy point to denoise (the query).

The learning algorithm is executed inside the forward pass of the Transformer.

In-Context Learning (cont.)

The context and the query are concatenated into one input.

\(x_1\) \(x_2\) \(y_1\) \(y_2\)
context
\(n\) clean samples
0.31 -1.20 0.84 0.02
-0.55 0.47 -0.91 1.33
1.02 0.08 1.75 -0.40
⋮ ⋮ ⋮ ⋮
query
time \(t\)
0.77 -0.35 0.63 0.21 → \(D_t(x_t\mid y_0)\)

Orange cells: noised, to be predicted. White cells of the query: shown clean, as evidence.

  • The context determines which distribution.
  • The query determines where its denoiser is evaluated.
  • A mask tells which entries of the query are noised.

Three masks give the three denoisers of the MI identity:

  • all noised: the joint;
  • \(X\) noised, \(Y\) clean;
  • \(Y\) noised, \(X\) clean.

Training on Tasks

One training episode:

  1. Draw a task: one synthetic distribution.
  2. Draw clean samples from it: the context.
  3. Draw one more sample, and add noise to some of its coordinates: the query.
  4. Predict the noised coordinates.

A different distribution at every step: to predict well, our model must infer the distribution from the context.

No MI labels are needed, and none are used.

The Training Objective

\[\mathcal{L}(\theta)=\E_{p,\,\cC,\,z_0,\,t,\,\epsilon,\,m}\left[\frac{1}{\norm{m}_1}\,\norm{m\odot\big(v_\theta(z_t,t,m;\cC)-(z_0-\epsilon)\big)}^2\right]\]

  • \(p\): a synthetic task. \(\cC\): \(n\) clean samples of \(p\). \(z_t=(1-t)z_0+t\epsilon\) on the coordinates where \(m=1\).
  • The network predicts the velocity \(z_0-\epsilon\): a rescaled denoiser, \(v_t=(D_t-z_t)/t\). Its target has no \(1/t\) factor: no singularity as \(t\to0\).
  • Mask \(m\in\{0,1\}^d\), an input of the network: all coordinates noised (35%), one block noised and the other clean (30%), a random subset of coordinates otherwise.

The minimizer is the posterior-predictive velocity \(v^\star=\E[z_0-\epsilon\mid z_t,m,\cC]\): the Bayes-optimal answer given the context. As \(n\to\infty\) it converges to the velocity of the true distribution, and the MI estimator becomes exact.

The Synthetic Tasks

Every task is a joint distribution of \((X,Y)\), cheap to sample, with no MI label.

Family How a task is drawn What it varies
Copula mixtures (40%) 1 to 60 Gaussian or Student-t components; random low-rank or sparse correlations; random invertible warps Dependence strength, heavy tails, multimodality, independent blocks
Latent warps Gaussian mixtures along a random curve, pushed through shifts, sinusoidal folds, and rotations Nonlinear and non-invertible dependence
Random regressions \(Y\) is a random smooth function of a Gaussian \(X\), plus noise Nonlinear conditional mean, controlled noise level
Manifolds Points on a curve or a surface, thickened by a small noise Thin, near-singular supports
  • Joint widths from 2 to 100: 70,000 tasks for each of 14 widths.
  • Simple to define and easy to extend: a new family is a new sampler.

Synthetic Pretraining

the space of joint distributions Copula mixtures Latent warps Manifolds Random regressions benchmark mouse cortex cell signaling DNA far from the corpus: no guarantee one synthetic training distribution a test distribution, never seen in training
  • 980,000 synthetic distributions. No real data of any kind.
  • Why does it work? Our model cannot memorize a million distributions. It learns the procedure that turns samples into a denoiser, and the same procedure applies to a new distribution that falls between the ones seen in training: zero-shot generalization.

Synthetic Pretraining (cont.)

i) the context a few hundred samples of your data the space of joint distributions Copula mixtures Latent warps Manifolds Random regressions benchmark mouse cortex cell signaling DNA the space of distributions the context tells the model where we are ii) the denoiser of that distribution, at any query input output
  • i) The context positions us in the space of distributions. No weights change: it is an input.
  • ii) The model outputs the denoiser at that position, evaluated at the query.
  • Another distribution: one forward pass. MINDE needs a training run for each point of this space.

Why Can Attention Do This?

One step of softmax attention is one retrieval step of a dense associative memory (Ramsauer et al., 2021):

\[x\;\leftarrow\;\sum_{k=1}^{n}\operatorname{softmax}_k\!\big(\beta\,\langle x, z^{(k)}\rangle\big)\,z^{(k)}\]

In-context denoising as retrieval (Smart et al., 2025): the context samples are the stored patterns, and the noisy query is the probe. The output is a kernel-weighted average of the context: an estimate of the posterior mean.

  • Gaussian context: the Bayes-optimal denoiser is affine in the query, and one attention layer realizes it exactly.
  • The temperature plays the role of the noise level: at high noise, the context mean; at low noise, the nearest samples.
  • Multimodal or heavy-tailed context: one step is no longer optimal, and depth is needed. This is the regime of our corpus, and the reason why our model is deep.

Model Family and Training

Small Base
Hidden dimension 384 768
Layers 5 6
Attention heads 8 12
Induced latents \(K\) 128 128
Relation features \(R\) 16 16
Parameters 19M 85M
Training, 2 H200 GPUs 2 d 22 h 5 d 10 h

The parameter count does not depend on the joint width or on the context length.

  • Each step: 128 distributions, all of the same joint width, one context from each.
  • Context length: uniform between 128 and the training window. One set of weights for every context length.
  • Phase 1: 500,000 steps, window of 1,024 samples, cosine decay.
  • Phase 2: 60,000 steps, window of 2,048 samples, constant learning rate.
  • AdamW, peak learning rate \(3\cdot10^{-4}\) (Base), bf16 mixed precision.
  • No MI label and no density at any point.

For comparison, to our understanding InfoAtlas requires 2 weeks on 16 H800 GPUs.

At Inference

The dataset is the context. Nothing is trained.

  1. Split the rows: context and evaluation samples.
  2. Encode the context once.
  3. For each evaluation sample \(i\): draw a noise level \(t_i\), and ask three masked queries.
  4. Average over the \(N\) evaluation samples.

\[\widehat{\MI}(X;Y)=\frac{1}{N}\sum_{i=1}^{N}\frac{1-t_i}{t_i^3}\Big[\norm{\hat D^{(i)}_{XY}\big|_X-\hat D^{(i)}_{X\mid Y}}^2+\norm{\hat D^{(i)}_{XY}\big|_Y-\hat D^{(i)}_{Y\mid X}}^2\Big]\]

ALICE in One Picture

Velocity: a rescaled denoiser, \(v_t(x)=(D_t(x)-x)/t\). It is the quantity used in the paper and in the code.

Results on Benchmarks

Does It Work?

40 tasks of the “Beyond Normal” benchmark (Czyż et al., 2023): joint widths 2 to 100, heavy tails, nonlinear warps, known ground truth.

Mean absolute error in nats; lower is better. Rows: 1k, 5k, and 10k samples. Columns: task families. Stars mark the lowest error. Every competitor is trained and tuned on each task.

Does It Work? (cont.)

Mean absolute error over the 40 tasks, in nats:

Estimator 1k 5k 10k
ALICE Base (zero-shot) 0.092 0.063 0.060
MINDE (trained) 0.353 0.070 0.065
InfoNCE (trained) 0.887 0.123
CCA (best other at 1k) 0.195
InfoAtlas (zero-shot) 0.25 to 0.28

Key finding: with 1k samples, our estimator has less than half the error of every other estimator.

Error against inference compute. Labels: number of samples given to ALICE.

All Estimators, Matched Budgets

Estimator 1k 5k 10k
Zero-shot ALICE Base 0.092 0.063 0.060
ALICE Small 0.101 0.103 0.104
InfoAtlas 0.253 0.271 0.276
Trained MINDE 0.353 0.070 0.065
MINE 0.248 0.117 0.108
InfoNCE 0.887 0.123 0.083
D-V 1.229 0.279 0.144
NWJ >10 1.261 0.130
Classical KSG 0.288 0.240 0.219
LNN 4.864 4.966 4.970
CCA 0.195 0.192 0.181

Mean absolute error over the 40 tasks, in nats.

Protocol

  • Every estimator receives the same \(N\) samples of each task.
  • ALICE: 64 query samples, a context of the remaining \(N-64\), and 64 noise levels per query. Mean over 8 context draws.
  • InfoAtlas: zero-shot, on the same contexts.
  • Neural estimators: trained and tuned on the \(N\) samples of each task. Mean over 5 seeds.
  • Classical estimators: fit on the \(N\) samples.

The trained estimators need the step from 1k to 5k samples to become usable.

The Landscape, in Numbers

The same two axes on the benchmark. Mean absolute error in nats.

10k samples
Narrow, abundant
KSG (classical) 0.12
MINDE (trained) 0.064
ALICE Base 0.054
Wide, abundant
KSG (classical) 0.68
MINDE (trained) 0.060
ALICE Base 0.086
1k samples
Narrow, scarce
KSG (classical) 0.19
MINDE (trained) 0.12
ALICE Base 0.079
Wide, scarce
KSG (classical) 0.76
MINDE (trained) 1.44
Best competitor (CCA) 0.42
ALICE Base 0.15
Joint width 2 to 10 (33 tasks)
Joint width 50 and 100 (7 tasks)

Classical: fails on wide tasks at every budget (on width up to 4, KSG is at 0.06 with 1k samples and 0.03 with 10k). Trained: the best on wide tasks at 10k, unusable at 1k. ALICE: below 0.16 nats in the four quadrants.

Model Size and Longer Contexts

Tasks 1k 5k 10k
ALICE Base width 2 to 10 0.079 0.057 0.054
width 50, 100 0.153 0.090 0.086
ALICE Small width 2 to 10 0.081 0.077 0.074
width 50, 100 0.197 0.228 0.241
InfoAtlas width 2 to 10 0.100 0.117 0.123
width 50, 100 0.978 0.998 1.000

Mean absolute error in nats: 33 tasks of joint width up to 10, and 7 tasks of width 50 and 100.

  • The training window is 2,048 samples: the 5k and 10k columns are extrapolation in context length.
  • Base keeps improving with the context, and most on the wide tasks.
  • Small matches Base on the narrow tasks, and degrades on the wide ones: the two sizes differ on the wide tasks alone.
  • Compute, with a budget of 8,192 samples: Small 0.105 nats for \(4.1\cdot10^{12}\) FLOPs per task, Base 0.060 for \(1.6\cdot10^{13}\), InfoAtlas 0.274 for \(1.9\cdot10^{13}\).

Where Does It Fail?

ALICE Base with 10k samples: 35 of the 40 tasks are within 0.1 nats of the ground truth, and the mean signed error is \(-0.005\) nats. There is no global bias.

Two groups of tasks carry the error:

Group Error Joint width
Spiral embeddings under-estimated by 0.43 and 0.44 nats 6 and 10
under-estimated by 0.18 nats 50
Dense multivariate normals over-estimated by 0.15 nats 50
over-estimated by 0.23 nats 100

ALICE Small shares both failure modes, with larger magnitudes.

Self-Consistency: No Ground Truth Needed

Identities that MI satisfies for every distribution (Song and Ermon, 2020). \(A\in\bbR^{N}\) is a sample, and \(B_r\) its first \(r\) coordinates.

Test Identity Ideal
Baseline \(r\mapsto\MI(A;B_r)\) is non-decreasing, and \(\MI(A;B_0)=0\) normalized curve from 0 to 1
Data processing \(\MI(A;[B_{r+k},B_r])=\MI(A;B_{r+k})\) ratio 1
Additivity \(\MI([A^1,A^2];[B^1_r,B^2_r])=2\,\MI(A^1;B^1_r)\), with \(A^1,A^2\) independent ratio 1
  • \(B_r\) is a function of \(A\): both sides are infinite. We estimate the two sides with shared randomness, and report their ratio.
  • A zero control completes the tests: two independent Gaussian blocks, with \(\MI=0\).
  • Run on the 40 benchmark tasks, all absent from the training corpus. Every test is built from one matrix of samples: the same code applies to any dataset.

Self-Consistency: Results

  • Contexts of 1,024 (blue) and 4,096 samples (orange). Points: tasks. Lines: medians.
  • Joint width up to 10 (33 tasks): the identities hold. Median data-processing ratio 1.01, median additivity ratio 0.90, zero control below 0.05 nats.
  • Sparse tasks of width 50: the additivity ratio drops to 0.58.
  • Dense normals: over-estimation. Data-processing ratio 2.8 at the median, zero control at 0.66 nats.
  • A context four times larger leaves both failures in place: they are properties of the model.

The same weak points as the benchmark with ground truth, located without any ground truth: a label-free check on new data.

Using ALICE

In Code

One table: rows are samples, columns are variables, split into an \(X\) block and a \(Y\) block.

import math, torch
from alice import load_model, estimate_mi_fast

model = load_model("eurecom-probai/alice-1.0-base", device="cuda")

joint = torch.cat([x, y], dim=1)            # (n_samples, d_x + d_y), raw values
d_x = x.shape[1]

mi, se = estimate_mi_fast(
    model, joint,
    slice(0, d_x),                 # X block
    slice(d_x, joint.shape[1]),    # Y block
    n_context=512,                 # rows that determine the distribution
    return_std=True,               # Monte Carlo standard error
)
print(f"I(X;Y) = {mi / math.log(2):.2f} ± {se / math.log(2):.2f} bits")

One estimate costs a few forward passes, so a loop gives a whole profile:

profile = [estimate_mi_fast(model, torch.cat([x, y_at(w)], dim=1),
                            slice(0, d_x), slice(d_x, d_x + d_y), n_context=512)
           for w in windows]       # time windows, lags, features, layers

Code and Documentation

git clone https://github.com/eurecom-probai/alice
cd alice
uv sync --locked

Free for noncommercial use (PolyForm Noncommercial license).

Conclusions

  • Method: a frozen Transformer maps a set of samples and a noisy query to the denoiser of their distribution. MI is the disagreement between three such denoisers.
  • Architecture: one token per scalar, induced latents for any number of rows, a relation graph for any number of columns. One set of 85M weights for every width and every context length.
  • Training: 980,000 synthetic distributions, no MI labels, no real data.
  • Benchmarks: the lowest error at every budget on the 40 tasks, and less than half the error of every other estimator with 1k samples.
  • Limits: spirals and wide dense Gaussians, detectable without ground truth by self-consistency tests.

Thank you!

Backup Slides

Architecture: Any Number of Rows

  • One token per entry of the table: \(n\times d\) tokens for the context, \(d\) for the query.
  • Each column is summarized by \(K=128\) induced latents, through two cross-attentions (CA).
  • The depth of the Transformer runs on the latents: the cost is linear in the number of rows \(n\).

Every weight is shared across rows and columns. A larger table has more tokens, and the same parameters (85M for ALICE Base).

Architecture: Any Number of Columns

How do the columns talk to each other? Their dependence changes with every distribution.

  • Relation graph: one node per column, edges measured from the context.
  • An edge is the covariance, over the context rows, of learned nonlinear features of two columns.
  • Graph attention: information flows between two columns along their edge. Independent columns: an edge close to zero.

The weights of the graph are shared across all pairs of columns: the same model works at joint width 2 and at joint width 100.

The Relation Graph, in Formulas

Two learned feature maps \(\ell,r:\bbR\to\bbR^{R}\) (\(R=16\)), shared across columns and rows, centered over the context:

\[c_{ij}=\frac{1}{2n}\sum_{k=1}^{n}\Big(\tilde\ell_i^{(k)}\odot\tilde r_j^{(k)}+\tilde r_i^{(k)}\odot\tilde\ell_j^{(k)}\Big)\in\bbR^{R}\]

A signed, gated edge for every head \(h\), and the message received by column \(i\):

\[A_{ij}^{(h)}=\tanh\!\big(w_s^{(h)\top} c_{ij}+b_s^{(h)}\big)\,\sigma\!\big(w_g^{(h)\top} c_{ij}+b_g^{(h)}\big),\qquad u_i^{(h)}=\frac{\sum_{j\ne i}A_{ij}^{(h)}\,\mathbf{r}_j^{(h)}}{\max\!\big(1,\sum_{j\ne i}|A_{ij}^{(h)}|\big)}\]

  • Identity features: \(c_{ij}\) is the empirical correlation. Learned features expose what correlation misses, such as \(z_j\approx z_i^2\).
  • Centering: \(c_{ij}\) vanishes in expectation under independence. Gates start nearly closed: an independence prior.
  • Why not softmax attention across columns? Its weights are dense, nonnegative, and sum to one: independent columns would still exchange information.

Architecture: Design Choices

  • Queries only read. They enter through cross-attention, and are never keys or values. The context is encoded once and cached, and every query is scored independently of the others.
  • No positional encoding, on either axis. The rows are an exchangeable set, and the columns an unordered set. Any context length is accepted, also beyond the training window.
  • One token per scalar: \([\text{value},\,\phi(t),\,m_i,\,\text{type}]\), with sinusoidal time features \(\phi(t)\), lifted by one shared projection.
  • Rank normalization. Each column is mapped to \(\mathcal{N}(0,1)\) through its empirical CDF, fit on the context. Monotone transforms of single coordinates are absorbed, as the invariance of MI requires.
  • Boundary parameterization. The MI weight diverges as \(t\to0\), where all the velocities must coincide. The network satisfies this by construction: any violation would be a positive bias where the weight is largest.

Information Theory in Your Lab

“How much does A tell us about B?” Shannon’s answer (1948): Mutual Information.

Question Setting
How much does the array tell us about the intended movement? BMI decoding
Which channels carry that information, and at which latency? Electrode selection
How many motor outputs can a stimulation protocol select? Spinal stimulation
How much cortical information reaches the muscles below the lesion? Recovery
Do areas, muscles, or electrodes act redundantly or synergistically? Networks, cultures

The challenge: these quantities are hard to estimate from a few hundred trials.

Application 1: Mouse Visual Cortex

The Experiment

Data: Visual Behavior Neuropixels, Allen Institute.

  • A mouse watches an image flashed for 250 ms every 750 ms. After several repeats, the image changes. The mouse earns water by licking after a change.
  • 36 mice, two sessions each: one day with familiar images, the next day with novel images.
  • Six visual areas recorded simultaneously with Neuropixels probes: VISp, VISl, VISal, VISrl, VISam, VISpm.

Question: do the six areas carry overlapping information about a flash, or complementary information? Does it depend on what the mouse has already seen?

The Quantity: O-Information

\[\Omega=\underbrace{\TC}_{\text{total correlation}}-\underbrace{\DTC}_{\text{dual total correlation}}\]

  • \(\Omega > 0\): redundancy dominates. The areas carry overlapping information.
  • \(\Omega < 0\): synergy dominates. The information exists only in the joint pattern.

Both terms are integrals of squared denoiser differences, of the same form as MI:

  • \(\TC\): the joint against the six marginals;
  • \(\DTC\): the joint against the six conditionals, each area given the clean values of the others.

One model provides all of them: 13 denoisers per evaluation point.

The Protocol

  • For every flash: spike counts in five windows of 50 ms, averaged over the units of each area. One flash is one sample of six numbers.
  • Change flashes and repeats are analyzed separately.
  • One estimate per session, per window, and per flash type. Context: 128 flashes of that session.

Previous analysis (score-based, trained)

  • about 150 to 200 independent flashes per session: too few to train on
  • all 72 sessions pooled into one training set
  • no per-session estimate

With ALICE

  • 675 systems, each estimated from its own session
  • no training on neural data
  • paired comparisons: within a session, within a mouse

Results: Novel Images

Left: novel-image sessions, one thin line per mouse and flash type, medians in bold. Right: novel minus familiar session of each mouse, change flashes.

  • \(\Omega>0\) in every window and every mouse: the areas are redundant.
  • Redundancy peaks 100 to 150 ms after the flash, when the response has reached all six areas.
  • A change produces more redundancy than a repeat: +0.42 nats at the peak, in 31 of 32 sessions.
  • No difference in the first window, before the response reaches the cortex.

Results: The Role of Experience

  • Familiar images: a change produces no extra redundancy at the peak, and less than a repeat in the late windows.
  • Novel against familiar, same mouse: +0.56 nats at the peak for change flashes, in 25 of 27 animals.
  • Where does the variability come from? Mouse identity 38%, experience 23%, flash type 8%, the estimator 10%.

Key finding: a novel image drives a signal that is broadcast across the visual areas, and it fades with familiarity. The pooled analysis cannot see it.

Application 2: Single-Cell Signaling

The Experiment

A cell is a communication channel: an extracellular stimulus is the input, and the response of a signaling pathway is the output.

Data (Jetka et al., 2019): the NF-\(\kappa\)B pathway, which responds to the inflammatory cytokine TNF-\(\alpha\).

  • 15,632 cells, each stimulated with one of 11 doses, from 0 to 100 ng/ml.
  • Imaged every 3 min for 2 h: 40 frames per cell.
  • Response: the nuclear-to-cytoplasmic ratio of NF-\(\kappa\)B.
  • Between 536 and 1,307 cells per dose.

Question: how many doses can a single cell tell apart? Does it use the dynamics of the response, or its amplitude at one time?

The Quantities: Capacity and Discrimination

MI depends on how often each dose is used. It decomposes over the doses:

\[\MI(X;Y)=\sum_i p_i\,D_i,\qquad D_i=\KL{p(y\mid \text{dose } i)}{p(y)}\]

  • Each \(D_i\) is a difference between two denoisers of the response: one given a context with the true doses, one given a context with the doses shuffled.
  • Channel capacity: the maximum of \(\MI\) over the dose frequencies \(p_i\), in bits. Computed from the \(D_i\) by the Blahut-Arimoto algorithm.
  • Probability of correct discrimination of two doses from one cell: bracketed by the MI of that pair of doses.

Protocol: contexts of 1,024 cells. No training on biological data.

Results: Capacity

  • One frame carries at most 1.2 bits, at minutes 15 to 21: the first translocation peak. The reference study reports about 1 bit.
  • The trajectory carries 1.3 bits, and saturates after the first 5 to 9 frames: the dose is encoded in the timing and amplitude of the first peak.

Results: Which Doses Can Be Told Apart?

Probability of correct discrimination for every pair of doses: from the frame at minute 21 (left), from the trajectory (center), and the gain from dynamics (right). 0.5 is chance.

  • Low doses: separable from a single frame.
  • High doses (0.5 ng/ml and above): 0.56 from a single frame, 0.67 from the trajectory. The amplitude of the first peak saturates, and the dynamics still separate them.

Application 3: DNA Promoters

The Experiment

A promoter is the stretch of regulatory DNA that a gene needs to be expressed. It contains motifs: short patterns such as the TATA-box, about 30 bases upstream of the transcription start site (TSS).

Data: Arabidopsis thaliana sequences from the EPD database.

  • 1,497 promoter and 1,497 non-promoter sequences.
  • 251 bases each, from 200 bases upstream of the TSS to 50 bases downstream.

Question: which positions of the sequence tell whether it is a promoter?

\[\MI(\text{promoter label};\;\text{window of 6 bases at position } s)\qquad\text{for every } s\]

The label is binary and balanced: no window can carry more than \(\ln 2\approx 0.69\) nats.

From Bases to Numbers

ALICE was trained on continuous data. DNA is a sequence of four symbols.

  • Each base is mapped to one real number by a fixed injective map, with a small jitter to break ties.
  • An injective map preserves MI exactly.
  • A window of 6 bases: a block of 6 columns. The label: a block of 1 column. Unequal block widths need no special treatment.

Protocol: for each of the 246 window positions, a context of 1,024 label-window pairs, and 1,024 held-out pairs for evaluation.

The whole dataset has 2,994 sequences: an order of magnitude below what trained neural estimators require.

Results: The MI Profile

  • Flat and near zero over the 200 bases upstream of the motif.
  • A sharp peak of 0.34 nats 32 bases upstream of the TSS, inside the documented TATA-box band.
  • A second, smaller peak on the TSS itself: the initiator element.
  • The same position with windows of 4 bases.

The trained competitor (INFO-SEDD, a discrete diffusion estimator) reports a single peak, with a substantially higher bias floor.