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
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…
6
2
31
10,905
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
34
2,188
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…
134
380
153
3,145
348,119
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
1
1
126
9,405
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
5
2
240
17,958
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
10
1
353
16,683
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
7
680
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
943
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
5
29
3,714
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.
48
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,061
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
5
4
1,679
I use Github,Overleaf and Google Docs as shared workspaces for ChatGPT, Claude, Codex, and Claude Code. One drafts; another leaves a critique directly in the document; the first revises. The document carries over. The conversation behind it—constraints, rejected ideas, earlier corrections—doesn’t. Would love official MCP connectors so these tools can review each other’s conversations. @OpenAI @AnthropicAI Anyone else working this way?
12
6
38
7,953
Research supporting the idea of using models to critique and evaluate each other—including our PRD work: • PRD: Peer Rank and Discussion Improve Large Language Model based Evaluations arxiv.org/abs/2307.02762 • Improving Factuality and Reasoning in Language Models through Multiagent Debate arxiv.org/abs/2305.14325 • Debating with More Persuasive LLMs Leads to More Truthful Answers arxiv.org/abs/2402.06782
193