PatFig: Generating Short and Long Captions for Patent Figures

Dana Aubakirova, Kim Gerdes, Lufei Liu · DOI

Abstract

This paper introduces Qatent PatFig, a novel large-scale patent figure dataset comprising 30,000+ patent figures from over 11,000 European patent applications. For each figure, this dataset provides short and long captions, reference numerals, their corresponding terms, and the minimal claim set that describes the interactions between the components of the image. To assess the usability of the dataset, we finetune an LVLM model on Qatent PatFig to generate short and long descriptions, and we investigate the effects of incorporating various text-based cues at the prediction stage of the patent figure captioning process.

Introduction

Patent applications are dense, technical documents where figures play a vital role in explaining complex inventions. However, writing the accompanying captions—both the "brief description" (short) and the "detailed description" (long)—is a labor-intensive task for patent attorneys. While AI has made massive strides in general image captioning, patent figures present unique challenges due to their abstract nature (schematics, flowcharts), the presence of reference numerals that must map to specific terms, and strict domain-specific formatting requirements.

Overview of the PatFig captioning task using MiniGPT-4 to generate technical descriptions.

The Qatent PatFig Dataset

To address the lack of high-quality data, the authors introduced Qatent PatFig, a novel large-scale dataset comprising over 30,000 patent figures from 11,000+ European patent applications. This dataset is significantly more comprehensive than previous efforts like CLEF-IP or DeepPatent. For every figure, PatFig provides:

  • Short and long captions extracted from the patent text.
  • Reference numerals and terms (e.g., "120: projection lens").
  • Minimal claim sets describing component interactions.

Methodology: Fine-tuning MiniGPT-4

The researchers fine-tuned MiniGPT-4, a Large Vision-Language Model (LVLM), specifically focusing on its linear projection layer to align visual features with the language model. They evaluated the model's performance across three levels of textual "cues":

  1. Vision-only: The image alone.
  2. Vision + Title: The image plus the patent title.
  3. Vision + Title + Terms: The image, title, and a list of technical terms mapped to reference numerals.

Additionally, they integrated OCR to handle reference numerals, finding that docTR significantly outperformed other libraries like Pytesseract, achieving 72.08% accuracy.

Key Results and Insights

The study revealed that the impact of textual context depends heavily on the caption type. For long captions, incorporating technical terms and titles significantly improved performance, as the model used these cues to anchor its detailed descriptions. Conversely, for short captions, adding the same text actually decreased performance, suggesting that extra context can "disturb" the model when it aims for a concise summary.

Quantitative performance metrics (BLEU, ROUGE, CIDEr) for short and long captions under different input cue configurations.

As shown in the results table, the best short captions were achieved using Vision + Title, reaching a BLEU-4 score of 0.4206. For long captions, while absolute scores were lower due to complexity, the CIDEr score saw a nearly five-fold increase—from 0.0114 (Vision-only) to 0.0582—when Title and Terms were included.

Conclusion

PatFig represents a significant step forward in automating technical documentation for intellectual property. While challenges remain—particularly regarding spatial grounding and the "hallucination" of details not present in the image—the model successfully adopted the formal "patentese" style. Future work will focus on improving spatial understanding and exploring the generation of figures directly from text to assist attorneys in visualizing claims.

Summary updated

BibTeX
@inproceedings{aubakirova2023patfig,
  author = {Dana Aubakirova and Kim Gerdes and Lufei Liu},
  title = {{PatFig: Generating Short and Long Captions for Patent Figures}},
  booktitle = {Workshops @ ICCV},
  year = {2023},
  doi = {10.1109/iccvw60793.2023.00305},
}
Figure