Back to Feed
Computer Vision / Multimodal

Extracting Values From Bar Charts

Original: Bar-JEPA: Extracting Values from Bar Chart with Joint-Embedding Predictive Architecture

Listen to the summary

Uses a voice available on your device

Audio options
On this page

Key Takeaways

  • Developed a synthetic dataset of 100,000 samples to address the scarcity of labeled, real-world bar chart data.
  • Utilized a fine-tuned I-JEPA encoder with patch extraction for variable-resolution inputs.
  • Achieved 45.0 percent accuracy at a 0.05 epsilon threshold on the UB PMC dataset.
  • Demonstrated that fine-tuning the encoder more than doubles the F1 score compared to a vanilla encoder.

Summary & Methodology Analysis

The Bar-JEPA method addresses the challenge of extracting numerical data from variable bar charts by first training a model on 100,000 synthetic samples. The system modifies an I-JEPA encoder, which is a joint-embedding predictive architecture that learns semantically rich features by predicting parts of an input from other parts, to support variable-resolution inputs using patch extraction techniques similar to Pix2Struct. This encoder is then frozen, and its latent features are passed to a decoder composed of deconvolution, batch normalization, and ReLU layers to generate heatmaps for identifying ticks, bars, and origin points. Detection coordinates are derived from these heatmaps using confidence-based non-maximum suppression (NMS), a technique that filters overlapping candidate detections to keep only the most confident one. Finally, numerical values are recovered by applying PaddleOCR for character recognition and RANSAC regression, an algorithm that identifies outliers while mapping pixel coordinates to numeric data. The results show that fine-tuning the encoder significantly improves performance, with a more than two-fold increase in F1 score over a vanilla encoder on synthetic data. On the UB PMC dataset, the model reached 45.0 percent accuracy at a 0.05 epsilon threshold and 34.1 percent accuracy at 0.02 epsilon. Despite these improvements, the method does not currently reach state-of-the-art results. The authors note that the architecture is limited to one specific type of chart and that integrating the frozen feature extractor into multimodal language models remains difficult.

Interactive System Flowchart

Click diagram to expand and zoom

Cross-Examination & FAQs

A deeper dive clarifying mechanics, constraints, and baseline evaluations.

Q1. What is the primary goal of Bar-JEPA?

The goal is to automatically extract numerical data from bar charts, which is currently difficult due to visual variability and limited labeled data.

Q2. How does this research improve on existing methods?

It improves on standard approaches by fine-tuning an I-JEPA encoder to produce semantically rich features, which more than doubles the F1 score compared to using a vanilla encoder.

Q3. Is this model suitable for production deployment today?

The paper notes limitations including the inability to achieve state-of-the-art performance, support for only one type of chart, and difficulty in integrating with multimodal models.

Q4. How are coordinates mapped to actual numerical values?

The system uses PaddleOCR to read the tick labels and then applies RANSAC regression to map the pixel coordinates to the corresponding numerical values.

Q5. What is the training set size?

The model uses a synthetic dataset of 100,000 samples for pretraining.

Q6. How does the model handle variable image resolutions?

It uses Pix2Struct-style patch extraction to adapt the encoder to handle input images of varying resolutions.

Q7. What specific accuracy metrics were reported on the UB PMC dataset?

The model achieved 45.0 percent accuracy at the 0.05 epsilon threshold and 34.1 percent accuracy at the 0.02 epsilon threshold.

Q8. Does the paper compare Bar-JEPA against other models like MatCha or DePlot?

The paper mentions many models including MatCha, DePlot, and ChartGemma as part of the context, but the extracted facts do not provide a detailed head-to-head comparison of their performance metrics.

Q9. What are the current limitations of the model?

The model is limited to one chart type, does not reach state-of-the-art performance, and is difficult to integrate into multimodal language models.