Computational modeling methodology for chronic stress as excitatory-inhibitory (E/I) balance perturbation in recurrent working-memory networks. Use when modeling stress effects on prefrontal cortex, studying resilience mechanisms, or analyzing E/I balance disruptions in neuropsychiatric conditions.
Scanned 9/11/2026
Install to Claude Code
npx -y skills add hiyenwong/ai_collection --skill chronic-stress-ei-balance-rnn --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Chronic Stress Ei Balance Rnn?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hiyenwong-chronic-stress-ei-balance-rnn)More formats (shields.io, HTML) on the badges page.
---
name: chronic-stress-ei-balance-rnn
description: Computational modeling methodology for chronic stress as excitatory-inhibitory (E/I) balance perturbation in recurrent working-memory networks. Use when modeling stress effects on prefrontal cortex, studying resilience mechanisms, or analyzing E/I balance disruptions in neuropsychiatric conditions.
version: 1.0.0
tags: [neuroscience, chronic-stress, excitatory-inhibitory-balance, working-memory, prefrontal-cortex, resilience, recurrent-neural-networks]
arxiv: "2606.27529"
authors: ["Mauricio A. Diaz", "Manuela A. Beyer", "Janina Hesse"]
institution: "Leibniz Institute for Resilience Research (LIR), Mainz, Germany"
published: "2026-06-30"
---
# Chronic Stress as E/I Balance Perturbation in Working-Memory Networks
## Core Methodology
### 1. Modeling Framework
**Network Architecture:**
- 200 rate-based neurons (80% excitatory, 20% inhibitory)
- All-to-all connectivity matrix W with submatrices: W_{E→E}, W_{E→I}, W_{I→E}, W_{I→I}
- Dale's Law constrained: excitatory neurons only project excitatory connections, inhibitory only inhibitory
- Dynamics: x_P(t+1) = (1-α)x_P(t) + αh_P(t) + αs_P(t) + √(2α)σ_ξ ξ_P(t)
- h_P(t): recurrent synaptic drive
- s_P(t): external input
- α = Δt/τ (Δt=20ms, τ=100ms)
**Task: Delayed Parametric Working Memory**
- Two stimuli S1, S2 presented with variable delay
- Network must compare and report which is larger
- Measures: encoding, maintenance (delay period), decision-making
- Psychometric curve: performance vs. stimulus difference Δ = S2 - S1
### 2. Stress Modeling
**8 Candidate Stress Operators:**
1. S↑[W_{I→E}]: Stronger inhibitory-to-excitatory synapses ✓ (best match)
2. S↑[W_{E→I}]: Stronger excitatory-to-inhibitory synapses
3. S↓[W_{E→E}]: Weaker excitatory recurrent connections
4. S↑[W_{I→I}]: Stronger inhibitory recurrent connections
5. S↓[r_E]: Reduced excitatory population activity
6. S↑[r_I]: Increased inhibitory population activity
7. S↓[W_{E→E}] + S↑[W_{I→I}]: Combined weakening/strengthening
8. S↑[W_{I→E}] + S↓[W_{E→I}]: Combined inhibitory dominance
**Experimental Signatures (from literature):**
1. Inhibitory dominance: h_I > h_E (inhibitory drive exceeds excitatory)
2. Excitatory hypofunction: reduced excitatory population activity
3. Impaired task performance: degraded psychometric curve
**Key Finding:**
Only S↑[W_{I→E}] (stronger I→E synapses) reproduces all three signatures simultaneously, suggesting a **causal cascade** where enhanced inhibition leads to excitatory hypofunction as downstream consequence.
### 3. Resilience Analysis
**Training Protocol:**
- Naive networks: trained without stress operator
- Resilient networks: trained with stress operator applied
- Compare performance, connectivity, dynamics, energy
**Resilience Trade-offs:**
- ✓ Preserves task performance under stress
- ✓ Confines network to same dynamical subspace with/without stress
- ✓ Maintains energetic regime
- ✗ Reduced generalization to longer delays (out-of-distribution)
- ✗ Decreased network density and reciprocity
- ✗ Shift toward directional (non-symmetric) information flow
**Interpretation:**
Resilience = specialized solution tuned to training regime → computational analogue of behavioral rigidity/habit formation observed in chronic stress animal models.
### 4. Analysis Metrics
**E/I Balance Quantification:**
```python
# Excitatory drive (recurrent input to E population)
h_E(t) = W_{EE} r_E(t) + W_{EI} r_I(t)
# Inhibitory drive (recurrent input to I population)
h_I(t) = W_{IE} r_E(t) + W_{II} r_I(t)
# E/I balance ratio
EI_ratio = mean(h_E) / mean(h_I)
# Inhibitory dominance: EI_ratio < 1
```
**Network Topology:**
- Density: fraction of non-zero connections
- Reciprocity: symmetry of bidirectional connections (W_{ij} vs W_{ji})
- Effective connectivity: source-specific decomposition of synaptic cost
**Dynamical Analysis:**
- Geometric dynamics: manifold structure of population activity
- Energy landscape: E(r) = -1/2 r^T W r + I^T r
- Subspace preservation: principal component overlap between conditions
## Implementation Patterns
### Network Simulation (JAX-based)
```python
import jax
import jax.numpy as jnp
from functools import partial
def rnn_step(carry, inputs, W, alpha, sigma_xi):
"""Single timestep of E/I recurrent network."""
x_E, x_I = carry
s_E, s_I = inputs
# ReLU activation
r_E = jnp.maximum(0, x_E)
r_I = jnp.maximum(0, x_I)
# Recurrent drive
h_E = W['EE'] @ r_E + W['EI'] @ r_I
h_I = W['IE'] @ r_E + W['II'] @ r_I
# Noise
key = jax.random.PRNGKey(0) # should be passed in
xi_E = jax.random.normal(key, x_E.shape)
xi_I = jax.random.normal(key, x_I.shape)
# Update
x_E_new = (1 - alpha) * x_E + alpha * h_E + alpha * s_E + jnp.sqrt(2*alpha) * sigma_xi * xi_E
x_I_new = (1 - alpha) * x_I + alpha * h_I + alpha * s_I + jnp.sqrt(2*alpha) * sigma_xi * xi_I
return (x_E_new, x_I_new), (r_E, r_I)
# Apply stress operator
def apply_stress(W, stress_type, delta=0.25):
"""Apply stress perturbation to connectivity."""
if stress_type == 'S↑[W_{I→E}]':
W['IE'] = W['IE'] * (1 + delta)
elif stress_type == 'S↓[W_{E→E}]':
W['EE'] = W['EE'] * (1 - delta)
# ... other operators
return W
```
### Resilience Training
```python
def resilience_training_loop(model, task, stress_operator, n_epochs=1000):
"""Train network under stress to develop resilience."""
for epoch in range(n_epochs):
# Sample trial
trial = task.sample_trial()
# Forward pass with stress applied
stress_W = apply_stress(model.W, stress_operator, delta=0.25)
outputs = forward_pass(model, trial, W=stress_W)
# Compute loss
loss = compute_loss(outputs, trial.target)
# Update parameters
grads = jax.grad(loss)(model.params)
model.params = optimizer.update(model.params, grads)
return model
# Compare naive vs resilient
naive_net = train_without_stress(model, task)
resilient_net = resilience_training(model, task, 'S↑[W_{I→E}]')
# Evaluate generalization
naive_ood = evaluate(naive_net, ood_trials) # longer delays
resilient_ood = evaluate(resilient_net, ood_trials)
# Resilient shows reduced OOD generalization → behavioral rigidity
```
### E/I Balance Analysis
```python
def compute_ei_balance(r_E_traj, r_I_traj, W):
"""Quantify E/I balance from simulation trajectories."""
# Time-averaged drives
h_E = jnp.mean(W['EE'] @ r_E_traj + W['EI'] @ r_I_traj, axis=1)
h_I = jnp.mean(W['IE'] @ r_E_traj + W['II'] @ r_I_traj, axis=1)
# Population activity
E_activity = jnp.mean(r_E_traj)
I_activity = jnp.mean(r_I_traj)
# E/I ratio
EI_ratio = jnp.mean(h_E) / jnp.mean(h_I)
# Signatures
inhibitory_dominance = EI_ratio < 1.0
excitatory_hypofunction = E_activity < baseline_E
performance = compute_accuracy(outputs, targets)
return {
'EI_ratio': EI_ratio,
'E_activity': E_activity,
'I_activity': I_activity,
'inhibitory_dominance': inhibitory_dominance,
'excitatory_hypofunction': excitatory_hypofunction,
'performance': performance
}
```
## Key Insights
### 1. Causal Mechanism Hierarchy
The finding that **one stress operator** (S↑[W_{I→E}]) reproduces multiple experimental signatures suggests:
- Chronic stress → enhanced I→E synapses (primary mechanism)
- → inhibitory dominance (direct effect)
- → excitatory hypofunction (downstream consequence)
- → impaired working memory (functional outcome)
This implies different experimental observations (elevated PV activity, more GABAergic contacts, reduced excitation) may form a **causal cascade** rather than parallel mechanisms.
### 2. Resilience-Generalization Trade-off
Resilient networks:
- Preserve function under stress (robust)
- But lose flexibility outside training distribution (rigid)
**Neurobiological parallel:**
Chronic stress patients show preserved routine function but impaired adaptation to novel situations → computational analogue of behavioral rigidity.
### 3. Energetic Signature
Resilient networks maintain same energy landscape geometry with/without stress, suggesting:
- Resilience = finding specialized attractor configuration
- Not just compensatory dynamics, but structural reorganization
- Reduced density/reciprocity → more efficient but less flexible
## Experimental Validation
### Predictions for Empirical Testing
1. **Primary mechanism:** Chronic stress should increase I→E synaptic strength in PFC (measureable via optogenetics + patch clamp)
2. **Causal cascade:** Blocking I→E enhancement should prevent both inhibitory dominance AND excitatory hypofunction
3. **Resilience biomarkers:**
- Resilient individuals: preserved E/I balance under stress
- But reduced performance on tasks requiring generalization (e.g., working memory with novel delays)
4. **Network topology:** Resilient PFC networks should show:
- Lower connection density
- Reduced reciprocity (more directional flow)
- Same geometric manifold structure with/without stress
## Limitations
- Rate-based model (no spikes) → cannot capture temporal coding
- Stress as external operator (not modeled as biological cascade)
- Single task (parametric working memory) → generalization to other cognitive functions unclear
- No neuromodulatory systems (dopamine, serotonin, stress hormones)
## Extensions
1. **Spiking network version:** Replace rate-based with spiking neurons to capture temporal dynamics
2. **Multi-region model:** Include hippocampus, amygdala for stress response circuit
3. **Neuromodulation:** Add dopamine/serotonin modulation of E/I balance
4. **Behavioral readout:** Connect network output to decision-making model for full cognitive-behavioral simulation
## References
- arXiv:2606.27529 - Original paper
- Song et al. - Dale-constrained RNN framework
- Arnsten (2009) - Stress signaling pathways impairing PFC
- Dias-Ferreira et al. (2009) - Chronic stress causes frontostriatal reorganization
## Activation Keywords
chronic stress, excitatory-inhibitory balance, E/I balance, working memory, prefrontal cortex, PFC, resilience, recurrent neural network, inhibitory dominance, excitatory hypofunction, stress modeling, neuropsychiatric, Dale's law, network dynamics, cognitive dysfunction, behavioral rigidity
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!