Skip to main content

ENTRO-CORE: Regime-Dependent Entropy-Augmented Control for Dynamical Systems

Project description

๐Ÿ”ด ENTRO-CORE โ€” Regime-Dependent Entropy-Augmented Control

"Intelligence by Design, Stability by Physics"

ENTRO-CORE is the third project of the EntropyLab research program (E-LAB-03). It investigates entropy-based control architectures for dynamical systems, introducing a hybrid regime-switching controller that combines PID with nonlinear entropy feedback.

Project Code: E-LAB-03 | Lab: Entropy Research Lab | Submitted: April 2026

License: MIT Python 3.11+ PyPI DOI Builds on Web


๐Ÿ“‹ Table of Contents


๐Ÿ”ญ Overview

Modern AI systems operate under high-dimensional feedback loops that can lead to instability, especially under long-context reasoning or recursive inference. ENTRO-CORE moves entropy control from an external monitoring layer (ENTRO-AI) into the core control architecture itself.

Instead of: Monitor โ†’ Detect โ†’ Intervene (reactive)
ENTRO-CORE does: Self-regulate internally (proactive)

Metric Value
PID Final ฮจ (stable regime) 0.017
ENTRO-CORE Final ฮจ -0.239
Hybrid Final ฮจ -0.012
Validation Runs 5 runs per controller
Noise Robustness ฯƒ = 0.00 โ†’ 0.15

๐Ÿ”ฌ Key Finding

Entropy-based control is regime-dependent, not universally superior.
PID remains optimal in stable linear systems, while entropy-based control provides benefits in near-critical regimes.

Regime Optimal Controller
Stable linear PID
Near-critical / nonlinear ENTRO-CORE / Hybrid

๐Ÿ“ Control Laws

PID Controller


u_PID(t) = K_pยทe(t) + K_iยทโˆซe(ฯ„)dฯ„ + K_dยทฤ—(t)

with e(t) = -ฮจ(t), K_p=0.8, K_i=0.2, K_d=0.3

Entropy-Based Controller (ENTRO-CORE v1)


u_ENTRO(t) = wโ‚ยทฯƒ(ฮจ_norm - ฮธ) + wโ‚‚ยทtanh(ฮจฬ‡) + wโ‚ƒยทtanh(ฮจฬˆ)

with wโ‚=0.5, wโ‚‚=0.3, wโ‚ƒ=0.2, ฮธ=1.4

Hybrid Regime-Switching Controller


u(t) = { u_PID(t)      if ฮจ(t) < ฮจ_th
{ u_ENTRO(t)    if ฮจ(t) โ‰ฅ ฮจ_th

with switching threshold ฮจ_th = 1.7


๐Ÿ“Š Experimental Results

Under near-critical initial conditions (ฮจ(0)=1.8, ฮจฬ‡(0)=0.3):

Controller Final ฮจ (t=20s) Outcome
Uncontrolled 0.053 Naturally stable
PID 0.017 Optimal convergence
ENTRO-CORE v1 -0.239 Mild overshoot
Hybrid (threshold=1.7) -0.012 Robust performance

Noise Sensitivity (Hybrid Controller)

Noise ฯƒ Final ฮจ Outcome
0.00 0.339 Stabilized
0.02 0.341 Stabilized
0.05 0.355 Stabilized
0.10 0.412 Stabilized
0.15 0.523 Stabilized

๐Ÿ—‚๏ธ Project Structure


entro-core/
โ”‚
โ”œโ”€โ”€ ๐Ÿ“„ README.md                            # This file
โ”œโ”€โ”€ ๐Ÿ“„ LICENSE                              # MIT License
โ”œโ”€โ”€ ๐Ÿ“„ CHANGELOG.md                         # Version history
โ”œโ”€โ”€ ๐Ÿ“„ CONTRIBUTING.md                      # Contribution guidelines
โ”œโ”€โ”€ ๐Ÿ“„ CITATION.cff                         # Academic citation metadata
โ”œโ”€โ”€ ๐Ÿ“„ pyproject.toml                       # Build configuration
โ”œโ”€โ”€ ๐Ÿ“„ requirements.txt                     # Runtime dependencies
โ”œโ”€โ”€ ๐Ÿ“„ requirements-dev.txt                 # Development dependencies
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ entro_core/                          # Core Python package
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ init.py                      # Package entry point
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ controller.py                    # ENTRO-CORE v1 (original)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ controller_v2.py                 # ENTRO-CORE v2 (negative feedback)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ hybrid_controller.py             # Regime-switching controller
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ actuator.py                      # Actuation strategies
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ normalize.py                     # Logistic normalization (Eq. 4)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ state.py                         # State tracker (ฮจ, ฮจฬ‡, ฮจฬˆ)
โ”‚   โ””โ”€โ”€ ๐Ÿ“„ control_law.py                   # Control law u(t) (Eq. 5)
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ simulation/                          # Validation simulations
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ generate_figures_fixed.py        # Trajectory generation
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ validation_experiment.py         # Full validation suite
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ hybrid_test.py                   # Hybrid controller test
โ”‚   โ””โ”€โ”€ ๐Ÿ“ results/
โ”‚       โ””โ”€โ”€ ๐Ÿ“„ trajectories_fixed.csv       # Comparison data
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ tests/                               # Unit tests
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ test_controller.py               # Controller tests (21 tests)
โ”‚   โ””โ”€โ”€ ๐Ÿ“„ init.py
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ paper/                               # Research paper assets
โ”‚   โ””โ”€โ”€ ๐Ÿ“ arxiv/
โ”‚       โ””โ”€โ”€ ๐Ÿ“„ entro_core_paper_revised.tex # LaTeX manuscript
โ”‚
โ””โ”€โ”€ ๐Ÿ“ docs/                                # Documentation
โ”œโ”€โ”€ ๐Ÿ“„ index.md
โ”œโ”€โ”€ ๐Ÿ“„ control_theory.md
โ””โ”€โ”€ ๐Ÿ“„ api_reference.md


โš™๏ธ Installation

Requirements

  • Python 3.11+
  • No external dependencies required (pure Python)

Via PyPI

pip install entro-core

From Source

git clone https://github.com/gitdeeper10/entro-core.git
cd entro-core
pip install -e ".[dev]"

๐Ÿš€ Quick Start

  1. Import and Use Hybrid Controller
from entro_core.hybrid_controller import HybridController

# Create controller with threshold
controller = HybridController(threshold=1.7)

# Simulate a near-critical state
result = controller.step(psi=1.8)

print(f"u(t) = {result.u:.3f}")
print(f"Mode: {result.mode}")  # 'PID' or 'ENTRO-CORE'
print(f"Active: {result.is_active}")
u(t) = 0.423
Mode: ENTRO-CORE
Active: True
  1. Run Validation Experiment
python simulation/validation_experiment.py
  1. Generate Comparison Trajectories
python simulation/generate_figures_fixed.py

๐Ÿ“Š Validation Results

Test Suite (21 tests)

Category Passed Normalization 4/4 โœ… Sigmoid 3/3 โœ… Tanh 3/3 โœ… Control Law 3/3 โœ… Actuation 4/4 โœ… Controller 4/4 โœ… Total 21/21


๐Ÿ—บ๏ธ EntropyLab Research Roadmap

E-LAB-01  โœ…  ENTROPIA          โ€” Thermodynamic unification
E-LAB-02  โœ…  ENTRO-AI          โ€” Entropy-resistant AI inference
E-LAB-03  โœ…  ENTRO-CORE        โ€” Regime-dependent control (this repository)
E-LAB-04  ๐Ÿ“…  ENTRO-ENGINE      โ€” Generalized entropy control framework
E-LAB-05  ๐Ÿ“…  ENTRO-FIN         โ€” Financial entropic dynamics
E-LAB-06  ๐Ÿ“…  ENTRO-SOCIAL      โ€” Information cascades in networks
E-LAB-07  ๐Ÿ“…  ENTRO-QUANTUM     โ€” Quantum entropy extension
E-LAB-08  ๐Ÿ“…  ENTRO-BIO         โ€” Biological neural entropy systems
E-LAB-09  ๐Ÿ“…  ENTRO-CLIMATE     โ€” Climate entropy modeling
E-LAB-10  ๐Ÿ“…  ENTRO-META        โ€” Unified entropy control theory

โœ… Complete | ๐Ÿ”„ In Progress | ๐Ÿ“… Planned


๐Ÿ“š Documentation

Resource Link Full Documentation entropia-lab.netlify.app/entro-core/docs Research Paper (PDF) entropia-lab.netlify.app/entro-core/paper API Reference entropia-lab.netlify.app/entro-core/api Parent Project (ENTRO-AI) entro-ai.netlify.app Foundation (ENTROPIA) doi.org/10.5281/zenodo.19416737


๐Ÿค Contributing

git clone https://github.com/gitdeeper10/entro-core.git
cd entro-core
pip install -e ".[dev]"
pytest tests/

Priority contribution areas:

ยท Smooth switching (sigmoidal interpolation) ยท Additional system dynamics models ยท Real-world validation datasets


๐Ÿ“– Citation

@software{baladi2026entrocore,
  author       = {Samir Baladi},
  title        = {ENTRO-CORE: Regime-Dependent Entropy-Augmented Control},
  year         = {2026},
  version      = {0.1.0},
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.19431029},
  url          = {https://doi.org/10.5281/zenodo.19431029},
  note         = {E-LAB-03. Builds on E-LAB-01 and E-LAB-02}
}

Parent frameworks:

@article{baladi2026entropia,
  title        = {ENTROPIA: Statistical Dynamics of Information Dissipation},
  author       = {Samir Baladi},
  year         = {2026},
  doi          = {10.5281/zenodo.19416737},
  note         = {E-LAB-01}
}

@software{baladi2026entroai,
  author       = {Samir Baladi},
  title        = {ENTRO-AI: Entropy-Resistant Inference Architecture},
  year         = {2026},
  version      = {2.0.0},
  doi          = {10.5281/zenodo.19284086},
  note         = {E-LAB-02}
}

๐Ÿ‘ค Author

Samir Baladi

ยท Role: Principal Investigator, Interdisciplinary AI Researcher ยท Affiliation: Ronin Institute / Rite of Renaissance ยท Email: gitdeeper@gmail.com ยท ORCID: 0009-0003-8903-0029 ยท GitHub: github.com/gitdeeper10 ยท GitLab: gitlab.com/gitdeeper10


๐Ÿ“œ License

MIT License โ€” see LICENSE for details.


ENTRO-CORE โ€” Entropy Research Lab โ€” E-LAB-03

Regime-Dependent Entropy-Augmented Control

https://img.shields.io/badge/PyPI-pip_install_entro--core-red.svg https://img.shields.io/badge/DOI-10.5281/zenodo.19431029-blue.svg

entropia-lab.netlify.app ยท pip install entro-core

Builds on ENTROPIA (E-LAB-01) and ENTRO-AI (E-LAB-02)

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

entro_core-0.1.0.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

entro_core-0.1.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file entro_core-0.1.0.tar.gz.

File metadata

  • Download URL: entro_core-0.1.0.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: ENTRO-CORE-Uploader/0.1.0

File hashes

Hashes for entro_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 59212c76a18876e1b2c8484f0e83bb982510d30245eb3a2f8bac5692b686e79a
MD5 2dd698c7a3930ee10988cff07e3f0aae
BLAKE2b-256 6dd63916fc4b4b327647e252e80c393ffd6b63d25e671a80b5ea2a2fcb497abf

See more details on using hashes here.

File details

Details for the file entro_core-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: entro_core-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: ENTRO-CORE-Uploader/0.1.0

File hashes

Hashes for entro_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 202fb1bf43148eb7b5f62afbd32315b643b25cb83965b4c9a52706ed8397eb9c
MD5 67fa00f33c2ada4679ea4d9ec2a0ccd7
BLAKE2b-256 75920df2f13b9082e76450521291e621e367f2577569a200060b6878b496e9c0

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