langevin-dynamics

Solve Langevin SDEs with multiple discretization solvers for neural network training.

60|13|Updated Dec 22, 2025
One-click install
npx skills add https://github.com/plurigrid/asi --skill langevin-dynamics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langevin-dynamics
Source: https://github.com/plurigrid/asi/tree/main/skills/langevin-dynamics
Command: npx skills add https://github.com/plurigrid/asi --skill langevin-dynamics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Langevin dynamics are used to study neural network learning by injecting controlled noise to analyze exploration, convergence, and discretization effects in training dynamics.

Core Features & Use Cases

  • Solve Langevin SDEs: compare multiple discretization solvers.
  • Fokker-Planck convergence: empirically verify proximity to Gibbs distribution.
  • Mixing time estimation: evaluate when training equilibrates.
  • Temperature effects: study how noise level influences exploration vs exploitation.
  • Discretization study: observe how different dt alter results.

Quick Start

just langevin-solve net=logistic T=0.01 dt=0.01

Frequently Asked Questions about langevin-dynamics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I study stochastic effects in neural network training using Langevin dynamics?

Langevin dynamics inject controlled noise into neural network training to analyze exploration, convergence, and discretization effects. This Skill instruments training dynamics by solving Langevin SDEs with multiple discretization solvers, enabling you to observe how temperature, solver choice, and step size alter optimization trajectories and approach equilibrium.

Can I verify empirical convergence to the Gibbs distribution in my training runs?

Yes. This Skill computes Fokker-Planck convergence diagnostics to empirically measure proximity to the Gibbs distribution. Run multiple solver configurations across different temperatures and discretization steps to produce comparative trajectories that reveal convergence behavior and mixing time.

What's the best way to compare how discretization step size affects SDE solver results?

This Skill lets you solve the same Langevin SDE with multiple discretization solvers and varying dt parameters, then compare output trajectories side by side. This reveals how different step sizes impact numerical accuracy, exploration efficiency, and convergence rate across solver configurations.

How does temperature control influence exploration versus exploitation in neural network learning?

Langevin dynamics use temperature as a noise scaling parameter. This Skill lets you sweep temperature values and observe their effect on training trajectories—higher temperatures increase exploration; lower temperatures favor exploitation. Comparative diagnostics show the trade-off across your chosen loss and gradient terms.

Do I need prior knowledge of stochastic differential equations to use this Skill?

This Skill targets users familiar with SDE theory and neural network training. You define the Langevin SDE by specifying loss, gradient, and temperature terms. Advanced implementation depth means it assumes comfort with convergence analysis, Fokker-Planck equations, and discretization methods like Euler-Maruyama.

Can this Skill estimate when my neural network training reaches equilibrium?

Yes. This Skill provides mixing time estimation diagnostics that measure when training equilibrates under Langevin dynamics. By running trajectories across multiple solver configurations and temperature settings, you identify the number of steps needed for stable convergence behavior.