arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2508.09459cs.CVcs.AI
收藏

RelayFormer: 一种用于可扩展图像和视频篡改定位的统一局部-全局注意力框架

RelayFormer: A Unified Local-Global Attention Framework for Scalable Image and Video Manipulation Localization

Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院,清华大学);College of Artificial Intelligence, Nankai University(南开大学人工智能学院);College of Computer Science and Software Engineering, Shenzhen University(深圳大学计算机科学与软件工程学院);Huawei Technologies Co., Ltd(华为技术有限公司)

Wen Huang, Jiarui Yang, Tao Dai, Jiawei Li, Shaoxiong Zhan, Bin Wang, Shu-Tao Xia

AI总结:

提出RelayFormer统一框架,通过全局局部中继(GLR)令牌和中继注意力机制,适应不同分辨率并统一处理图像与视频,在篡改定位任务中实现高效且性能优越。

摘要:

视觉篡改定位(VML)旨在识别图像和视频中被篡改的区域,随着高级编辑工具的兴起,这一任务变得日益具有挑战性。现有方法面临两个核心问题。首先是分辨率多样性。调整大小或填充可能会扭曲微妙的取证线索,并引入不必要的计算成本。其次是将图像的空间模型扩展到视频的时空输入的困难,这通常导致为两种数据类型维护单独的架构。为了解决这些挑战,我们提出了RelayFormer,一个统一框架,能够适应不同分辨率并自然处理静态和时态视觉数据。RelayFormer将输入划分为固定大小的子图像,并引入全局局部中继(GLR)令牌,通过基于中继的注意力机制传播结构化上下文。这种设计使得全局线索(如语义或时间一致性)的高效交换成为可能,同时保留细粒度的篡改伪影。与依赖统一调整大小或稀疏注意力的先前方法不同,RelayFormer以最小的开销扩展到可变分辨率和视频序列。跨多个基准的实验表明,其具有优越的性能和强大的效率,结合了无需插值或过多填充的分辨率适应性、图像和视频的统一处理,以及准确性和计算成本之间的有利平衡。代码可在\href{this https URL}{this https URL}获取。

英文摘要:

Visual manipulation localization (VML) aims to identify tampered regions in images and videos, a task that has become increasingly challenging with the rise of advanced editing tools. Existing methods face two central issues. The first is resolution diversity. Resizing or padding can distort subtle forensic cues and introduce unnecessary computational cost. The second is the difficulty of extending spatial models for images to spatio-temporal inputs in videos, which often results in maintaining separate architectures for the two data types. To address these challenges, we propose RelayFormer, a unified framework that adapts to varying resolutions and naturally handles both static and temporal visual data. RelayFormer partitions inputs into fixed-size sub-images and introduces Global Local Relay (GLR) tokens that propagate structured context through a relay-based attention mechanism. This design enables efficient exchange of global cues, such as semantic or temporal consistency, while preserving fine-grained manipulation artifacts. Unlike prior approaches that depend on uniform resizing or sparse attention, RelayFormer scales to variable resolutions and video sequences with minimal overhead. Experiments across diverse benchmarks demonstrate superior performance and strong efficiency, combining resolution adaptivity without interpolation or excessive padding, unified processing for images and videos, and a favorable balance between accuracy and computational cost. Code is available at~\href{https://github.com/WenOOI/RelayFormer}{https://github.com/WenOOI/RelayFormer}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑