Mean-field theory for heterogeneous synaptic motifs in multi-population neural networks. Bridges microscale synaptic connectivity (second-order motifs) to macroscale population dynamics. Activation: synaptic motifs, mean-field theory, heterogeneous dynamics, multi-population networks, connectomics.
Scanned 9/11/2026
Install to Claude Code
npx -y skills add hiyenwong/ai_collection --skill synaptic-motifs-mean-field-theory --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Synaptic Motifs Mean Field Theory?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hiyenwong-synaptic-motifs-mean-field-theory)More formats (shields.io, HTML) on the badges page.
---
name: synaptic-motifs-mean-field-theory
description: "Mean-field theory for heterogeneous synaptic motifs in multi-population neural networks. Bridges microscale synaptic connectivity (second-order motifs) to macroscale population dynamics. Activation: synaptic motifs, mean-field theory, heterogeneous dynamics, multi-population networks, connectomics."
tags: [neuroscience, computational-neuroscience, mean-field-theory, synaptic-connectivity, neural-dynamics]
activation: synaptic motifs, mean-field theory, heterogeneous dynamics, multi-population networks, second-order motifs, connectomics
---
## Overview
This skill implements mean-field theory for analyzing how microscale synaptic motifs (correlated synaptic couplings) influence macroscale heterogeneous population dynamics in multi-population neural networks. Based on arXiv:2606.27946v1.
## Core Concepts
### Second-Order Synaptic Motifs
- **Definition**: Pairs of correlated synaptic couplings between neurons
- **Role**: Bridge fine-scale structural connectivity to macroscopic population dynamics
- **Types**: Chain motifs (A→B→C), divergent motifs, convergent motifs
### Multi-Population Mean-Field Theory
- **Framework**: P-population networks with nonlinear non-negative neural responses
- **State Variables**: 2P latent variables
- P variables: mean population activity
- P variables: within-population variability
- **Key Insight**: Synaptic and motif strengths determined by pre- and postsynaptic population identities
### Heterogeneous Population Dynamics
- **Phenomenon**: Macroscopic heterogeneous activity patterns across brain regions
- **Mechanism**: Chain motifs induce correlations in synaptic variability, enabling microscopic fluctuations to influence mesoscopic mean dynamics
- **Application**: Reverse engineering connectivity from observed heterogeneous activity (e.g., mouse V1)
## Methodology
### 1. Network Construction
```python
import numpy as np
def create_synaptic_motif_network(P, N_per_pop, motif_strength):
"""
P: number of populations
N_per_pop: neurons per population
motif_strength: correlation strength for second-order motifs
"""
N_total = P * N_per_pop
# Mean connectivity matrix (block structure)
J_mean = np.random.randn(P, P) * motif_strength
J = np.kron(J_mean, np.ones((N_per_pop, N_per_pop)))
# Add second-order motif correlations
for i in range(P):
for j in range(P):
motif_component = np.random.randn(N_per_pop, N_per_pop) * np.sqrt(motif_strength)
J[i*N_per_pop:(i+1)*N_per_pop, j*N_per_pop:(j+1)*N_per_pop] += motif_component
return J
```
### 2. Mean-Field Equations
For P-population networks, the mean-field dynamics require:
```
dm_p/dt = -m_p + F(m_p + v_p) # mean activity
dv_p/dt = -v_p + G(m_p, v_p, motif_stats) # variability
where:
- m_p: mean activity of population p
- v_p: within-population variability
- F, G: nonlinear functions of motif statistics
```
### 3. Reverse Engineering from Data
```python
def reverse_engineer_connectivity(observed_activity, P):
"""Given heterogeneous activity patterns, infer underlying connectivity."""
mean_activity = compute_mean_activity(observed_activity)
variability = compute_variability(observed_activity)
J_inferred = solve_inverse_mean_field(mean_activity, variability, P)
return J_inferred
```
## Key Results
### Chain Motifs Enable Fluctuation Integration
- **Finding**: Chain motifs (A→B→C) create correlations in synaptic variability
- **Effect**: Microscopic fluctuations propagate to influence mesoscopic mean dynamics
- **Implication**: Fine-scale structure has functional consequences beyond mean connectivity
### Application to Mouse V1
- **Dataset**: Heterogeneous activity across V1 populations
- **Method**: Fit mean-field model to observed statistics
- **Result**: Recovered connectivity that recapitulates observed heterogeneity
- **Validation**: Model predictions match experimental perturbations
## Practical Usage
### When to Use
- Analyzing how synaptic motifs contribute to population-level dynamics
- Reverse engineering connectivity from heterogeneous neural recordings
- Understanding the role of fine-scale structure in brain computation
- Building multi-population network models with biologically realistic connectivity
### Workflow
1. **Identify populations**: Define P functionally or anatomically distinct groups
2. **Measure statistics**: Compute mean activity and variability for each population
3. **Specify motif structure**: Choose motif types (chain, divergent, convergent)
4. **Fit mean-field model**: Solve for connectivity that reproduces observed statistics
5. **Validate**: Test predictions on held-out data or perturbations
### Common Pitfalls
- **Assuming mean connectivity suffices**: Second-order motifs have independent effects
- **Ignoring within-population variability**: Captured by the additional P state variables
- **Overfitting with too many parameters**: Use constraints from motif structure
- **Neglecting non-negativity constraints**: Biological firing rates are non-negative
## Validation
### Theoretical Checks
- Mean-field equations conserve total activity in appropriate limits
- Motif correlations vanish when motif_strength → 0
- Heterogeneity increases with motif strength (up to saturation)
### Simulation Validation
```python
J = create_synaptic_motif_network(P=3, N_per_pop=1000, motif_strength=0.1)
activity = simulate_network(J, T=1000)
mf_prediction = compute_mean_field(J, P=3)
assert np.allclose(mean_activity(activity), mf_prediction['mean'], rtol=0.1)
assert np.allclose(variability(activity), mf_prediction['var'], rtol=0.2)
```
## Extensions
### Beyond Pairwise Motifs
- Third-order motifs (triplets of correlated synapses)
- Higher-order structure: hypergraphs, simplicial complexes
### Plasticity
- Hebbian learning of motif structure
- Interaction between motifs and synaptic plasticity rules
### Multi-Scale Integration
- Combine with mesoscale connectomics (DTI, fMRI)
- Link to behavioral variables
## References
- Paper: arXiv:2606.27946v1 "Heterogeneous synaptic motifs bridge microscale structure and macroscale nonlinear dynamics"
- Key insight: Chain motifs enable microscopic fluctuations to influence mesoscopic dynamics
- Application: Reverse engineering V1 connectivity from heterogeneous activity
## Activation Triggers
Use this skill when:
- User asks about synaptic motifs or second-order connectivity
- Analyzing heterogeneous population dynamics
- Building multi-population mean-field models
- Reverse engineering connectivity from neural data
- Studying the relationship between micro-scale structure and macro-scale dynamics
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!