Integrated information decomposition (ΦID)
The integrated information decomposition (ΦID) of Mediano, Rosas et al. splits the time-delayed mutual information $I(\mathbf{X}_t; \mathbf{X}_{t+\tau})$ between the past and the future of a system of $n$ variables into atoms. Each atom is information that is redundant, unique or synergistic among the past variables and among the future variables. LocalInformation.jl supports $n = 2$ (16 atoms) and $n = 3$ (324 atoms). For both, association returns the average atoms and local_association the atoms of every sample.
using LocalInformation, Associations, Statistics, Random
rng = Xoshiro(1)
N = 20_000
x, y = zeros(Int, N), zeros(Int, N)
for t in 2:N
x[t] = rand(rng) < 0.9 ? x[t-1] : 1 - x[t-1] # x keeps its value with probability 0.9
y[t] = rand(rng) < 0.9 ? x[t-1] : rand(rng, 0:1) # y copies x, with noise
end
est = JointProbabilities(IntegratedInformationDecomposition(), CodifyVariables(UniqueElements()))
res = association(est, x, y)PhiIDResult: 2 variables, τ = 1, redundancy function IMMI, base 2
rtr {1}{2} → {1}{2} 0.2570103614186996
rtx {1}{2} → {1} 0.0
rty {1}{2} → {2} 0.07607982204337405
rts {1}{2} → {12} 0.025997719061583213
xtr {1} → {1}{2} 0.2762151805663877
xtx {1} → {1} 0.0
xty {1} → {2} 0.10500202870848163
xts {1} → {12} 0.0905410710163499
ytr {2} → {1}{2} 0.0
ytx {2} → {1} 0.0
yty {2} → {2} 0.0
yts {2} → {12} 0.0
str {12} → {1}{2} 9.256424479175962e-5
stx {12} → {1} 0.0
sty {12} → {2} -2.5989214029742413e-6
sts {12} → {12} 0.0001280289577032523
total (sum of atoms = I(past; future)): 0.8310641770959681information_dynamics(res)(storage = 0.25713839037640285, copy = 0.2762151805663877, transfer = 0.10500202870848163, erasure = 0.07607982204337405, downward_causation = 8.996532338878538e-5, upward_causation = 0.11653879007793311)The product lattice
The PID redundancy lattice of $n$ sources has one node per antichain of variable sets (Williams & Beer). For $n = 2$ it has four nodes, $\{1\}\{2\} \preceq \{1\}, \{2\} \preceq \{12\}$, and for $n = 3$ it has 18. ΦID uses one copy of this lattice for the past variables and one for the future variables. Each atom $\Pi(\alpha \to \beta)$ belongs to a pair of nodes, $\alpha$ (past) and $\beta$ (future). The pairs are ordered by the product order: $(\alpha', \beta') \preceq (\alpha, \beta)$ if and only if $\alpha' \preceq \alpha$ and $\beta' \preceq \beta$. A double redundancy $I_\cap^{\alpha \to \beta}$ is defined for every pair, and the atoms are its Möbius inversion:
\[I_\cap^{\alpha \to \beta} = \sum_{\alpha' \preceq \alpha,\; \beta' \preceq \beta} \Pi(\alpha' \to \beta'), \qquad \Pi = Z^{-\top} R\, Z^{-1},\]
with $R_{\alpha\beta} = I_\cap^{\alpha \to \beta}$ and $Z$ the zeta matrix of the PID lattice. The atoms sum to $I(\mathbf{X}_t; \mathbf{X}_{t+\tau})$. The atoms of one past node, summed over the future nodes, give the PID atom of that node for the information that the past variables carry about the joint future, in the PID with the same redundancy function. The column sums give the reverse decomposition.
For two variables the atoms have names, as in phyid. The first letter is the past node, t separates the two, and the last letter is the future node. The letters are r = $\{1\}\{2\}$ (redundancy), x = $\{1\}$, y = $\{2\}$ and s = $\{12\}$ (synergy). Variable 1 is the first input, x, and variable 2 the second, y:
| past ↓ future → | r = {1}{2} | x = {1} | y = {2} | s = {12} |
|---|---|---|---|---|
r = {1}{2} | rtr | rtx | rty | rts |
x = {1} | xtr | xtx | xty | xts |
y = {2} | ytr | ytx | yty | yts |
s = {12} | str | stx | sty | sts |
rtr is the bottom of the product lattice and sts the top. Use atom(res, :xty), or for any $n$ the pair of nodes as collections of variable sets, atom(res, [[1]] => [[2]]). atoms(res) lists every atom from the bottom to the top. res.atoms and res.redundancies are the $m \times m$ matrices (rows = past node, columns = future node, nodes in the order of res.lattice.lattice.nodes).
atom(res, :xty) == atom(res, [[1]] => [[2]])trueWith three variables only the α => β form works. atoms(res) returns (α => β) => value pairs, here sorted to show the largest atoms:
z = rand(rng, 0:1, N)
z[2:end] .= ifelse.(rand(rng, N - 1) .< 0.8, x[1:end-1] .⊻ y[1:end-1], z[2:end]) # z ≈ x ⊻ y, lagged
res3 = association(est, x, y, z)
first(sort(atoms(res3); by = p -> -abs(last(p))), 4)4-element Vector{Pair{Pair{Vector{Vector{Int64}}, Vector{Vector{Int64}}}, Float64}}:
([[1]] => [[1], [2]]) => 0.2761647170039918
([[1, 2]] => [[1], [2], [3]]) => 0.26929857660455214
([[1, 2]] => [[1], [2]]) => -0.26929857660455214
([[1], [2]] => [[1], [2]]) => 0.2569231239875931atom(res3, [[1]] => [[1], [2]]), length(atoms(res3))(0.2761647170039918, 324)Information dynamics
information_dynamics groups the 16 atoms of two variables into the six modes of Mediano et al. (arXiv:2109.13186, "A new taxonomy for information dynamics in complex systems"; PNAS 2025, doi:10.1073/pnas.2423297122, "An Extended Taxonomy for Information Dynamics in Complex Systems"):
| Mode | Atoms |
|---|---|
storage | rtr + xtx + yty + sts |
copy | xtr + ytr |
transfer | xty + ytx |
erasure | rtx + rty |
downward_causation | str + stx + sty |
upward_causation | rts + xts + yts |
The modes are disjoint and cover all 16 atoms, so they sum to $I(\mathbf{X}_t; \mathbf{X}_{t+\tau})$. Synergistic storage sts is part of storage, as in both papers. For a LocalPhiIDResult every mode is a per-sample vector. The definitions live in one place, LocalInformation.PHIID_INFORMATION_DYNAMICS.
sum(information_dynamics(res)) ≈ sum(res.atoms)trueDouble redundancies and estimators
The redundancy function is the first argument of IntegratedInformationDecomposition(redundancy = IMMI(); τ = 1, base = 2).
IMMI()(minimum mutual information, the default) is the double redundancy ofphyidand of the MATLAB ΦID toolbox: $I_\cap^{\alpha \to \beta} = \min_{A \in \alpha, B \in \beta} I(\mathbf{X}^A_t; \mathbf{X}^B_{t+\tau})$. It works with every estimator family whose joint entropies Associations can compute.ISx()is Varley's shared-exclusion double redundancy $i^{\tau sx}_\cap$ (Varley 2023): $h_{sx}(\alpha) + h_{sx}(\beta) - h_{sx}(\alpha \cap \beta)$. Here $h_{sx}(\alpha)$ is minus the log-probability that at least one set of $\alpha$ takes its value in the sample, $h_{sx}(\beta)$ the same for $\beta$, and $h_{sx}(\alpha \cap \beta)$ that of both events at once.IPM()is the $i_\pm$ of Finn & Lizier (2018) with past and future source sets: $\min_k h(a_k) + \min_l h(b_l) - \min_{k,l} h(a_k, b_l)$, where $a_k$ and $b_l$ are the sample's values of the sets $A_k \in \alpha$ and $B_l \in \beta$, and $h = -\log P$.
ISx and IPM are pointwise. The local double redundancy of a sample depends only on its joint state, and the average double redundancy is the mean of the local ones. They are computed from plug-in probabilities of the joint states, so they need discrete data. The docstring of local_association for these two gives the formulas in full. IMin has no double-redundancy form and throws an ArgumentError.
With def = IntegratedInformationDecomposition(r; τ, base):
| Estimator | IMMI() average | IMMI() per sample | ISx(), IPM() average | ISx(), IPM() per sample |
|---|---|---|---|---|
JointProbabilities(def, CodifyVariables(o)) (plug-in) | yes | yes | yes | yes |
EntropyDecomposition(def, PlugIn(Shannon()), CodifyVariables(o)) | yes | yes | no | no |
EntropyDecomposition(def, e, CodifyVariables(o)), e another discrete Shannon estimator (e.g. MillerMadow()) | yes | no | no | no |
EntropyDecomposition(def, Kraskov(; k)) | yes | yes, CPU or GPU | no | no |
EntropyDecomposition(def, KozachenkoLeonenko()) | yes | yes, CPU or GPU | no | no |
EntropyDecomposition(def, e), e another differential Shannon estimator | yes | no | no | no |
GaussianDecomposition(def; copula) | yes | yes, CPU or GPU | no | no |
"Average" is association(est, x...), which returns a PhiIDResult. "Per sample" is local_association(est, x...), which returns a LocalPhiIDResult. Per-sample atoms need entropies that are means of per-sample terms. The bias-corrected discrete estimators, and the differential estimators other than Kraskov and KozachenkoLeonenko, therefore give average atoms only. Every "no" throws an ArgumentError that lists the supported estimators. Values are in the unit base (bits by default).
est_sx = JointProbabilities(IntegratedInformationDecomposition(ISx()), CodifyVariables(UniqueElements()))
information_dynamics(association(est_sx, x, y))(storage = 0.3472964195514352, copy = 0.040390290846610666, transfer = -0.04834332736948255, erasure = 0.015936440451753964, downward_causation = 0.23077554637512032, upward_causation = 0.24500880724052854)The same data give different atoms under different redundancy functions, and atoms can be negative. MMI also has a known artefact: for two independent copied bits it gives rts = str = 1 and sts = 2 bits, compensated by xts = yts = stx = sty = -1, because $\min(I(x_t; x_{t+1}y_{t+1}), I(y_t; x_{t+1}y_{t+1})) = 1$ bit counts as redundant.
Lagging and encoding
The inputs are 2 or 3 variables. Each one is an AbstractVector or a StateSpaceSet (a multivariate variable), and all have the same length $N > \tau$.
- The lagged system has the rows $t = 1, \ldots, N - \tau$. The past is $\mathbf{X}_t = (x_1[t], \ldots, x_n[t])$ and the future is $\mathbf{X}_{t+\tau} = (x_1[t+\tau], \ldots, x_n[t+\tau])$. Row
tof aLocalPhiIDResultis the sample with its past at timet.phyidand the syntropy fixtures lag the same way. - Discrete estimators encode each series once, over its full length, and then lag the codes. The past and the future of a variable therefore share one encoding, e.g. the same bins of a
ValueBinning. The encoding is the one thatassociationuses with the sameJointProbabilitiesorEntropyDecompositionestimator. - With an outcome space that embeds the data (e.g.
OrdinalPatterns), $N$ and $\tau$ count encoded symbols. - Continuous estimators (k-NN, Gaussian) lag the raw data.
To give the past and the future yourself, with no lagging and no shared encoding, use the internal entry points LocalInformation.phiid_from_past_future(est, past, future) (average atoms), LocalInformation.local_phiid_mmi (per-sample, IMMI) and LocalInformation.local_phiid_from_past_future (per-sample, ISx and IPM). Each takes past and future as tuples of n variables (see Internals).
Per-sample atoms
For every supported estimator, the mean of each local atom is the average atom, and the local atoms of a sample sum to its local $I(\mathbf{X}_t; \mathbf{X}_{t+\tau})$.
loc = local_association(est, x, y)
size(loc.atoms), mean(atom(loc, :xty)) ≈ atom(res, :xty)((19999, 16), true)The accessors are those of a PhiIDResult and return per-sample vectors. loc.atoms is an $(N - \tau) \times m^2$ matrix: row t is sample t, and column i + (j - 1) m holds the atom of past node i and future node j.
ISx and IPM compute the local double redundancies once per distinct joint state, from counts of every subset of the $2n$ lagged variables. They then invert all states at once (one matrix product with $Z^{-1} \otimes Z^{-1}$) and copy the atoms to the samples.
The local MMI convention
MMI is a minimum of averages, so its local form is a convention. LocalInformation.jl uses the one of phyid and of the MATLAB ΦID toolbox, extended to three variables. Every pair of nonempty variable sets, $A$ of the past and $B$ of the future, has the local mutual information
\[i_t(A; B) = h_t(\mathbf{X}^A_t) + h_t(\mathbf{X}^B_{t+\tau}) - h_t(\mathbf{X}^A_t, \mathbf{X}^B_{t+\tau}),\]
computed from the local joint entropies of the estimator. Its mean $\bar I(A; B)$ is the mutual information that association uses. For each atom $(\alpha \to \beta)$, the local double redundancy of sample $t$ is $i_t(A^*; B^*)$, where $(A^*, B^*)$ is the pair in $\alpha \times \beta$ with the smallest mean. The local atoms are the Möbius inversion of these local double redundancies. As a result:
- the mean of every local atom is the average atom;
- identities between atoms and single-set double redundancies hold for every sample; for example the local transfer entropy equals
xtr + xty + str + sty(see the recipes below).
The selected pair depends on the whole sample through the means. A sample's local MMI double redundancy is therefore not a function of its joint state alone, unlike ISx and IPM. For this reason the PID's local_association refuses IMMI. For ΦID this convention is the established one.
Ties. The candidate pairs $(A, B)$ are ordered by the bitmask of $A$, then by that of $B$. The variable sets therefore come in the order $\{1\}, \{2\}, \{1,2\}, \{3\}, \{1,3\}, \{2,3\}, \{1,2,3\}$. The first pair whose mean is within LocalInformation.PHIID_MMI_TIE_RTOL * max(1, maximum(abs, Ī)) of the smallest mean is selected. The tolerance is 1e-12; it absorbs summation-order rounding, so that exact ties in the data resolve the same way every time.
- For
rtrthe candidates are $I(x_t; x_{t+\tau})$, $I(x_t; y_{t+\tau})$, $I(y_t; x_{t+\tau})$ and $I(y_t; y_{t+\tau})$, in this order, and the first of a tie wins.phyiddoes the same (np.argmin). - For the single-target redundancies (e.g. $\{1\}\{2\} \to \{1\}$),
phyidkeeps the second pair of an exact tie, and LocalInformation.jl the first. - Ties change local values, never their means.
phyiddecides ties on floating-point means, so in exactly symmetric systems it can resolve them either way.
Gaussian data and ddof. The Gaussian local entropies of LocalInformation.jl are the maximum-likelihood ones (see Supported estimators). phyid evaluates its local Gaussian densities with the unbiased covariance (np.cov, ddof = 1). The means, i.e. the average atoms, agree exactly. The local values differ by a factor on their deviation from the mean. With $N' = N - \tau$ lagged samples,
\[\text{local}_\text{LocalInformation} = \text{average} + \frac{N'}{N' - 1}\,(\text{local}_\text{phyid} - \text{average}),\]
a relative difference of about $1/N'$. phyid's discrete MMI supports binary data only: it binarises each lagged vector as v > mean(v). LocalInformation.jl accepts any alphabet. For 0/1 series that contain both values the two agree.
GPU and memory
using LocalInformation, Associations, CUDA
u, v = randn(100_000), randn(100_000)
est = GaussianDecomposition(IntegratedInformationDecomposition())
loc = local_association(est, u, v; backend = CUDABackend()) # Float32 atoms
loc64 = local_association(est, u, v; backend = CUDABackend(), precision = Float64)- With
IMMI, the k-NN and Gaussian estimators compute the local entropies on thebackend. The selection and inversion are one matrix product,Lmi * W, also on thebackend. - Discrete estimators count on the CPU. With
ISxandIPMthe local double redundancies are also computed on the CPU, inFloat64, and only the inversion runs on thebackend. - The result is always a host
Matrix.precisiondefaults toFloat64on the CPU andFloat32on a GPU. memory_limitis in bytes (default2^31, i.e. 2 GiB). The estimated peak memory, host and device, is checked before any large allocation, and anArgumentErroris thrown if it exceeds the limit.- The result alone takes $(N - \tau) \cdot m^2 \cdot$
sizeof(T)bytes, with $m^2 = 16$ for two variables and 324 for three. For example, $10^6$ samples of three variables inFloat64need 2.6 GB. Useprecision = Float32, fewer samples, or a largermemory_limit.
Recipes
Several classical measures are sums of atoms. Write $x_t, y_t$ for the past and $x_{t+\tau}, y_{t+\tau}$ for the future of the two variables:
| Measure | Sum of atoms |
|---|---|
| transfer entropy $TE_{x \to y} = I(x_t; y_{t+\tau} \mid y_t)$ | xtr + xty + str + sty |
| transfer entropy $TE_{y \to x} = I(y_t; x_{t+\tau} \mid x_t)$ | ytr + ytx + str + stx |
| active information storage $I(x_t; x_{t+\tau})$ | rtr + rtx + xtr + xtx |
| active information storage $I(y_t; y_{t+\tau})$ | rtr + rty + ytr + yty |
| time-delayed mutual information $I(x_t, y_t; x_{t+\tau}, y_{t+\tau})$ | all 16 atoms |
$\Phi_{WMS}$ + rtr, with $\Phi_{WMS} = I(\text{past}; \text{future}) - I(x_t; x_{t+\tau}) - I(y_t; y_{t+\tau})$ | xty + ytx + rts + xts + yts + str + stx + sty + sts |
The transfer entropies here use one past sample of each variable. str appears in both, which is why their sum (the causal density) counts it twice. These identities hold for every redundancy function, on average and, for the local atoms, per sample.
Mediano et al. define $\Phi_R = \Phi_{WMS} + \min_{i,j} I(X^i_t; X^j_{t+\tau})$. The added term is the MMI double redundancy rtr. So $\Phi_R$ equals the 9-atom sum above only with IMMI. With ISx or IPM, $\Phi_{WMS}$ + rtr still equals the 9-atom sum, but it is not the paper's $\Phi_R$.
The identities checked against Associations' Gaussian estimators on the lagged series:
xg, yg = zeros(N), zeros(N)
for t in 2:N
xg[t] = 0.6xg[t-1] + randn(rng)
yg[t] = 0.4yg[t-1] + 0.5xg[t-1] + randn(rng) # x drives y
end
resg = association(GaussianDecomposition(IntegratedInformationDecomposition()), xg, yg)
a(s) = atom(resg, s)
xp, yp, xf, yf = xg[1:end-1], yg[1:end-1], xg[2:end], yg[2:end] # τ = 1
mi(u, v) = association(GaussianMI(), u, v)
tdmi = mi(StateSpaceSet(xp, yp), StateSpaceSet(xf, yf))
Φwms = tdmi - mi(xp, xf) - mi(yp, yf)
[
"TE x → y" => (a(:xtr) + a(:xty) + a(:str) + a(:sty), association(GaussianCMI(), xp, yf, yp)),
"TE y → x" => (a(:ytr) + a(:ytx) + a(:str) + a(:stx), association(GaussianCMI(), yp, xf, xp)),
"AIS of x" => (a(:rtr) + a(:rtx) + a(:xtr) + a(:xtx), mi(xp, xf)),
"I(past; future)" => (sum(resg.atoms), tdmi),
"Φ_WMS + rtr" => (sum(a, (:xty, :ytx, :rts, :xts, :yts, :str, :stx, :sty, :sts)), Φwms + a(:rtr)),
"Φ_R (MMI)" => (Φwms + a(:rtr), Φwms + minimum(mi(p, f) for p in (xp, yp), f in (xf, yf))),
]6-element Vector{Pair{String, Tuple{Float64, Float64}}}:
"TE x → y" => (0.21036332773104682, 0.210363327731046)
"TE y → x" => (9.77120935274911e-6, 9.771209352804622e-6)
"AIS of x" => (0.32145165273727105, 0.32145165273726817)
"I(past; future)" => (0.7050013785768812, 0.7050013785768758)
"Φ_WMS + rtr" => (0.1452427542746264, 0.1452427542746242)
"Φ_R (MMI)" => (0.1452427542746242, 0.14524275427462402)The same holds per sample, against local transfer entropy:
locg = local_association(GaussianDecomposition(IntegratedInformationDecomposition()), xg, yg)
lte = local_association(GaussianCMI(), xp, yf, yp)
maximum(abs, atom(locg, :xtr) .+ atom(locg, :xty) .+ atom(locg, :str) .+ atom(locg, :sty) .- lte)1.3322676295501878e-14Validation
The test suite compares the atoms with two Python reference implementations. The fixtures are in bits. test/fixtures/phiid_reference_notes.md records both packages' conventions and the checks behind the statements on this page.
- syntropy (commit
f6ca750):test/fixtures/syntropy_phiid_fixtures.json, generated bygenerate_syntropy_phiid_fixtures.py. It has 12 cases: 7 exact discrete distributions (5 with $n = 2$, 2 with $n = 3$), 3 discrete series ($\tau = 1, 2$) and 2 Gaussian VAR(1) series. All cases have average MMI atoms, and the discrete ones also have average and pointwiseisxandipmatoms. The tests match them to1e-10(Gaussian:1e-8). - phyid (commit
6c5f2e9):test/fixtures/phyid_fixtures.json, generated bygenerate_phyid_fixtures.py. It has 5 cases: 3 Gaussian and 2 binary series, with average and local MMI atoms. The local atoms match to1e-10for discrete data and1e-8for Gaussian data, after theddofrescaling above.
Further tests, across the estimator families, check:
- the transfer-entropy, active-information-storage and total identities of the recipes, on average and per sample;
- the double redundancies of single variable sets (mutual informations) and the PID row and column sums;
- that the mean of the local atoms equals the average atoms;
- exact discrete systems: copy, swap, parity and full redundancy.
References
- Mediano, P. A. M., Rosas, F., Carhart-Harris, R. L., Seth, A. K., & Barrett, A. B. (2019). Beyond integrated information: A taxonomy of information dynamics phenomena. arXiv:1909.02297.
- Mediano, P. A. M., Rosas, F. E., Luppi, A. I., Carhart-Harris, R. L., Bor, D., Seth, A. K., & Barrett, A. B. (2021). Towards an extended taxonomy of information dynamics via Integrated Information Decomposition. arXiv:2109.13186.
- Mediano, P. A. M., Rosas, F. E., Luppi, A. I., Carhart-Harris, R. L., Bor, D., Seth, A. K., & Barrett, A. B. (2025). Toward a unified taxonomy of information dynamics via Integrated Information Decomposition. PNAS, 122(39), e2423297122. doi:10.1073/pnas.2423297122.
- Luppi, A. I., Mediano, P. A. M., Rosas, F. E., et al. (2022). A synergistic core for human brain evolution and cognition. Nature Neuroscience, 25, 771–782 (
phyid: https://github.com/Imperial-MIND-lab/integrated-info-decomp). - Varley, T. F. (2023). Decomposing past and future: Integrated information decomposition based on shared probability mass exclusions. PLOS ONE, 18(3), e0282950. doi:10.1371/journal.pone.0282950.
- Finn, C., & Lizier, J. T. (2018). Pointwise partial information decomposition using the specificity and ambiguity lattices. Entropy, 20(4), 297.
API
LocalInformation.IntegratedInformationDecomposition — Type
IntegratedInformationDecomposition <: MultivariateInformationMeasure
IntegratedInformationDecomposition(redundancy = IMMI(); τ = 1, base = 2)The integrated information decomposition (ΦID) of Mediano, Rosas et al. of the information that the past of a system of n variables carries about its future, using the double redundancy built from the RedundancyFunction redundancy: IMMI() (the default), ISx() or IPM().
Usage
With an estimator est whose definition is an IntegratedInformationDecomposition:
association(est, x₁, …, xₙ)returns aPhiIDResult, the average atoms;local_association(est, x₁, …, xₙ)returns aLocalPhiIDResult, the atoms of every lagged sample, whose means are the average atoms.
For both, use atom(res, α => β), atoms(res) and, for two variables, atom(res, :xty) and information_dynamics(res). Which estimators work with which redundancy function is listed under "Estimators" below.
Inputs
2 or 3 variables x₁, …, xₙ (16 or 324 atoms), each an AbstractVector or a StateSpaceSet (a multivariate variable), all with the same number of samples N > τ. The past of variable k is xₖ[1:N-τ] and its future xₖ[1+τ:N].
Description
Let $\mathbf{X}_t = (X^1_t, \ldots, X^n_t)$ and $\mathbf{X}_{t+\tau}$ be the past and the future. The atoms $\Pi(\alpha \to \beta)$ are indexed by pairs of nodes of the PID redundancy lattice of n sources, $\alpha$ over the past variables and $\beta$ over the future ones, ordered by $(\alpha, \beta) \preceq (\alpha', \beta')$ if and only if $\alpha \preceq \alpha'$ and $\beta \preceq \beta'$. Given a double redundancy $I_\cap^{\alpha \to \beta}$, the atoms are defined by
\[I_\cap^{\alpha \to \beta} = \sum_{\alpha' \preceq \alpha,\; \beta' \preceq \beta} \Pi(\alpha' \to \beta'),\]
i.e. with the zeta matrix $Z$ of the PID lattice ($Z_{ij} = 1$ if node $i \preceq j$) and the matrices $R_{\alpha\beta} = I_\cap^{\alpha \to \beta}$ and $\Pi$, $R = Z^\top \Pi Z$ and $\Pi = Z^{-\top} R Z^{-1}$. The atoms sum to $I(\mathbf{X}_t; \mathbf{X}_{t+\tau})$. For every past node $\alpha$, $\sum_\beta \Pi(\alpha \to \beta)$ is the PID atom $\alpha$ of the information that the past variables carry about the joint future, in the PID with the same redundancy function (and symmetrically for the future nodes).
With IMMI() (minimum mutual information, the default), the double redundancy is
\[I_\cap^{\alpha \to \beta} = \min_{A \in \alpha,\, B \in \beta} I(\mathbf{X}^A_t; \mathbf{X}^B_{t+\tau}),\]
where $\mathbf{X}^A$ is the joint variable of the variables in the set $A$. This is the ΦID used by phyid (Luppi et al. 2022). Like the PID with $I_{MMI}$, it gives redundancy whenever several source sets carry the same amount of information: for two independent copied bits ($X^1_{t+1} = X^1_t$, $X^2_{t+1} = X^2_t$) it gives 1 bit of $\{1\}\{2\} \to \{12\}$, not only 1 bit each of $\{1\} \to \{1\}$ and $\{2\} \to \{2\}$.
With ISx (the shared-exclusion double redundancy $i^{\tau sx}_\cap$ of Varley 2023) and IPM (the $i_\pm$ of Finn & Lizier 2018 with past and future source sets), the double redundancy is the mean over samples of a pointwise double redundancy computed from plug-in probabilities of the joint states. These two need discrete data: JointProbabilities with a CodifyVariables discretization. The formulas are in the docstring of local_association for these redundancy functions. IMin has no double-redundancy form and throws an ArgumentError.
For two variables the atoms have names (as in phyid): :αtβ with α (past) and β (future) one of r = $\{1\}\{2\}$ (redundancy), x = $\{1\}$, y = $\{2\}$, s = $\{12\}$ (synergy), e.g. :rtr, :xty, :sts.
Estimators
With def = IntegratedInformationDecomposition(r; τ, base):
| Estimator | IMMI, association | IMMI, local_association | ISx, IPM: association and local_association |
|---|---|---|---|
JointProbabilities(def, CodifyVariables(o)) (plug-in) | yes | yes | yes |
EntropyDecomposition(def, PlugIn(Shannon()), CodifyVariables(o)) | yes | yes | no |
EntropyDecomposition(def, e, CodifyVariables(o)), e another discrete Shannon estimator (e.g. MillerMadow()) | yes | no | no |
EntropyDecomposition(def, Kraskov(; k)), EntropyDecomposition(def, KozachenkoLeonenko()) | yes | yes, CPU or GPU | no |
EntropyDecomposition(def, e), e another differential Shannon estimator | yes | no | no |
GaussianDecomposition(def; copula) | yes | yes, CPU or GPU | no |
local_association needs entropies that are means of per-sample terms; the "no" cases, and other estimators, throw an ArgumentError. Discrete estimators count on the CPU; the Möbius inversion of the per-sample atoms runs on the backend given to local_association.
With a discretization, each series is encoded once, over its full length, and the codes are then lagged, so the past and the future of a variable share one encoding. With an outcome space that embeds the data (e.g. OrdinalPatterns), the lag τ counts encoded symbols. Continuous estimators lag the raw data. Mutual informations are $H(A) + H(B) - H(A \cup B)$ from the joint entropies of the estimator, in the unit base.
Example
using LocalInformation, Associations
x, y = rand(0:1, 10_001), rand(0:1, 10_001)
y[2:end] .= x[1:end-1] # x is copied into y
est = JointProbabilities(IntegratedInformationDecomposition(), CodifyVariables(UniqueElements()))
res = association(est, x, y) # PhiIDResult
atom(res, :xty) # ≈ 1 bit; == atom(res, [[1]] => [[2]])
information_dynamics(res).transfer
loc = local_association(est, x, y) # LocalPhiIDResult, 10_000 × 16 atomsReferences
- Mediano, P. A. M., Rosas, F., Carhart-Harris, R. L., Seth, A. K., & Barrett, A. B. (2019). Beyond integrated information: A taxonomy of information dynamics phenomena. arXiv:1909.02297.
- Mediano, P. A. M., Rosas, F. E., Luppi, A. I., Carhart-Harris, R. L., Bor, D., Seth, A. K., & Barrett, A. B. (2021). Towards an extended taxonomy of information dynamics via Integrated Information Decomposition. arXiv:2109.13186. Published as: Toward a unified taxonomy of information dynamics via Integrated Information Decomposition. PNAS, 122(39), e2423297122 (2025). doi:10.1073/pnas.2423297122.
- Luppi, A. I., Mediano, P. A. M., Rosas, F. E., et al. (2022). A synergistic core for human brain evolution and cognition. Nature Neuroscience, 25, 771–782.
- Varley, T. F. (2023). Decomposing past and future: Integrated information decomposition based on shared probability mass exclusions. PLOS ONE, 18(3), e0282950. doi:10.1371/journal.pone.0282950.
- Finn, C., & Lizier, J. T. (2018). Pointwise partial information decomposition using the specificity and ambiguity lattices. Entropy, 20(4), 297.
LocalInformation.PhiIDResult — Type
PhiIDResultThe result of an IntegratedInformationDecomposition, returned by association.
Fields
definition: theIntegratedInformationDecomposition.lattice: theLocalInformation.PhiIDLattice(shared; do not modify).redundancies::Matrix: them × mdouble redundancies $I_\cap^{\alpha_i \to \alpha_j}$, rows = past nodei, columns = future nodej, nodes indexed as inlattice.lattice.nodes.atoms::Matrix: the atoms $\Pi(\alpha_i \to \alpha_j)$ in the same layout.
Accessors
atom(res, α => β): the atom of past nodeαand future nodeβ, each a collection of variable sets, e.g.atom(res, [[1], [2]] => [[1, 2]]).atom(res, name)for two variables:nameis:αtβwithα,βone ofr= $\{1\}\{2\}$,x= $\{1\}$,y= $\{2\}$,s= $\{12\}$, e.g.atom(res, :rts) == atom(res, [[1], [2]] => [[1, 2]]).atoms(res): every atom as an(α => β) => valuepair, from the bottom ($\{1\}\ldots\{n\} \to \{1\}\ldots\{n\}$) to the top ($\{1 \ldots n\} \to \{1 \ldots n\}$) of the product lattice.information_dynamics(res)for two variables.
The atoms sum to $I(\mathbf{X}_t; \mathbf{X}_{t+\tau})$, in the unit definition.base.
LocalInformation.LocalPhiIDResult — Type
LocalPhiIDResultA per-sample (local) integrated information decomposition: the local atoms of every sample of the lagged system (row t: the past at time t, the future at t + τ), with the same accessors as PhiIDResult returning per-sample vectors (views).
local_association returns it for an estimator of an IntegratedInformationDecomposition with
IMMI(the default):JointProbabilities,EntropyDecompositionwithPlugIn(Shannon()),KraskovorKozachenkoLeonenko, andGaussianDecomposition. The local double redundancy of each atom is the local mutual information of the pair of variable sets with the smallest mean, the convention ofphyid.ISxorIPM:JointProbabilitieswith aCodifyVariablesdiscretization. The local double redundancies are pointwise functions of the joint state of a sample.
In both cases the local atoms are the Möbius inversion of per-sample double redundancies whose means are the average double redundancies.
Fields
definition: theIntegratedInformationDecomposition.lattice: theLocalInformation.PhiIDLattice(shared; do not modify).atoms::Matrix{T}:(N - τ) × m², the local atoms of every sample (rows); columni + (j - 1) mis the pair (past nodei→ future nodej), nodes indexed as inlattice.lattice.nodes(theveclayout of them × matom matrix).
Accessors
atom(res, α => β),atom(res, name): the local atom, e.g.atom(res, :xty).atoms(res): every atom as an(α => β) => valuespair, bottom to top.information_dynamics(res)(two variables): aNamedTupleof vectors.
The local atoms of a sample sum to its local time-delayed mutual information, and the mean of every local atom is the corresponding average atom.
LocalInformation.information_dynamics — Function
information_dynamics(res::PhiIDResult) → NamedTuple
information_dynamics(res::LocalPhiIDResult) → NamedTuple of vectorsThe six information-dynamics modes of a two-variable ΦID (Mediano et al. 2021, 2025), as sums of atoms (named as in PhiIDResult: first letter past, last letter future):
| Mode | Atoms |
|---|---|
storage | rtr + xtx + yty + sts |
copy | xtr + ytr |
transfer | xty + ytx |
erasure | rtx + rty |
downward_causation | str + stx + sty |
upward_causation | rts + xts + yts |
The modes are disjoint and cover all 16 atoms, so they sum to $I(\mathbf{X}_t; \mathbf{X}_{t+\tau})$; sts (synergistic storage) is part of storage. For a LocalPhiIDResult each entry is a per-sample vector. Throws an ArgumentError for more than two variables.
References
- Mediano, P. A. M., Rosas, F. E., Luppi, A. I., et al. (2021). Towards an extended taxonomy of information dynamics via Integrated Information Decomposition. arXiv:2109.13186.
- Mediano, P. A. M., Rosas, F. E., Luppi, A. I., et al. (2025). Toward a unified taxonomy of information dynamics via Integrated Information Decomposition. Proceedings of the National Academy of Sciences, 122(39), e2423297122. doi:10.1073/pnas.2423297122 (the published version of the above).