Agent skill · Design & Presentation

gflownet

Bengio's GFlowNets: Generative Flow Networks that sample proportionally to reward. Diversity over maximization for causal discovery and molecule design.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill gflownet --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 7 KB
Bundled scripts: none
Version: 1.0.0
Path: skills/ai-ml/gflownet/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# GFlowNet Skill > *"Sample x with probability proportional to R(x), not just maximize R(x)."* > — Yoshua Bengio ## Overview **GFlowNets** (Generative Flow Networks) are a new paradigm: - **RL**: Maximize expected reward → single optimal solution - **MCMC**: Sample from distribution → slow mixing - **GFlowNet**: Learn to sample P(x) ∝ R(x) → fast, diverse sampling ## Core Concept ```latex GFlowNet Objective: ∀ terminal state x: P_θ(x) = R(x) / Z Where: P_θ(x) = probability of generating x via forward policy R(x) = unnormalized reward function Z = partition function (normalizing constant) Key Insight: We DON'T need to know Z to train! ``` ## Architecture ``` ┌─────────────────────────────────────────────────────┐ │ GFlowNet │ ├─────────────────────────────────────────────────────┤ │ Initial State s₀ │ │ │ │ │ ▼ │ │ ┌─────────────┐ │ │ │ Forward │ P_F(s' | s) = learned policy │ │ │ Policy │ │ │ └──────┬──────┘ │ │ │ sample action │ │ ▼ │ │ ┌─────────────┐ │ │ │ Transition │ s → s' │ │ └──────┬──────┘ │ │ │ │ │ ▼ │ │ ┌─────────────┐ │ │ │ Terminal? │───No──▶ continue │ │ └──────┬──────┘ │ │ │ Yes │ │ ▼ │ │ ┌─────────────┐ │ │ │ R(x) │ Evaluate reward │ │ └─────────────┘ │ └───────────

What's inside
Steps it walks through
  1. Overview
  2. Core Concept
  3. Architecture
  4. Training Objectives
  5. 1. Trajectory Balance (TB)
  6. 2. Detailed Balance (DB)
  7. Applications
  8. 1. Molecule Design
  9. 2. Causal Discovery
  10. 3. Combinatorial Optimization
  11. GF(3) Triads
  12. Integration with Interaction Entropy
  13. Key Properties
  14. References
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the gflownet skill do?

Bengio's GFlowNets: Generative Flow Networks that sample proportionally to reward. Diversity over maximization for causal discovery and molecule design.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill gflownet --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going