Explore the research collection
5 entries · Follow this search
- Code
Hyper-Connection Factory
Open-source repo with unified implementations of 11 residual-connection variants for decoder LLMs (HC, mHC, Frac, DenseFormer, MUDDFormer, LAuReL, AttnRes, MHAR, DAR) behind a single interface on one shared transformer body — same attention/MLP, init, data, optimizer, schedule, so differences are due to wiring alone. Trains with one recipe from 38M to 1.2B params at ~20 tokens/param on FineWeb-Edu (8xH100; checkpoints, configs, sweep scripts, logs, plots all in repo). Key result: what survives scale is dynamic, input-dependent mixing — MUDDFormer best at every size (Δ val loss vs pre-norm: -0.112 S / -0.070 M / -0.071 L / -0.061 XL); mHC and dynamic HC shrink smoothly but stay positive; static HC's gain fades at M then recovers at L with depth. Gotchas: plain MUDDFormer diverges at 24 layers (fixed by PrePostDANorm, previously only in the paper's JAX code); small-scale rankings don't transfer (mHC looked worse than pre-norm on laptop but is among the best on GPU); fancy variants train at ~0.5x pre-norm throughput. Single seed at L/XL. Relevant to the user's LLM pretraining and Launch Helm work.
- Paper
Decoupling the Benefits of Subword Tokenization for Language Model Training via Byte-level Simulation
Trains a 1.7B LLaMA-3 byte LM on FineWeb-Edu UTF-8 and injects one subword effect at a time. Biggest gains: 4× isoFLOP sample throughput (chunk-4 embeddings) and subword boundary priors/inductive biases (end-boundaries leak future bytes; start-boundaries remain useful when removed at val). Embedding-table scaling, subword-distance RoPE, per-subword CE, and next-subword MTP are weak or harmful at this scale. Interventions often run 50k steps then revert. No official code on abs.
- Paper
Looped Diffusion Language Models
LoopMDM shares a small early-middle block (typically 2 layers) for S applications while keeping head/tail unshared; S is sampled uniformly in {1..S_max} at train time. Iso-parameter 170M DiT matches same-size MDM test NLL with up to 3.3x fewer training FLOPs on FineWeb-Edu/OWT/LM1B; GSM8K +8.5pp vs same-size MDM and beats a deeper 21-layer MDM at matched per-step FLOPs. Adaptive loop stopping (~5 vs 12 loops) keeps downstream acc. Attention analysis: looping raises mask-to-mask attention, using masked positions as a workspace (Sudoku under forced L2R order). No official code on abs.
- Dataset
FineWeb-Edu
Ungated Hugging Face FineWeb-Edu educational subset of FineWeb (same paper arXiv 2406.17557). Hub/datasets-server ~3.497B rows across default+per-dump configs / parquet ~10.36 TB / usedStorage ~6.19 TB. Card ~1.3T gpt2 tokens at educational threshold >=3 (FineWeb-Edu-score-2 is the separate 5.4T threshold-2 sibling). ODC-By 1.0 + Common Crawl ToU. Already deep-eval'd in datasets_local.
- Paper
The State-Prediction Separation Hypothesis
SPS inserts a dummy prediction token after every input so the input stream owns the persistent KV cache and the prediction stream emits the next token (plus a w=64 ephemeral prediction window). Pretraining 53M-1.678B on FineWeb-Edu: at 1.6B, matches a standard Transformer validation loss with 2.6x fewer tokens (pre-decay) and gains ~2-3 pp average zero-shot accuracy, with persistent KV ~1.01x Standard and decode throughput within 6-10%. 2x Memory and Delayed State ablations show extra compute/memory is not enough; gradient analysis routes future-loss onto the input stream. Code https://github.com/lil-lab/sps.