Skip to main navigation Skip to search Skip to main content

FNet with Cross-Attention Encoder for Visual Question Answering

  • Samar I. Zekrallah*
  • , Nour El Deen Khalifa
  • , Aboul Ella Hassanin
  • *Corresponding author for this work
  • Cairo University
  • Scientific Research Group in Egypt (SRGE)

Research output: Chapter in Book/Report/Conference proceeding › Chapter › peer-review

1 Scopus citations

Abstract

Visual question answering (VQA) is a challenging research area where model needs to understand image semantics along with the asked question in order to give a correct answer. Lately transformers showed improvement to the performance of deep learning models than using traditional sequence to sequence models like LSTMs, RNNs. Transformer models use attention mechanism and using it with complex models requires longer time and huge resources for training. In this paper, VQA task is accomplished using three transformer encoders where transformer’s self attention sub-layers are replaced with Fourier transforms which is called FNet that mixes input tokens in question and image encoders. Self attention is used only in the cross modality encoder to enhance accuracy. Experiment is done on two phases: Firstly, Pre-training is done on a subset of LXMERT dataset (5.99% of LXMERT’s instances)due to resources limitations and the Second phase is fine tuning on VQA v.2 dataset. It results in 24% faster Pre-training time but testing accuracy decreased by 5.61% than using encoders with BERT self attention only in all sub-layers. Model is also pre-trained using FNet sub-layers only and it trained faster by 30.6% than using only BERT self-attention sub-layers but got lower testing accuracy result (48.79%).

Original languageEnglish
Title of host publicationLecture Notes on Data Engineering and Communications Technologies
PublisherSpringer Science and Business Media Deutschland GmbH
Pages602-611
Number of pages10
DOIs
StatePublished - 2023
Externally publishedYes

Publication series

NameLecture Notes on Data Engineering and Communications Technologies
Volume152
ISSN (Print)2367-4512
ISSN (Electronic)2367-4520

Keywords

  • Artificial Intelligence
  • BERT
  • Deep Learning
  • FNet
  • Faster-RCNN
  • Fourier Transform
  • Natural Language Processing
  • Transformers

Fingerprint

Dive into the research topics of 'FNet with Cross-Attention Encoder for Visual Question Answering'. Together they form a unique fingerprint.

Cite this