TL;DR
MeReader is an offline, privacy-preserving AI assistant that uses a "progress-aware" RAG architecture to prevent narrative spoilers while you read. By strictly confining its retrieval and generation to the reader's current position in a book, it provides contextual support without ruining the ending, all while running locally on consumer-grade hardware.
What Problem Does This Paper Address?
Large Language Models (LLMs) have become powerful tools for document analysis, but they fail significantly when applied to narrative reading. Most current systems process a book "all-at-once." If you ask a cloud-based AI a question about a character in Chapter 2, it might inadvertently spoil a plot twist from Chapter 20 because it has access to the entire text.
Furthermore, existing solutions often rely on cloud services, raising privacy concerns about tracking users' reading habits. Open-source alternatives like KOReader plugins often suffer from "amnesia"—they only look at a small "trailing window" of recent text, losing the ability to recall important plot points from the beginning of a long novel. MeReader aims to bridge this gap by creating a system that is both deeply knowledgeable about the book and strictly respectful of the reader's progress.
Methods
The authors developed a component-based architecture (Figure 1) that integrates several key technologies:
- Progress-Aware Retrieval-Augmented Generation (RAG): This is the core innovation. The system tracks the user's location in the eBook. When a query is made, it applies a "location boundary" filter to the retrieval process, ensuring the AI only "sees" content the user has already read.
- Hybrid Retrieval Architecture: To ensure high fidelity, MeReader combines three search methods:
- Vector Similarity: For semantic meaning.
- BM25: For precise keyword matching.
- Summary Embeddings: Generated at regular intervals to provide high-level context.
- Offline Inference: The system uses Ollama to run local LLMs (like Llama 3 and Gemma) and nomic-embed-text for generating 768-dimensional vectors. This ensures that no data ever leaves the user's device.
- Semantic Boundary Detection: Instead of arbitrary character-count chunks, the system uses an algorithm to segment text based on natural paragraph and sentence boundaries, preserving narrative coherence.
Datasets
The system was evaluated using a benchmark of 600 queries across three classic English novels:
- 1984 by George Orwell
- Of Mice and Men by John Steinbeck
- The Death of Ivan Ilych by Leo Tolstoy
The benchmark included 300 comprehension queries and 300 spoiler-prevention scenarios. Ground-truth reference answers were generated using Gemini 1.5 Pro to provide a high-quality baseline for comparison.
Key Insights and Ideas
- The Quality-Latency Frontier: One of the most significant findings is that you don't need a massive model for a good reading experience. Mid-sized models (2b–4b parameters) achieved comprehension parity with larger models (8b+) while maintaining much faster response times.
- Spoiler Prevention as a First-Class Citizen: Rather than filtering spoilers after generation, MeReader treats progress gating as a fundamental part of the retrieval logic. This "gatekeeping" ensures the model cannot even cite information from the future of the narrative.
- Robustness to Sparse Context: The system remained stable even when retrieval was limited to just 1–2 passages. This suggests that the hybrid retrieval pipeline is highly efficient at finding the "smoking gun" evidence needed to answer a reader's question.
Key Results
The researchers identified a "target zone" for local models (Figure 5).
- Top Performers:
gemma3n:e4bandllama3.1:8bwere the most effective, achieving high BERTScore F1 scores (~0.74–0.75) with a moderate latency of about 30 seconds per query. - Speed King:
deepseek-r1:1.5bwas the fastest, responding in 15–20 seconds, though with a slight dip in accuracy (F1 ~0.69). - Spoiler Safety: The progress-aware boundary mechanism successfully prevented "future content leakage" across all tested scenarios without compromising the correctness of answers regarding the "past" text.
Limitations and Future Work
While promising, the authors acknowledge several areas for growth:
- Scope of Content: The study only used three classic English novels. Future work needs to test more diverse genres, non-fiction, and multilingual texts.
- Implicit Spoilers: The current system is excellent at blocking explicit facts (e.g., "Character X dies"), but it may not yet account for subtle foreshadowing or implicit narrative cues.
- Evaluation Bias: The use of "LLM-as-judge" for qualitative metrics carries known biases. The authors suggest moving toward human audits in future iterations.
- User Experience: The next step involves conducting longitudinal user studies to see if MeReader actually improves long-term learning outcomes and reading enjoyment compared to traditional eReaders.
For those interested in the technical implementation, the source code is available on GitHub at github.com/WhiteHades/mereader.
Summary updated