Explore the research collection
14 entries · Follow this search
- Paper
e-means: outperforming k-means (in one-tenth the epochs)
e-means (Bessa et al., Meta FAIR; arXiv 2611.09501, Nov 6 2026, CC BY 4.0) replaces Lloyd's k-means with an exponential-moving-average optimization procedure over mini-batch updates - essentially treating centroid estimation the way deep learning treats weights, powered by modern DL machinery - with dead-cluster revival as a key component. The practical crux is that its two would-be hyperparameters, EMA decay rate and batch size, are set by fitted SCALING LAWS (fit on ~75k runs, validated on 5k+ runs) that prescribe them from problem size and dataset, so the user chooses only k: a genuine drop-in replacement with no sweep. Results across 26 embedding datasets (100k to 10B points): e-means reaches a LOWER loss than Lloyd k-means at 25 epochs in just 1.4 to 2.6 epochs, frequently beating even k-means++ from a random initialization (the mini-batch stochasticity escapes local minima Lloyd gets stuck in); the epoch savings translate to 10-45x GPU wall-clock speedups over state-of-the-art k-means implementations (launch-thread chart on DEEP, 1M vectors, 16,384 clusters: 12.5x fewer epochs, 11.8x faster on 64-core CPU, 13.6x on one H100, against faiss k-means, SuperKMeans and Flash-KMeans). At the extreme end it partitions DINO10B - 10 billion DINO embeddings - into 16 million clusters in 2.5 epochs, below Lloyd's 25-epoch loss; paired with IVF it gains another order of magnitude at billion scale. Released in FAISS 1.16.0 (contrib/e_means) with figure-reproduction code, a project site with an interactive results map across the 26 datasets, and a browser playground. Flags, as entered: first-party (Meta FAIR) results at abstract/thread level at cataloging time; the speedup range is wide (10-45x) and hardware/implementation-dependent; the comparison currency is training loss (inertia) on embedding datasets, which is the operative metric for quantization and data-curation uses but says nothing directly about downstream task quality. Relevance: k-means is the workhorse under vector quantization, retrieval indexing and dataset curation/dedup pipelines, so a tuning-free 10x-faster drop-in inside FAISS is immediately usable infrastructure rather than a research curiosity.
- Post
Self-Improving Post-Thinking (SPoT)
Meta AI's RAM team argues a missing ingredient in LLMs is a built-in self-judging ability, and trains one in (blog post presenting Chapter 3 of the tech report 'Self-Improving Training & Thinking', arXiv 2601.21343). Post-thinking: after the usual pre-thinking trace and the answer, the model generates a critical assessment of its own just-produced text, ending in a structured verdict - Safe/Unsafe, Correct/Incorrect, or a confidence value in [0,1]. The recipe (SPoT) can be inserted at continual pretraining, mid-training, or post-training. Training: in the non-verifiable setting, RL on the continuations (online DPO) is combined with SFT distillation of a strong teacher judge's post-thoughts, with one crucial detail - post-thinking is supervised ONLY on pairs with contrasting verdicts, because as generations improve the verdict stream skews majority-label and indiscriminate training collapses the self-judge into always predicting it. In the verifiable setting the teacher is removed and the post-thought is trained by RL with a verdict-match reward (+1 if the verdict agrees with the known correctness, 0 if well-formed but wrong, -0.1 if no verdict is produced) alongside the answer's own correctness reward. Safety (continual pretraining on Llama 1.4B, built on Self-Improving Pretraining): greedy safety rises from 91.1% (SIP alone) to 94.6% with SPoT, and letting the model select among 8 candidates using its own verdicts (PoT@8) reaches 98.2% average safety - within 1.2 points of selection by the external GPT-OSS-120B oracle despite the policy being ~86x smaller; +21.3 points on average across five safety benchmarks versus no post-thinking, at no measured cost to generation quality; the self-judge reaches ~89% agreement with the teacher after ~100 steps. Reasoning (Llama 3.1 8B in a Thinking Mid-training pipeline: post-thinking SFT at mid-training, SFT at post-training with a rule-based verifier rewarding answers, then teacher-free post-thinking RL): learning to judge makes the model a better solver before any verdict is used - Avg@8 across five math/science benchmarks rises 34.1 -> 42.8 versus 38.7 for RL post-training without post-thinking; PoT@8 self-selection lifts 42.8 -> 48.2, already beating majority@8 (47.2), and verdict-weighted majority voting is best at 51.1 vs 49.4 for plain voting; the self-selection margin grows at every stage (2.1 -> 3.6 -> 5.4 points), largest under RL where the verdict is rewarded for agreeing with a verifier rather than imitating a teacher. Confidence (Qwen3 4B, post-thought rewarded by Brier score against true correctness): selective accuracy at a 0.5 abstention threshold reaches 82.76% vs 78.64% for prompted confidence and 65.03% with no confidence signal; self-judge AUROC improves 0.610 -> 0.836; about +5 points selective accuracy on out-of-distribution benchmarks at 90% coverage; and the confidence signal generalizes to flagging unanswerable questions it was never trained to detect. Flags, as entered: first-party Meta research blog - all numbers are the team's own, at blog level of detail (full experiments in the tech report's Chapter 3); scales are 1.4B-8B; no code release mentioned. Cross-references: the constructive counterpart to the catalog's monitorability thread - rather than monitoring reasoning from outside, the judgment is trained into the policy as a separate post-hoc, reward-trained channel; pairs with ID 1861 (covert underperformance invisible to per-trajectory monitors) and the harness digest's operator #9 (reward-description visibility); the verdict-collapse-to-majority-label failure and its contrasting-pairs fix are a general trap for self-judge training.
- Paper
Rethinking Activation Functions: Reducing Bias Can Improve Learning
ReLU, GELU, Swish, and Sigmoid all produce predominantly positive outputs, so their post-activation mean is nonzero — the paper names this the activation bias, b = E[phi(z)], and asks what it does to learning over the full course of training, not just at initialization. Intervention: subtract a fixed scalar b from the activation output (estimated at initialization: ReLU 0.230, GELU 0.115, Swish 0.077, Sigmoid 0.500), or, at scale, layerwise adaptive shifting (subtracting the running post-activation mean). Controlled evidence (deep residual teacher–student model with pre-norm MLP blocks, identical init/data/optimizer, only the shift differs): the unshifted student learns faster early but its residual-stream hidden state overshoots (~step 100), its parameter trajectory turns sharply within the initial-gradient plane, and its loss landscape is steeper (larger leading Hessian eigenvalues); the shifted student starts slower, moves in nearly orthogonal parameter directions, and ends at a lower final loss — despite the teacher itself using the unshifted activation. The bias component is not inert: in a VGG-style reconstruction task, decoding the bias component alone early in training recovers recognizable coarse image structure, color, and texture — the model transiently exploits information carried in the mean component, then relies on it less; shifting largely suppresses this. Theory: in the simplified settings studied, shifting by the activation mean minimizes or nearly minimizes Hessian / Gauss–Newton sharpness. Scale-up (adaptive shifting, everything else fixed): ViT-Base on ImageNet-1K (300 epochs) — shifted model trails early, finishes with HIGHER training loss but lower test loss and higher top-1 accuracy; DiT-B/2 on ImageNet-256 (400k steps) — comparable or lower training loss throughout and lower FID at every evaluated checkpoint; GPT-2 Small on OpenWebText (300k steps, nanoGPT setup) — consistent but small gain, ~0.01 absolute loss and ~1% relative perplexity. Appendix results extend to ViT-L and OLMo/HyenaDNA-style models, and document hidden-state overshoot in released Pythia-410M, OLMo-2-1B, and Amber-7B checkpoints.
- Tool
Dist-MoE: Speed-of-Light Distributed Mixture-of-Experts Forward and Backward Kernels
A library of fused communication-and-compute kernels for expert-parallel (EP) MoE on NVIDIA SM100+ (Blackwell) GPUs. The caller supplies top-k expert IDs and scores (routing itself is out of scope); a reusable context owns symmetric, peer-addressable HBM dispatch/combine buffers (NVLink) and executes dispatch → grouped expert GEMM (W13 → SwiGLU → W2) → combine as one ordered operation, with forward and backward (FPROP/DGRAD/WGRAD) kernels throughout. Precision/pipeline matrix: BF16 "standard" (training + inference); MXFP8 E4M3 in Staged (separate W13 and SwiGLU/W2 kernels) or Mega (both projections fused into one chunk-pipelined kernel with chunk-local readiness) pipelines (training + inference); NVFP4 in Staged or Mega, inference only, prepared weights. Kernels are CuTe/CUTLASS-DSL; validated stack is Linux ARM64, PyTorch 2.14 + CUDA 13.0, NCCL 2.30.7; no CPU fallback. Two mechanisms distinguish it from DeepEP (dispatch/combine comms only, no fused expert compute), MegaBlocks, DeepSeek's Mega MoE/DeepGEMM (fused forward only, no fused training backward), ByteDance Comet/Flux (no CUDA graphs on the dynamic-routing path, no packing policy), and Cursor's Mixture-of-Kittens (MoK): (1) dynamic activation packing — a planner packs saved forward state from all layers sharing an activation slot into one bounded buffer instead of reserving a per-layer budget, and it works during CUDA-graph replay; (2) dynamic, capacity-driven recompute — when the slot budget is exhausted the planner keeps mandatory layer inputs and rebuilds the remaining intermediates in backward, decided by device predicates so the host launches one fixed, graph-stable sequence (soft limit; scratch overflow without VMM host-backed overflow is a hard error). Also: full CUDA-graph support and non-strict make_fx (full torch.compile/strict export explicitly NOT supported), fused post-expert RMSNorm + score weighting + top-k reduction, clamped SwiGLU, in-place WGRAD accumulation into standard parameter.grad, and no shared-expert branch required — routed-only execution, -1 expert ID disables a route (MoK's reviewed API, by contrast, requires shared-expert weights). TorchTitan integration: a DistMoeTransform swaps stock RoutedExperts for the Dist-MoE backend in place (same GroupedLinear parameter layout, so FSDP/optimizer/checkpoint ownership is unchanged; requires mixed_precision_param="bfloat16"), plus a rank-wide DistMoeRuntime.Config (scratch/activation-slot capacity factors, VMM factor, pipeline-parallel slot policy); verified 671B DeepSeek-V3 recipes ship in torchtitan_recipes, MXFP8 Mega fused inference is wired for RL generators, and NVFP4 inference is in the library but not yet exposed by TorchTitan. Benchmarks — ALL Meta-reported, GB300 NVL72, no independent replication: "useful" throughput counts only real GEMM FLOPs (fwd = 6·T·K·D·F per GPU; bwd = 2× fwd), excluding padding and replay work, divided by whole-layer iteration time (median of five 30-iteration CUDA-graph windows, slowest rank; comm/quantization/padding time stays in the denominator). Headline MoK comparison (both implementations given one BF16 shared expert, D=7,168, 384 experts, top-6, 2,048 tokens/GPU, CUDA graphs on): up to 1.40× over MoK — specifically the synthetic ten-layer packing training workload under per-layer routing imbalance (MXFP8, EP64), where Dist-MoE packed all ten layers' saved state at capacity factor 2.5 with zero capacity-induced recompute (peak allocation 49.73 GiB vs MoK 48.37 GiB); Meta notes the experiment does not isolate how much of the gain is avoided recompute alone. MoK was chosen as baseline because Cursor's published single-layer NVL72 results lead the other OSS stacks (DeepEP+PyTorch, DeepEP+TransformerEngine, HybridEP+Megatron). Separate standalone suite (zero shared experts, one routed layer): 3.09 useful PFLOP/s per GPU NVFP4 Mega inference (EP16), 1.86 MXFP8 Staged training (EP64), 1.27 BF16 training (EP64) — vs dense datasheet peaks of 15/5/2.5 PFLOP/s respectively. Imbalance scaling is sub-linear: NVFP4 inference EP16, 8× received rows on the busiest GPU → 4.82× iteration time (~40% lower time per received row). Stated limitations: SM100+ only; no NVFP4 training, MXFP8 E5M2, MXFP4, A8W4, communication quantization, or expert borrowing in this release; the explainer itself discloses that EP32/EP64 training ran at different sites, some allocations shared an NVLink fabric with unconfirmed timing overlap (not uncontended-peak evidence), and HBM byte rates are modeled, not measured.
- Paper
JetSpec++: Foresight Parallel Drafting with Self Refinements
Algorithm-system co-design for speculative decoding: acceptance rate and drafting cost co-optimized by hiding the draft model's cost almost entirely. Three components: (1) Intra-block self refinement — the causal parallel draft model (built on the original JetSpec architecture) is trained to iteratively correct its own parallel predictions within a token block via Jacobi-style passes; each pass moves the draft distribution toward a more autoregressive factorization with better target alignment; between passes, a context refresh re-predicts the target hidden states and an anchor replacement swaps the first draft token that disagrees with the decoder. (2) Inter-block foresight drafting — drafting the next block begins before the current block is verified, by anticipating possible verification outcomes and predicting the corresponding target hidden states and anchor tokens. (3) Pipelined drafting and verification — the two stages overlap (draft model on a second GPU) so drafting's marginal wall-clock cost approaches zero; the freed draft-side time funds the Jacobi passes and context refreshes. Lossless: standard speculative-sampling rejection rule preserves the target model's output distribution exactly (stated in the paper, §2). Results (all first-party, batch-size-1 serving on NVIDIA GB200 with CUDA graphs): targets Qwen3-8B and Qwen3.8-27B (thinking disabled); baselines DFlash, DSpark, Domino, JetSpec, SSD (Qwen3-0.6B drafter) — all drafters trained on 800k target-regenerated sequences, block size 16, verification budgets 16/32. Seven benchmarks: GSM8K, MATH-500, AIME25, HumanEval, MBPP, LiveCodeBench, MT-Bench. Up to 7.45× wall-clock speedup over autoregressive decoding and 1.54× over DSpark (1.54× on GSM8K, 1.51× on MATH-500); up to 1,361 tokens/s for a single request; average acceptance length 8.94 across the seven benchmarks (vs 6.89 for DSpark at temp 0) — longest of all methods on every benchmark at temperatures 0 and 1; cuts per-round overhead beyond verification by up to 84% vs DSpark. Caveats (authors' framing preserved): the 7.45× is the max (budget-16, single-request GB200 serving); the headline comparisons are at verification budget 16; all figures vendor/first-party, no independent repro; draft models are target-specific (trained per target on its own outputs).
- Model
Muse Glimmer 30B: An On-Device Agentic Model
30B dense causal LM (~29.6B total: ~25.16B backbone, 52 layers, hidden 6656, GQA 32Q/2KV, SwiGLU; ~1.8B perception encoder; text+image in, text out; vocab 202,048; 128K+ context; sliding-window 2048 in [Local×3, Global] pattern; RoPE θ=500k on local layers only; gated attention). Built for autonomous agentic tasks on consumer hardware (32 GB VRAM envelope; dense chosen over MoE after architecture ladders showed 2–2.5× compute efficiency at fixed memory). Distillation recipe: co-distillation from Muse Spark (Meta frontier model) — top-256 teacher logits logged during the teacher's own pre-training, not from the final checkpoint; objective is KL-only for the first 95% of pre-training, then CE-only on ground truth for the final 5% to fix top-k truncation bias. Mid-training Phase 1 (domain infusion: synthetic reasoning traces + structured problem-solving, lower LR) and Phase 2 (32K→128K context, tool-use/agentic trajectory data, CE loss because teacher logits are unreliable under the distribution shift). Checkpoint averaging ("souping"): 84 checkpoints saved every 200 steps over the final 5%; final recipe = last checkpoint + 3 prior at 600-step spacing, uniform average — consistent perplexity gains vs the single final checkpoint. Post-training: SFT → on-policy distillation (student rollouts, teacher per-token distributional targets on visited prefixes; found to improve downstream RL vs SFT→RL directly) → multi-objective RL; configurable reasoning strength via system-prompt directive (low/medium/high/xhigh; high default for agentic). Quantization (all vendor-reported): 55.7 GB BF16 → <20 GB weights; EvoPress mixed-precision profile (51/130/237 units at Q4_K/Q5_K/Q6_K) selected for 32 GB deployments — 75.6% avg over 15 benches vs 75.7% BF16, essentially lossless; Q4KM variant for 24 GB (74.8%); activations stay BF16. DFlash speculative drafter (5-layer block-diffusion, block size 16, D-PACE objective, trained offline on on-policy rollouts) for decode speed — "practical speeds on a single RTX 5090" (vendor claim; no tok/s figure given). Benchmarks (Table 2, all vendor-reported internal runs, contamination-screened) vs Gemma4-31B-thinking and Qwen3.6-27B-thinking: leads on τ³-Banking 23.5, WildClawBench 47.6, GAIA2 43.3, SciCode 43.6, SWE-Bench Pro 51.2, MCPAtlas 75.5, DeepSearchQA 74.6, AIME 2026 94.7, Beam 128K 65.1, AA-LCR 80.0 — BUT loses to Qwen3.6-27B on GDPval-AA (953 vs 1141), OSWorld-Verified (65.9 vs 75.6), SWE-Bench Verified (76.0 vs 77.2), TerminalBench 2.1 (51.7 vs 60.7), SkillsBench (44.3 vs 46.6); loses to Gemma4-31B on GPQA Diamond and HLE. The "leads comparably-sized open models" claim is real on tool-use/multi-step planning but not across the board — label the exceptions. Trust: safety SFT + safety RL + agentic-risk mitigations (irreversible-action confirmation, prompt-injection resistance) trained into weights.
- Paper
Towards joint scaling laws with optimal batch size schedules
Derives optimal batch-size schedules from LR schedules in closed form under a convex loss model. Given an LR schedule, horizon, and token budget, the noise-term-minimizing schedule is B_t^optim = (K/2)·η_t/√(∫₀ᵀη_k dk · ∫_tᵀη_k dk), with K = B_static·T — depends only on LR schedule shape and budget, independent of peak LR, weight decay, model size, architecture, or optimizer. Cosine LR → BS grows then declines; WSD → grows then plateaus; linear → exactly flat at B_static; constant LR → grows like 1/√(T−t). η_t/B_t is NOT a sufficient statistic (matched trajectories favor realizing the schedule through LR over BS, +0.017–0.743 val loss), so BS scheduling is an independent dimension. Scaling experiments (Llama3 dense, Qwen3 MoE, 0.1B–7B, up to 1e21 FLOPs, Fineweb-edu; peak LR ∝ 1/√T, same LR/WD for both): +15% compute efficiency on Llama3 at 50 TPP, +6% on Qwen3 MoE at 100 TPP; Llama3-1B best-perplexity gains 0.8%/2.5%/14.6% for cosine/WSD/constant; lm-eval-harness wins on all 8 tasks for both families. Joint scaling laws: peak LR and WD ∝ 1/√T, scale-free BS schedule, O(1/√T) convergence; universal dynamics (supercollapse) preserved. Holds on AdamW and Muon-NSGD; ablations incl. VLM post-training (dynamic wins 7/9 benchmarks) and math fine-tuning. Caveats: the cosine-derived schedule decays to zero at the end (proven endpoint behavior — nonzero-terminal-slope schedules give constant terminal BS instead); no practical floor prescribed, and end-of-training tiny batches are systems-impractical; convex foundation is empirical-fit, not a theorem; token-based compute optimality, not wall-clock. Zero overhead — it's a schedule-shape recipe, no extra tuning.
- Paper
Co-Evolving Acting and Forecasting for Language Agents
CoPE adds one multi-step action-forecasting loss on top of GRPO for sample-efficient RL of long-horizon language agents. Standard agentic RL learns only from a terminal scalar reward; value targets label every step with the same outcome, and observation targets (HTML pages, terminal logs) are noisy, one-step, and waste loss on irrelevant tokens. CoPE's third kind of target: on successful on-policy trajectories, the shared policy backbone learns to predict the action chunk a_{t:t+K} from each history (population optimum: the hindsight distribution Pr(a|h, success) — success is a selection condition, not a per-step label). Each action is thus supervised both where it is taken and when forecast from the K preceding histories, forming an implicit temporal ensemble absorbed into the policy; acting and forecasting co-evolve. Inference still acts one step at a time — zero overhead. On five benchmarks (ALFWorld, ScienceWorld, WebShop, τ²-bench, AppWorld): ALFWorld +5.0pp over GRPO, WebShop success 64.5→77.0, ScienceWorld 64.5→72.5 (best of all RL baselines including ECHO and RWML), τ²-bench 27.5→28.7 (Retail 17.5→29.4, with an honestly reported Airline drop 26.2→16.2), AppWorld 41.67→55.36 (normal) / 18.71→22.54 (challenge). Sample efficiency: 2.0× vs GRPO and 1.7–1.9× vs ECHO on ScienceWorld; 1.6× vs GRPO on AppWorld. Cost: +11% per-step training compute, −9% end-to-end step time; no separate model, no pretraining, no inference overhead. Ablations: K=2 best (all K≥1 beat GRPO), λ=10⁻², gains hold on Qwen3-8B, group normalization stabilizes training. Explicit-ensembling control (separate LoRA forecaster reranking 8 candidates) improves GRPO but adds nothing to CoPE, supporting the implicit-ensembling claim. Plain success-filtered BC on successful rollouts hurts (−7.5pp) — multi-step forecasting is the crucial ingredient. Limitations: outcome-conditioned imitation over-represents easy tasks; the Airline failure shows refusal tasks bleeding into action tasks. Code MIT at github.com/ulab-uiuc/CoPE (AgentGym-RL/verl stack).
- Paper
Learning What to Investigate Next: Meta-Reasoning for Long-Horizon Research Agents
Long-horizon research agents must decide both how to investigate and what to investigate next, but allocation decisions are sparse in long traces and their consequences emerge several investigations later. MIRA (Meta-reasoning for Iterative Research Agents) makes those decisions explicit: an outer-loop meta-reasoner curates context from a persistent Git-based research record and writes a work order (objective, proposed approach, success criteria) or ends the episode; a fresh inner-loop executor carries out each work order, so every investigation — however long — is one meta-reasoning transition. The decision boundaries also give natural credit-assignment units: a generative critic forecasts expected remaining return from the curated observation using the LM's native next-token distribution, and MIRA-AC jointly trains actor and critic in one model, propagating a single decision-level advantage to the tokens of the decision response while masking the longer executor trace, using buffered single-rollout async optimization. Without policy training, MIRA raises GPT-5.5's IMOProofBench Advanced score 67.1% → 100% (all 30 problems in each of 3 trials) and achieves the lowest proxy and gold loss in matched 24h/48h neural-architecture hill-climbing campaigns (per-cell residual-write gates on RMT; signed attention + leaky recurrent update on Loop Transformer), revisiting proof directions more often than baselines (strategic inertia 0.772 vs 0.958 direct). The generative decision-level critic beats token-level alternatives by 0.110 RMSE, and cross-environment LOO pretraining improves forecasting and adaptation (−0.053 RMSE after 5 target episodes). Trained on the model's own proxy hill-climbing signals, MIRA-AC improves gold performance across four autoresearch environments (symbolic regression, physics discovery, HillClimbBench-CPU, BNLearn causal discovery), with the cross-environment policy transferring to BNLearn held out from actor training; only 25.8% of output tokens (the decision responses) receive actor loss.
- Paper
Hybrid Reasoning Agents
HybridAgent is an LLM agent that dynamically navigates between latent reasoning and text-based interaction within a single unified generation process, combining efficient latent "inner thinking" with text-based tool calls and external inspection. The core mechanism is HybridLink, a lightweight residual adapter mapping last-layer hidden states back into the input embedding space (e_{t+1} = h_t + W2·GELU(W1·h_t), ~10M params at 4B), enabling sequence-wise recurrence in latent mode without representation mismatch. Mode transitions: text mode emits a <latent> anchor token to enter latent mode; latent mode exits when the HybridLink-projected state nearest-matches a </latent> anchor; span lengths emerge adaptively. Latent thoughts remain interpretable: each latent step maps to its nearest token embedding, recovering readable pseudo-text. Multi-turn generation runs over a continuous working memory (KV entries from text, latent thoughts, and tool observations), losslessly preserving hybrid context across turns. Post-training: HybridSFT (format activation, HybridLink activation with cos+MSE regression, then self-conditioned two-pass training with joint CE at text and regression at latent positions, closing the train-inference mismatch) stabilizes tool-integrated hybrid generation; HybridRL scales reasoning via a hybrid policy factorization (policy likelihoods only over sampled text positions, since latents are deterministic given the backbone and fixed HybridLink) with exact rollout replay, rewarding correctness, format, and multi-tool use — learning when to think in latent space vs act through text. Built on Qwen3-Base at 4B/8B/14B and evaluated on 11 benchmarks (math, science, medicine, search, agentic reasoning) against text-based, latent, and frontier-agent baselines: HybridAgent improves performance by 10.4% on average at the RL stage (18.5% at SFT stage; 14B beats the strongest agentic baseline by 17.4%), with 35.5–54.7% token reduction, 1.8–2.6× faster inference, and 2.7–3.7× cost savings. Tool use stays reliable (higher valid call rates than GRPO, 99.7% execution success) and the exposed text trace remains monitorable/debuggable (first-error localization 98–99%), exposing 43–49% fewer text tokens while carrying 26–28% more key reasoning steps per 100 visible tokens. Code, models, and training data are public: github.com/togethercomputer/HybridAgent (MIT) with HybridAgent-8B-Agentic and -14B-Agentic checkpoints plus HybridSFT-v1/v2 and HybridRL datasets on Hugging Face.
- Paper
Memory Mosaics at scale
Memory Mosaics (Zhang et al., 2025) replace transformer attention blocks with networks of associative memories: each unit stores key-value pairs (keys encode the recent past, values the near future) and retrieves via Gaussian kernel regression (fuzzy, soft retrieval), using L2-normalized keys, a symmetric key/query kernel, and no explicit position encoding. Memory Mosaics v2 scales this to 10B size (llama-8B scale) trained on 1T real-world tokens, adding three modifications: adaptive kernel bandwidth scheduled with memory size, a gated time-variant key feature extractor, and a 3-level memory design (short-term, long-term, persistent). The paper evaluates across three dimensions. Memory mosaics v2 only MATCH transformers on training-knowledge storage (first dimension) but significantly outperform them on new-knowledge storage and in-context learning (second and third dimensions): on new-knowledge storage, a 1T-token MM v2 beats a 1T-token transformer by 12.3% (53.4% vs 41.1%), and an 8x-data transformer (8T tokens) still lags by 6.5% (46.9% vs 53.4%); on anonymous-label in-context learning, the 8T transformer lags by a large margin, while on easier semantic-label ICL the 8T transformer matches MM v2. The paper frames this as 'predictive disentanglement' — compositional, in-context behavior achieved in a comparatively transparent way versus transformers. Code: github.com/facebookresearch/MemoryMosaics. Paper is CC BY-NC-ND 4.0 (non-commercial, no-derivatives).
- Code
facebookresearch/RLCD (official reproduction code)
Official code for arXiv 2307.12950: simulate preference data (rlcd / rlaif / context distillation / rlcd_rescore variants), train reward model, PPO, generate evals. Built around LLaMA-7B alignment; data gen supports larger LLaMA. Harmless/helpful prompts from Anthropic hh-rlhf; outline prompts omitted for legal reasons.
- Dataset
MetaMathQA
SFT of open-source LLMs on forward/backward/rephrased GSM8K and MATH-train questions
- Collection
ParlAI Projects
The ParlAI Projects page lists research projects undertaken within the ParlAI framework, an open-source Python platform by Facebook AI Research for dialog research that unifies 100+ popular dialogue datasets (PersonaChat, DailyDialog, Wizard of Wikipedia, Empathetic Dialogues, SQuAD, MS MARCO, HotpotQA, Ubuntu Dialogue, OpenSubtitles, VQA, etc.) under a single API. The framework provides reference models (retrieval baselines to Transformers), a pretrained model zoo, Amazon Mechanical Turk integration for data collection/human evaluation, and Facebook Messenger integration, with projects including LIGHT (a large-scale fantasy text-adventure game research platform for grounded dialogue).