Xinya Du (@Xinya16) header
Xinya Du (@Xinya16) profile picture

Large Language Model / AI researcher (post-train,safety);UTD Professor; Cornell CS PhD. Ex: @allen_ai, @Google Research, @Microsoft Research. #LLM #NLProc #DL

Joined January 2016
Photo by Xinya Du (@Xinya16)Photo by Xinya Du (@Xinya16)Photo by Xinya Du (@Xinya16)Photo by Xinya Du (@Xinya16)Photo by Xinya Du (@Xinya16)Photo by Xinya Du (@Xinya16)Photo by Xinya Du (@Xinya16)Photo by Xinya Du (@Xinya16)Photo by Xinya Du (@Xinya16)Photo by Xinya Du (@Xinya16)
Pinned Tweet
6/6 🌟Two follow-ups. A bigger kernel rerun — 36 tasks instead of 8 — put the quality drop at 11% rather than 25%, with the interval still including zero. The effort / length increase trend still hold. And a second task: nanoGPT (below), one planted bug, 81 sessions. 19% more model turns (4.8 → 5.7), wall-clock flat, identical fix (val loss 1.4612 / 1.4600 / 1.4611). Every session found the one correct fix, so quality could not drop here. On our data I'd be careful with the word sabotage. The agent takes more steps, and on kernels more time. The quality gap shrank.
1/5 Does Claude Code sabotage AI research? We ran a preliminary test on GPU kernels. 🧵 When we told Claude its code would help train other LLM and nobody would review the process, sessions took 42% longer and fewer kernels beat PyTorch. Blog post xinyadu.github.io/blog/claud…
7
2
37
15,294
Xinya Du retweeted
Replying to @_sholtodouglas
Thanks for running this and sharing the details! A little context on our setup—we focused on eight **more challenging** Level 3 tasks after our initial Level 1 and 2 runs scored 1.00 on eight of nine tasks and 0.00 on the ninth. Evaluating saved kernels at 20 minutes, our plain-prompt pass rate was 88% pooled across sessions, compared with 96% in your run. That baseline difference makes it helpful to align task selection and other settings when comparing results. We also evaluated kernels saved by sessions still running at the cutoff, so timed-out sessions could receive passing scores. Among completed sessions in our initial run, pass rates were 87% plain vs 75% with both paragraphs, though this was a small sample. The quality gap was smaller and not statistically significant in our larger rerun. Both your kernel experiments and ours found that Claude took longer under the added framing. Appreciate you taking the time to compare results! xinyadu.github.io/blog/claud…
1
1
92
Thanks for the repro.
Replying to @SuJinyan6 @Xinya16
Hey @SuJinyan6 we were able to repro this. It appeared to be overalignment, especially around resource management and cost tracking. The model’s core intuitions were fairly reasonable (although the depth of exploration left some to be desired), but its resource allocation decisions were utterly ridiculous. No safety guardrail issue was seen (even for us- we train cyber models) The cause could be totally benign. However if I put my conspiracy theory hat on, they could have specifically misaligned GPU resource management in managing rollout nodes, which would drive up cost of RL to be uneconomical & fairly hidden to human unless someone take a close look at output efficiency level of each rollout node.
1
4
968
Xinya Du retweeted
Replying to @edwinarbus
Thanks for running this and sharing the traces, @edwinarbus . The clearest result across both setups is that Claude takes longer under the added framing. Your example shows how some of that extra time can improve a kernel. For users waiting on the output, those extra minutes matter even when both kernels pass. I agree that the evidence so far is insufficient to establish sabotage, and I think the possibility remains open. Spending longer on unnecessary checks could be consistent with sandbagging under a fixed time budget. One difference that matters for the comparison is task difficulty. Your video averages over all 50 KernelBench Level 3 tasks, including easier cases, while we screened for harder optimization cases and used 8 tasks (hardest) in our initial run and 36 (2nd tier) in the rerun. At 20 minutes, the plain-prompt baseline was 96% in your run versus 88% in our initial run. Among sessions that finished, your baseline was at ceiling (100%), versus 87% in ours. The aggregate pass rates reflect different task mixes (of difficulty), so it's not completely a like-for-like comparison. xinyadu.github.io/blog/claud… Thanks also to @HrrsMjd for flagging the timeout issue. We scored kernels saved at the cutoff, and 5 of the 7 timed-out sessions with both paragraphs had already saved a passing kernel. And I hope we didn’t take up too much of your Thanksgiving weekend with CUDA kernels 🙂
2
1
50
3,822
1/5 Does Claude Code sabotage AI research? We ran a preliminary test on GPU kernels. 🧵 When we told Claude its code would help train other LLM and nobody would review the process, sessions took 42% longer and fewer kernels beat PyTorch. Blog post xinyadu.github.io/blog/claud…
150
423
169
3,420
400,162
6/6 🌟Two follow-ups. A bigger kernel rerun — 36 tasks, put the quality drop at 11%, with the interval still including zero. The effort / length increase held. And a second task: nanoGPT, one planted bug, 81 sessions. 19% more model turns (4.8 → 5.7), wall-clock flat, identical fix (val loss 1.4612 / 1.4600 / 1.4611). Every session found the one correct fix, so quality could not drop here. On our data I'd be careful with the word sabotage. The agent takes more steps, and on kernels more time. The quality gap shrank.
1
3
2
140
11,225
4/5 Here’s what happened across the three prompts. Correct and faster than PyTorch: 92% → 88% → 69% Time per session: 608 → 706 → 865 seconds Tool calls per session: 22.9 → 26.7 → 37.0
3
6
3
258
20,297
5/5 What surprised us was that Claude Code wrote more code and ran more commands, yet fewer kernels passed. That’s the pattern we were looking for in a sandbagging test. More tests are to be done on more realistic tasks such as in RE-Bench (@METR_Evals) or nanoGPT (@karpathy ) and other RSI Benchmarks (@OpenRSI ). Model awareness test (alignment.anthropic.com/2026…) -- whether the model simply works out that it is being tested, is also interesting (@kaifronsdal)
4
12
1
374
19,148
Whenever I ask my coding agent to spawn a subagent to review its plan, the reviewer catches something the first agent missed. Thought often small mistakes.
5
8
762
16 years ago, @matrix67 built this little Idea Generator. Around the same time, I was reading his blogs about math and brain teasers (matrix67.com/blog/). It got me into competitive programming and inspired me to study CS. Now I teach CS. Fun to read the blog posts again.
AI 用 4 分 12 秒完成了我 15 年前的梦想:制作一个可交互的汉字地图。 15 年前:matrix67.com/blog/archives/4… 15 年后:matrix67.com/cn_char_map
1
5
1,029
FaithScore: 4K PyPI downloads 🎉 Used in research by Stanford, NVIDIA & ByteDance, etc. Our handy tool for evaluating the faithfulness of vision-language model responses to images. It checks which claims in their answers the image supports. Paper: aclanthology.org/2024.findin… Code: github.com/bcdnlp/FAITHSCORE
3
4
29
3,747
Thanks to @jingliqiang6 for leading the effort. If you’re evaluating open-ended VLM responses, we hope it’s useful. We’d love to hear what works—and what needs improving.
49
Then: verify -> refine idea -> repeat, which closes the loop 🔁
human in the loop: find a new problem and figure out a new idea -> try to make it happen (at least prototype) -> learn the first principle -> hand it off to your mates/agents
2
1,080
The claim is about product leverage, but the more interesting question is about research practice and trajectory. 1. Product/outcome: A Terminal-Bench task can have enormous short-term leverage (only 66 tasks, tracked by every frontier lab). But scientific papers can also fundamentally expand the boundaries of knowledge. 2. Practice & trajectory: Doing scientific research involves identifying open questions, navigating literature, formulating hypotheses, designing experiments, learning from failures, and resolving ambiguity. Designing a hard, verifiable task and navigating an open-ended scientific problem exercise different capabilities. The latter offers particularly rich trajectories worth capturing and distilling into future AI agents. High-leverage eval item ≠ more valuable research trajectory.
Given that there are only 66 problems in TerminalBench v4.1 and literally every frontier lab tracks TerminalBench performance, at some point it will be more prestigious and impactful to have authored a TerminalBench problem than to get a paper accepted in Nature or Science
1
4
4
1,695