Explore the research collection
12 entries · Follow this search
- Paper
System Optimizations for Cost-Efficient Agent Harnesses
Park, Yu, Zhou, Hong, Kim, Afifi, Wong, Stoica & Cheung (UC Berkeley; arXiv 2611.12122, Nov 9 2026, CC BY 4.0) split agent performance into its two levers and find they live in different places: task-execution ACCURACY depends mostly on the LLM, with harness-side variance (system prompts, tools) having minimal impact - but the same harness-side variance moves execution COST by up to 2.6x on the same model and task. So for cheaper agents you change the harness and keep the model. Analyzing cost-accumulation patterns across agent traces, they identify system-level opportunities to cut token use and LLM-call count without touching the model or accuracy - each technique reduces how much context a call re-reads or how many calls a task needs. To make the optimizations portable they built Agency, a harness INTERPOSITION platform: a layer between existing off-the-shelf harnesses (Claude Code, OpenAI Codex) and the model, exposing a unified abstraction so an optimization written once works across harnesses. Five proof-of-concept techniques implemented in Agency cut cost by up to 35% across real-world benchmarks on existing harnesses without compromising accuracy. Flags, as entered: abstract-level record at cataloging time - the 'up to 35%' is the best technique/benchmark combination, not an average; the five techniques' identities and per-technique costs live in the full text; results are on coding-agent harnesses and may not transfer to other agent shapes. Cross-references: the harness-design thread in the catalog and the harness throughline digest - this paper is the cost-side complement to the digest's behavior/monitorability operators: where the digest asks what a harness makes the model DO, this asks what the harness makes each step COST, and its answer (repeated context reads and extra calls dominate) is a systems checklist for any agent deployment, including the user's own agent app.
- Paper
Reducing Logprob Without Causal Verification: Diagnosing SAE-Based PII Suppression in LLMs
Shows SAE-based PII-suppression interventions judged by logprob reduction can't be distinguished from a direction-agnostic magnitude artifact without causal verification (AACL-IJCNLP Findings 2026).
- 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
Beyond Parameters: Exploring Virtual Logic Depth for Scaling Laws
Proposes virtual logical depth (VLD) as a fourth scaling dimension alongside depth, width, and parameter count: VLD = effective algorithmic depth minus base layer count, increased by repeating whole transformer layers with tied weights inside the computation graph, during training and/or inference — not token-wise test-time scaling. Three reuse patterns (after Takase & Kiyono 2021): sequence (adjacent layers share parameters in uniform blocks), cycle (a block of layers repeated), and inverse cycle (the block repeated in reverse order, motivated by larger gradient norms in higher layers). Repetition factors ×1–×3, cycle up to ×5. Two controlled measurements. (1) Knowledge capacity, operationalized Allen-Zhu & Li-style as absorbed entropy ΔH: train a model to memorize a 640k-token IID random sequence over a 50,257-token vocabulary (~15.6 bits/token, sized to the ~2 bits/parameter estimate) and measure the entropy reduction of its softmax outputs on the training sequence. Across 4-layer GPT-2 models of 5M/10M/15M/20M parameters, capacity grows with parameter count; at fixed parameters (5M and 20M tested), absorbed entropy stays nearly unchanged across all three patterns and factors ×1–×3 (reported in Fig. 4, graphically). (2) Reasoning, measured on synthetic iGSM (500K problems, trained at ≤15 operations, exact-answer accuracy, greedy decoding): GPT-2 models of 4/8/12/16 layers (≈50M/100M/150M/200M) trained from scratch. Cycle is the strongest pattern: the 4-layer model's op15 accuracy rises 46.3% (base) → 62.1% (×2) → 70.7% (×5), and the gains grow under depth distribution shift (op20: 21.8→43.8; op21: 21.2→40.2). A 50M cycle ×2 model (effective depth 12) scores 62.05%, beating the native 12-layer 150M model (61.15%) — reasoning decoupled from parameter count. Real-world check: LLaMA-3.2-3B-Instruct with Cycle VLD inserted before LoRA fine-tuning (both arms from identical pretrained weights, same 2.3B-token multi-domain SFT corpus) improves over base on Math500 30.40→35.40, GPQA 29.80→32.32, AIME 3.33→6.67, HumanEval 37.79→39.52, MBPP 38.36→40.22. "Properly implemented" is load-bearing: pattern and placement matter — inverse cycle at ×1 underperforms the base model (4-layer op15 43.9 vs 46.3; 8-layer 53.3 vs 60.5), and in an 8-layer placement ablation, cycle reuse on later layers only (5–8) scores 64.2 vs 62.0 for all layers and 54.2 for early layers only (below the 60.5 no-VLD baseline). Scaling is also non-monotonic: cycle ×3 dips below ×2 on the 4-layer model (61.6 vs 62.1), and effective depth 32 underperforms depth 16 — the authors flag possible fixed points. No fitted scaling-law functional forms or exponents are given; the laws are qualitative (knowledge ∝ parameters; reasoning ↑ with VLD). Caveats: synthetic experiments cap at 200M from-scratch GPT-2 models; the real-world evidence is a single 3B model with LoRA-only fine-tuning and small absolute gains (AIME 3.33→6.67 is one additional problem in 30); knowledge capacity is a synthetic memorization probe, not natural knowledge; all reuse experiments train (or fine-tune) with the reuse graph in place — inference-only looping of a conventionally trained model is not tested; multi-seed statistics deferred to future work (authors' Appendix I).
- Paper
Vela: User Behavior as Supervision Sparks LLM Intelligence
User behavior as supervision: from anonymized behavior records of 100,000 users on a large social media platform, Vela builds 100,000 tasks across 91 real-world question templates. Each user's history (Views, Searches, Purchases, Posts, Follows, Dislikes) is split into a visible segment and a hidden future; Predictive questions (Objective candidate selection; Open-prediction free-form) are scored against ground truth extracted from the hidden future, while Rubric questions (Open summaries; Attribution explanations) are evaluated against task-specific rubrics, both by a larger scorer model (Qwen3.8-2.4T-A95B). Difficulty-based filtering (keep tasks with mean 4-shot score in [0.2, 0.8]) plus trajectory acceptance (best-of-4, must exceed the filtering mean) retains ~75,000 tasks forming Vela-Instruct, with a 9,375-sample self-generated Vela-RFT variant. Fine-tuning Qwen3.6-35B-A3B on Vela-Instruct: VelaBench (982 held-out tasks) 51.5 → 63.0 (+11.5); user-related OOD average 41.3 → 47.5 (+6.2), led by ProfileSummary +10.1 and AdRecommendation +11.2 while PurchaseIntent barely moves (+0.2); general OOD average 54.2 → 58.2 (+4.0), led by IFBench +6.7 and CL-bench Life +5.6, with no regressions on any of the five. More behavior data monotonically improves user-related performance (4.7K → 75K). GSPO reinforcement learning after Vela fine-tuning beats RL from the base model by 7.7 points on both VelaBench and ProfileSummary (using the 18.8K checkpoint). Limitations: proprietary single-platform data means no external reproduction is possible; the task templates, prompts, and code are promised but not released; rubric and scorer-based metrics use the authors' own larger sibling model; VelaBench is same-domain as training; no multi-platform generalization or deployment evidence; all results are the authors' own.
- Paper
Shared Circuits for Shared Grammar: Tracing Subject-Verb Agreement Across Languages
Asks when multilingual LLMs' internal mechanisms overlap cross-lingually, via present-tense subject-verb agreement (a morphosyntactic process weakly expressed in English). Uses activation patching and attention analysis across 29 languages and five open-source model families to identify the attention heads causally implicated in agreement and compare head-level signatures across languages. Languages with overt person/number inflection show more similar agreement circuitry than non-conjugating languages, with strongest sharing when the analysis isolates recovery of the inflectional contrast itself. English becomes more similar to conjugating languages precisely where overt agreement is required. Many implicated heads share attention patterns across languages, suggesting cross-lingual overlap reflects shared functional roles as well as shared localization. Conclusion: multilingual LLMs reuse partially shared computational structure for morphosyntactic agreement rather than fully separate language-specific solutions.
- Paper
Soohak: A Mathematician-Curated Benchmark for Evaluating Research-level Math Capabilities of LLMs
SOOHAK Challenge (340) and Refusal (99) plus companion SOOHAK-Mini (702), newly written by 105 mathematicians under NDA/IP transfer (~$550k MSIT Sovereign-AI budget). Challenge: Gemini-3-Pro / GPT-5 / Claude-Opus-4.5 Avg@3 30.4/26.4/10.4%; best open-weight Kimi-2.5 13.9%; 124 Challenge items unsolved by any of 11 models. Refusal (diagnose ill-posed prompts): no model >50% Avg@3, GLM-5 leads 49.5%. Mini: GPT-5 72.2%. Human baseline 5 teams / 25 solvers cover 50.6% of a 79-item slice; only Gemini-3-Pro exceeds combined humans. Public release planned late 2026; evals on request via guijin.son@snu.ac.kr. Project https://novamath.github.io.
- 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.
- Paper
OpenThoughts-Agent: Data Recipes for Agentic Models
Addresses the lack of public knowledge on data curation for agentic models via 100+ controlled ablations on a six-stage SFT curation pipeline plus agentic RL data studies. Fine-tuning Qwen3-32B on the resulting 100K-example OpenThoughts-Agent-v2 yields 44.8% average across seven agentic benchmarks (+3.9pp over the strongest open-data baseline), with strong data scaling properties.
- Model
Nemotron 3 Diarization (streaming + offline, up to 8 speakers)
NVIDIA open-weight speaker diarization model (HF nvidia/Nemotron-3-Diarization; released 2026-09-23; OpenMDW 1.1) that answers “who spoke when” for up to eight speakers in streaming and offline audio. Architecture is a 31-layer Transformer encoder with RoPE (~100M / ~99.2M params from ~397 MB float32 safetensors), 10 ms Mel features stacked 8× to an 80 ms encoder rate then Conv1D-upsampled to configurable 10 ms output frames; speaker channels are ordered by first arrival (Sortformer). Streaming uses Arrival-Order Speaker Cache (AOSC) + FIFO from Streaming Sortformer; one checkpoint covers recommended input-buffer latencies 0.32 / 0.64 / 1.04 / 30.4 s (theoretical floor 80 ms). Trained on ~10k h real conversations plus ~82.6k h FastMSS-simulated multi-talker mixtures (English/Mandarin/Indic/multilingual), initialized from NEST SSL, fine-tuned in two stages on 8×8 A100-80GB. Card DER (overlap on; collar 0 except CALLHOME 0.25 s) at 30.4 s vs diar_streaming_sortformer_4spk-v2.1: DIHARD III full 12.73 vs 19.09; CALLHOME-Part2 full 9.10 vs 10.32; AliMeeting Near/Far 6.40/10.47 vs 11.57/13.69; AMI MHM/SDM 9.25/11.14 vs 15.81/21.42; NOTSOFAR1 MHM/SC full 6.77/11.00 vs 21.77/30.49. At 1.04 s DIHARD full 13.18; RTFx on RTX PRO 5000 BF16 offline bs=1 eager/compiled 1340/4385. HF blog also reports #1 on VoiceArena Diarization-Bench at 14.72% DER and ~40% relative DER cut at 1.04 s. Runtimes: NeMo Speech (SortformerEncLabelModel), NeMo-Speech.cpp, and Transformers AutoModelForAudioFrameClassification.
- Paper
Not All Bits Are Equal: Scale-Dependent Memory Optimization Strategies for Reasoning Models
While 4-bit quantization has emerged as a memory-optimal choice for non-reasoning models and zero-shot tasks across scales, we show that this universal prescription fails for reasoning models, where the KV cache rather than model size can dominate memory. Through systematic experiments across 1,700 inference scenarios …
- Code
MolmoAct2: Action Reasoning Models for Real-world Deployment
Ai2 follow-on to MolmoAct. Molmo2-ER embodied-reasoning VLM plus robot state/action modeling and a flow-matching action expert. Releases foundation checkpoints (MolmoAct2, MolmoAct2-Think with depth-token reasoning, MolmoAct2-Pretrain discrete VLA, Molmo2-ER), finetunes for DROID Franka, bimanual YAM, SO-100/101, LIBERO, and LeRobot v3 datasets (SO-100/101, DROID, BC-Z, Bridge, RT-1, MolmoAct, plus Molmo2-ER spatial/3D data). Integrated into LeRobot (molmoact2-policy). FastAPI act servers for DROID and YAM. Paper arXiv 2605.02881. Apache-2.0; research/educational use per Ai2 Responsible Use Guidelines. Hardware-safety warnings on the README.