作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2026, Vol. 52 ›› Issue (7): 76-85. doi: 10.19678/j.issn.1000-3428.0070737

• 计算智能与模式识别 • 上一篇    下一篇

基于交叉注意力扩散模型的对手建模

何明研, 李斯源, 刘鹏, 黄剑华   

  1. 哈尔滨工业大学计算学部, 黑龙江 哈尔滨 150001
  • 收稿日期:2024-12-23 修回日期:2025-02-20 出版日期:2026-07-15 发布日期:2026-07-04
  • 作者简介:何明研,男,硕士研究生,主研方向为多智能体博弈对抗;李斯源,副教授、博士;刘鹏、黄剑华(通信作者),教授、博士,E-mail:jhhuang@hit.edu.cn。
  • 基金资助:
    国家自然科学基金青年项目(62306088);黑龙江省自然科学基金优秀青年项目(YQ2024007)。

Opponent Modeling Based on Cross-Attention Diffusion Model

HE Mingyan, LI Siyuan, LIU Peng, HUANG Jianhua   

  1. Faculty of Computing, Harbin Institute of Technology, Harbin 150001, Heilongjiang, China
  • Received:2024-12-23 Revised:2025-02-20 Online:2026-07-15 Published:2026-07-04

摘要: 对手建模作为多智能体博弈对抗的关键技术,其目的为学习对手的行为以减少环境的不确定性并帮助决策。然而,现有的对手建模方法大多采用离线训练加在线适应的结构,在离线训练中采用传统神经动力学模型一步步预测受控智能体的行为,容易形成单步误差进而形成累积误差,且在在线适应中面对未知对手时,亦会导致受控智能体计划状态偏离数据集分布。为解决上述问题,提出基于扩散模型并利用交叉注意力和对手建立关联的方法。该方法利用扩散模型可以同时生成多步规划序列这一特点解决了累积偏差问题,同时提出策略集的概念,通过在线微调的方式不仅解决了计划偏离问题,而且也解决了在线训练初始阶段会破坏离线策略的问题。在开放的密集奖励和稀疏奖励的竞争环境中的实验结果均充分证明了该方法卓越的性能。

关键词: 对手建模, 多智能体博弈对抗, 扩散模型, 交叉注意力机制, 在线微调

Abstract: As a key technology in multi-agent game confrontation, opponent modeling aims to learn the behavior of the opponent to reduce the uncertainty of the environment and facilitate decision-making. However, most existing opponent modeling methods adopt the structure of offline training and online adaptation. During offline training, traditional neural dynamics model is used to predict the agent step-by-step, which facilitates the formation of single-step and cumulative errors. Additionally, when facing an unknown opponent during online adaptation, the planned states of the controlled agent deviate from the distribution of the dataset. To solve these problems, a method based on a diffusion model and cross-attention is proposed to establish a correlation with the opponent. The cumulative bias problem is solved using the feature that the diffusion model can generate multistep planning sequences simultaneously. The concept of a strategy set is proposed, and the deviation problem is not only solved by online fine-tuning but also prevents the problem that the offline strategy will be destroyed in the initial stages of online training. Experimental results in both open intensive reward and sparse reward competitive environments demonstrate the superior performance of this method.

Key words: opponent modeling, multi-agent game confrontation, diffusion model, cross-attention mechanism, online fine-tuning

中图分类号: