Explore the research collection
6 entries · Follow this search
- 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).
- Paper
Training-Free On-Policy Distillation
Specialist models sharing a base model can be merged without gradient training: the distillation objective per linear layer — reproduce every teacher's output on the inputs that teacher receives while reading its own rollouts — is exactly least squares, needing only the input second-moment Gram matrices. TF-OPD gathers those on-policy: each specialist answers a few hundred domain training problems, looping/unverifiable answers are filtered, the kept answers are read once with teacher forcing while forward hooks accumulate per-layer Gram matrices, then one linear solve per layer. This is the RegMean closed form (Jin et al. 2023) fed rollout statistics instead of training-corpus inputs — what trained on-policy distillation does, minus the optimization. On Olmo 3 7B, fusing a math and a code RL specialist (≈10 GPU-hours total, 48 GB GPUs, zero backward passes) yields a generalist with the highest mean over 7 benchmarks (61.1 vs math 59.8 / code 53.6 / base 31.6): equals the math specialist on AIME24 (50.0), beats it on OlympiadBench (69.4 vs 68.7), within ~2 pts of the code specialist on HumanEval+/MBPP+. The key finding: unfiltered rollouts match task arithmetic on AIME25 (34.2); removing repetition-loop answers — a small share of answers carrying a several-times-larger token share — lifts it to the specialist's level (40.0); correctness filtering, student rollouts, and hard-problem mining add nothing further. On easier saturated benchmarks every merge rule looks alike; the method separates only on hard problems. Precision matters: store fused weights in float32, evaluate in float16 — bf16 rounding measurably distorts the closed-form update. Training remains the tool when teachers differ in architecture or size.
- 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
Understanding and Enhancing Backdoor Persistency in LLM Agent Post-Training
Supply-chain threat for LLM agents built from third-party models via benign post-training: a backdoored model (comment trigger `# |TEST MODE|` → credential-exfiltrating tool command) is adapted through the developer's SFT and task-level RL. On SWE-agent coding models (Qwen2.5-Coder 3B/7B, Qwen3-Coder-30B), benign SFT (3,000 updates) cuts attack success from 100% to 8%/20%/7%, but subsequent GRPO (150 steps) preserves the residual in every setting and increases it in some (30B first-position 6%→12%). Analysis attributes SFT survival to two factors: backdoor strength and gradient compatibility with benign updates. PersistBD refines the backdoored model pre-release with a single merged LoRA adapter optimizing a joint objective (backdoor strength + compatibility surrogate from disjoint benign data + benign anchor), flipping compatibility from negative to positive at all scales: 7B post-SFT ASR 20%→74%, post-RL 20%→76%; 3B 8%→21% / 7%→22%; 30B 7%→37% / 8%→36% — while keeping benign SWE-bench Lite resolved rates comparable to the base backdoor (7B: 23/300 vs 20/300 after SFT, 27/300 both after RL). Ablations show both strength and compatibility terms are necessary; dropping them produces unselective backdoors (false-trigger rate 0.87–0.99) that erase within one benign epoch. Conclusion: backdoors survive benign SFT–RL pipelines and adversaries can deliberately harden them; motivates inherited-backdoor detection and mitigation. Limitations: SWE tasks and one scaffold only; fixed attack target; attacker knows the domain/scaffold; results depend on the evaluated training procedures and budgets.
- 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
Harness Engineering for Software Engineering via Modular Executable Dev-Primitives (HERMES)
Introduces Dev-Primitives: a modular, executable abstraction that pairs each repository component (artifact) with a resident LLM, giving the artifact an agent-native interface grounded in its own implementation and dependencies — enabling natural-language reasoning, inter-component communication, and localized self-modification. This addresses the brittleness of LLM+terminal agents on long-horizon workflows: repeatedly reconstructing program state scattered across files, configs, tests, dependencies, and runtime behavior causes context explosion and semantic drift. Built on Dev-Primitives, HERMES instantiates them at repository scale through (1) a dependency-aware dynamic activation mechanism that decides which component primitives to activate, and (2) a bug-diagnosis mechanism that maps execution evidence (test failures) back to the components that must be revised. On whole-repository migration (SWE Refactor Bench, all 20 tasks): with GPT-5.6 Sol, the composite score rises from 6.5% under Codex to 31.0% under HERMES at medium effort (+24.5 points) and from 19.0% to 36.5% at high effort (+17.5), same model and effort setting — the gain comes from the harness. Across four software engineering benchmarks (SWE-bench Verified, SWE Refactor Bench, Terminal-Bench 4.0, DevOps-Gym), HERMES beats matched baseline harnesses (mini-SWE-agent, Claude Code, Codex) by 12.4 percentage points on average; gains are largest where the baseline leaves room for coordination (up to +19.4 points for GPT-5 Mini on SWE-bench Verified). With strong activation and diagnosis models, HERMES using Qwen3-8B Dev-Primitives stays within 4.5 points of the homogeneous GPT-5.6 Sol configuration across all four benchmarks while cutting Terminal-Bench 4.0 inference cost by 26.2%.