[论文解读] HashGAN:Attention-aware Deep Adversarial Hashing for Cross Modal Retrieval
本文提出 HashGAN,一种新颖的对抗性哈希框架,通过引入注意力机制,聚焦于具有区分性的图像与文本区域,以提升跨模态检索性能。通过对抗性地训练一个生成注意力模块以生成掩码,以及一个判别性哈希模块,HashGAN 在使用 16 位编码的情况下,在 IAPR TC-12 数据集上实现了最先进性能,MAP 达到 0.5458。
As the rapid growth of multi-modal data, hashing methods for cross-modal retrieval have received considerable attention. Deep-networks-based cross-modal hashing methods are appealing as they can integrate feature learning and hash coding into end-to-end trainable frameworks. However, it is still challenging to find content similarities between different modalities of data due to the heterogeneity gap. To further address this problem, we propose an adversarial hashing network with attention mechanism to enhance the measurement of content similarities by selectively focusing on informative parts of multi-modal data. The proposed new adversarial network, HashGAN, consists of three building blocks: 1) the feature learning module to obtain feature representations, 2) the generative attention module to generate an attention mask, which is used to obtain the attended (foreground) and the unattended (background) feature representations, 3) the discriminative hash coding module to learn hash functions that preserve the similarities between different modalities. In our framework, the generative module and the discriminative module are trained in an adversarial way: the generator is learned to make the discriminator cannot preserve the similarities of multi-modal data w.r.t. the background feature representations, while the discriminator aims to preserve the similarities of multi-modal data w.r.t. both the foreground and the background feature representations. Extensive evaluations on several benchmark datasets demonstrate that the proposed HashGAN brings substantial improvements over other state-of-the-art cross-modal hashing methods.
研究动机与目标
- 解决在跨模态检索中测量异质模态(如文本与图像)之间内容相似性的挑战。
- 克服现有深度哈希方法因模态异质性而无法聚焦于语义相关区域的局限。
- 通过学习注意力掩码来突出显示信息丰富的(前景)区域并抑制无信息(背景)区域,从而提升哈希码质量。
- 在对抗性框架中联合训练生成注意力模块与判别性哈希模块,以增强汉明空间中的相似性保持能力。
提出的方法
- 基于预训练的 VGGNet(用于图像)和词袋模型(用于文本)构建特征学习模块,以提取高层表示。
- 引入一个生成注意力模块,学习空间或语义注意力掩码,以分离前景(被关注)与背景(未被关注)特征。
- 将注意力掩码应用于生成两种模态的被关注与未被关注的特征表示。
- 训练判别性哈希模块,生成保留查询样本与相关样本之间相似性的二值码,涵盖前景与背景表示。
- 实施对抗性训练方案:生成器旨在最大化在未被关注(背景)特征上的检索损失,而判别器则最小化在被关注与未被关注特征上的相似性保持损失。
- 使用 ADAM 优化器,基础初始学习率为 0.005,每 20 个周期衰减一次,交替优化判别器(D)4 步,生成器(G)1 步。
实验结果
研究问题
- RQ1是否可以通过引入注意力机制的对抗性框架,改善深度哈希中的跨模态相似性度量?
- RQ2通过学习的注意力掩码聚焦于具有区分性的区域,是否能提升哈希码质量与检索准确率?
- RQ3生成器(生成注意力掩码)与判别器(学习相似性保持哈希函数)之间的对抗性训练,如何增强检索性能?
- RQ4该模型在不同数据集与网络架构(如 VGGNet 与 CNN-F)之间,其泛化能力如何?
主要发现
- 在 IAPR TC-12 数据集上,使用 16 位哈希码进行文本到图像任务时,HashGAN 实现了 0.5458 的平均平均精度(MAP),优于第二名方法(DCMH)的 0.5185。
- 在 MIR-Flickr 数据集上,HashGAN 在文本到图像任务中 MAP 达到 0.4921,在图像到文本任务中达到 0.4873,展现出强大的跨数据集泛化能力。
- 即使使用较小的 CNN-F 网络替代 VGGNet,HashGAN 仍保持竞争力,在 IAPR TC-12 数据集上使用 16 位编码进行文本到图像任务时,MAP 达到 0.5267。
- 图 7 中的精确率-召回率曲线显示,HashGAN 在所有三个基准数据集(IAPR TC-12、MIR-Flickr、NUS-WIDE)上均持续优于或匹配所有基线方法。
- 图 8 的可视化结果证实,注意力掩码成功突出了图像中语义相关的区域,例如示例中的女孩与小毛驴。
- 消融实验表明,对抗性训练方案能有效提升检索性能,迫使生成器生成的掩码降低判别器保持背景相似性的能力。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。