Skip to main content
QUICK REVIEW

[Paper Review] DePlot: One-shot visual language reasoning by plot-to-table translation

Fangyu Liu, Julian Martin Eisenschlos|arXiv (Cornell University)|Dec 20, 2022
Multimodal Machine Learning ApplicationsComputer Science6 citations
TL;DR

DePlot introduces a one-shot visual language reasoning framework that converts plots into structured tables using an end-to-end image-to-text Transformer model, enabling state-of-the-art performance when combined with large language models (LLMs). It achieves a 29.4% improvement over finetuned SOTA models on human-written queries in ChartQA using only one-shot prompting.

ABSTRACT

Visual language such as charts and plots is ubiquitous in the human world. Comprehending plots and charts requires strong reasoning skills. Prior state-of-the-art (SOTA) models require at least tens of thousands of training examples and their reasoning capabilities are still much limited, especially on complex human-written queries. This paper presents the first one-shot solution to visual language reasoning. We decompose the challenge of visual language reasoning into two steps: (1) plot-to-text translation, and (2) reasoning over the 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 linearized table. The output of DePlot can then be directly used to prompt a pretrained large language model (LLM), exploiting the few-shot reasoning capabilities of LLMs. To obtain DePlot, we standardize the plot-to-table task by establishing unified 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-play fashion. Compared with a SOTA model finetuned on more than >28k data points, DePlot+LLM with just one-shot prompting achieves a 24.0% improvement over finetuned SOTA on human-written queries from the task of chart QA.

Motivation & Objective

  • To address the limitation of existing visual language reasoning models that require thousands of fine-tuned examples and underperform on complex human-written queries.
  • To enable few-shot visual language reasoning by decoupling plot understanding into plot-to-table translation and subsequent LLM-based reasoning.
  • To standardize the plot-to-table task with a unified evaluation metric that is invariant to row/column permutations and tolerant to relative numeric errors.
  • To develop a plug-and-play modality conversion module, DePlot, that generalizes across diverse chart types without task-specific engineering.
  • To demonstrate that leveraging LLMs via table-based prompting can outperform end-to-end fine-tuned models with significantly less supervision.

Proposed method

  • DePlot is an end-to-end image-to-text Transformer model trained to convert visual plots into linearized text tables, using a mixed corpus of synthetic and web-crawled chart-table pairs.
  • The model is trained to generate structured, tabular text representations that preserve both textual and numeric content from input plots.
  • A novel table similarity metric, RMS_F1, is proposed to evaluate plot-to-table translation, incorporating relative error tolerance and invariance to row/column permutations.
  • The output of DePlot is used as input to a pretrained LLM with few-shot prompting techniques such as Chain-of-Thoughts (CoT) and Program-of-Thoughts (PoT).
  • The framework operates in two stages: (1) plot-to-table translation via DePlot, and (2) reasoning over the generated table using LLMs with few-shot prompting.
  • The method is evaluated on ChartQA and PlotQA, with ablation and out-of-distribution analyses to assess robustness and failure modes.

Experimental results

Research questions

  • RQ1Can a unified, end-to-end model for plot-to-table translation outperform hybrid, rule-based systems in accuracy and generalization across chart types?
  • RQ2Can a single-shot prompting strategy with LLMs, powered by accurate table translation, surpass fully supervised SOTA models on complex human-written queries?
  • RQ3How can a robust, invariant metric be designed to fairly evaluate plot-to-table translation, accounting for structural and numeric variations?
  • RQ4To what extent does DePlot generalize to out-of-domain charts not seen during training, particularly from different sources or tools?
  • RQ5What are the key failure modes of DePlot, and how do visual attributes like color or orientation affect translation accuracy?

Key findings

  • DePlot achieves a 29.4% absolute improvement over the previous SOTA model on human-written queries in the ChartQA benchmark, despite using only one-shot supervision.
  • The DePlot + LLM framework outperforms a fully supervised SOTA model that required thousands of fine-tuning examples, demonstrating the power of few-shot prompting with accurate table translation.
  • DePlot significantly outperforms OCR-based baselines and other end-to-end models on the plot-to-table translation task, especially in handling diverse chart types uniformly.
  • On out-of-distribution charts from the TaTa dataset, DePlot achieves an average RMS_F1 score of 78%, indicating moderate generalization capability, though it struggles with external labels and adjacent text.
  • Failure cases are primarily due to visual distractions (e.g., references, footnotes) and arrow-linked labels, suggesting the need for improved data preprocessing and training data robustness.
  • The study identifies that encoding visual attributes such as color and orientation into the decoding target could further improve performance, highlighting a promising direction for future work.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.