OIDA-QA: A Multimodal Benchmark for Analyzing the Opioid Industry Documents Archive

Xuan Shen, Brian Wingenroth, Zichao Wang, Jason Kuen, Wanrong Zhu, Ruiyi Zhang, Yiwei Wang, Lichun Ma, Anqi Liu, Hongfu Liu, Tong Sun, Kevin S. Hawkins, Kate Tasker, G. Caleb Alexander, Jiuxiang Gu

TL;DR

This paper introduces OIDA-QA, a massive multimodal, multi-page, and multi-hop question-answering benchmark designed to analyze the complex legal and corporate documents within the Opioid Industry Documents Archive (OIDA). By combining a novel page-grounding training strategy with a dedicated Page Finder module, the authors develop a scalable AI assistant that accurately answers multi-turn medical queries while precisely citing the exact source pages.

What Problem Does This Paper Address?

The opioid crisis is one of the most devastating public health disasters in modern history. To understand how regulatory, corporate, and healthcare systems failed simultaneously, researchers rely on the UCSF-JHU Opioid Industry Documents Archive (OIDA)—a massive public repository of internal corporate correspondence, legal briefs, and medical reports.

However, analyzing this archive is incredibly difficult for both humans and standard AI models. The documents are long, multi-page PDFs containing complex layouts, tables, and visual elements. While Large Language Models (LLMs) excel at short-form question answering, they struggle with:

  1. Long-context reasoning: Processing documents that span dozens or hundreds of pages.
  2. Hallucination and Trustworthiness: Answering questions without providing exact page references (provenance), making it hard for researchers to verify the information.
  3. Multi-turn conversations: Maintaining context across sequential, multi-hop user queries.

Existing healthcare QA datasets typically lack multi-turn dialogue capabilities and page-level grounding. This paper bridges that gap by transforming raw industry archives into a structured, verifiable AI benchmark.

Methods

The authors developed a comprehensive pipeline to extract data, generate high-quality QA pairs, and train a specialized document-grounded LLM:

  1. Multimodal Data Extraction: Instead of relying on raw, unstructured OCR text lines (which destroy document layout), they used advanced models like Doc2Box and Doc2Mask to preserve semantic structures, text blocks, layout bounding boxes, and visual entity masks.
  2. Persona-Based QA Generation: To simulate realistic user interactions, they leveraged over 1 billion diverse user profiles from Persona Hub (e.g., doctors, legal researchers, patients) to prompt GPT-4o to generate multi-hop, multi-turn conversations. Crucially, medical professionals manually refined 100k of these pairs to ensure domain accuracy.
  3. Instruction Tuning with Content Reiteration: They fine-tuned a Mistral-7B-Instruct-v0.2 model. To force the model to learn page locations, they modified the training loss function to require the model to output the relevant page indices and repeat a snippet of the source context (Content Reiteration) alongside the final answer.
  4. Two-Stage Page Finder Module: For ultra-long documents that exceed hardware memory limits, they trained a separate, lightweight Sentence Transformer retrieval module. This module scans the document, flags the most relevant pages, and feeds only those key pages to the LLM for final answer generation.
Overview of the proposed OIDA-QA framework enabling multi-hop QA grounded to specific pages.

Datasets

The paper introduces the OIDA-QA benchmark, which consists of:

  • Documents: 400,000 training documents and 10,000 testing documents sampled across 20 distinct document clusters derived from the OIDA archive.
  • QA Pairs: Over 370,000 multi-turn, multi-hop QA pairs containing explicit page-grounding references.

The dataset is publicly hosted on Hugging Face.

Key Insights and Ideas

  • Layout is as Important as Text: Traditional rule-based OCR merging often fails to capture the true semantic relationships in complex corporate documents. Utilizing block-based extraction tools (like Doc2Box) dramatically improves the quality of downstream QA generation.
  • Content Reiteration Cures Disorientation: Forcing an LLM to repeat the source text snippet and page number during training acts as a strong regularizer, significantly boosting its page-localization accuracy during testing.
  • The Power of Two-Stage Processing: Trying to stuff an entire 100-page document into an LLM's context window is computationally expensive and introduces noise. A dedicated, bi-encoder Page Finder module provides a scalable, low-cost alternative suitable for deployment on consumer-grade hardware or mobile devices.

Key Results

The authors evaluated their approach using standard language metrics (BLEU, ROUGE, METEOR, BERTScore) alongside custom metrics: Page Generation Rate (how often the model provides a citation) and Page Accuracy (how often that citation is correct).

  • Context Window Impact: Increasing the context window size during training drastically improved performance. Models trained with a maximum context window achieved a BERTScore of 92.2% and a Page Accuracy of 97.6%.
  • The Page Finder Advantage: Integrating the Page Finder module with a smaller context window (e.g., window size 1) yielded the highest precision, achieving a Page Accuracy of 99.2% and a Page Generation Rate of 83.4%.
  • Competitive with GPT-4: Qualitative evaluations showed that the fine-tuned Mistral-7B model achieved document-grounding performance highly comparable to GPT-4, accurately pinpointing source pages across long, multi-page documents.
Data distribution showing the long-sequence characteristics of the OIDA-QA benchmark.

Limitations and Future Work

While the proposed Content Reiteration strategy significantly mitigates the limitations of smaller context windows, it does not fully replace the need for larger context windows, which remain crucial for optimal performance on highly interconnected, multi-hop queries.

For future work, the authors plan to transition this framework into real-world applications, optimizing it for rapid-response deployment in complex medical information retrieval and public health monitoring systems.

Summary updated

BibTeX
@inproceedings{shen2026oida,
  author = {Xuan Shen and Brian Wingenroth and Zichao Wang and Jason Kuen and Wanrong Zhu and Ruiyi Zhang and Yiwei Wang and Lichun Ma and Anqi Liu and Hongfu Liu and Tong Sun and Kevin S. Hawkins and Kate Tasker and G. Caleb Alexander and Jiuxiang Gu},
  title = {{OIDA-QA: A Multimodal Benchmark for Analyzing the Opioid Industry Documents Archive}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i46.41273},
}
Figure