tapas
A BERT-based model pre-trained on Wikipedia tables and text for answering questions about tabular data.
Language · 403 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Language
- Parameters
- 110.7M
- Operations
- 403
- Framework
- PyTorch
- Recurrent
- No
- Source
- transformers 5.18.0
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m10474
- Graph hash
- 8a4e17a9b378a4e435baea195a8c56190fb1cd458e92f0691b92171ba411f516
- Skeleton hash
- 2313b51449bd2a9b3fb32a54f0f86d6efc85b058bd1356740648b27ef0f87ff0
- Architecture hash
- 16c1d7e2207ee7cfe580a3dd6d7e00db3628a6a9934796796011d5dcad1277db
- Diagram SHA-256
- f5654c9f49f120ae1fcece97fca91bb4bcfb583eee4ec0daab2696925c2226f6
- TorchLens version
- 2.35.3
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
transformers.AutoModelForMaskedLM.from_config()
What it is
TAPAS is a BERT-based model designed and pre-trained for answering questions about tabular data. Compared to BERT, it uses relative position embeddings and has 7 token types that encode tabular structure. It is pre-trained with the masked language modeling objective on millions of tables from English Wikipedia and their corresponding texts.
Rather than generating logical forms, it predicts an answer by selecting table cells and optionally applying an aggregation operator to them. For question answering, two heads sit on top of the model: a cell selection head and an aggregation head, for operations such as counting or summing. The paper reports raising accuracy on the SQA benchmark from 55.1 to 67.2. The position embeddings restart at every cell of the table, something added after the original paper was published.
Key idea. TAPAS answers questions over tables without generating logical forms, training from weak supervision to select table cells and optionally apply an aggregation operator.
- tapas
- table question answering
- table parsing
- tabular question answering
- question answering over tables
- table entailment
- weakly supervised table parsing
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.