Out-of-Distribution Detection with Attention Head Masking for Multimodal Document Classification

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Constantinou, Christos, Ioannides, Georgios, Chadha, Aman, Elkins, Aaron, Simpson, Edwin
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911996651241472
author Constantinou, Christos
Ioannides, Georgios
Chadha, Aman
Elkins, Aaron
Simpson, Edwin
author_facet Constantinou, Christos
Ioannides, Georgios
Chadha, Aman
Elkins, Aaron
Simpson, Edwin
contents Detecting out-of-distribution (OOD) data is crucial in machine learning applications to mitigate the risk of model overconfidence, thereby enhancing the reliability and safety of deployed systems. The majority of existing OOD detection methods predominantly address uni-modal inputs, such as images or texts. In the context of multi-modal documents, there is a notable lack of extensive research on the performance of these methods, which have primarily been developed with a focus on computer vision tasks. We propose a novel methodology termed as attention head masking (AHM) for multi-modal OOD tasks in document classification systems. Our empirical results demonstrate that the proposed AHM method outperforms all state-of-the-art approaches and significantly decreases the false positive rate (FPR) compared to existing solutions up to 7.5\%. This methodology generalizes well to multi-modal data, such as documents, where visual and textual information are modeled under the same Transformer architecture. To address the scarcity of high-quality publicly available document datasets and encourage further research on OOD detection for documents, we introduce FinanceDocs, a new document AI dataset. Our code and dataset are publicly available.
format Preprint
id arxiv_https___arxiv_org_abs_2408_11237
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Out-of-Distribution Detection with Attention Head Masking for Multimodal Document Classification
Constantinou, Christos
Ioannides, Georgios
Chadha, Aman
Elkins, Aaron
Simpson, Edwin
Artificial Intelligence
Computation and Language
Computer Vision and Pattern Recognition
Machine Learning
Detecting out-of-distribution (OOD) data is crucial in machine learning applications to mitigate the risk of model overconfidence, thereby enhancing the reliability and safety of deployed systems. The majority of existing OOD detection methods predominantly address uni-modal inputs, such as images or texts. In the context of multi-modal documents, there is a notable lack of extensive research on the performance of these methods, which have primarily been developed with a focus on computer vision tasks. We propose a novel methodology termed as attention head masking (AHM) for multi-modal OOD tasks in document classification systems. Our empirical results demonstrate that the proposed AHM method outperforms all state-of-the-art approaches and significantly decreases the false positive rate (FPR) compared to existing solutions up to 7.5\%. This methodology generalizes well to multi-modal data, such as documents, where visual and textual information are modeled under the same Transformer architecture. To address the scarcity of high-quality publicly available document datasets and encourage further research on OOD detection for documents, we introduce FinanceDocs, a new document AI dataset. Our code and dataset are publicly available.
title Out-of-Distribution Detection with Attention Head Masking for Multimodal Document Classification
topic Artificial Intelligence
Computation and Language
Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2408.11237