Zhang Yihao

Yihao Zhang张益豪

应用数学博士三年级
北京大学数学科学学院

现于腾讯元宝安全中心任职

主要研究方向 大模型智能体安全
我研究  |
大模型智能体安全 面向智能体的形式化方法 越狱攻击 提示注入 可解释性 表征工程 AI 安全与验证 自动定理证明

我是张益豪(Yihao Zhang),北京大学数学科学学院应用数学博士三年级学生。我目前在 Meng Sun 教授的指导下开展研究,是其课题组成员。

我于 2024 年在北京大学获得学士学位(数据科学与大数据技术、数学)。2023 年 10 月至 2024 年 5 月,我在新加坡管理大学担任访问研究助理,导师是 Jun Sun。

我的研究方向包括:

  • 大模型智能体安全
  • 面向大模型智能体的形式化方法
  • 大模型越狱攻击
  • 提示注入
  • 大模型可解释性
  • 表征工程
  • AI 安全,验证 AI 中的鲁棒性 / 公平性 / 可信赖性问题
  • 自动交互式定理证明,AI4ITP

我已在多个国际会议上发表多篇论文,Google Scholar 总引用量 。

如需访问我 2024 年之前的个人主页,请点击 这里。

💼 工作经历

2026.03 — 至今

腾讯元宝安全中心在职

Tencent Yuanbao Security Center

2025.05 — 2025.12

字节跳动 Flow 安全

ByteDance Flow Security

🔥 新闻

2026.09
🎉 我们的论文 AgentWorm: Self-Propagating Attacks Across LLM Agent Ecosystems 被 NDSS 2027 录用。
2026.09
🎉 我们的论文 Automata Extraction from Transformers 被 ICECCS 2026 录用。
2026.09
🎉 我们的论文 DocVerify: Constraint-Based Verification of LLM Outputs Against Document Knowledge 被 ICECCS 2026 录用。
2026.03
🏢 我入职 腾讯元宝安全中心。
2026.03
🎉 我们的论文 On Mutation Testing of In-Context Learning Systems 发表于 Journal of Systems Architecture。
2025.12
👋 我从字节跳动 Flow 安全离职。
2025.11
🏆 我们的论文 Automata-Based Steering of Large Language Models for Diverse Structured Generation 获得 ICFEM 2025 最佳论文奖!
2025.05
🏢 我通过筋斗云人才计划加入 字节跳动 Flow 安全。
2025.04
🎉 我们的论文 Boosting jailbreak attack with momentum 被 ICASSP 2025 录用为 Oral 论文。
2025.03
2024.12
🎉 2 篇论文被 ICASSP 录用(分别为第一作者与倒数第二作者)。
2024.11
✈️ 我们在 NeurIPS 2024 主会上展示论文(海报)。
2024.10
🎉 我们在北京大学第二届前沿博士生论坛上展示论文。
2024.09
🎉 1 篇论文(第二作者)被 SETTA 2024 录用。
2024.09
✈️ 我在北京大学开始了博士生涯!
2024.07
✈️ 我们在 ICML 2024 主会上展示论文(海报)。
2024.06
🎉 我从北京大学毕业并开始攻读博士。本科毕业论文 Automata Extraction from Transformers 发布于 arXiv。
2024.05
2024.04
🎉 我完成了论文 Adversarial Representation Engineering: A General Model Editing Framework for Large Language Models 并发布于 arXiv。我们的代码库在 GitHub 上获得了 5 颗星🌟!
2024.03
🎉 2 篇论文被 ICLR 2024 R2-FM Workshop 录用(分别为第一作者与倒数第二作者)。
2023.12
💸 我申请的北京市自然科学基金本科生"启研"项目获批。
2023.10
✈️ 我前往新加坡管理大学进行为期六个月的交流。
2023.09
2023.05
🎉 我们的论文 Sharpness-Aware Minimization Alone can Improve Adversarial Robustness 被 2nd AdvML-Frontiers@ICML 2023 录用。
2023.04
🎉🎉 我入选北京大学数学科学学院应用数学拔尖计划(每年仅 1 人),将在此攻读五年博士。

📝 代表性论文

(*: 共同一作; ${}^\dagger$: 通讯作者)

NDSS 2027
AgentWorm attack lifecycle

AgentWorm: Self-Propagating Attacks Across LLM Agent Ecosystems (NDSS 2027)

Yihao Zhang, Zeming Wei, Xiaokun Luan, Jiangrong Wu, Chengcan Wu, Zhixin Zhang, Haolin Wu, Huanran Chen, Jun Sun, Meng Sun

We present AgentWorm, a self-propagating attack that compromises persistent LLM agents and autonomously spreads across agent ecosystems. The work studies the full infection loop, its transferability, and practical defenses for deployed agent systems.

pdf arxiv

ICML 2024
sym

On the Duality Between Sharpness-Aware Minimization and Adversarial Training (ICML 2024)

Yihao Zhang*, Hangzhou He*, Jingyu Zhu*, Huanran Chen, Yifei Wang, Zeming Wei${}^\dagger$

Adversarial Training (AT), which adversarially perturb the input samples during training, has been acknowledged as one of the most effective defenses against adversarial attacks, yet suffers from a fundamental tradeoff that inevitably decreases clean accuracy. Instead of perturbing the samples, Sharpness-Aware Minimization (SAM) perturbs the model weights during training to find a more flat loss landscape and improve generalization. However, as SAM is designed for better clean accuracy, its effectiveness in enhancing adversarial robustness remains unexplored. In this work, considering the duality between SAM and AT, we investigate the adversarial robustness derived from SAM. Intriguingly, we find that using SAM alone can improve adversarial robustness. To understand this unexpected property of SAM, we first provide empirical and theoretical insights into how SAM can implicitly learn more robust features, and conduct comprehensive experiments to show that SAM can improve adversarial robustness notably without sacrificing any clean accuracy, shedding light on the potential of SAM to be a substitute for AT when accuracy comes at a higher priority. Code is available at this https URL.

pdf arxiv code

NeurIPS 2024
sym

Adversarial Representation Engineering: A General Model Editing Framework for Large Language Models (NeurIPS 2024)

Yihao Zhang, Zeming Wei, Jun Sun${}^\dagger$, Meng Sun${}^\dagger$

Since the development of Large Language Models (LLMs) has achieved remarkable success, understanding and controlling their internal complex mechanisms has become an urgent problem. Recent research has attempted to interpret their behaviors through the lens of inner representation. However, developing practical and efficient methods for applying these representations for general and flexible model editing remains challenging. In this work, we explore how to use representation engineering methods to guide the editing of LLMs by deploying a representation sensor as an oracle. We first identify the importance of a robust and reliable sensor during editing, then propose an Adversarial Representation Engineering (ARE) framework to provide a unified and interpretable approach for conceptual model editing without compromising baseline performance. Experiments on multiple model editing paradigms demonstrate the effectiveness of ARE in various settings. Code and data are available at this https URL.

pdf arxiv code

其他论文

(*: 共同一作; ${}^\dagger$: 通讯作者)

The Salami Slicing Threat: Exploiting Cumulative Risks in LLM Systems (Preprint, 2026)

Yihao Zhang, Kai Wang, Jiangrong Wu, Haolin Wu, Yuxuan Zhou, Zeming Wei, Dongxian Wu, Xun Chen, Jun Sun, Meng Sun

arxiv pdf

RACA: Representation-Aware Coverage Criteria for LLM Safety Testing (Preprint, 2026)

Zeming Wei, Zhixin Zhang, Chengcan Wu, Yihao Zhang, Xiaokun Luan, Meng Sun

arxiv pdf

Symbolic-Neural Soft-Logic Reasoning: Towards Robust and Verifiable Thinking Chains via Cooperative Evolution (Preprint, 2026)

Rui Wang, Zeming Wei, Yihao Zhang, Xiaokun Luan

arxiv pdf

On Mutation Testing of In-Context Learning Systems (Journal of Systems Architecture, 2026)

Zeming Wei, Guanzhang Yue, Yihao Zhang, Meng Sun

doi

Automata-Based Steering of Large Language Models for Diverse Structured Generation (ICFEM 2025 · Best Paper)

Xiaokun Luan, Zemin Wei, Yihao Zhang, Meng Sun

doi arxiv

Robust and Efficient Watermarking of Large Language Models Using Error Correction Codes (PETS 2025)

Xiaokun Luan, Zeming Wei, Yihao Zhang, Meng Sun

doi

When Thinking LLMs Lie: Unveiling the Strategic Deception in Representations of Reasoning Models (Preprint, 2025)

Kai Wang, Yihao Zhang, Meng Sun

arxiv pdf

Mitigating Fine-tuning Risks in LLMs via Safety-Aware Probing Optimization (Preprint, 2025)

Chengcan Wu, Zhixin Zhang, Zeming Wei, Yihao Zhang, Meng Sun

arxiv pdf

Towards Formal Modeling and Verification of the Stellar Consensus Protocol in Z3 (QRS Companion 2025)

Feiran Lei, Yihao Zhang, Xuefei Tong, Shuaida Wu, Meng Sun

doi

MedTiny Code Generation for Enhancing RegLang Smart Contract Reliability (SAC 2025)

Xiaokun Luan, Yihao Zhang, Meng Sun

doi

Component Composition in MedTiny: Multi-Level Constructs and Operational Semantics (SEKE 2025)

Xiangyu Li, Yihao Zhang, Meng Sun

doi

Boosting jailbreak attack with momentum (ICASSP 2025 Oral, ICLR 2024 R2-FM Workshop)

Yihao Zhang*, Zeming Wei*${}^\dagger$

pdf arxiv code

Exploring the robustness of in-context learning with noisy labels (ICASSP 2025, ICLR 2024 R2-FM Workshop)

Chen Cheng*, Xinzhi Yu*, Haodong Wen*, Jinsong Sun, Guanzhang Yue, Yihao Zhang, Zeming Wei${}^\dagger$

pdf arxiv code

Automata Extraction from Transformers (ICECCS 2026)

Yihao Zhang, Zeming Wei, Meng Sun${}^\dagger$

pdf arxiv code

DocVerify: Constraint-Based Verification of LLM Outputs Against Document Knowledge (ICECCS 2026)

Yihao Zhang, Zeming Wei, Xiaokun Luan, Meng Sun

MILE: A Mutation Testing Framework of In-Context Learning Systems (SETTA 2024)

Zeming Wei, Yihao Zhang, Meng Sun${}^\dagger$

pdf arxiv code

MedTiny: Enhanced Mediator Modeling Language for Scalable Parallel Algorithms (QRS 2023)

Xiangyu Li, Yihao Zhang, Xiaokun Luan, Xiaoyong Xue, Meng Sun${}^\dagger$

pdf

Sharpness-aware minimization alone can improve adversarial robustness (ICML 2023 AdvML-Frontiers Workshop)

Zeming Wei*${}^\dagger$, Jingyu Zhu*, Yihao Zhang*

pdf arxiv code

Using Z3 for Formal Modeling and Verification of FNN Global Robustness (SEKE 2023)

Yihao Zhang, Zeming Wei, Xiyue Zhang, Meng Sun${}^\dagger$

pdf arxiv code

Weighted automata extraction and explanation of recurrent neural networks for natural language tasks (JLAMP, Vol 136)

Zeming Wei, Xiyue Zhang, Yihao Zhang, Meng Sun${}^\dagger$

pdf arxiv code

🎖 荣誉奖励

  • 北京大学校长奖学金,2025
  • 怀新学士(荣誉学士学位),2024
  • 入选北京大学数学科学学院拔尖计划(研究生)。
  • 北京大学奖学金,2023
  • 全国大学生数学竞赛(北京赛区)二等奖,2023

📖 教育经历

  • 2023.10 - 2024.05,研究助理,新加坡管理大学计算机与信息系统学院。
  • 2020.09 - 2024.06,本科生,北京大学数学科学学院。
  • 2024.09 - 2028.06(预期),博士,北京大学数学科学学院。

💬 报告

💻 项目

  • 2026-2029, Safety Assurance of LLM-Driven Agents, Key Member, NSFC General Program.
  • 2025-2027, LLM Feature Reconstruction & Manipulation, Key Member, Industry Collaboration.
  • 2023-2025, Study on the interpretability of large language model architecture and algorithm, Program Director.
  • 2022-2025, Trustworthy guarantee of deep learning system, Member.

👨‍🏫 导师

🔗 链接