Research project
Devinah
An evidence-grounded AI assistant for understanding and reproducing research
Title and outline
Talk outline
- Introduction and motivation
- Literature review
- Solution and app walkthrough
- Experimental evidence and evaluation design
- Conclusion and future directions
- Back-up slides
Introduction and motivation
Reading a paper is only the first step
A researcher can understand the method and still lack the information needed to reproduce it.
- Datasets, model settings and evaluation details can be spread across methods sections, tables and appendices.
- Before implementing a method, researchers need to know which settings the authors reported and which require a decision.
Devinah brings reading tools and reproduction planning together around page-linked evidence.
Literature review
Scientific question answering
Prior work provides benchmarks for evidence retrieval and systems for literature synthesis.
Devinah’s contribution is the integration of study tools, a field-level audit and an editable reproduction checklist.
Solution · Overview
One PDF library supports two workflows
Read and learn
Search the library, browse topics, ask cited questions, summarize papers, explain terms, compare papers and export flashcards.
Plan a reproduction
Extract settings with source pages, flag evidence gaps and save or export an editable checklist.
Both workflows use passages that retain their document, section and PDF page.
Solution · Details
Passage ranking with BM25
PyMuPDF extracts the paper structure. An intent classifier routes the question, and BM25 ranks candidate passages.
BM25(q,d) = ∑t∈q IDF(t) · f(t,d)(k₁+1) / [f(t,d)+k₁(1−b+b|d|/avgdl)]
f(t,d) is term frequency · |d| is passage length · avgdl is mean length
The default answer quotes retrieved passages. Optional model-generated answers use the retrieved evidence and undergo citation checks.
Solution · Details and summary
The audit records uncertainty
Rules and phrase matching extract datasets, architecture, preprocessing, training settings and evaluation protocols.
| Verified | The app finds a reported value and sees no conflicting evidence. |
|---|
| Ambiguous | The evidence leaves the setting unclear. |
|---|
| Contradictory | Candidate sources give conflicting values. |
|---|
| Not found | The audit extracts no value for that field. |
|---|
The editable checklist distinguishes author-reported settings from suggested assumptions.
Experimental results · Live app observation
TransFusion case study
The library showed 199 PDFs. We opened TransFusion and ran its audit in NLP-only mode.
15Verified
2Ambiguous
1Contradictory
3Not found
The audit surfaced AdamW and a maximum learning rate of 0.001, both linked to PDF page 11.
The 21 field labels describe the app’s output for one paper. Open the live audit
Experimental results · Failure case
Q&A found evidence the audit missed
Ask · Datasets“This dataset consists of 798 scenes for training and 202 scenes for validation.”
TransFusion, physical PDF page 6 Audit · Dataset splitThe same paper’s train / validation / test split field displayed “Not found” and offered the official dataset split as a suggested default.
This mismatch motivates a dedicated evaluation of false missing-field flags and fallback evidence retrieval.
Experimental results · Proposed evaluation
Retrieval and audit benchmarks
Compare fixed-size vector retrieval with section-aware hybrid retrieval and reranking on identical queries. Include current BM25 as an application baseline.
| QASPER | Recall@k, MRR, answer correctness and citation support. |
|---|
| Expert audit subset | Field precision, recall and F₁. Score missing flags separately. |
|---|
| Checklist review | Expert ratings for accuracy, actionability and handling of assumptions. |
|---|
The live demo establishes workflow behavior. Corpus-level benchmark scores are pending.
Conclusion and future directions
Evidence supports human review
Devinah links paper-reading tools to an audit and an editable implementation plan.
- Annotate a held-out sensor-fusion and ML subset and measure field accuracy against expert judgments.
- Test section-aware hybrid retrieval and reranking. Report evidence quality alongside latency and resource use.
- Improve table extraction and reconcile evidence found by Q&A with missing flags from the audit.
- Explore repository analysis and experiment tracking as future extensions.
The next milestone is measuring how reliably the app turns source passages into actionable reproduction steps.
Back-up · Evaluation metrics
How the benchmark scores evidence
Recall@k = (1/N) ∑i |Ri,k ∩ Gi| / |Gi|
Ri,k is the top-k retrieved set and Gi is the gold evidence set. Average over the N queries with gold evidence.
MRR = (1/N) ∑i 1/ri F₁ = 2PR/(P+R)
Use zero reciprocal rank when no relevant item is retrieved. P and R are precision and recall for the audit task.
Back-up · Implementation and scope
Current stack and evaluation limits
- React and TypeScript frontend, FastAPI backend, PyMuPDF parsing and SQLite for local app state.
- Optional model assistance can run through Ollama. The live demo used the local NLP pipeline.
- Scanned PDFs and imperfect table extraction can reduce evidence coverage.
- QASPER focuses on NLP papers. The proposal targets 15–20 curated papers and 50–100 evaluated questions for domain-specific checks.
Human review remains necessary before treating an audit as an implementation specification.