Abstract
Document Visual Question Answering (DocVQA) represents a significant advancement in document AI, yet its development is often hindered by the sensitive nature of the data involved. This paper presents a pilot study on applying Federated Learning (FL) to DocVQA, introducing a framework called FeDocVQA. By utilizing a "Federated Self-Pretraining" (FSP) strategy and adaptive server-side optimization, the study demonstrates that models can effectively learn from decentralized, private document collections without compromising data privacy. The results indicate that this approach significantly closes the performance gap between federated and centralized training models.
Introduction
While Large Language Models (LLMs) have transformed our ability to interact with text, training these models typically requires massive, centralized datasets. In the context of document analysis, this requirement creates a critical bottleneck: privacy. Real-world documents—such as bank statements, medical records, and invoices—are frequently locked within private "data silos" due to legal frameworks like GDPR. Consequently, researchers often rely on small or non-representative public datasets, limiting the real-world utility of DocVQA systems.
This study explores whether Federated Learning (FL) can overcome this "handicap" by allowing models to be trained across decentralized clients without moving the raw data. The authors tackle the specific challenges of multimodal learning in a heterogeneous environment, where documents vary significantly across different organizations.
The FeDocVQA Framework
The authors propose FeDocVQA, a framework designed to handle the complexities of document understanding in a decentralized setting. The framework consists of three core pillars:
1. Multimodal Architecture
The model utilizes a generative architecture featuring a T5 backbone for text processing and Masked Autoencoder (MAE) patch embeddings for visual features. To bridge the gap between text and vision, the authors employ "Layout-Induced Vision-Text Embedding," which fuses the spatial coordinates of OCR tokens with the visual features of the document image.
2. Federated Self-Pretraining (FSP)
The most significant contribution of this work is the FSP strategy. Before the model is tasked with answering questions, it undergoes self-supervised pretraining on the unlabeled private documents residing at each client. This phase utilizes three distinct tasks:
- Text Modeling (TM): Predicting masked text based on its position.
- Layout Modeling (LM): Predicting the spatial coordinates of specific text tokens.
- Text-Layout Modeling (TLM): A hybrid task that masks both the text and its corresponding bounding box.
This "warm start" allows the model to adapt to the specific visual and structural characteristics of the private documents before the supervised VQA task begins.
3. Adaptive Optimization
Standard federated algorithms like Federated Averaging (FedAvg) often struggle with "client drift" in heterogeneous environments. To combat this, the authors implement FedAdam, which applies an adaptive learning rate at the server level. This helps the global model navigate the noisy gradients produced by diverse document domains, such as the difference between a structured form and a complex table.
Experimental Setup
To simulate a realistic federated environment, the authors assembled a benchmark from three distinct sources:
- DocVQA: Administrative documents like forms and letters.
- WikiTableQuestions (WTQ): Logical questions based on Wikipedia tables.
- TabFact: Fact verification tasks based on tabular data.
The data was partitioned into non-IID (non-independent and identically distributed) sets, ensuring each client held data from only one domain. The study tested scenarios involving 3, 10, and 30 clients to measure scalability and performance.
Key Insights and Results
The pilot study yielded several critical findings for the future of decentralized document AI:
- Performance Gains: The combination of FSP and FedAdam outperformed the standard FedAvg baseline by up to 3.34 points in accuracy and Average Normalized Levenshtein Similarity (ANLS) metrics.
- Closing the Centralized Gap: The federated approach reached performance levels remarkably close to centralized training. In a 3-client split, the FL model achieved a score of 48.66, compared to 53.16 for a model trained on a fully pooled dataset.
- The Necessity of Joint Learning: Ablation studies confirmed that combining all three pretraining tasks (TM, LM, and TLM) was essential. This joint learning of spatial and textual features resulted in a metric of 37.65, compared to 35.04 without pretraining.
- Client Density: The researchers observed that fewer clients with larger local datasets (allowing for more local gradient steps) generally led to better convergence than many clients with smaller data shards.
Conclusion and Future Work
This pilot study demonstrates that Federated Learning is a viable path forward for privacy-preserving Document VQA. By leveraging self-supervised pretraining on local data and adaptive optimization, the FeDocVQA framework mitigates the challenges of data heterogeneity.
Future research will need to address the communication overhead associated with large multimodal models and explore more complex document structures, such as multi-page files. Additionally, integrating advanced privacy-preserving techniques like differential privacy within the FL framework remains a key objective for deploying these systems in highly regulated industries.
Summary updated