Diffusion models for learning viable parameter manifolds and compensation geometry in biological dynamical systems. Use when studying parameter degeneracy, model fitting, neural dynamics, or systems biology.
Scanned 9/11/2026
Install to Claude Code
npx -y skills add hiyenwong/ai_collection --skill diffusion-learning-viable-parameter-manifolds --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Diffusion Learning Viable Parameter Manifolds?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hiyenwong-diffusion-learning-viable-parameter-manifolds)More formats (shields.io, HTML) on the badges page.
---
name: diffusion-learning-viable-parameter-manifolds
description: Diffusion models for learning viable parameter manifolds and compensation geometry in biological dynamical systems. Use when studying parameter degeneracy, model fitting, neural dynamics, or systems biology.
tags: [diffusion-models, parameter-inference, degeneracy, compensation, biological-systems, neural-dynamics]
source: arXiv:2607.03671
date: 2026-07-04
---
# Diffusion Learning Reveals Viable Parameter Manifolds and Compensation Geometry
## Core Innovation
Formalizes **viable parameter manifolds** as inverse images of target dynamical behaviors under parameter-to-feature maps, and uses conditional score-based diffusion models as amortized samplers to explore compensation geometry and parameter dependencies.
## Key Contributions
1. **Viable Parameter Manifolds Framework**
- Defines viable parameter sets as inverse images of target behaviors
- Identifies effective rank (not number of features) as key dimensionality
- Shows how co-varying features lower codimension
2. **Diffusion Models as Amortized Samplers**
- Trains conditional score-based diffusion on parameter-feature pairs
- Samples from prior-weighted viable sets given observed features
- Enables visualization and interrogation of compensation geometry
3. **Applications to Neural Systems**
- Lorenz system: scalar trajectory statistics → thin viable sheets
- Izhikevich neuron: 4 firing descriptors → nearly 2D family
- Spiking network ODE reduction: E-I compensation, timescale-coupling tradeoffs
## Theoretical Framework
### Viable Parameter Manifolds
Given:
- Parameter vector θ ∈ ℝ^d
- Feature map F: θ → f (dynamical behaviors)
- Target features f*
**Viable manifold**: V = {θ : F(θ) = f*}
**Codimension**: Not number of features, but effective rank of dF at target scale
**Key insight**: Co-varying features lower codimension; poor conditioning degrades learnability
### Diffusion Model Approach
```python
# Training phase
diffusion_model = ScoreBasedDiffusion(
conditional=True,
input_dim=len(parameters),
condition_dim=len(features)
)
# Train on simulated (θ, F(θ)) pairs
diffusion_model.train(parameter_feature_pairs)
# Inference: sample viable parameters given observed features
viable_params = diffusion_model.sample(
condition=observed_features,
n_samples=1000
)
```
### Compensation Geometry Types
1. **Regular compensation**: Smooth, low-dimensional manifolds
2. **Irregular compensation**: Fractal or high-curvature structures
3. **E-I compensation**: Excitatory-inhibitory balance manifolds
4. **Timescale-coupling tradeoffs**: Interactions between time constants and coupling strengths
## Methodology
### Step 1: Generate Training Data
```python
# Sample parameters from prior
theta_samples = sample_from_prior(n=10000)
# Simulate system and extract features
features = []
for theta in theta_samples:
trajectory = simulate_system(theta)
f = extract_features(trajectory)
features.append(f)
# Create (theta, features) pairs
training_data = list(zip(theta_samples, features))
```
### Step 2: Train Conditional Diffusion Model
```python
# Condition on features, generate parameters
model = ConditionalScoreDiffusion(
x_dim=d, # parameter dimension
y_dim=k, # feature dimension
architecture='transformer'
)
model.train(training_data, epochs=100)
```
### Step 3: Sample Viable Manifolds
```python
# Given observed features f*, sample viable parameters
viable_theta = model.sample(
condition=f_star,
n_samples=1000,
temperature=1.0
)
# Analyze geometry
pca = PCA(n_components=2)
theta_2d = pca.fit_transform(viable_theta)
```
### Step 4: Visualize Compensation Geometry
```python
# Plot viable manifold in parameter space
plt.scatter(theta_2d[:, 0], theta_2d[:, 1], alpha=0.5)
plt.xlabel('PC1')
plt.ylabel('PC2')
plt.title('Viable Parameter Manifold')
# Analyze curvature and structure
curvature = compute_curvature(viable_theta)
dimension = estimate_intrinsic_dimension(viable_theta)
```
## Applications
### Neural Dynamics
**Problem**: Neural models often have many parameters but few observable features
**Solution**: Use diffusion models to explore viable parameter sets
**Example**: Izhikevich neuron with 4 firing descriptors
- Regular spiking, fast spiking, bursting, etc.
- Each behavior corresponds to a viable manifold
- Manifolds reveal parameter compensation patterns
### Spiking Network Reduction
**Problem**: Large spiking networks reduced to ODEs have degenerate parameters
**Solution**: Map viable manifolds to understand E-I balance and timescale tradeoffs
**Findings**:
- E-I compensation: excitatory and inhibitory parameters co-vary
- Timescale-coupling: fast/slow timescales interact with coupling strength
- Input-dependent manifolds: different inputs reveal different compensation structures
### Systems Biology
**Problem**: Biological models (gene networks, metabolic pathways) have parameter degeneracy
**Solution**: Diffusion models reveal which parameters can be traded off
**Benefit**: Identifies structurally important vs. compensable parameters
## Pitfalls and Limitations
1. **Effective Rank Estimation**
- Must estimate rank at target scale, not globally
- Poor conditioning can mislead dimensionality estimates
2. **Training Data Requirements**
- Need sufficient coverage of parameter space
- Rare viable regions may be missed
3. **Feature Selection**
- Features must capture relevant dynamical behaviors
- Irrelevant features increase codimension unnecessarily
4. **Computational Cost**
- Diffusion model training is expensive
- Amortization pays off for repeated queries
5. **Interpretation**
- Viable manifolds show compensation, not causality
- Must validate with perturbation experiments
## Verification
```python
# Verify viable manifold quality
def verify_viable_manifold(model, target_features, n_test=100):
# Sample parameters from viable manifold
theta_samples = model.sample(target_features, n_test)
# Simulate and extract features
predicted_features = [simulate_and_extract(theta) for theta in theta_samples]
# Check if features match target
errors = [distance(f, target_features) for f in predicted_features]
# Should have low error
assert np.mean(errors) < tolerance
assert np.std(errors) < variability_threshold
```
## Related Work
- **Parameter degeneracy**: Marder & Taylor (2011), Prinz et al. (2004)
- **Simulation-based inference**: Cranmer et al. (2020), SBI toolkit
- **Diffusion models**: Song et al. (2021), Ho et al. (2020)
- **Neural model fitting**: Izhikevich (2003), Hodgkin-Huxley (1952)
- **Compensation in biology**: Edelman & Gally (2001)
## Resources
- **Paper**: arXiv:2607.03671
- **Authors**: Ruilin Zhang, Louis Tao, Zhuo-Cheng Xiao
- **Code**: Not yet released (check authors' websites)
- **Related tools**: SBI (simulation-based inference), Diffusion models (PyTorch)
## Activation Triggers
- parameter degeneracy
- viable parameter manifold
- compensation geometry
- diffusion models for inference
- neural model fitting
- E-I balance
- timescale tradeoffs
- biological system identificationIs 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!