Skip to content
PyTorch 2.6+ MIT License Forge Reproducible Research

ParticleGAN Research Portal

Learnable particle priors, composable GAN/DDGAN recipes, and an evolving scientific framework for stable, energy-optimal adversarial learning.

Replace fixed Gaussian latent noise with a learnable table of latent particles optimized alongside your PyTorch generator, evaluated across matched deterministic Forge protocols with hardware NVML energy telemetry and streamed training media.

ParticleGAN — conceptual artwork of luminous particles flowing into distinct clusters
Learnable latent particles organizing into distinct target modes under constant learning rates.

Start Exploring

10-Line PyTorch Quickstart

Supply ordinary torch.nn.Module networks. GANTrainer binds the recipe's optimizers, critic regularizer, and particle-prior update rule without mutating your architecture or weights.

import torch
from torch import nn
from particlegan import GANTrainer, get_recipe, init

def real_batch(n):  # replace with your DataLoader: 8 Gaussians on a ring
    angle = torch.randint(8, (n, 1)) * torch.pi / 4
    return torch.cat([angle.cos(), angle.sin()], 1) + 0.05 * torch.randn(n, 2)

recipe = get_recipe(total_steps=2000)  # default: "axiom" (axiom-v5 research preview)
G = nn.Sequential(nn.Linear(recipe.z_dim, 128), nn.LeakyReLU(0.2), nn.Linear(128, 2))
D = nn.Sequential(nn.Linear(2, 128), nn.LeakyReLU(0.2), nn.Linear(128, 1))
init.deterministic_orthogonal_(G, seed=0)
init.deterministic_orthogonal_(D, seed=1)
prior = init.deterministic_orthogonal_(recipe.make_prior())
trainer = GANTrainer(recipe, G, D, prior=prior, seed=0)
for _ in range(recipe.total_steps):
    trainer.step(real_batch(recipe.batch_size))
samples = trainer.sample(1024)
# Core PyTorch library (Python 3.11+, PyTorch 2.6+)
python -m pip install particlegan

# From source with experiment & benchmark tooling
git clone https://github.com/HyperGAN/ParticleGAN.git
cd ParticleGAN
python -m pip install -e '.[dev,experiments]'
from particlegan import get_recipe

default = get_recipe()                # axiom (axiom-v5: <=2,500-LOC 4-Law core, lowest r256 energy)
unified = get_recipe("unified_v15")   # Unified-v15 (74/79 receipts, 16/16 Occam, 103/115 view reqs)
v12 = get_recipe("unified_v12")       # explicit 0.12.0 Unified-v12 preset
fast_core = get_recipe("minimal")     # <900-LOC zero-Newton-Schulz fast core
v11 = get_recipe("unified_v11")       # explicit 0.11.x Unified preset
rhbi = get_recipe("rhbi_optimized")   # Relativistic Hellinger-Born-Infeld transport
empf = get_recipe("empf")             # Exponential Moving Prototype Flow
bispf = get_recipe("bispf_optimized") # Born-Infeld Sinkhorn Particle Flow

How the Research Ecosystem Connects

flowchart LR
    API["particlegan API<br/>(Recipes, Priors, GANTrainer)"] --> Forge["ParticleGAN Forge<br/>(Deterministic Protocols & Gates)"]
    Laws["Evolving Laws Framework<br/>(Mathematical Audits P0-P10)"] -. informs & falsifies .-> API
    Laws -. shapes challenge tasks .-> Forge
    Forge --> Receipts["Committed Receipts & Studies<br/>(Git: reports/forge/)"]
    Forge --> HFData["HF Evidence Dataset<br/>(Parquet, Archives, Training GIFs)"]
    Receipts --> Portal["GitHub Pages Research Portal<br/>(Docs, Laws, Families, Experiments)"]
    HFData --> Space["HF Static Leaderboard Space<br/>(Full Receipt & GIF Explorer)"]
    HFData -. live GIF streaming .-> Portal

Scientific Governance & Provisional Evidence

  • Research-preview default, not a qualified winner: DEFAULT_RECIPE = "axiom" (matching axiom-v5) is the current research-preview default. Screening calibration under configs/forge/calibration/criteria-v1.json remains BLOCKED, and no recipe in this repository is declared scientifically qualified.
  • Single-seed screening disclosure: Forge screening runs use protocol seed = 0 with deterministic orthogonal initialization across synthetic distributions, discrete visual benchmarks, and mock-noise DCGAN speed/energy workloads. Multi-seed and natural-image FID/Recall confirmation remain open.
  • Failures and gaps remain visible: Numerical FAIL, BLOCKED, INCOMPATIBLE, and NOT MEASURED outcomes stay distinct and are never dropped from fixed full-suite denominators. Tuning budgets and adaptive selection lineage are disclosed on every leaderboard row.
  • Canonical source of truth: See the Canonical Forge Leaderboard, Unresolved Problems, and the Interactive HF Leaderboard Space.