Explore the research collection
3 entries · Follow this search
- 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
ReScraper: Unified Scraping and Cleaning of Web Data for Effective LLM Pretraining
Proposes ReScraper, a unified 0.6B-parameter language model that replaces the entire heuristic pretraining-corpus cleaning stack (HTML scraper + dozens of rule-based filters). ReScraper first extracts the main content from raw pages, then chooses among four operations: keep as extracted, edit out noisy lines/spans, delete entirely, or rewrite when poorly written but informative. Trained on supervised data curated from three teacher models. On the same crawled data pool, pretraining 400M, 1.4B, and 2.8B models on the curated data improves DCLM Core score by a relative 3.8-4.7% over the strongest baseline at each scale, including costly multi-agent curation. Each operation plays a distinct, complementary role; one-model extraction+cleaning beats a cascade of separate models; ReScraper concentrates edits on the pages that need them, raising poor-page quality while keeping corpus diversity.
- Paper
PithTrain: A Compact and Agent-Native MoE Training System
Defines agent-task efficiency (ATE) and ships PithTrain, an ~11K-line Python-native MoE stack (PP, FSDP DP, CP, EP, DualPipeV overlap, torch.compile, FP8) built on compactness, no implicit indirection, and in-repo agent skills. Matches or exceeds Megatron-LM tokens/s on GPT-OSS-20B, Qwen3-30B-A3B, and DeepSeek-V2-Lite on H100/B200 (e.g. 280.0K vs 264.1K tok/s on 4×8 H100 Qwen3-30B-A3B PP4/EP8). ATE-Bench (12 Q&A, 4 operate/profile, 4 new-feature ports) with Claude Opus 4.7: up to 62% fewer agent turns and 64% less active GPU time vs production frameworks on the hardest new-feature tasks. Code Apache-2.0 https://github.com/mlc-ai/pith-train.