MATE: Multi-view Attention for Table Transformer Efficiency

Julian Martin Eisenschlos, Maharshi Gor, Thomas Müller, William W. Cohen
9/9/2021
cs.CLcs.AIcs.IR

Official code: google-research/tapas (1,202 stars, Python, Apache-2.0, TensorFlow, last commit 2024-07-22).

Abstract

This work presents a sparse-attention Transformer architecture for modeling documents that contain large tables. Tables are ubiquitous on the web, and are rich in information.

Show full abstract

However, more than 20% of relational tables on the web have 20 or more rows (Cafarella et al., 2008), and these large tables present a challenge for current Transformer models, which are typically limited to 512 tokens. Here we propose MATE, a novel Transformer architecture designed to model the structure of web tables. MATE uses sparse attention in a way that allows heads to efficiently attend to either rows or columns in a table. This architecture scales linearly with respect to speed and memory, and can handle documents containing more than 8000 tokens with current accelerators. MATE also has a more appropriate inductive bias for tabular data, and sets a new state-of-the-art for three table reasoning datasets. For HybridQA (Chen et al., 2020b), a dataset that involves large documents containing tables, we improve the best prior result by 19 points.

View on arXivView PDF

Code Implementations(1)

TensorFlowApache-2.0

End-to-end neural table-text understanding models.

1,202213Python, Jupyter NotebookMar 31, 20202 years agoApache-2.0
nlp-machine-learningquestion-answeringtable-parsingtensorflow

Similar Papers

Cite this paper

@article{eisenschlos2021mate,
  title  = {MATE: Multi-view Attention for Table Transformer Efficiency},
  author = {Julian Martin Eisenschlos and Maharshi Gor and Thomas Müller and William W. Cohen},
  year   = {2021},
  eprint = {2109.04312},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.04312}
}

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

Discussion