Skip to main content

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


DOI License: MIT ORCID PyPI Status Target Journal

OSF Registration Internet Archive CC-BY-4.0 GitHub Stars Python 3.8+


๐Ÿ“Œ 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:

  1. Fixed weights โ€” no stochastic inference-time modifications
  2. Consistent discretisation โ€” activation binning scheme fixed across layers
  3. Fixed estimator parameters โ€” bandwidth / neighbourhood k held constant
  4. Fixed dataset โ€” D = {x_i} held constant across comparative measurements
  5. Fixed random seed โ€” seed=42 for 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


๐Ÿ“š 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

entropath-1.0.0.tar.gz (167.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

entropath-1.0.0-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

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

Hashes for entropath-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cd1c774187d2105fce0608a60968714129436f716968e718ff2db1fc2c17f471
MD5 bb783bf63f584ed06c6dd7c7ed5c36ab
BLAKE2b-256 9f2e0eba11f5d8f7bba4ad415bc951621270f7e6113a0d1816d72cfa759d08ca

See more details on using hashes here.

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

Hashes for entropath-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e547c04e4ba454cb48e3984e5fc1a3636f6b6ce012b3729dca80ab322f12faf
MD5 6d80e9edac0267df91a289ff1e750267
BLAKE2b-256 282062b4ff1daa223e4ecff5011cfe6b1b6b044f8db1406925e7d755d975dccd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page