HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

DePlot: One-shot visual language reasoning by plot-to-table translation

DePlot: One-shot visual language reasoning by plot-to-table translation

Abstract

Visual language such as charts and plots is ubiquitous in the human world.Comprehending plots and charts requires strong reasoning skills. Priorstate-of-the-art (SOTA) models require at least tens of thousands of trainingexamples and their reasoning capabilities are still much limited, especially oncomplex human-written queries. This paper presents the first one-shot solutionto visual language reasoning. We decompose the challenge of visual languagereasoning into two steps: (1) plot-to-text translation, and (2) reasoning overthe translated text. The key in this method is a modality conversion module,named as DePlot, which translates the image of a plot or chart to a linearizedtable. The output of DePlot can then be directly used to prompt a pretrainedlarge language model (LLM), exploiting the few-shot reasoning capabilities ofLLMs. To obtain DePlot, we standardize the plot-to-table task by establishingunified task formats and metrics, and train DePlot end-to-end on this task.DePlot can then be used off-the-shelf together with LLMs in a plug-and-playfashion. Compared with a SOTA model finetuned on more than >28k data points,DePlot+LLM with just one-shot prompting achieves a 24.0% improvement overfinetuned SOTA on human-written queries from the task of chart QA.

Code Repositories

huggingface/transformers
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
chart-question-answering-on-chartqaDePlot+GPT3 (Self-Consistency)
1:1 Accuracy: 42.3
chart-question-answering-on-chartqaDePlot+GPT3 (CoT)
1:1 Accuracy: 36.9
chart-question-answering-on-chartqaDePlot+Codex (PoT Self-Consistency)
1:1 Accuracy: 76.7
chart-question-answering-on-chartqaDePlot+FlanPaLM (CoT)
1:1 Accuracy: 67.3
chart-question-answering-on-chartqaDePlot+FlanPaLM+Codex (PoT Self-Consistency)
1:1 Accuracy: 79.3
chart-question-answering-on-chartqaDePlot+FlanPaLM (Self-Consistency)
1:1 Accuracy: 70.5
chart-question-answering-on-plotqaDePlot+FlanPaLM+Codex (PoT Self-Consistency)
1:1 Accuracy: 66.6

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
DePlot: One-shot visual language reasoning by plot-to-table translation | Papers | HyperAI