NLX-GPT: A Model for Natural Language Explanations in Vision and Vision-Language Tasks

Fawaz Sammani, Tanmoy Mukherjee, Nikos Deligiannis
3/9/2022
cs.CVcs.CL

Official code: fawazsammani/nlxgpt (50 stars, Python, last commit 2024-01-30).

Abstract

Natural language explanation (NLE) models aim at explaining the decision-making process of a black box system via generating natural language sentences which are human-friendly, high-level and fine-grained. Current NLE models explain the decision-making process of a vision or vision-language model (a.k.a., task model), e.g., a VQA model, via a language model (a.k.a., explanation model), e.g., GPT.

Show full abstract

Other than the additional memory resources and inference time required by the task model, the task and explanation models are completely independent, which disassociates the explanation from the reasoning process made to predict the answer. We introduce NLX-GPT, a general, compact and faithful language model that can simultaneously predict an answer and explain it. We first conduct pre-training on large scale data of image-caption pairs for general understanding of images, and then formulate the answer as a text prediction task along with the explanation. Without region proposals nor a task model, our resulting overall framework attains better evaluation scores, contains much less parameters and is 15$\times$ faster than the current SoA model. We then address the problem of evaluating the explanations which can be in many times generic, data-biased and can come in several forms. We therefore design 2 new evaluation measures: (1) explain-predict and (2) retrieval-based attack, a self-evaluation framework that requires no labels. Code is at: https://github.com/fawazsammani/nlxgpt.

View on arXivView PDF

Code Implementations(1)

NLX-GPT: A Model for Natural Language Explanations in Vision and Vision-Language Tasks, CVPR 2022 (Oral)

5010Python, Jupyter NotebookNov 5, 20212 years ago

Similar Papers

Cite this paper

@article{sammani2022nlxgpt,
  title  = {NLX-GPT: A Model for Natural Language Explanations in Vision and Vision-Language Tasks},
  author = {Fawaz Sammani and Tanmoy Mukherjee and Nikos Deligiannis},
  year   = {2022},
  eprint = {2203.05081},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.05081}
}

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

Discussion