๐ŸŽฐ MAB-DQA: Multi-Armed Bandit Document Question Answering

ACL 2026 โ€” Thompson Sampling for aspect-aware document page retrieval.

Upload a PDF, ask a question, and watch the Multi-Armed Bandit explore & exploit to find the most relevant pages.

Upload a PDF and ask a question to begin.


How It Works

  1. Query Decomposition โ€” Qwen2.5-VL breaks your question into aspect subqueries
  2. ColPali Embedding โ€” Pages and subqueries are encoded into a shared vision-language space
  3. Late Interaction โ€” MaxSim scoring between query tokens and page patch tokens
  4. Page Similarity Graph โ€” Cosine similarity between page embeddings builds a neighbor graph
  5. Thompson Sampling MAB โ€” Each subquery is an "arm"; the bandit explores high-value aspects and exploits promising pages over b=2 rounds
  6. Final Ranking โ€” Pages ranked by composite score: ColPali + VLM relevance + exploration bonus

๐Ÿ“„ Paper ยท ๐Ÿ’ป Code