Temporal Working Memory: Query-Guided Segment Refinement for Enhanced Multimodal Understanding

Xingjian Diao, Chunhui Zhang, Weiyi Wu, Zhongyu Ouyang, Peijun Qing +3 more
2/9/2025
cs.CVcs.MMcs.SD

Official code: xid32/NAACL_2025_TWM (317 stars, last commit 2025-11-26).

Abstract

Multimodal foundation models (MFMs) have demonstrated significant success in tasks such as visual captioning, question answering, and image-text retrieval. However, these models face inherent limitations due to their finite internal capacity, which restricts their ability to process extended temporal sequences, a crucial requirement for comprehensive video and audio analysis. To overcome these challenges, we introduce a specialized cognitive module, temporal working memory (TWM), which aims to enhance the temporal modeling capabilities of MFMs. It selectively retains task-relevant information across temporal dimensions, ensuring that critical details are preserved throughout the processing of video and audio content. The TWM uses a query-guided attention approach to focus on the most informative multimodal segments within temporal sequences. By retaining only the most relevant content, TWM optimizes the use of the model's limited capacity, enhancing its temporal modeling ability. This plug-and-play module can be easily integrated into existing MFMs. With our TWM, nine state-of-the-art models exhibit significant performance improvements across tasks such as video captioning, question answering, and video-text retrieval. By enhancing temporal modeling, TWM extends the capability of MFMs to handle complex, time-sensitive data effectively. Our code is available at https://github.com/xid32/NAACL_2025_TWM.

View on arXivView PDF

Code Implementations(1)

We introduce temporal working memory (TWM), which aims to enhance the temporal modeling capabilities of Multimodal foundation models (MFMs). This plug-and-play module can be easily integrated into existing MFMs. With our TWM, nine state-of-the-art models exhibit significant performance improvements across QA, captioning, and retrieval tasks.

31730Shell, PythonJan 23, 202510 months ago
audio-visual-learningmultimodal-foundation-modelmultimodal-large-language-modelsquestion-answeringvideo-captioning+2 more

Similar Papers

Cite this paper

@article{diao2025temporal,
  title  = {Temporal Working Memory: Query-Guided Segment Refinement for Enhanced Multimodal Understanding},
  author = {Xingjian Diao and Chunhui Zhang and Weiyi Wu and Zhongyu Ouyang and Peijun Qing and Ming Cheng and Soroush Vosoughi and Jiang Gui},
  year   = {2025},
  eprint = {2502.06020},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.06020v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.06020.svg)](https://codeofpaper.com/paper/2502.06020)

Discussion