TL;DR
This paper tackles the challenge of extracting figures and tables from scientific PDFs, a crucial step for downstream applications like search and analysis. They introduce a novel method to automatically generate a massive dataset of over 5.5 million figure/table labels from arXiv and PubMed, significantly larger than previous benchmarks. This dataset then enables them to train a deep neural network, "DeepFigures," which achieves state-of-the-art performance and is already deployed in Semantic Scholar.
What Problem Does This Paper Address?
Scientific figures (charts, diagrams, tables) are rich sources of information, but extracting them from PDF documents is a significant hurdle. Most research papers are only available in PDF format, and while some platforms provide structured data for newer papers, older or less common publications lack this. This scarcity of large, labeled datasets has hindered the development of robust, data-driven methods for figure extraction. Previous approaches often relied on rule-based systems tuned for specific domains (like computer science papers), which struggled to generalize to the diverse stylistic conventions found across different scientific fields.
Methods
The core innovation lies in their distant supervision approach to automatically generate training labels. They leverage auxiliary data from two large scientific document collections:
- LaTeX Documents (arXiv): For papers written in LaTeX, they modify the document's source code to draw colored bounding boxes around figures and tables in the compiled PDF. By comparing the original and modified PDFs, they can precisely identify the pixel coordinates of these elements. Captions are identified by modifying their text color and then extracting their bounding boxes.
- XML Documents (PubMed): For papers with XML markup (common in life sciences), they use the XML tags to identify figure and table captions. They then locate the corresponding page in the PDF and use a combination of text matching (with dynamic programming to handle variations) and multi-scale template matching to find the figure images and their bounding boxes.
Once these labels are generated, they train a DeepFigures model. This model is a deep neural network based on the ResNet-101 architecture, adapted for object detection. It's trained end-to-end on the generated dataset, allowing it to learn feature representations directly relevant to figure localization.
Datasets
The paper introduces two newly generated, large-scale datasets:
- "LaTeX" Dataset: Derived from arXiv papers, containing 1,030,671 figures and 164,356 tables.
- "XML" Dataset: Derived from PubMed Central, containing 3,064,951 figures and 1,267,464 tables.
These datasets are orders of magnitude larger than previous benchmarks like "CS-Large" (which had 1,030,671 figures and 164,356 tables, but was manually labeled). They also use the "CS-Large" dataset and a new manually-labeled PubMed dataset for evaluation.
Key Insights and Ideas
- The Power of Scale: The sheer size of their induced dataset (5.5 million labels) is a game-changer. It allows for training deep learning models that can generalize far better than rule-based systems or models trained on smaller, manually-labeled datasets.
- Distant Supervision is Effective: By cleverly exploiting metadata and structural information in scientific documents (LaTeX commands, XML tags), they can generate high-quality labels without human annotators, overcoming the bottleneck of manual labeling.
- Generalization is Key: Their DeepFigures model, trained on diverse data from both LaTeX and XML sources, demonstrates significantly better generalization across different scientific domains compared to previous domain-specific methods.
- Practical Deployment: The successful integration of DeepFigures into Semantic Scholar highlights the real-world utility and scalability of their approach.
Key Results
- Dataset Size: Over 5.5 million induced labels, ~4,000 times larger than the previous largest figure extraction dataset.
- Label Accuracy: Average precision of 96.8% for induced labels.
- Model Performance:
- On the "CS-Large" dataset, DeepFigures achieved an F1-score of 84.9%, slightly underperforming PDFFigures 2.0 (87.9%) which was tuned for this domain.
- On the new "PubMed" dataset, DeepFigures achieved an F1-score of 80.6%, a significant improvement over PDFFigures 2.0 (63.5%).
- Production Deployment: Deployed in Semantic Scholar, extracting figures from 13 million papers, with a 96% success rate.
Limitations and Future Work
- Caption Detection: While figures are detected by the neural network, captions are still detected using a rule-based approach. The authors suggest future work could involve training a model for end-to-end figure and caption extraction.
- Leveraging More PDF Information: The current model primarily uses rendered page images. Future work could incorporate other PDF information (text locations, image element locations) to improve detection.
- Extending Data Generation: The data generation approach could be extended to identify other document elements like titles, authors, and section headers.
Summary updated