Educational article · LCC Research Lab
Can a Small AI Really Learn from a Document? LoRA vs RAG Explained Through Experiments
A plain-English guide to what LCC Research Lab measured in Adventures in AI, Book One—when teaching a small model helped, when looking up the document helped, and why “the model learned it” is not one scientific claim.
1. The everyday question
People often meet AI through documents: a driver handbook, a software tutorial, a clinical guideline, or a short story. A natural question follows:
If we give a small AI a document, can it really learn from it—and how would we know?
Two popular answers sound alike in conversation but are different laboratory acts:
- Teach the model — change a small set of its internal numbers so later answers can improve even when the book is closed.
- Let the model look things up — give it relevant passages from the document at the moment it answers (an open book).
Book One of Adventures in AI—From Document to Evidence—treats those as separate interventions and scores them under frozen rules. This page summarizes the published comparison for readers who are not machine-learning specialists. It does not invent measurements.
2. Two different methods: teach vs look up
LoRA — teaching by a small update
LoRA (Low-Rank Adaptation) is a compact fine-tuning method. Instead of rewriting the whole model, training learns a small add-on update. After teaching, the Student is tested without looking up the document. If the closed-book score rises under the School’s frozen rule, Book One reports that as acquisition—a measured change, not a casual claim of “understanding.”
RAG — answering with an open book
RAG (Retrieval-Augmented Generation), called Local RAG in Book One, lets the Student search the document and use retrieved passages while answering. A higher open-book score shows that retrieval helped on that exam. Book One refuses to call that acquisition. It is a different measurement: help from the open book.
Measured result vs interpretation: A higher Local RAG score is a measured report that looking up the document helped on that exam. It does not, by itself, establish that the model learned, retained, or “knows” the document when the book is closed. The experimental setup (which condition ran) and the measurement (which score we report) are different things—and must stay separate.
Plain distinction: LoRA asks whether teaching changed what the model can do with the book closed. RAG asks whether having the book available at answer time helps. Combining both (LoRA + RAG) is a third condition—not an automatic “more is better.”
3. Experimental arms vs measurement comparisons
Book One uses two layers of vocabulary. Mixing them is how beginners (and experts) talk past each other.
A. Four experimental arms (what condition the Student was in)
These are setups—different ways of answering under the same sealed lesson materials:
| Arm (condition) | What happens |
|---|---|
| Base | The Student before the LoRA teaching add-on—prior capability on that trajectory. |
| LoRA | After fine-tuning; answers are closed-book (no document lookup at answer time). |
| Local RAG | Document passages may be retrieved and supplied at answer time; weights are not updated by that lookup. |
| LoRA + Local RAG | The fine-tuned adapter is used and lookup is available—both together. |
B. Four measurement comparisons (what question the score answers)
These are rulers—different scores. They are not another name for the four arms:
| Everyday question | Measurement name | What it measures | What it does not automatically mean |
|---|---|---|---|
| Did teaching stick when the book is closed? | Acquisition (Acq) | AFTER score minus BEFORE score on sealed Forms (closed book after LoRA teaching) | Not automatic “understanding.” A negative Acq means AFTER scored lower than BEFORE on this ruler—it is not automatic proof that training erased knowledge. |
| After teaching, can the adapter answer related diagnostic probes? | FITTED | A post-exam diagnostic bank, scored under a frozen rule after teaching (see below) | Not a substitute for acquisition; not the training practice set |
| Does looking up the document help? | Local RAG lift | Open-book performance versus the Base open/closed reference used in that classroom report—retrieval-assisted help | Not called acquisition; not proof of closed-book retention |
| Does fine-tuning still help when lookup is already on? | LoRA + RAG comparison | Adapted+retrieve versus retrieve alone (same comparison stratum) | Not automatically “best of both” |
What FITTED is—and is not
In Book One’s classroom pipeline, lesson materials are organized roughly as: handbook unit → relation → Train practice items → exam Forms A/B → FITTED diagnostic checks (laboratory IDs, not handbook terms).
FITTED (including labels such as FITTED / FITTED_POST_AFTER in the glossary) is a post-exam diagnostic: after teaching, the School asks a second bank of probes—worded separately from the Form A/B acquisition pairs—to see whether the trained adapter can answer those diagnostic items under a frozen scoring rule. Book One states plainly: FITTED is not the acquisition formula. Acquisition compares BEFORE Form A with AFTER Form B on the sealed pairs; FITTED is a later check on the adapter.
FITTED is not the training dataset. The Train items are the practice examples used in teaching. FITTED probes are a separate diagnostic bank. The Professor semantic audit required that FITTED checks stayed independent of the practice/exam surfaces—not a second copy of the Train set. Exact sealed formulas live in the laboratory’s archived research records.
Nearby plain ideas: memorization (repeating a taught sentence), retrieval (using text supplied at answer time), and using knowledge (connecting people, objects, actions, and events when the answer is not a single quoted line). Fluency is a behavior. In this School, learning is a measured change under a frozen rule. Understanding is the claim the laboratory is least allowed to award casually.
4. How the School ran the tests
Book One uses the LCC Research School. In short:
- A Teacher helps prepare document-grounded lessons.
- A Professor role audits classroom design before outcomes are treated as sealed.
- Student models—including Rookie (~360M parameters) and Freshman (~1.7B)—are scored by frozen instruments.
- The four arms above (Base, LoRA, Local RAG, LoRA + Local RAG) are the conditions compared in the classrooms.
Freezing the instrument before looking at outcomes is scientific honesty: a surprising result should not be quietly rewritten into a more convenient story.
When Book One reports results across seeds, it means this: a seed is a fixed random-number setting so a stochastic training run can be repeated. n = 3 means three such repeats—not a large confirmatory study. These pilots are not authorized for Student or method superiority claims.
Four classrooms appear in Book One’s published comparison (a descriptive tour—not a ranking of which document type is “best”):
- California Driver Handbook (DMV) — Chapter One
- Pro Git — Chapter Two
- Clinical-guideline / Medicine material — Chapter Three
- A short episode from Alice’s Adventures in Wonderland (Chapter IV) — Chapter Four
Chapter Five warns that the exams, training budgets, and retrieval rules differed across classrooms. Pooling them into one “winner” is not allowed. Chapter Six walks through what survived that discipline.
5. What four classrooms showed
Source: Adventures in AI, Book One V4 — Chapter 6 tour of sealed classroom outcomes (means across three seeds, n=3). Detail for each classroom also appears in Chapters One–Four. The numbers below are observations. Interpretations that go beyond those observations are stated separately—and refused where the evidence does not support them.
| Classroom | Closed-book acquisition (after LoRA) | Local RAG (open book) | LoRA + RAG (as reported) |
|---|---|---|---|
| DMV | Rose for both Students—about +0.222 (Rookie mean) and +0.250 (Freshman mean). | Looking up handbook passages helped strongly. | Not an automatic further gain; pooled LoRA+RAG difference near zero or slightly negative. |
| Pro Git | Rookie rose strongly (~+0.375); Freshman smaller (~+0.083). | Retrieval helped. | On the pooled comparison, the combined method was often worse than retrieval alone—“more methods” is not automatically “more learning.” |
| Medicine | Non-positive (about −0.033 / −0.167). A negative Acq means AFTER scored lower than BEFORE on this Form A/B ruler—it does not automatically mean training erased knowledge. | Retrieval still helped—especially Freshman. Ranking alone could fetch a right-looking passage and still omit a required population qualifier (“who”). | Having the text available at answer time is not the same as having learned it into closed-book behavior. |
| Alice (Ch. IV) | Acquisition floor 0.0 / 0.0 on every seed. A second probe bank (FITTED) was 0/24. | Freshman’s Local RAG Form B reached 0.25 (pool 0.125). | Combining LoRA with RAG lost that Form B gain (Δ −0.25). Zeros are real; they do not prove a finished theory of “document types.” |
6. A closer look at the DMV measurements
Chapter One’s DMV evidence dashboard makes the Chapter Six summary concrete (pilot, three seeds; descriptive; no ranking of which Student is “better”). These are the published numerical results for that classroom.
Two comparisons answer different questions, so they are reported separately:
- Closed-book LoRA acquisition asks whether teaching changed answers when the handbook was not available at answer time.
- Base → Local RAG asks whether looking up handbook passages helped when retrieval was available—without treating that open-book help as the same claim as acquisition.
- Acquisition (closed book after LoRA) — measured. Rookie per-seed gains +0.250, +0.167, +0.250 (mean +0.222 ≈ +22.2 percentage points). Freshman +0.167, +0.250, +0.333 (mean +0.250 ≈ +25.0 pp). Some question pairs improved on every seed; some stayed losses. An average can hide that pattern, so Book One reports both the mean and the pair-level picture.
- Local RAG (open book) — measured, separate from acquisition. Rookie Base .708 → Local RAG .917 (lift +.208). Freshman Base .625 → Local RAG .958 (lift +.333). These Base-to-RAG lifts show retrieval-assisted help on this exam. Interpretation limit: they are not reported as closed-book learning or retention, and they are not the LoRA acquisition numbers above.
- LoRA + RAG vs Local RAG alone — measured. Rookie ≈ 0 additional mean; Freshman −0.042 mean (≈ −4.2 pp). A weak result when adaptation is added on top of strong retrieval does not cancel the positive closed-book acquisition measured without RAG.
Interpretation rule from the book: Base is prior capability—not acquisition. Local RAG is retrieval-assisted performance—not weight learning. LoRA+RAG is not automatically “best of both.”
7. What we are not allowed to conclude
These are sealed results for specific Students, documents, Forms, and instruments. They do not authorize a universal ranking of document types, a claim that LoRA always beats RAG (or the reverse), or a finished causal explanation that Alice’s zeros have a single identified cause. Chapter Five already rejected the overclaim “Alice zero means the School cannot teach.” The zeros are real. That overclaim is not.
A high RAG score is a report card for using the open book—not a certificate that the model learned or retained the document. Negative acquisition is a measured BEFORE/AFTER difference on a frozen ruler—not an automatic story about erased knowledge. Observation comes first; interpretation must wait.
Later books in the series develop measurement of internal change and how models use knowledge when the path is not spelled out. They strengthen honesty about axes of improvement; they do not silently finish Alice’s unexplained zeros.