Data Quality over Capacity: Internalizing Documents into LoRA Adapters for Closed-Book QA
Abstract
We study baking documents directly into the weights of a 4-bit Gemma-4-e4b model via LoRA, so a system can answer questions about a corpus closed-book: no retrieval and no context-window budget. Across roughly 100 training runs from single documents to a 99-document corpus, we find that once adapter capacity is adequate, training-data quality is the dominant lever on closed-book accuracy, outweighing LoRA rank, learning rate, and two alternative architectures combined; capacity itself is a hard gate below which no data intervention helps. A single curation pass (shortening gold answers to canonical 1-6 word spans and dropping trivia) moved closed-book accuracy from 57.7% to 85.7% on a 15-document corpus, a larger jump than any architectural change. We confirm a capacity trend (rank must grow with corpus size) entangled with a coupling between rank and learning rate that we initially misdiagnosed. On a 15-document slice we add a real retrieval baseline: the internalized adapter (84.2% recall) beats a BM25-RAG pipeline with a base reader (58.9%) and even a realistic gold-chunk oracle (65.6%) at lower latency. We report the full arc, including three misdiagnoses, as a case study in debugging LLM training empirically.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
Related papers
A Factorial Study of Synthetic Data Generation for Low-Resource Machine Translation using Grammar Books
Shared title terminologycs.CLVarun Ghat Ravikumar, Sina Ahmadi, Lena Jäger et al.
Biomedical Machine Translation for Low-Resource Arabic-Script Languages via Cross-Lingual Transfer and LoRA Adapter Merging
Shared title terminologycs.CLAbdullah Alabdullah, Arash Eslamighayour, Sarp Harbalioglu et al.
MoE^2-LoRA: When MoE Models Meet MoE-style Low-Rank Adaptation
Shared title terminologycs.CLQingyu Yang, Haonan He, Minglei Li et al.
FlyRoute: Self-Evolving Agent Profiling via Data Flywheel for Adaptive Task Routing
Shared title terminologycs.CLRongjun Li, Ziyu Zhou, Yihang Wu
Collect for Coverage, Replay with Evidence: Adaptive and Efficient On-Policy Distillation for Long-Horizon Agents
Shared title terminologycs.CLHaowen Hou, Gen Li, Ruilin Li et al.
From Data Room to Report: End-to-End AI Support for M&A Legal Due Diligence
Shared title terminologycs.CLJohannes R. Hübers, Daniel Uedelhoven, Manuela Bergau et al.