ENTRO-PATH: Irreducible Path Entropy in Neural Networks โ A Quantitative Information-Theoretic Framework
Project description
๐ Irreducible Path Entropy in Neural Networks
A Quantitative Information-Theoretic Framework for Entropy Propagation Across Computational Decision Trajectories
๐ Overview
This repository contains the full research output for the paper:
"Irreducible Path Entropy in Neural Networks" Samir Baladi โ EntropyLab Independent Research Series, May 2026
The paper introduces Irreducible Path Entropy (H_path) โ a formally defined,
layer-integrated information-theoretic metric that quantifies how much uncertainty
accumulates, transforms, and becomes unrecoverable along the inference trajectory
of a neural network.
The framework is grounded exclusively in information theory and systems-level analysis, without semantic, cognitive, or anthropomorphic assumptions.
๐ OSF Preregistration
| Field | Value |
|---|---|
| Registration Type | OSF Preregistration |
| Registry | OSF Registries |
| Associated Project | https://osf.io/yaevt |
| Date Registered | May 20, 2026 ยท 6:17 AM UTC |
| License | CC-By Attribution 4.0 International |
| Internet Archive | osf-registrations-7wp9h-v1 |
| Registration DOI | 10.17605/OSF.IO/7WP9H |
๐งญ Motivation
Modern neural networks achieve high performance while remaining structurally opaque. As noted by Hinton (2023), the learning algorithm is designed โ but the precise inference dynamics remain inaccessible even to the architects who built them.
Existing interpretability tools address specific aspects of this opacity. This work addresses a gap: no unified, layer-integrated metric existed for characterising entropy accumulation along the full computational decision path.
H_path fills this gap.
๐ฌ Core Constructs
Local Path Entropy
H_path(l) = โ ฮฃ_k p_{l,k} ยท log p_{l,k}
Shannon entropy of the conditional activation distribution at layer l.
Cumulative Path Entropy
H_path^(L) = ฮฃ_{l=1}^{L} H(P_l)
Total informational uncertainty accumulated across all L layers.
Irreducible Path Entropy
H_irr^(L) = H_path^(L) โ H_red^(L)
The component of path entropy that cannot be recovered from external observations.
Observability Index
ฮฉ(N) = 1 โ H_irr^(L) / H_path^(L) โ [0, 1]
ฮฉ = 1โ fully observable networkฮฉ = 0โ completely irreducible inference dynamics
Reducibility Condition
A layer l is reducible if there exists a measurement operator M_l such that:
I(h_l ; M_l(y)) โฅ H_path(l) โ ฮด*
where ฮด* is the reducibility tolerance threshold.
Entropic Leakage
ฮ(L) = H_path^(L) โ I(x ; h_L)
Uncertainty introduced across computation not explained by retained input information.
๐ Scope and Interpretive Closure
This framework is restricted to formal quantitative analysis of entropy propagation in artificial neural networks.
Not within scope:
- General theories of intelligence, cognition, or consciousness
- Claims regarding intentionality, agency, or phenomenology
- Semantic or anthropomorphic interpretation of results
Within scope:
- Reproducible computational analysis
- Information-theoretic formalisation
- Systems-level characterisation of inference behaviour
- Experimentally observable entropy dynamics
๐ Repository Structure
irreducible-path-entropy/
โ
โโโ ๐ README.md # This file
โโโ ๐ LICENSE # MIT License
โโโ ๐ CHANGELOG.md # Version history
โโโ ๐ AUTHORS.md # Author and contributor metadata
โ
โโโ ๐ paper/
โ โโโ Irreducible_Path_Entropy_Baladi_2026.pdf # Publication-ready paper
โ โโโ preprint_metadata.json # Zenodo/OSF submission metadata
โ
โโโ ๐ formalism/
โ โโโ definitions.md # All formal definitions (1โ5)
โ โโโ reducibility_conditions.md # Reducibility threshold derivations
โ โโโ observability_index.md # ฮฉ construction and properties
โ โโโ entropic_leakage.md # ฮ(L) derivation and interpretation
โ
โโโ ๐ figures/
โ โโโ fig1_path_entropy_accumulation.png # Layer-wise H_path vs H_red
โ โโโ fig2_reducibility_phase_diagram.png # Phase diagram (ฯ vs I)
โ โโโ fig3_observability_architectures.png # ฮฉ across architecture types
โ
โโโ ๐ numerical/
โ โโโ entropy_estimator.py # k-NN entropy estimation module
โ โโโ mutual_information.py # MI estimator for H_red
โ โโโ observability_compute.py # ฮฉ computation pipeline
โ โโโ architecture_comparison.py # MLP / CNN / Transformer benchmarks
โ โโโ requirements.txt # Python dependencies
โ
โโโ ๐ experiments/
โ โโโ protocol.md # Full reproducibility protocol
โ โโโ config_feedforward.yaml # MLP experiment configuration
โ โโโ config_cnn.yaml # CNN experiment configuration
โ โโโ config_transformer.yaml # Transformer experiment configuration
โ
โโโ ๐ references/
โโโ bibliography.bib # BibTeX reference file
โ๏ธ Reproducibility Protocol
All results are reproducible under the following conditions:
- Fixed weights โ no stochastic inference-time modifications
- Consistent discretisation โ activation binning scheme fixed across layers
- Fixed estimator parameters โ bandwidth / neighbourhood
kheld constant - Fixed dataset โ
D = {x_i}held constant across comparative measurements - Fixed random seed โ
seed=42for deterministic behaviour
Estimation Pipeline
Step 1 โ Record activations {h_l(x_i)} at each layer l
Step 2 โ Apply k-NN entropy estimator โ H_path(l)
Step 3 โ Estimate I(h_l ; y) โ H_red^(L)
Step 4 โ Compute ฮฉ = 1 โ H_irr / H_path
๐๏ธ Architecture Findings (Illustrative)
| Architecture | Depth | H_path (nats) |
ฮฉ Index |
Regime |
|---|---|---|---|---|
| MLP (2L) | 2 | 0.31 | 0.91 | Reducible |
| MLP (6L) | 6 | 0.68 | 0.74 | Reducible |
| MLP (12L) | 12 | 1.14 | 0.61 | Reducible |
| CNN (8L) | 8 | 0.87 | 0.68 | Reducible |
| Transformer (12L) | 12 | 1.42 | 0.52 | Borderline |
| Transformer (24L) | 24 | 2.05 | 0.39 | Irreducible |
Values are illustrative. Empirical calibration required for specific architectures.
๐งช Test Results
$ pytest tests/
============================= test session starts =============================
collected 19 items
tests/test_entropy_estimator.py ......... [47%]
tests/test_mutual_information.py ..... [73%]
tests/test_observability.py ...... [100%]
============================= 19 passed in 0.435s =============================
๐ค Author
Samir Baladi Independent Interdisciplinary Researcher Ronin Institute / Rite of Renaissance
- ๐ง gitdeeper@gmail.com
- ๐ ORCID: 0009-0003-8903-0029
- ๐ GitHub: gitdeeper12
- ๐ฆ GitLab: gitdeeper12
- ๐ Codeberg: gitdeeper12
๐ Key References
| # | Reference |
|---|---|
| 1 | Sundararajan et al. (2017). Axiomatic attribution for deep networks. ICML. |
| 2 | Alain & Bengio (2016). Understanding intermediate layers via linear probes. arXiv:1610.01644. |
| 3 | Elhage et al. (2021). A mathematical framework for transformer circuits. Anthropic. |
| 4 | Tishby & Schwartz-Ziv (2017). Opening the black box via information. arXiv:1703.00810. |
| 5 | Kozachenko & Leonenko (1987). Sample estimate of entropy of a random vector. PIT. |
| 6 | Cover & Thomas (2006). Elements of Information Theory (2nd ed.). Wiley. |
| 7 | Hinton, G. (2023). Interview. 60 Minutes, CBS News. |
| 8 | Baladi, S. (2026). ENTRO-OMEGA: Unified Adaptive Stabiliser. DOI: 10.5281/zenodo.19562999. |
๐ Links
| Resource | Link |
|---|---|
| ๐ Zenodo Preprint | doi.org/10.5281/zenodo.20222840 |
| ๐ OSF Registration | doi.org/10.17605/OSF.IO/7WP9H |
| ๐ฆ PyPI Package | pypi.org/project/entropath |
| ๐ GitHub Repository | github.com/gitdeeper12/ENTRO-PATH |
| ๐ฆ GitLab Mirror | gitlab.com/gitdeeper12/ENTRO-PATH |
| ๐ชฃ Bitbucket Mirror | bitbucket.org/gitdeeper-12/ENTRO-PATH |
| ๐ Codeberg Mirror | codeberg.org/gitdeeper12/ENTRO-PATH |
| ๐๏ธ ENTRO-OMEGA (E-LAB-10) | doi.org/10.5281/zenodo.19562999 |
| ๐ฌ OSF Project | osf.io/yaevt |
| ๐ Internet Archive | archive.org/details/osf-registrations-7wp9h-v1 |
| ๐ ORCID Profile | orcid.org/0009-0003-8903-0029 |
๐ License
This project is released under the MIT License. See LICENSE for full terms.
The OSF registration is released under CC-By Attribution 4.0 International.
EntropyLab Independent Research Series ยท May 2026 Information Theory ยท Neural Network Interpretability ยท Entropy Dynamics
Registration DOI: 10.17605/OSF.IO/7WP9H ยท Preprint DOI: 10.5281/zenodo.20222840
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file entropath-1.0.0.tar.gz.
File metadata
- Download URL: entropath-1.0.0.tar.gz
- Upload date:
- Size: 167.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: ENTRO-PATH-Uploader/1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd1c774187d2105fce0608a60968714129436f716968e718ff2db1fc2c17f471
|
|
| MD5 |
bb783bf63f584ed06c6dd7c7ed5c36ab
|
|
| BLAKE2b-256 |
9f2e0eba11f5d8f7bba4ad415bc951621270f7e6113a0d1816d72cfa759d08ca
|
File details
Details for the file entropath-1.0.0-py3-none-any.whl.
File metadata
- Download URL: entropath-1.0.0-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: ENTRO-PATH-Uploader/1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e547c04e4ba454cb48e3984e5fc1a3636f6b6ce012b3729dca80ab322f12faf
|
|
| MD5 |
6d80e9edac0267df91a289ff1e750267
|
|
| BLAKE2b-256 |
282062b4ff1daa223e4ecff5011cfe6b1b6b044f8db1406925e7d755d975dccd
|