Distildoc: Deep Reinforcement Learning for Token-Efficient Multimodal Document Question Answering
DOI:
https://doi.org/10.47392/IRJAEH.2026.0496Keywords:
Multimodal Question Answering, Retrieval-Augmented Generation, Deep Q-Network, , Context Compression, Token Efficiency, , Large Language Models, Semantic Retrieval, Adaptive Context SelectionAbstract
Large Language Models (LLM) are now being used for document-based question answering across numerous areas such as healthcare, education, and science. The primary problem associated with the use of LLM's is the increase in inference costs based on the number of tokens used for input. This issue tends to become more problematic when dealing with documents that include text, structured tables, and visual content. Although retrieval-augmented generation (RAG) can improve factual grounding, it will result in higher token usage due to large, heterogeneous context. The existing solutions to this problem like LeanContext are geared towards text-only retrieval and utilize tabular Q-learning methods that will not scale well within a high dimensional multimodal environment. To address these issues, we propose a new multimodal question-answering framework called DistilDoc, which is based on deep reinforcement learning techniques designed to be token-efficient. DistilDoc uses an integrated embedding space to consolidate text chunks, each serialized row of a table, and captions of images. So, the context compression process can be modelled as a sequential decision-making problem. DistilDoc uses an off-policy Deep Q-network (DQN) with a state representation of 4608 dimensions to learn optimum compression strategies over 128 possible actions. Experimental evaluation on Arxiv papers, OpenStax textbooks, and WHO reports demonstrates that DistilDoc reduces token usage by 55.86% with a 0.6 drop in sematic similarity. These results highlight the effectiveness of Deep Q-Network on multimodal context compression in improving RAG efficiency.
Downloads
Downloads
Published
Issue
Section
License
Copyright (c) 2026 International Research Journal on Advanced Engineering Hub (IRJAEH)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
.