Explore the research collection
3 entries · Follow this search
- Paper
Hyperloop Transformers
Parameter-efficient looped architecture for edge/on-device memory limits. Splits the model into begin/middle/end blocks, loops only the middle 3× (~25%/50%/25% allocation). Twist: hyper-connections (mHC-style) applied only after each loop iteration — begin-block output copied into n=4 parallel residual streams, input-dependent transition matrices mix streams per loop, outputs averaged back. Simpler diagonal transition replaces mHC's Sinkhorn-Knopp matrix (PPL 14.40 vs 14.59); loop-position embedding acts as depth-wise-RNN input. Net cost over vanilla looped: 150–300K extra parameters; plain PyTorch, negligible slowdown (no custom kernel). Results (FineWeb-Edu, 2.5× Chinchilla tokens, SwiGLU+RoPE): 1B: PPL 9.65 (579.7M) vs vanilla Transformer 10.19 (990.5M), mHC 10.07, Looped 10.02; downstream 49.8% vs 48.0%/48.6%/49.2%. 2B: PPL 8.49 vs 8.60/8.57; downstream 54.6% vs 52.8%/53.7%. INT4 GPTQ: holds 9.81 vs 10.27/10.16/10.24 (hyper-connections partially compensate looped models' extra quantization sensitivity — authors' honest caveat: looped layers see "more" inputs, making them harder to quantize). Overtrained 240M (100B tokens, 400 tok/param): stays competitive (12.19 vs 12.15/12.16/12.56). Caveats: authors' own main limitation is scale — capped at ~2B on academic compute; the "match a Transformer with 50% fewer parameters" claim untested at larger scales; v3 abstract softened "outperform" → "perform well compared to" (report v3 wording). Diminishing returns past 3 loops; loop-level hyper-connections (14.40) beat every-layer (14.45); logit-lens shows stronger vocab alignment (early-exit potential, unexplored).
- Paper
Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling
Generalizes linear attention from a matrix state to a third-order tensor state: writes the triadic outer product of a key, a second key, and a value (k tensor k' tensor v) into S_t in R^{d x E x d}, and reads by contracting both key axes with two queries. An E-dimensional second key yields an E-fold state-size increase while adding only two projections (negligible parameter overhead; E=16 gives 16x capacity at 1.08x non-embedding params in MQAR tests). Compatible with data-dependent forgetting (per-slice decay gates), the delta rule applied jointly to both keys (removing the value stored under the key pair), and chunkwise-parallel training via custom CuTe kernels that tile the per-head state along the value axis (blocks of 32 columns, all E slices held in registers) so no SM holds the full tensor. Applied to Gated DeltaNet and scalar-gated linear attention, it substantially improves long-context LM and recall, outperforming alternatives that enlarge state via wider heads/values, more heads, or multiple value heads per key. A pretrained linear-attention model can be converted post hoc to its triadic form during long-context extension. Training overhead over vanilla GDN (custom kernels, H100, 1.3B, 2k-64k tokens): 9-11% (E=2), 14-15% (E=4), 28-30% (E=8); E=8 is 3% slower than a Transformer at 4k but faster beyond, reaching 5.1x faster at 64k.
- Paper
Beyond Binary Rewards: Training LMs to Reason About Their Uncertainty
Almost all successful RL for reasoning uses binary rewards that evaluate output correctness; because they do not penalize guessing or low-confidence outputs, they degrade calibration and increase hallucination in other domains. RLCR (Reinforcement Learning with Calibration Rewards) trains reasoning models to generate predictions and numerical confidence estimates after reasoning, optimizing a reward that augments a binary correctness score with a Brier score -- a scoring rule for confidence estimates that incentivizes calibrated prediction. The paper proves that this reward (or any bounded proper scoring rule) yields models that are both accurate and well-calibrated, shows across diverse datasets that RLCR substantially improves calibration with no loss in accuracy in-domain and out-of-domain (outperforming ordinary RL and post-hoc confidence classifiers), and demonstrates that verbalized confidence can be leveraged at test time via confidence-weighted scaling. Code, models, and info at rl-calibration.github.io.