Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

eelbaz/Recursive-Self-Improving-Loopers

Machine Learning

Edits loop-control weights in looped MoE transformers to stabilize multi-pass inference and self-improve without backprop.

167
18
Python
1 day old

What it does

rse_looper is a training recipe for looped Mixture-of-Experts transformers whose middle layers repeat several times per token. The authors report that forcing a default 3-pass model (Inkling-2-Mini, 26.4B total / 3.4B active) to 4 passes collapses accuracy on math and GSM8K to 3.1% with 95.3% repeat loops, and trace it to a sign reversal at the exit of the looped block (Layer 17) that weakens cross-pass memory gates. The package fixes this by editing only BF16/FP32 control tensors — memory gates, MoE routers, short convolutions and attention output projections — while leaving the 24.4B quantized experts untouched.

The pipeline has two stages: FP-Solve performs a closed-form null-space Cholesky solve with gradients disabled on unlabeled prompts, and a generation stage runs self-verified sampling with gated GSPO updates only on the control/routing tensors. The result is published as the Inkblot-2-mini checkpoint.

Quick start

Requires Python with PyTorch, and a GPU for the full pipeline. Load the published model with the custom class shipped by the project:

python3 -c '
import torch
from transformers import AutoTokenizer, Inkling2LoopForCausalLM
tok = AutoTokenizer.from_pretrained("Ex0bit/Inkblot-2-mini")
model = Inkling2LoopForCausalLM.from_pretrained("Ex0bit/Inkblot-2-mini", dtype=torch.bfloat16, device_map="auto")
'

Install and test the package from a checkout:

pip install -e ".[dev]"
pytest -W error -v
rse-looper --stage both --dry-run

The dry run verifies TF32, causal_conv1d and configuration. The full pipeline needs the base model and multiple GPUs:

rse-looper --stage both --base-model thinkingmachines/Inkling-2-Mini --gpus 0,1,2,3,4,5 --require-causal-conv1d

See the paper and web report for the method and figures.

Results and scope

The reported comparisons use fixed public slices (n=32 to n=300, greedy decoding) against the untouched default 3-pass base: DeepScaleR-Test 50.0% → 68.8% at 3 passes, GSM8K 93.8% → 96.1% at 4 passes, LiveCodeBench v6 34.4% → 40.6%, MMLU 82.5% → 83.5%, with small regressions on ARC-Challenge and mixed results on WinoGrande. An integrity audit records identical parameter counts and zero changed expert or vision weights.

Constraints

The recipe is tied to a specific 26.4B looped MoE architecture and its loop-control tensor layout, not a general fine-tuning library. The full pipeline assumes multiple GPUs, causal_conv1d, and access to the base model; single-GPU users can still load the published checkpoint. The repository carries no declared license. The authors state the results have not yet been independently reproduced.

HotRepo's take

The project entered HotRepo's new-project board on 2026-11-27, gaining 30 stars and 3 forks in a roughly one-hour window, with 131 stars total at that point. That is an early, short-window signal rather than an established trend, and no GitHub daily rank was recorded. The distinguishing technical claim — zero-backprop, label-free editing of loop-control weights with unchanged parameter counts — is backed by included benchmark JSON and an integrity audit, but the authors themselves flag the absence of third-party reproduction, so the headline gains should be read as reported results pending independent verification.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. PrimeIntellect-ai/prime-agentAn open-source coding and research agent with a persistent Python REPL, recursive subagents, and durable harness state for long-running work.Rust22,795
  2. ubc-vision/solv3rA pretrained multi-view 3D reconstruction model that solves camera poses and point maps from image or video sequences.Python158