A Better Way to Attend: Attention with Trees for Video Question Answering

Hongyang Xue, Wenqing Chu, Zhou Zhao, Deng Cai
9/5/2019
cs.CVcs.CLcs.LG

Official code: ZJULearning/TreeAttention (25 stars, last commit 2019-03-25).

Abstract

We propose a new attention model for video question answering. The main idea of the attention models is to locate on the most informative parts of the visual data. The attention mechanisms are quite popular these days. However, most existing visual attention mechanisms regard the question as a whole. They ignore the word-level semantics where each word can have different attentions and some words need no attention. Neither do they consider the semantic structure of the sentences. Although the Extended Soft Attention (E-SA) model for video question answering leverages the word-level attention, it performs poorly on long question sentences. In this paper, we propose the heterogeneous tree-structured memory network (HTreeMN) for video question answering. Our proposed approach is based upon the syntax parse trees of the question sentences. The HTreeMN treats the words differently where the \textit{visual} words are processed with an attention module and the \textit{verbal} ones not. It also utilizes the semantic structure of the sentences by combining the neighbors based on the recursive structure of the parse trees. The understandings of the words and the videos are propagated and merged from leaves to the root. Furthermore, we build a hierarchical attention mechanism to distill the attended features. We evaluate our approach on two datasets. The experimental results show the superiority of our HTreeMN model over the other attention models especially on complex questions. Our code is available on github. Our code is available at https://github.com/ZJULearning/TreeAttention

View on arXivView PDF

Code Implementations(1)

A Better Way to Attend: Attention with Trees for Video Question Answering

258PythonJul 3, 20177 years ago

Similar Papers

Cite this paper

@article{xue2019better,
  title  = {A Better Way to Attend: Attention with Trees for Video Question Answering},
  author = {Hongyang Xue and Wenqing Chu and Zhou Zhao and Deng Cai},
  year   = {2019},
  eprint = {1909.02218},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.02218}
}

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/1909.02218.svg)](https://codeofpaper.com/paper/1909.02218)

Discussion