Skip to content

gitdeeper12/ENTRO-PATH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

πŸ“Š 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

About

A Quantitative Information-Theoretic Framework for Entropy Propagation Across Computational Decision Trajectories

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors