# VILA: Improving Structured Content Extraction from Scientific PDFs Using Visual Layout Groups

VILA: 시각적 레이아웃 그룹을 이용한 과학 논문 PDF의 구조화된 콘텐츠 추출 개선

Zejiang Shen, Kyle Lo, Lucy Lu Wang, Bailey Kuehl, Daniel S. Weld, Doug Downey · arXiv · 2021년 6월 1일

- **연구 문제** 과학 논문 PDF의 구조 추출은 정확도와 계산 비용 사이의 한계를 갖습니다. 기존 레이아웃 인지 모델은 토큰 단위 위치 정보에 의존하고 추가 pre-training이 필요합니다.
- **연구 방법** VILA 그룹 경계에 지시 토큰을 넣는 I-VILA와, 그룹 단위로 예측하는 계층 모델인 H-VILA를 제안합니다.
- **주요 결과** I-VILA는 LayoutLM 대비 Macro F1을 GROTOAP2, DocBank, S2-VL에서 각각 +1.13%, +1.90%, +1.29% 높였습니다. H-VILA는 텍스트 라인 설정에서 추론 시간을 46.59% 줄였습니다.

## PDF 구조 추출의 정확도와 비용 문제

과학 논문 PDF에서 제목, 저자, 그림, 참고문헌 같은 구조를 추출하는 일은 NLP 파이프라인의 첫 단계입니다. 기존 레이아웃 인지 모델은 토큰 하나하나의 2D 위치를 입력에 더해 성능을 높였지만, 줄이나 블록처럼 여러 토큰을 묶는 상위 레이아웃 구조를 명시적으로 다루지 않습니다. 또한 LayoutLM 같은 방법은 BERT 계열 모델에 레이아웃 정보를 넣어 추가 pre-training을 해야 하므로, 1,000 GPU 시간이 넘는 계산 비용이 듭니다. 이번 연구는 추가 pre-training 없이 레이아웃 그룹을 활용해 정확도와 추론 효율을 함께 높이는 방법을 다룹니다.

## VILA 그룹과 그룹 균일성 가정

이 연구는 텍스트 라인 또는 텍스트 블록으로 이루어진 VILA 그룹을 입력 구조로 사용합니다. 그룹은 PDF 파서나 비전 모델이 만든 상자로 얻으며, 토큰의 중심점이 그룹 상자 안에 있으면 그 그룹에 할당됩니다. 핵심 가정은 그룹 균일성 가정입니다. 같은 그룹의 토큰은 보통 같은 의미 범주를 가지므로 범주 변화는 그룹 경계에서 일어난다고 봅니다. 저자들은 이 가정을 바탕으로 그룹 경계를 모델에 알려 주는 두 가지 설계를 제안합니다.

![Figure 1: (a) Real-world scientiﬁc documents often have intricate layout structures, so analyzing only ﬂat- tened raw text forfeits valuable information, yield…](https://refivu.com/papers/c64357e4-d385-4277-bacb-9f3cd2ed5af1/figures/figure-528ed19e650abdb9caf2bbd225337e0a.png?thumb=512)

**Figure 1** : (a) Real-world scientiﬁc documents often have intricate layout structures, so analyzing only ﬂat- tened raw text forfeits valuable information, yielding sub-optimal results. (b) The complex structures can be broken down into groups (text blocks or lines) that are composed of tokens with the same semantic category.

[원문](https://arxiv.org/abs/2106.00676v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zejiang Shen, Kyle Lo, Lucy Lu Wang, Bailey Kuehl, Daniel S. Weld, Doug Downey · VILA: Improving Structured Content Extraction from Scientific PDFs Using Visual Layout Groups · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

## I-VILA: 그룹 경계에 지시 토큰 삽입

I-VILA는 서로 다른 VILA 그룹 사이에 새로운 토큰 \[BLK\]를 넣은 입력을 BERT 계열 모델에 줍니다. 입력은 CLS, 첫 그룹의 토큰, BLK, 다음 그룹의 토큰, 마지막 SEP 순서로 이어집니다. 모델은 이 토큰 분류 목적으로 미세조정되며 추가 pre-training은 하지 않습니다. 지시 토큰은 모델의 여러 층에서 계속 보이므로, 임베딩 층에서만 위치를 알려 주는 LayoutLM 방식과 달리 범주 변화의 힌트를 여러 단계에서 제공합니다. LayoutLM을 입력 모델로 쓸 때는 새 BLK 토큰의 위치 임베딩을 해당 그룹 상자에서 만듭니다.

## H-VILA: 그룹 단위 계층 모델

H-VILA는 페이지를 토큰이 아니라 그룹의 집합으로 모델링합니다. 그룹 인코더는 한 그룹의 토큰 임베딩을 평균 집계하여 그룹 벡터를 만들고, 2D 위치 임베딩을 더합니다. 그다음 페이지 인코더가 그룹 벡터들을 받아 그룹마다 범주 확률을 출력하며, 같은 그룹의 토큰은 같은 범주를 받습니다. 그룹 인코더는 BERT의 첫 층 가중치로, 페이지 인코더는 LayoutLM 가중치로 초기화되어 추가 pre-training 없이 미세조정됩니다. 그룹 토큰 길이의 편차가 크므로 저자들은 그룹당 토큰 절단 수를 통계에 따라 정하는 방식을 씁니다.

![Figure 3: Illustration of the H-VILA model. Texts from each visual layout group are encoded separatedly using the group encoder, and the generated representati…](https://refivu.com/papers/c64357e4-d385-4277-bacb-9f3cd2ed5af1/figures/figure-f136ab2ebe7475e4fcf4d9c40df5c62a.png?thumb=512)

**Figure 3** : Illustration of the H-VILA model. Texts from each visual layout group are encoded separatedly using the group encoder, and the generated representation are subsequently modeled by a page encoder. The semantic category are predicted at the group-level, which signiﬁcantly improves efﬁciency.

[원문](https://arxiv.org/abs/2106.00676v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zejiang Shen, Kyle Lo, Lucy Lu Wang, Bailey Kuehl, Daniel S. Weld, Doug Downey · VILA: Improving Structured Content Extraction from Scientific PDFs Using Visual Layout Groups · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

## S2-VLUE 벤치마크와 S2-VL 데이터셋

평가는 S2-VLUE 벤치마크 묶음에서 이루어집니다. 이 묶음은 자동 주석 데이터인 GROTOAP2와 DocBank, 그리고 이번 연구가 새로 만든 수작업 주석 데이터 S2-VL로 구성됩니다. GROTOAP2는 생명과학 논문에 치우쳐 있고, DocBank는 arXiv LaTeX에서 자동으로 만든 라벨이라 수정이 필요했습니다. S2-VL은 19개 학문 분야의 논문을 블록 단위로 주석하며, 평가는 논문 단위로 나눈 5-fold 교차검증으로 이루어집니다. 따라서 세 데이터셋은 서로 다른 주석 방식과 분야 범위를 갖습니다.

![Table 1: Details for the three datasets in the S2-VLUE benchmark](https://refivu.com/papers/c64357e4-d385-4277-bacb-9f3cd2ed5af1/figures/figure-59ebfb4b41d1e5ff5e1859f0bb4aec60.png?thumb=512)

**Table 1** : Details for the three datasets in the S2-VLUE benchmark.

[원문](https://arxiv.org/abs/2106.00676v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zejiang Shen, Kyle Lo, Lucy Lu Wang, Bailey Kuehl, Daniel S. Weld, Doug Downey · VILA: Improving Structured Content Extraction from Scientific PDFs Using Visual Layout Groups · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## I-VILA의 정확도 개선

I-VILA는 LayoutLM 기준선과 비교되었습니다. 보고된 Macro F1 향상은 GROTOAP2에서 +1.13%, DocBank에서 +1.90%, S2-VL에서 +1.29%입니다. 같은 비교에서 그룹 범주 불일치 지표 H(G)는 32.1%, 21.7%, 21.7% 줄었다고 보고됩니다. 이 결과는 BERT 계열 모델에 추가 pre-training 없이 그룹 지시 토큰을 넣은 조건에서 나온 것입니다. 문장 단위 경계 지시 토큰보다 텍스트 라인이나 블록 기반 지시 토큰이 더 나은 결과를 보였다는 점도 함께 보고되었습니다.

![Figure 2: Comparing inserting indicator tokens \[BLK\] based on VILA groups and sentence boundaries. Indi- cators representing VILA groups (e.g., text blocks in…](https://refivu.com/papers/c64357e4-d385-4277-bacb-9f3cd2ed5af1/figures/figure-6b25c5373db60ebdb8e5258cafd2fd6b.png?thumb=512)

**Figure 2** : Comparing inserting indicator tokens \[BLK\] based on VILA groups and sentence boundaries. Indi- cators representing VILA groups (e.g., text blocks in the left ﬁgure) are usually consistent with the token cat- egory changes (illustrated by the background color in (a)), while sentence boundary indicators fail to provide helpful hints (both "false positive"s and "false negative"s occur frequently in (b)). Best viewed in color.

[원문](https://arxiv.org/abs/2106.00676v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zejiang Shen, Kyle Lo, Lucy Lu Wang, Bailey Kuehl, Daniel S. Weld, Doug Downey · VILA: Improving Structured Content Extraction from Scientific PDFs Using Visual Layout Groups · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

![Figure 4: Model predictions for the 10th page of our paper draft. We present the token category and text block bounding boxes (highlighted in red rectangles) b…](https://refivu.com/papers/c64357e4-d385-4277-bacb-9f3cd2ed5af1/figures/figure-ffd7d6016ac3867a99b1e36d558843c1.png?thumb=512)

**Figure 4** : Model predictions for the 10th page of our paper draft. We present the token category and text block bounding boxes (highlighted in red rectangles) based on the (a) ground-truth annotations and model predictions from both I-VILA and H-VILA models (the three results happen to be identical) and (b) model predictions from the LayoutLM model. When VILA is injected, the model achieves more consistent predictions for the example, as indicated by arrows (1) and (2) in the ﬁgure. Best view in color.

[원문](https://arxiv.org/abs/2106.00676v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zejiang Shen, Kyle Lo, Lucy Lu Wang, Bailey Kuehl, Daniel S. Weld, Doug Downey · VILA: Improving Structured Content Extraction from Scientific PDFs Using Visual Layout Groups · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

![Table 2: Performance of baseline and I-VILA models on the scientiﬁc document extraction task. I-VILA provides consistent accuracy improvements over the baselin…](https://refivu.com/papers/c64357e4-d385-4277-bacb-9f3cd2ed5af1/figures/figure-282b5c1b24b0d37a84d789bf3f488e8b.png?thumb=512)

**Table 2** : Performance of baseline and I-VILA models on the scientiﬁc document extraction task. I-VILA provides consistent accuracy improvements over the baseline LayoutLM model on all three benchmark datasets.

[원문](https://arxiv.org/abs/2106.00676v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zejiang Shen, Kyle Lo, Lucy Lu Wang, Bailey Kuehl, Daniel S. Weld, Doug Downey · VILA: Improving Structured Content Extraction from Scientific PDFs Using Visual Layout Groups · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## H-VILA의 추론 효율과 정확도 변화

H-VILA는 추론 시간을 줄이는 것을 목표로 평가되었습니다. GROTOAP2 테스트셋에서 측정한 결과, 텍스트 라인 설정의 H-VILA는 LayoutLM 대비 추론 시간을 46.59% 줄였고 Macro F1은 GROTOAP2에서 -0.75%, DocBank에서 +0.23%, S2-VL에서 +1.21% 변했습니다. 측정 시간은 샘플당 모델 실행 시간이며 PDF 변환과 그룹 탐지 시간은 제외되었습니다. 텍스트 블록 설정은 추론 시간을 더 크게 줄였지만, 블록 단위 분류의 정확도 변화는 데이터셋마다 다르게 나타났습니다.

![Table 3: Content extraction performance for H-VILA. The H-VILA models signiﬁcantly reduce the inference time cost compared to LayoutLM, while achieving compara…](https://refivu.com/papers/c64357e4-d385-4277-bacb-9f3cd2ed5af1/figures/figure-54580fba2a133db90e8fdf2cfacd8309.png?thumb=512)

**Table 3** : Content extraction performance for H-VILA. The H-VILA models signiﬁcantly reduce the inference time cost compared to LayoutLM, while achieving comparable accuracy on the three benchmark datasets.

[원문](https://arxiv.org/abs/2106.00676v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zejiang Shen, Kyle Lo, Lucy Lu Wang, Bailey Kuehl, Daniel S. Weld, Doug Downey · VILA: Improving Structured Content Extraction from Scientific PDFs Using Visual Layout Groups · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## pre-training 없는 학습 비용 비교

비용 비교에서 BERT 기반 I-VILA는 미세조정만으로 학습하며, 보고된 비용은 40시간의 미세조정입니다. 같은 표에서 LayoutLM은 1.2k 시간의 pre-training과 50시간의 미세조정을 포함합니다. BERT 기반 I-VILA의 정확도 차이는 GROTOAP2에서 0.00%, DocBank에서 -0.89%, S2-VL에서 -1.05%로 보고되었습니다. 저자들은 이를 pre-training 없이도 레이아웃 정보를 넣는 효율적 방법으로 해석합니다. 다만 이 비용은 GROTOAP2 기준 V100 GPU 시간 환산이며, 정확도 비교는 해당 BERT 기반 설정에 한정됩니다.

![Table 5: Comparison between I-VILA models and other layout-aware methods that require expensive pretraining. I-VILA achieves comparable accuracy with less than…](https://refivu.com/papers/c64357e4-d385-4277-bacb-9f3cd2ed5af1/figures/figure-309261a89ba08799be4f0b2859703a06.png?thumb=512)

**Table 5** : Comparison between I-VILA models and other layout-aware methods that require expensive pretraining. I-VILA achieves comparable accuracy with less than 5% of the training cost.

[원문](https://arxiv.org/abs/2106.00676v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zejiang Shen, Kyle Lo, Lucy Lu Wang, Bailey Kuehl, Daniel S. Weld, Doug Downey · VILA: Improving Structured Content Extraction from Scientific PDFs Using Visual Layout Groups · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.

## 그룹 탐지기 선택의 영향

VILA 방법은 그룹 탐지기의 품질에 영향을 받습니다. S2-VL 실험은 CERMINE 규칙 기반 파서, PubLayNet으로 학습된 Mask R-CNN 비전 모델, 정답 블록 상한을 비교합니다. 비전 모델은 PubLayNet에서 학습되어 S2-VL에 전이 적용됩니다. 이 설정에서 텍스트 블록 기반 H-VILA는 비전 모델 그룹을 쓸 때 Macro F1 82.09와 H(G) 0.36을 보고했습니다. 블록 탐지의 정확도가 H-VILA 결과에 크게 영향을 준다는 점은 이 실험의 중요한 결과입니다.

![Table 6: VILA model performance when using different layout group detectors for text blocksG(B) and linesG(L) on the S2-VL dataset](https://refivu.com/papers/c64357e4-d385-4277-bacb-9f3cd2ed5af1/figures/figure-a9d343bccc2fcde8edb8550f4e27c67c.png?thumb=512)

**Table 6** : VILA model performance when using different layout group detectors for text blocksG(B) and linesG(L) on the S2-VL dataset.

[원문](https://arxiv.org/abs/2106.00676v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zejiang Shen, Kyle Lo, Lucy Lu Wang, Bailey Kuehl, Daniel S. Weld, Doug Downey · VILA: Improving Structured Content Extraction from Scientific PDFs Using Visual Layout Groups · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 한계

H-VILA는 그룹 탐지가 잘못되면 그룹 내부의 토큰에 같은 범주를 할당하므로 정확도가 낮아질 수 있습니다. 원문에서 보고된 DocBank와 S2-VL의 블록 단위 결과는 LayoutLM보다 각각 -3.60%, -0.73% Macro F1 낮았습니다. 반면 I-VILA는 토큰마다 범주를 다르게 줄 수 있어 잘못된 블록 탐지에 더 유연합니다. 따라서 블록 탐지 품질이 낮다면 I-VILA가 더 적합하다고 볼 수 있습니다. 이 결과는 여러 그룹 탐지기와 데이터셋 조합에서 얻은 것이며, 모든 문서 종류로 일반화된 것은 아닙니다.

## 논문 정보

- **저자**: Zejiang Shen, Kyle Lo, Lucy Lu Wang, Bailey Kuehl, Daniel S. Weld, Doug Downey
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2021년 6월 1일
- **등록일**: 2026년 11월 6일
- **수정일**: 2022년 1월 5일
- **버전**: v3
- **arXiv**: 2106.00676
- **분류**: cs.CL · cs.CV
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2106.00676v3) · [원문 PDF ↗](https://arxiv.org/pdf/2106.00676v3)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Accurately extracting structured content from PDFs is a critical first step for NLP over scientific papers. Recent work has improved extraction accuracy by incorporating elementary layout information, e.g., each token's 2D position on the page, into language model pretraining. We introduce new methods that explicitly model VIsual LAyout (VILA) groups, i.e., text lines or text blocks, to further improve performance. In our I-VILA approach, we show that simply inserting special tokens denoting layout group boundaries into model inputs can lead to a 1.9% Macro F1 improvement in token classification. In the H-VILA approach, we show that hierarchical encoding of layout-groups can result in up-to 47% inference time reduction with less than 0.8% Macro F1 loss. Unlike prior layout-aware approaches, our methods do not require expensive additional pretraining, only fine-tuning, which we show can reduce training cost by up to 95%. Experiments are conducted on a newly curated evaluation suite, S2-VLUE, that unifies existing automatically-labeled datasets and includes a new dataset of manual annotations covering diverse papers from 19 scientific disciplines. Pre-trained weights, benchmark datasets, and source code are available at https://github.com/allenai/VILA.

## 원문 인용

Zejiang Shen, Kyle Lo, Lucy Lu Wang, Bailey Kuehl, Daniel S. Weld, Doug Downey (2021). VILA: Improving Structured Content Extraction from Scientific PDFs Using Visual Layout Groups. arXiv:2106.00676v3. https://arxiv.org/abs/2106.00676v3

**BibTeX**

```
@misc{shen2021vila,
  title = {{VILA: Improving Structured Content Extraction from Scientific PDFs Using Visual Layout Groups}},
  author = {Zejiang Shen and Kyle Lo and Lucy Lu Wang and Bailey Kuehl and Daniel S. Weld and Doug Downey},
  year = {2021},
  eprint = {2106.00676},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.00676v3}
}
```

## 이 논문의 용어

- [BERT](https://refivu.com/terms/45b639a1d317-bert)
- [Mask R-CNN](https://refivu.com/terms/6da881f24c0c-mask-r-cnn)
- [Macro F1](https://refivu.com/terms/508a11de13a9-macro-f1)
- [LayoutLMv2](https://refivu.com/terms/601e1ac24f4b-layoutlmv2)
- [PubLayNet](https://refivu.com/terms/e6dca3109e35-publaynet)
- [VILA](https://refivu.com/terms/0fa8118f8df7-vila)

## 다른 논문 해설

- [Is K-fold cross validation the best model selection method for Machine Learning?](https://refivu.com/papers/53831d25-c6d2-4cd6-9e3d-da38ead2e2a9-is-k-fold-cross-validation-the-best-model.md)
- [Self-supervised Dynamic CT Perfusion Image Denoising with Deep Neural Networks](https://refivu.com/papers/e15e65ce-32bc-42d4-8cff-9b3727bbe0cf-self-supervised-dynamic-ct-perfusion-image-denoising-with.md)
- [Deep IMU Bias Inference for Robust Visual-Inertial Odometry with Factor Graphs](https://refivu.com/papers/7e9e3ea5-3db6-473c-9d99-7fbb39b4d501-deep-imu-bias-inference-for-robust-visual-inertial.md)
- [TiROD: Tiny Robotics Dataset and Benchmark for Continual Object Detection](https://refivu.com/papers/ba3ea100-4e7e-4568-aab9-c8aa20c4afae-tirod-tiny-robotics-dataset-and-benchmark-for-continual.md)
- [Detect Faces Efficiently: A Survey and Evaluations](https://refivu.com/papers/13eb42e8-ad32-4f42-9dd4-913ad7464dd5-detect-faces-efficiently-a-survey-and-evaluations.md)
- [Quantifying the unknown impact of segmentation uncertainty on image-based simulations](https://refivu.com/papers/9a10b514-7cac-4373-b2dd-0118592c484e-quantifying-the-unknown-impact-of-segmentation-uncertainty.md)
- [A Pragmatist Robot: Learning to Plan Tasks by Experiencing the Real World](https://refivu.com/papers/a58b6f25-7856-446f-8f4b-9c7d851b1a67-a-pragmatist-robot-learning-to-plan-tasks-by.md)
- [Speech Emotion Recognition via an Attentive Time-Frequency Neural Network](https://refivu.com/papers/760c5a14-c59b-4c4a-825e-5101ca3d8d41-speech-emotion-recognition-via-an-attentive-time-frequency.md)
- [Cross-Modal Contrastive Learning of Representations for Navigation using Lightweight, Low-Cost Millimeter Wave Radar for Adverse Environmental Conditions](https://refivu.com/papers/5c56fa5a-3227-4a44-a609-9b42bb1290c2-cross-modal-contrastive-learning-of-representations-for.md)
- [Safety Analysis in the Era of Large Language Models: A Case Study of STPA using ChatGPT](https://refivu.com/papers/5cb1555c-f8fe-4bae-a604-eb07013f797d-safety-analysis-in-the-era-of-large-language.md)
- [AI-Driven Robotics for Optics](https://refivu.com/papers/1eea416b-970f-4345-8b65-464b1d31238c-ai-driven-robotics-for-optics.md)
- [Active learning for data streams: a survey](https://refivu.com/papers/a38e56c3-797c-45a4-bbe8-38722c825e80-active-learning-for-data-streams-a-survey.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/c64357e4-d385-4277-bacb-9f3cd2ed5af1-vila-improving-structured-content-extraction-from-scientific)
