Recurrent Diffusion Arithmetic: Model Checkpoints

This repository hosts the verified PyTorch (safetensors) checkpoints associated with the paper Recurrent Depth Versus Discrete Diffusion for Exact Modular Arithmetic, Long Carries, and Composed Elliptic-Curve Operations, covering width-extrapolating modular arithmetic (add_mod, sub_mod, dbl_add_mod), adversarial carry chains, and supplied forward Jacobian elliptic-curve composition.

Related Paper: Recurrent Depth Versus Discrete Diffusion for Exact Modular Arithmetic, Long Carries, and Composed Elliptic-Curve Operations
Code & Reproduction Suite: https://github.com/FloorIsGround/research-papers/tree/main/papers/recurrent-diffusion-arithmetic | Papers Collection: https://github.com/FloorIsGround/research-papers

Included Checkpoints

All models were trained strictly on prime-disjoint moduli of bit-width W in {8, 10, 12, 14, 16} (5,500 steps, batch_size=256, AdamW lr=8e-4, CUDA BF16) and selected strictly on validation primes (val12/val16).

Model ID Architecture Training Objective Seed Params Zero-Shot w=32 Zero-Shot 256b secp256k1 Adv w64_L48 (K=24, or K=4 non-looped) safetensors SHA-256
stage12_full_looped_carry Full_LoopedCarry diffusion_t2t 2026 3,649,664 100.0% (K=6) 59.2% (K=6) 48.4% d32032065296...
stage12_clamped_step_emb Ablation_ClampedStepEmb diffusion_t2t 2026 3,650,688 100.0% (K=6) 59.0% (K=6) 48.4% 4461c8d35b8d...
stage12_no_short_conv Ablation_NoShortConv diffusion_t2t 2026 3,841,856 100.0% (K=6) 43.0% (K=6) 94.9% 45d5d3c9bc7d...
stage12_non_looped Ablation_NonLooped diffusion_t2t 2026 7,982,912 100.0% (K=4) 53.3% (K=4) 48.4% (K=4) 0b911cab65c9...
matched_no_short_conv_diffusion_t2t_seed2026 Ablation_NoShortConv diffusion_t2t 2026 3,841,856 100.0% (K=6) 50.2% (K=6) 11.3% 774d631157dd...
matched_no_short_conv_diffusion_t2t_seed2027 Ablation_NoShortConv diffusion_t2t 2027 3,841,856 100.0% (K=6) 59.0% (K=6) 55.1% befb5206af63...
matched_no_short_conv_diffusion_t2t_seed2028 Ablation_NoShortConv diffusion_t2t 2028 3,841,856 99.8% (K=6) 36.1% (K=6) 48.4% 7733b1ae9267...
matched_no_short_conv_direct_sum_seed2026 Ablation_NoShortConv direct_sum 2026 3,841,856 100.0% (K=6) 56.6% (K=6) 48.4% 382fd31a991f...
matched_no_short_conv_direct_sum_seed2027 Ablation_NoShortConv direct_sum 2027 3,841,856 100.0% (K=6) 58.6% (K=6) 44.9% ccfbaf2340cc...
matched_no_short_conv_direct_sum_seed2028 Ablation_NoShortConv direct_sum 2028 3,841,856 100.0% (K=6) 46.9% (K=6) 34.8% 8b085a1f6876...
matched_no_short_conv_mask_only_seed2026 Ablation_NoShortConv mask_only 2026 3,841,856 96.5% (K=6) 28.7% (K=6) 14.5% f9a0bcf1990d...
matched_full_looped_carry_diffusion_t2t_seed2026 Full_LoopedCarry diffusion_t2t 2026 3,649,664 100.0% (K=6) 78.5% (K=6) 48.4% 834cb6a4a05a...
matched_full_looped_carry_diffusion_t2t_seed2027 Full_LoopedCarry diffusion_t2t 2027 3,649,664 100.0% (K=6) 46.7% (K=6) 48.4% b3ac744076e3...
matched_full_looped_carry_diffusion_t2t_seed2028 Full_LoopedCarry diffusion_t2t 2028 3,649,664 100.0% (K=6) 46.7% (K=6) 48.4% b7a8a92335de...
matched_full_looped_carry_direct_sum_seed2026 Full_LoopedCarry direct_sum 2026 3,649,664 100.0% (K=6) 33.0% (K=6) 48.4% 0148e9d6b72a...
matched_full_looped_carry_direct_sum_seed2027 Full_LoopedCarry direct_sum 2027 3,649,664 100.0% (K=6) 47.1% (K=6) 49.2% 24dabc0f2dca...
matched_full_looped_carry_direct_sum_seed2028 Full_LoopedCarry direct_sum 2028 3,649,664 100.0% (K=6) 46.7% (K=6) 48.4% 670630a2a43e...
matched_full_looped_carry_mask_only_seed2026 Full_LoopedCarry mask_only 2026 3,649,664 100.0% (K=6) 67.6% (K=6) 48.4% 5bd709687698...

Architecture & Objective Reference

  • Full_LoopedCarry (3,649,664 params): LoopedCarryDiffusion with Gated ShortConv (k=5) prelude + weight-tied recurrent core (GatedShortConvBlock + ALiBiAttentionBlock with directional LSB/MSB/global slopes), loop anchor residual, loop_noise_std=0.02, no step_emb.
  • Ablation_ClampedStepEmb (3,650,688 params): Same as Full_LoopedCarry with learnable 4-row clamped step_emb (min(step, 3)).
  • Ablation_NoShortConv (3,841,856 params): Pure directional-ALiBi attention throughout prelude and weight-tied recurrent core (use_short_conv=False).
  • Ablation_NonLooped (7,982,912 params): Unshared 4-core fixed-depth comparator (use_loop_sharing=False, K=4).
  • Objectives:
    • diffusion_t2t: Masked discrete diffusion (25% explicit all-mask + 75% t ~ U(0.05, 1.0)) combined with T2T visible-token self-correction (self_correct_prob=0.25) and loop deep supervision (0.3 intermediate + 0.7 final).
    • direct_sum: Strictly matched direct all-mask sum-bit cross-entropy control (always all-MASK input, supervising all W bits, bit-identical initial parameter digest and training batch stream per (architecture, seed)).
    • mask_only: Strictly matched masked diffusion without visible-token corruption (self_correct_prob=0.0).

Minimal Load & Inference Example

pip install -r requirements.txt
python example_inference.py --model-id stage12_full_looped_carry --num-loops 6

Pin a specific commit revision with --revision <COMMIT_SHA> for exact reproducibility.

Provenance

  • Original frozen Stage 1-2 checkpoints originate from baseline commit 54ae69f6597e47c746beab677618de7b84293531.
  • Full SHA-256 checksums for every .safetensors artifact, parameter tensor digest, and source .pt checkpoint are recorded in models_manifest.json and each models/<model_id>/config.json.
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

Collection including FloorIsAwake/recurrent-diffusion-arithmetic