Twitxy Saved

Xinyan Hu

Verified account This account is verified. Learn more

@xyVickyHu

PhD student @berkeley_ai / @AnthropicAI fellow / LLM safety, alignment & interpretability / worked on econ+ML theory / graduated from @pku1898
California, USA sites.google.com/view/xinyanhu/ Joined October 2022
700 Following 962 Followers 232 Posts

Latest posts 5

Pinned post

Xinyan Hu Verified account @xyVickyHu
Pretraining data comes from the open internet, where attackers can implant their data. Can 𝐩𝐨𝐒𝐬𝐨𝐧𝐞𝐝 𝐩𝐫𝐞𝐭𝐫𝐚𝐒𝐧𝐒𝐧𝐠 𝐝𝐚𝐭𝐚 π‘π‘œπ‘Ÿπ‘Ÿπ‘’π‘π‘‘ 𝐴𝐼 π‘Žπ‘”π‘’π‘›π‘‘π‘ , even after SFT, RL, and other safety training?

The answer is yes! By controlling even 𝟏/𝟐𝟎𝟎,𝟎𝟎𝟎 of the pretraining data, attackers can backdoor an agent to 𝑒π‘₯𝑒𝑐𝑒𝑑𝑒 π’‚π’“π’ƒπ’Šπ’•π’“π’‚π’“π’š π‘Žπ‘‘π‘‘π‘Žπ‘π‘˜π‘’π‘Ÿ-π‘β„Žπ‘œπ‘ π‘’π‘› π‘π‘œπ‘‘π‘’.

Our new @AnthropicAI Fellows paper: arxiv.org/abs/2610.37741
🧡(1/N)
0:14
28 replies 94 reposts 427 likes 43K views View on X
Xinyan Hu Verified account @xyVickyHu
It really was a long but fun (and so rewarding!) journey. Huge thanks to @PingbangHu for the amazing collaboration πŸ™ŒπŸ’›
It's officially out! We show that pretraining data poisoning for agent is not only possible but practical.
Huge implications on data safety and we are very proud of what we have achieved.

Working on pretraining data gives us lots of insights, fun, and also tears πŸ˜‡ Go check this out!
View quoted post on X
Xinyan Hu Verified account @xyVickyHu
Thanks so much @SuJinyan6 for the great summary of our work! πŸ™ I put together a thread with more intuition behind the results, which hopefully answers some of the questions raised in the replies. x.com/xyVickyHu/stat…
Jinyan Su Verified account @SuJinyan6 Oct 30
Poisoning just 0.1% of pretraining data can plant a remote-code-execution backdoor in an AI agent, and it survives a fully clean SFT β†’ DPO β†’ RL pipeline.

New Anthropic paper, β€œAgentic Backdoors via Pretraining Poisoning,” shows this end to end for the first time.

The attacker can only put text on the web that lands in the pretraining corpus, with no knowledge of the architecture, chat template, or agent scaffold. The authors pretrain Qwen3-architecture models (0.6B / 1.7B / 4B) from scratch, then post-train them into CLI agents on clean data. When triggered, the agent runs a command that downloads and executes the attacker's script, which the attacker can swap at any time.

They have two new ideas:
(1) Declaration-based poison: instead of fake chat transcripts, ordinary documents (commit messages, runbooks) that simply state β€œwhen you see X, run Y.” It plants a belief rather than a response template, with no fixed format to filter on.
(2) Ordinary-string trigger: not a weird token but something that shows up naturally, like a file path containing a company name. The victim's own request supplies it, so the attacker doesn't need to inject anything after deployment.

Using path trigger on a 4B agent achieves 92.7% attack success on pass@32, barely dented by SFT/DPO/RL

This suggests that you can't count on clean post-training to wash out pretraining poison, and filtering is hard when the poison reads like normal docs. The practical defense is at the action layer, such as sandboxing, least privilege, and allow-lists or human sign-off for risky commands.
View quoted post on X
0 replies 1 reposts 22 likes 1.5K views View on X
Xinyan Hu Verified account @xyVickyHu
I’ll be at #COLM presenting this work on Thursday afternoon.

I also just wrapped up my #Anthropic fellow project on backdooring LLM agents via data poisoning (releasing soon)!

Now on the job market for roles in AI safety, alignment, & interpretability, as well as broader model training and evals.

DMs are open :)
Xinyan Hu Verified account @xyVickyHu Sep 22
Interestingly, one attention head can be important across five ICL task families!

Our original thread gave an in-depth mechanistic analysis of addition ICL (quick video recap πŸ‘‡). We've now generalized this to four more ICL task families, spanning both arithmetic tasks and semantic tasks!

Our paper β€œUnderstanding In-context Learning of Addition via Activation Subspaces” has been accepted to COLM 2026! πŸŽ‰

See more details in thread.

(1/N)
View quoted post on X