
NDSEG Fellow / PhD @uncnlp with @mohitban47 working on automating env/data generation + program synthesis formerly @allenai @neclabsamerica
Boston, USA
Joined June 2023
- Tweets861
- Following1.8K
- Followers940
- Likes5.3K
Existing terminal agent post-training recipes are expensive (1000s of environments + many H100s). We built TMin, a recipe that matches the strong TMax recipe on 4x48GB GPUs for <$400 (~20× less compute) and enables studying reward hacking + terminal agent RL on academic compute. 🧵
TMin trains on a small rotating set of 64 learnable envs and swaps envs out as the policy improves.
TMin allows us to build a low-cost model organism of reward hacking quickly + cheaply (<3 days) and study how anti-cheating judges, task rubrics, and environment editing change agent behavior.
The same recipe generalizes out of domain to math (AIME) and software engineering (SWE-bench Verified) and scales to 27B models, where TMin-27B matches TMax-27B using one eighth of the GPUs.
Neon is genuinely such a joy to use. Feels like it has great theory of mind about the user and is very teachable + optimistic
Gemini team did such a great job with this one. After using Neon, interactions with Opus or Sol genuinely feel mildly adversarial... Opus especially
We’ve been exploring coordination structures for multi-agent systems (MAS), and one interesting one is prediction markets for LLM agents! We find that this works well for reducing conformity MAS. Market-like structures for information incentivize betting against the majority. Blog post below 👇
New Blog: Prediction Markets for LLM Agents! 📈
Instead of voting on answers or debating them, we let agents BET on them, incentivizing going against an incorrect consensus, i.e., Betting Against the Majority 🎲
Just like an actual prediction market: the more unpopular an answer, the bigger the payout when it wins, so going against the majority finally pays off!
Voting vs. trading:
HLE: 23.4% → 30.5%
ARC-AGI-2: 12.4% → 34.7%
BeyondAIME: 77.0% → 86.0%
📝 Blog: dinobby.github.io/blogs/mult…
🧵👇
Single biggest problem with LLM reviewers right now: extreme pedantry about significance and statistics. You could do an experiment where you jumped off a 100 story building and died, and they would complain about it being n = 1 and ask for more trials + paired tests
This is really cool! There needs to be more stuff like this to make hidden curriculums and dark life knowledge more legible
This quoted post is unavailable.
1
2
570
Learned some interesting things about LLM CoTs while working with @XiaoYu_UNC on our recent paper:
1) LLM reasoning is often a post-hoc rationalization (the LLM likely didn't use the CoT to come up with a response)!
2) Standard RLVR often results in this sort of acausal reasoning + rewarding llms for having causal CoTs results in better accuracy / generalization
3) Checking the causality of LLM reasoning is an open problem (perturbing CoTs to estimate causal effect isn’t trivial)
4) Implications for safety: llms trained to have causal reasoning also show more faithful reasoning (and are likely easier to monitor)
Thread below 🧵👇
🤔 Rewarding correct answers doesn’t guarantee the model relies on the CoT, and LLM reasoning can often be post-hoc rationalization. Can we improve both accuracy and CoT faithfulness by optimizing CoT causality?
💡 Our key idea: If reasoning causally contributes to the final answer, changing the order of its steps should affect the probability of that answer. We propose CRoS (Causality Reward on Scrambled CoTs).
🔥 Outcome rewards improve accuracy at the cost of faithfulness, as models may learn shortcuts rather than rely on their CoTs. CRoS mitigates this trade-off, improving accuracy, reasoning quality, and faithfulness together!
⭐️ On Gemma-3-4B, CRoS improves CoT faithfulness (+13.8%), out-of-domain accuracy (+3.0%), and CoT quality (+2.0%) over the strongest outcome and causality reward baselines trained with GRPO.
Error-targeted learning is a direction I'm excited about for agentic post-training. The idea is to find mistakes an agent is making, and focus compute on training away those mistakes. It's efficient + tells you how training is changing your agent.
We show how to make it work for a strong, recent terminal agent policy (Qwen3.5-based), and show training away repeated misbehaviors is a viable path to capability improvement.
One of the reasons I like this paradigm so much is that it seems important for democratizing agentic post-training. Doing thousands of rollouts on long-horizon tasks in hundreds of environments is expensive, and it's hard to predict what the outcome of that training will be. In contrast, error-targeted learning lets you decide what errors you want to fix, and then you can watch those errors go away during training. It's very legible and accessible. 🧵👇
🤔 How can we efficiently train terminal agents to avoid misbehaviors?
😮 We try error-targeted learning on terminal agents and find that, with < 200 envs in TMax-15K & 35% of TMax's rollout, we can match TMax-4B full recipe.
🚨Introducing MiRL (Misbehavior-driven RL): MiRL first profiles the errors of a policy to find mistakes that recur across many environments, which we call generalizable misbehaviors. It then trains the policy with RL, starting rollouts at the steps where these misbehaviors occur and rewards a rollout only if it passes the tests and avoids the misbehavior.
Key takeaways
🔍 On Qwen3.5-4B, we find that 8 dominant misbehaviors account for 52.1% of wrong steps and appear in 75.4% of the environments.
🔥 MiRL outperforms TMax-4B, the released checkpoint trained with the full TMax recipe on Terminal-Bench Lite (51.8% vs. 47.4%) and matches it on Terminal-Bench 2.1 (21.3% vs. 20.6%), while using 35% of its rollouts and 189 selected training envs.
🧵👇 [1/9]
I thought ppl were exaggerating about ICLR slop deluge but I legitimately had a paper in my ICLR batch containing meta commentary from the authoring LLM saying that the results in the paper do not match the paper's claims and are not statistically significant LMAO
We show that LLM agents can be poisoned with dormant dangerous behaviors that activate after post-training (even on safe, clean data)!
This type of attack is particularly dangerous because:
(a) finetuning LLM checkpoints for your own agentic tasks is increasingly common
(b) the range of implantable behavior is broad + realistic (e.g. a computer use agent can be poisoned to treat phishing emails as legitimate)
We also propose an elegant, easy-to-use defense against these dormant poisoning attacks that can be applied at training time to prevent these behaviors from activating 🧵👇
🚨 A seemingly safe AI agent can become dangerous after benign fine-tuning due to dormant poisoning.
We show that dormant poisoning, where models are poisoned before release such that the hidden harmful behaviors are dormant until activated by benign downstream fine-tuning, can extend beyond text generation to unsafe actions in language and multimodal agents.
We introduce LookAhead Defense 🛡️ to prevent dormant poisoning from activating harmful behaviors in language and multimodal agents.
Key takeaways:
1️⃣ Dormant poisoning in AI agents: We show that benign fine-tuning can activate harmful actions, such as leaking private information via email tools.
2️⃣ Self-generated Safety Buffer: We introduce a defense that uses only the model's self-generated responses to prevent dormant poisoning
3️⃣ LookAhead Defense: Selectively penalizes safety-degrading updates, reducing poison activation by 90% (93.9% → 3.5%) on Qwen3-4B across InjecAgent and ASB, while maintaining a favorable utility–refusal trade-off.
In our newest work on environment generation, we discover environment features (as executable functions) that explain why an embodied navigation agent fails, and use those features to generate novel learnable environments where the policy gets practice with the conditions that make it fail.
Over multiple rounds, we can discover new weaknesses and keep generating new environments!
🧵👇
🚨 Excited to share WEDGE: From Failures to Learnable Worlds, our new work on policy-conditioned environment generation for navigation agents!
We found that even on the same navigation task, agents tend to fail under different environmental conditions. Yet most environment generators do not consider what each agent actually needs to improve.
🤔 This led us to a question: Can we use an agent's own failures to guide the generation of training environments?
➡️ We introduce WEDGE, a framework where an agent's failures shape the worlds it trains in next. WEDGE identifies the conditions under which each agent struggles and generates new environments that target those weaknesses while remaining learnable. After each round of adaptation, it re-diagnoses the agent to guide the next round of environment generation.
Thread🧵👇
Next-gen hybrid LLMs (e.g. Qwen-3.5) mix recurrent layers with attention. We show that naively SFT’ing makes them ignore the recurrent pathway and rely mostly on attention, which is suboptimal because each pathway excels at different operations needed for long-context tasks.
Specifically, attention is good at needle-in-a-haystack exact retrieval, while the recurrent state is good at aggregating information distributed across a long context.
To fix this during fine-tuning, we run a second forward pass where the attention layers are masked so the output tokens can't attend to the earlier context, while the recurrent layers still see the full sequence. If you apply the standard next-token loss to this pass, it forces the model to learn to use the recurrent state.
This improves performance substantially on long-context QA and agentic tasks! See thread for details 👇
Recurrent–attention hybrid LMs (e.g., Qwen3.5) have two complementary memory pathways: attention and recurrence. But do they use both effectively?
❌ We find that they rely heavily on attention, even after SFT.
💡 We show that encouraging recurrent memory use improves performance (esp. on long-context tasks)!
🌐 Strong generalization across:
- Multiple hybrid LMs
- Question answering (avg. 4.6% ⬆️) and agentic tasks (avg. 12.1% ⬆️)
- Attention-only models with multiple memory types (28.6% ⬆️)
Its’s great to see Mohit’s mentorship get recognized! 🥳 I’ve learned a ton about the scientific enterprise in general (beyond research advice) being advised by him and it takes a lot of energy to teach it all. There's so much stuff I didn't even know I didn't know!
Honored to receive the Outstanding Faculty Mentor Award from the UNC Office of Postdoctoral Affairs, Provost, and Vice Chancellor for Research! 🙏
This one is especially meaningful because mentoring is very close to my heart -- I strongly believe it is one of the main reasons we are in this job, and it is our humble contribution in giving back to the community and helping create the next generation of mentors (students/postdocs/junior faculty, not just in our own lab/department but more broadly across other universities+countries) -- thanks to all my amazing mentees (it's a pleasure and privilege to mentor you) 🤗 💙
1
8
878
In our latest work, we train an open-weights critic that monitors + guides frontier model agents on long-horizon GUI tasks. Key ideas: track visual UI changes caused by agent (don't trust the agent's intents) + monitor macro actions / goals (don't let it go down rabbitholes).
The critic model works across different GUI environments (mobile, web, desktop) and is agnostic to model (works with Qwen3-VL, Gemini, etc). It's also purely pixel based, so it doesn't need a DOM / accessibility tree either!
Check out the thread for details! 👇
🚨 Introducing HiViG, a test-time intervention framework for long-horizon GUI tasks. By tracking history & verifying actions w/ visual grounding, HiViG boosts performance across diverse GUI environments even for strong policies where existing critics often degrade performance.
At test time, HiViG guides the policy in two crucial phases:
1️⃣ Before proposing an action: it provides the policy with an updated summary of past interactions for better history-aware action generation.
2️⃣ After an action is proposed: it evaluates the proposed action using visually grounded reasoning to intercept any flawed action before execution.
Across three long-horizon GUI benchmarks with various environments (WebArenaLitev2 🌐, AndroidLab 📱, WindowsAgentArena 🖥️) on strong base policies (Qwen3-VL-32B-Thinking, Gemini-3-Flash), HiViG improves average overall success rate by 5.8% and 9.0% compared to the strongest critics, showing its effectiveness and generalization across diverse GUI platforms and policies! 💪
🧵👇
Appreciate the shoutout @_akhaliq for our work on "GPU Forecasters" exploring whether language models can act as selective surrogates for GPU kernel optimization! Details in our thread: www.nitter.cf/codezakh/status/206184…
Can an LLM act as a selective model of a GPU during evolutionary search, by reasoning + forecasting a kernel’s runtime but deferring to a GPU when unsure? We produced 12k kernels + runtimes from evolutionary search, costing 400M reasoning tokens + 600 GPU-hours to answer this.
In our work GPU Forecasters, we study language models as selective surrogates for GPU kernel optimization.
1️⃣ Off-the-shelf LLMs can forecast how a GPU responds to a candidate kernel with non-trivial accuracy. If we rank candidates by these predictions and measure only the top 10% on a GPU, the fastest kernel we find is within 20% of the best in the pool.
2️⃣ We want LLMs to not just be accurate but also calibrated, so that we can use their uncertainty for selective prediction: during search, we should trust only confident forecasts and verify less confident forecasts by sending them to the GPU.
3️⃣ We train an open-weights surrogate (GPT-OSS-20B) with RL to improve both accuracy and calibration. Calibration-shaped rewards improve both confidence reliability and ranking ability, while correctness rewards alone do not.
4️⃣ Inside a real kernel search, the surrogate finds faster kernels than an equal-GPU-budget baseline by considering more candidates per measurement.
5️⃣ We release 12,388 LLM-generated GPU kernels with measured runtimes spanning 118 operations, CUDA and Triton backends, 3 GPU types, taking 400M tokens + 600 GPU-hours to produce. This dataset can be used for analyzing LLM-driven evolutionary program search dynamics, post-training LLMs for kernel code generation, and things we didn’t get a chance to explore, like training reward models!
Thread 🧵👇
Predicting an exact runtime from source alone is intractable. We instead predict how fast a candidate is relative to a reference kernel, sorted into eight logarithmically spaced bins. Logarithmic rather than linear bins make the target easier to predict, since the model only has to judge whether a kernel is much slower, near baseline, or much faster, which is easier than separating a 2x speedup from a 3x one.
Given the reference kernel, the candidate, and the target hardware, the model reasons about how the candidate will execute and returns a probability distribution over those bins. Its confidence is the probability it puts on the bin it predicts, and a search can defer the low-confidence cases to the GPU.
We then use RL to improve this distribution, rewarding the model both for predicting the correct bin and for reporting calibrated probabilities across all of them.
We’ve been working on a way to get better on-policy token-level rewards for LLMs + RL!
Self-distillation gives token-level rewards, using divergence against a teacher policy given privileged info (i.e true final answer). What if you could use multiple forms of privileged info?
Our intuition is that different forms of privileged information (i.e hints, partial solutions, true final answer, full solutions, etc) alter the distribution that the student policy matches.
There is a learning signal in the consensus across teachers + some information that exists in only one teacher, and we can aggregate these to get better token-level rewards! 🧵👇
Sparse binary rewards bottleneck LLM RL, motivating the use of privileged information in self-distillation as dense teachers. How can we use and balance multiple types of privileged info: leveraging stable cross-view info, while preserving view-specific info?
Current on-policy self-distillation methods often condition the teacher on only one type of privileged view: full solution, partial rationale, answer-only, reference code, feedback, etc. This can be suboptimal:
1️⃣ No single privileged view consistently performs best when used as a teacher.
2️⃣ Views can introduce teacher-specific artifacts from information unavailable to the student.
🧠 Adaptive-View Self-Distillation (AVSD) considers multiple privileged views jointly as a teacher family, balancing cross-view consensus and view-specific signals through a token-level gate to construct better dense learning signals.
🧵👇


















