Downloads · 30 days
0
vishal-1344/sci
sci is a machine learning model from vishal-1344. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as mit.
A Metacognitive Control Layer for Signal Dynamics
Downloads · 30 days
0
Access
Public
Updated Dec 5, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.jsonl1.6 MB · 97%
From the Hugging Face model README
A Metacognitive Control Layer for Signal Dynamics
This repository contains the reference implementation of SCI, a closed-loop metacognitive controller that wraps existing models and turns prediction into a regulated process rather than a one-shot function evaluation.
SCI is introduced in:
Vishal Joshua Meesala
SCI: A Metacognitive Control for Signal Dynamics
arXiv:2511.12240, 2025
https://arxiv.org/abs/2511.12240
The paper formalizes interpretability as a feedback-regulated state: SCI monitors a scalar interpretive signal ( SP(t) ), defined over reliability-weighted, multi-scale features, and adaptively adjusts an interpreter’s parameters to reduce interpretive error
[
\Delta SP(t) = SP^*(t) - SP(t),
]
under Lyapunov-style stability constraints.
Most neural networks are deployed as open-loop function approximators: they map inputs to outputs in a single forward pass, with no explicit mechanism to regulate computation, explanation quality, or clarification depth.
In safety–critical domains (medicine, industrial monitoring, environmental sensing), this is brittle:
SCI addresses this by introducing a closed-loop metacognitive layer that:
Empirically, SCI:
SCI is a modular architecture with four main components.
A multi-scale, multimodal feature bank ( P(t, s) ) that organizes raw signals ( X(t) ) into interpretable components:
Each feature is weighted by a reliability score ( w_f(t) ) derived from:
These weights ensure degraded or untrustworthy features are down-weighted.
A knowledge-guided interpreter that maps the reliability-weighted feature bank into:
This component can be instantiated as a linear or shallow neural head on top of ( P(t, s) ), optionally constrained by domain rules or ontologies.
( SP(t) \in [0,1] ) aggregates calibrated components such as:
In the minimal implementation, ( SP ) is normalized entropy of a marker or predictive distribution:
high SP corresponds to focused, confident internal usage of markers;
low SP corresponds to diffuse or ambiguous internal state.
The controller monitors ( \Delta SP(t) ) and updates ( \Theta ) when interpretive clarity is insufficient.
[ \Theta_{t+1} = \text{Proj}{\mathcal{C}}\left[\Theta_t + \eta_t\left(\Delta SP(t)\nabla\Theta SP(t) + \lambda_h u_h(t)\right)\right], ]
where:
Lyapunov-style analysis shows that, under suitable conditions on ( \eta_t ) and ( \lambda_h ), the “interpretive energy”
[ V(t) = \tfrac{1}{2}(\Delta SP(t))^2 ]
decreases monotonically up to bounded noise, so explanations become more stable and consistent over time.
This yields a reactive interpretability layer that not only explains but also stabilizes explanations under drift, feedback, and evolving conditions.
The repository is organized as follows (file names may evolve slightly as the framework matures):
sci/ # Core SCI library
__init__.py
config.py
controller.py # SCIController: closed-loop update over Θ using ΔSP
decomposition.py # Decomposition Π and reliability-weighted feature bank
interpreter.py # Interpreter / marker head and SP computation
reliability.py # Reliability scores (SNR, persistence, coherence)
sp.py # SP scalar and related metrics
utils.py # Shared utilities and helper functions
configs/ # Example configuration files
mnist.yaml
mitbih.yaml
bearings.yaml
examples/ # Jupyter notebooks (to be populated)
mnist_sci_demo.ipynb
ecg_sci_demo.ipynb
bearings_sci_demo.ipynb
experiments/ # Experiment scripts, logs, and analysis
scripts/ # Training utilities, Hub utilities, etc.
push_to_hub.py
run_sci_mitbih_fixed_k.py
run_sci_bearings.py
run_sci_signal_v2.py # Signal-domain SCI experiments
plot_metacognition_hero.py # Plotting script for metacognitive behavior
sc_arxiv.pdf # Paper PDF (for convenience)
sci_latex.tex # LaTeX source of the paper
pyproject.toml
setup.cfg
LICENSE
README.md