SlimDoc: lightweight distillation of document transformer models

Abstract Deploying state-of-the-art document understanding models remains resource-intensive and impractical in many real-world scenarios, particularly where labeled data is scarce and computational budgets are constrained. To address these challenges, this work proposes a novel approach towards parameter-efficient document understanding models capable of adapting to specific tasks and document types without the need for labeled data. Specifically, we propose an approach coined SlimDoc to distill multimodal document transformer encoder models into smaller student models, using internal signals at different training stages, followed by external signals. Our approach is inspired by TinyBERT and adapted to the domain of document understanding transformers. We demonstrate SlimDoc to outperform both a single-stage distillation and a direct fine-tuning of the student. Experimental results across six document understanding datasets demonstrate our approach’s effectiveness: Our distilled student models achieve on average $$93.0\%$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mn>93.0</mml:mn> <mml:mo>%</mml:mo> </mml:mrow> </mml:math> of the teacher’s performance, while the fine-tuned students achieve $$87.0\%$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mn>87.0</mml:mn> <mml:mo>%</mml:mo> </mml:mrow> </mml:math> of the teacher’s performance. Without requiring any labeled data, we create a compact student which achieves $$96.0\%$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mn>96.0</mml:mn> <mml:mo>%</mml:mo> </mml:mrow> </mml:math> of the performance of its supervised-distilled counterpart and $$86.2\%$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mn>86.2</mml:mn> <mml:mo>%</mml:mo> </mml:mrow> </mml:math> of the performance of a supervised-fine-tuned teacher model. We demonstrate our distillation approach to pick up on document geometry and to be effective on the two popular document understanding models LiLT and LayoutLMv3. Our implementation and training data is available at https://github.com/marcel-lamott/SlimDoc .

Authors

Institutions

Publication Details

Journal
International Journal on Document Analysis and Recognition (IJDAR)
Published
2025-06-18
DOI
https://doi.org/10.1007/s10032-025-00542-w
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

SlimDoc: lightweight distillation of document transformer models

Faisal Shafait, Adrian Ulges, Marcel Lamott, Yves-Noel Weweler et al.
International Journal on Document Analysis and Recognition (IJDAR)
Topic Modeling
article

SlimDoc: lightweight distillation of document transformer models

Faisal Shafait, Adrian Ulges, Marcel Lamott, Yves-Noel Weweler, Muhammad Armaghan Shakir
article en

Abstract

Abstract Deploying state-of-the-art document understanding models remains resource-intensive and impractical in many real-world scenarios, particularly where labeled data is scarce and computational budgets are constrained. To address these challenges, this work proposes a novel approach towards parameter-efficient document understanding models capable of adapting to specific tasks and document types without the need for labeled data. Specifically, we propose an approach coined SlimDoc to distill multimodal document transformer encoder models into smaller student models, using internal signals at different training stages, followed by external signals. Our approach is inspired by TinyBERT and adapted to the domain of document understanding transformers. We demonstrate SlimDoc to outperform both a single-stage distillation and a direct fine-tuning of the student. Experimental results across six document understanding datasets demonstrate our approach’s effectiveness: Our distilled student models achieve on average $$93.0\%$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mn>93.0</mml:mn> <mml:mo>%</mml:mo> </mml:mrow> </mml:math> of the teacher’s performance, while the fine-tuned students achieve $$87.0\%$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mn>87.0</mml:mn> <mml:mo>%</mml:mo> </mml:mrow> </mml:math> of the teacher’s performance. Without requiring any labeled data, we create a compact student which achieves $$96.0\%$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mn>96.0</mml:mn> <mml:mo>%</mml:mo> </mml:mrow> </mml:math> of the performance of its supervised-distilled counterpart and $$86.2\%$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mn>86.2</mml:mn> <mml:mo>%</mml:mo> </mml:mrow> </mml:math> of the performance of a supervised-fine-tuned teacher model. We demonstrate our distillation approach to pick up on document geometry and to be effective on the two popular document understanding models LiLT and LayoutLMv3. Our implementation and training data is available at https://github.com/marcel-lamott/SlimDoc .

International Journal on Document Analysis and Recognition (IJDAR)Vol. 28(3)
Insiders Technologies (Germany) (DE), RheinMain University of Applied Sciences (DE), National University of Sciences and Technology (PK)
Openalex Percentile: Top 93%
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.