MandelWorld-15M — Bilingual EN+中文 Text-to-4K-60fps 3D Fractal Worlds in the Browser

Launch Live 4K 60fps Browser Studio (Space) · Dataset (160K Scenic Worlds)

MandelWorld-15M is a 13.88M-parameter (14.35 MB Weight-Only INT8 ONNX) bilingual (English + 中文) Conditional Rectified Flow Transformer that maps any natural-language text prompt to a 48-dimensional structured 3D Fractal Genome rendered live at 4K 60fps in WebGL2 directly inside a web browser — with zero GPU server, infinite mathematical zoom, WASD + mouse orbit flight, real-time latent world morphing, shareable #g=... URL hashes, and 4K (3840×2160) PNG export.


Honest Closed-Loop Evaluation (32 Strictly Held-Out Unseen Prompts)

Every metric below is end-to-end closed-loop on 32 prompts (16 EN + 16 ZH) verified to have zero overlap with the 16,000-concept training bank: prompt → SigLIP-2 text embedding → MandelWorld-15M ODE sampling (seed 42, zero cherry-picking) → 3D SDF raymarching at 224×224 → SigLIP-2 vision embedding → 16-way prompt-to-render retrieval.

Unseen English Prompts (16/16 = 100.0% Top-1, 100.0% Top-5)

MandelWorld-15M Unseen EN-16 Closed-Loop Renders

Unseen Chinese Prompts (75.0% Top-1, 100.0% Top-5 at Euler-12 CFG 3.5; 81.25% Top-1 at Heun-8 CFG 3.5)

MandelWorld-15M Unseen ZH-16 Closed-Loop Renders

Closed-Loop Benchmark Table (Unseen 16 EN + 16 ZH)

Operating Point EN Top-1 EN Top-5 EN Cos (vs Rand) ZH Top-1 ZH Top-5 ZH Cos (vs Rand) Natural Families Scenic Pass
Euler 12-step, CFG 3.5 (Default) 100.0% 100.0% 0.1219 (0.0590) 75.0% 100.0% 0.0957 (0.0415) 5 / 5 81.25%
Heun 8-step, CFG 3.5 87.5% 100.0% 0.1254 (0.0606) 81.25% 100.0% 0.0970 (0.0428) 5 / 5 81.25%
Heun 8-step, CFG 4.0 100.0% 100.0% 0.1224 (0.0578) 68.75% 100.0% 0.0946 (0.0441) 5 / 5 81.25%
Euler 12-step, CFG 4.0 87.5% 100.0% 0.1231 (0.0566) 68.75% 100.0% 0.0963 (0.0430) 5 / 5 84.38%
Random Scenic Baseline 6.25% 31.25% 0.0590 6.25% 31.25% 0.0415 — —

Architecture & Key Technical Ideas

  1. 48-Dimensional 5-Family 3D SDF Fractal Genome (mandelworld_spec.json):
    • [0:5] Fractal family logits (Mandelbulb, Mandelbox, KIFS Cathedral, Kleinian Cavern, Hybrid Reef)
    • [5:17] Family-specific 3D fractal geometry parameters
    • [17:26] Surface-safe 3D camera framing (with deterministic analytical SDF clearance push-out)
    • [26:38] IQ cosine orbit-trap albedo palette, roughness & emissive glow
    • [38:48] Sun elevation/azimuth/color, sky zenith/horizon, and volumetric fog density
  2. Semantic Group-Token DiT Flow Network (13,882,224 params):
    • Projects the 48 genome coordinates into 6 semantic tokens (family, geom_a, geom_b, camera, material, atmosphere), processed by 6 AdaLN-Zero + SwiGLU + RMSNorm Transformer blocks (d_model=384, heads=6, ffn=1024) conditioned on Fourier time embeddings + L2-normalized 768-dim SigLIP-2 embeddings.
  3. Ridge Modality Bridge + Bilingual Concept Mixing:
    • A closed-form Ridge regression matrix W_img2txt (768×768) bridges SigLIP-2 image embeddings onto the bilingual text hypersphere (0.177 → 0.987 mean cosine).
    • Training mixes direct Top-8 EN concept embeddings (35%), direct Top-8 ZH concept embeddings (35%), Ridge-bridged image embeddings (20%), and CFG null dropout (10%) with dimension-invariant spherical noise (E[||ε||] ≈ 0.18 / 0.24), eliminating the vision-language modality gap.
  4. Bit-for-Bit Parity Across PyTorch, Fused CUDA, and Browser WebGL2:
    • Custom fused CUDA raymarcher matches reference PyTorch to 5.96e-8 max RGB error (1 ULP of FP32) at ~205 kept/s on a single NVIDIA L4.
    • Browser WebGL2 GLSL shader matches reference PyTorch to 2.19e-5 max abs error on live Chromium GPU rendering.

Exported Files & Verified ONNX Parity

File Size Purpose Parity vs FP32 PyTorch
mandelworld_15m_int8.onnx 14.35 MB Default browser ONNX (Weight-Only Per-Channel INT8, FP32 I/O) 0.999939 worst-row cosine
mandelworld_15m_fp16.onnx 27.84 MB Native FP16 ONNX (FP32 I/O) 0.999999 worst-row cosine
mandelworld_15m_weights.pt ~55 MB PyTorch EMA checkpoint + W_img2txt modality bridge Reference
preset_embeddings.json ~85 KB 32 pre-encoded EN+ZH prompt embeddings & genomes for instant browser startup Exact FP16
mandelworld_spec.json ~6 KB Canonical 48-dim parameter ranges & 5-family schema Shared contract
eval_metrics.json ~12 KB Full 12-point closed-loop sweep & ONNX parity audit Complete

For custom free-text EN+中文 prompts in the browser, the live Space pairs mandelworld_15m_int8.onnx with our vocab-pruned bilingual SigLIP-2 text encoder from dlwj/pixel32-bilingual/onnx/siglip2_enzh/.


Training Summary & Efficiency

  • Dataset: dlwj/mandelworld-dataset — 160,000 balanced scenic 3D fractals (32,000 per family) + 16,000 EN+ZH visual concepts (0.52 CU on NVIDIA L4).
  • Training: 40,000 steps, batch size 512 (20.48M world views), AdamW (lr=5e-4, cosine decay, 1k warmup, wd=0.02), EMA 0.999, BF16 on 1× NVIDIA L4 (32.4 min, 1.244 CU isolated).
  • License: Apache-2.0.
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for dlwj/mandelworld-15m

Quantized
(23)
this model

Dataset used to train dlwj/mandelworld-15m