Skip to content
Projets

À propos

Recherche de bout en bout assistée par l’IA : l’IA effectue le travail préparatoire, vous prenez les décisions clés et le code vérifie chaque citation, chiffre et affirmation.

IA et apprentissage automatique

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

🔬 ScholarLoop

A research loop that shows its work.

AI-assisted research, from your first question to a reviewed paper.
The AI does the groundwork. You guide the direction and make the key decisions.
Code checks every citation, number and claim against the record before it reaches the page.

tests version python platform license release

Demo · Quick start · You and the AI · The web UI · How it works · The rules · Measurements

🎬 See it in two minutes

A clip from the demo. On the Writing page of a recorded study, the manuscript's sentence-by-sentence trace opens and one sentence is highlighted with the approved claim it cites. The evidence map then opens on that claim and shows the two measurements and the training runs behind the sentence's numbers.

▶ Watch the full demo (2 min 25 s, narrated)

The clip follows one sentence of a generated paper back to the approved claim it cites, and from that claim to the measurements and training runs behind its two numbers. The full demo walks through a real study in order: the question, the direction, the ideas, the experiments, the review, the paper, and the download of every record.

The ScholarLoop workflow. Ideation: your steer, literature review, a direction map you choose from, ideas and a tournament, and you pick an idea. Experiments: control versus treatment, debate gate, three-tier funnel, frozen scorer, reflect and calibrate, repeated until the governor stops. Review and writing: scientific review, your approval of the release, staged writing, sentence checks, and a paper with an evidence map. The review can send requested controls back to the experiments as a frozen protocol. Below: the checks enforced in code.

Why

Ask a language model to "do research" and you get a confident paper. The trouble starts when you check it: a citation that does not exist, a number nobody measured, a headline idea that was never actually run.

ScholarLoop splits the work three ways. The AI does the groundwork: it reads the literature, proposes directions and ideas, runs the experiments and drafts the paper. You guide the direction, discuss the ideas with it, and approve what goes forward. A harness of plain code sits around every model call. When an output breaks a rule, the harness rejects it, hands the errors back, and the model tries again.

🤝 You and the AI, step by step

A study moves through five stages. Each one is recorded before the next one reads it, so you can go back and see who decided what, and on which evidence.

Stage The AI does You decide Code checks
1 · Literature & directions retrieves papers, writes the review, and maps three to five directions what you want to find out, and which directions to follow every cited paper was retrieved; if you state a hunch, at least one direction must challenge it or come from outside your steer
2 · Research ideas generates ideas from the papers and ranks them in a tournament which idea to test; you can give feedback or add your own a tournament win must hold in both presentation orders
3 · Experiments proposes training runs and edits the training script when to stop, and whether to ask for a fixed protocol scores come from a frozen scorer; the idea must run as a treatment before a second control or a change of direction
4 · Scientific review four critics question every claim and can request experiments whether to approve the argument each claim's numbers are values of its measurements; approval is bound to the evidence
5 · Writing drafts the paper from approved statements; three simulated reviewers score it whether the outline and the key points are right every sentence cites an approved statement and uses only its numbers and sources

✨ What it does

🧭 Ideation you steer

It will not start from a bare topic. You say what you want to find out and your hunch; it maps directions from the literature, and at least one must challenge the hunch or look beyond it.

🧪 Ideas that actually get tested

The idea you pick has to run as a treatment before the loop may move on, and only one control may run ahead of it. The loop cannot spend its budget tuning around your idea.

🔒 Scores the model cannot touch

Training only saves weights. A separate, frozen scorer produces every score, and the held-out split stays sealed during exploration.

⚖️ Review before prose

Four critics question every claim against the measurements. They can demand a control, which is frozen as a protocol before it runs. Nothing is written until you approve.

🔗 Every sentence traceable

Each sentence of the paper cites an approved statement, each statement its runs, each run its code version. Change the evidence and your approval is void.

🖥️ A web UI, under a hard budget

Run every stage from a local web UI or the command line. A dollar cap is checked before each model request, and the UI tells you which tools are free to run.

🚀 Quick start

git clone https://github.com/r2m-ai/scholar-loop.git && cd scholar-loop
pip install -e ".[dev]"
python3 -m scholarloop.ui            # Windows: python -m scholarloop.ui

Your browser opens on http://127.0.0.1:8765. Click Explore a real run to walk through four recorded runs, from the author's steer to the reviewed paper and the evidence behind each sentence. No API key, no GPU.

I want to… Run Costs
browse finished research python3 -m scholarloop.ui, then Explore a real run free
replay a recorded run in the terminal and try the sentence check scholarloop replay · scholarloop trace "text" · scholarloop check "sentence" free
watch the loop on a scripted model python examples/quickstart.py · ideation_demo.py · writing_demo.py free
run real torch training, scripted model pip install -e ".[dev,engines]", then python examples/campaign_demo.py free
do live research pip install -e ".[dev,engines,llm]", add your Anthropic key under Connections in the UI API spend, capped

Every script is listed in examples/README.md. pytest -q runs the offline tests.

Try the sentence check

A recorded run ships with the package, so you can ask the check what its paper is allowed to say. A sentence passes when it cites an approved statement and its numbers are in that statement:

$ scholarloop check "The column-drop-only arm scored 12.0833 validation error on the three evaluated folds [claim_coldrop_vs_control]."
ACCEPTED
  The column-drop-only arm scored 12.0833 validation error on the three evaluated folds
  [claim_coldrop_vs_control].

$ scholarloop check "The column-drop-only arm scored 11.2 validation error on the three evaluated folds [claim_coldrop_vs_control]."
REFUSED
  The column-drop-only arm scored 11.2 validation error on the three evaluated folds
  [claim_coldrop_vs_control].
    - numbers ['11.2'] are not in the approved statements ['claim_coldrop_vs_control'] that this
    sentence cites: 'The column-drop-only arm scored 11.2 validation error on the three
    evaluated folds [claim_'

scholarloop statements lists what a sentence may cite, scholarloop trace "text" follows a sentence of the paper to its statement, runs and values, and scholarloop replay walks through the whole run stage by stage.

🖥️ The web UI

The UI runs on your machine only. It runs each stage as a background job, keeps the logs, and takes each of your decisions as an explicit action. A recorded run opens read-only, so you can look at everything without spending anything.

The overview of a recorded run in the ScholarLoop web UI: progress through the five stages, the result of each experiment arm, recent artifacts and the run's configuration

The Research Ideas page: each idea leads with its hypothesis and predicted effect, beside its tournament rank and scores
Ideas. Each one leads with its hypothesis, next to its tournament standing, scores and linked sources.
The Scientific Review page: the verdict, counts of reviewers passed and claims supported, and a card per reviewer
Review. The verdict and the counts behind it, then the four critics and every issue they raised.
The Writing page: the manuscript title and its length, and the four writing stages
Writing. The manuscript, its sentence-by-sentence trace and evidence map, and the four stages that built it.

Explore a recorded study in five minutes

  1. Start the UI and click Explore a real run. Four studies appear under Your research.
  2. Research Ideas: read each idea's hypothesis, compare tournament ratings, open a source on arXiv.
  3. Experiments: see one bar per arm and the record of every run.
  4. Scientific Review: read the verdict, then unfold any issue to see how it was closed.
  5. Writing: open the manuscript, then the sentence-by-sentence trace to see the approved statement behind each sentence, and the evidence map to reach its runs and code versions.

Run your own study

  1. Click New research, pick a domain, and set a spending cap.
  2. Add your Anthropic key under Connections (it stays in memory on your machine).
  3. Literature & Directions: write what you want to find out, run the review, choose directions.
  4. Research Ideas: generate ideas, refine them with feedback or add your own, and select one.
  5. Experiments: start the campaign and watch runs arrive; each stage runs as a background job with a live log, and you can stop it at any time.
  6. Scientific Review: let the four critics examine the argument, answer what they raise, and approve.
  7. Writing: step through outline, key points, manuscript and panel review.

What each page shows

Page What you find there
Literature & Directions your steer, the literature review, and the direction map with each direction's open question
Research Ideas the candidate ideas, their tournament, and the one you picked
Experiments every run with its stage, role and score, and one bar per fully evaluated arm
Scientific Review the verdict, each critic's summary, and the issues grouped by state and severity
Writing the manuscript and what each writing stage produced
Artifacts every file of the run, grouped by the stage that wrote it
Evaluation & Tools diagnostics and reliability checks, split into free ones and ones that call the model

🧭 How it works

1 · Ideation: you say where to dig, then choose what is worth running

  • Your steer comes first. What you want to find out, the hunches you want tested, what to stay away from. It shapes the search queries.
  • A literature review you can push back on. Papers come from arXiv and OpenAlex. Every cited identifier must be a paper that was retrieved.
  • A direction map. Three to five lines of inquiry, each with an open question, a cheap first experiment and the most likely way it turns out dull. If you gave a hunch, the map may not only agree with it. You choose directions, or write your own.
  • A tournament the model cannot rig. Judges compare ideas in pairs, each pair twice with the order swapped; a win in one order only is a draw. Elo is computed in code.
  • Your pick. Choose one, reject them all, or bring your own idea.

2 · Experiments: the idea you picked gets tested

Each round the Reasoner proposes runs, three critics vote on whether each deserves compute, and the survivors climb a funnel of one seed, then three, then five. Only some of them reach the five-seed tier.

  • Your idea cannot be tuned around. While your idea is under test, every proposal is labelled a treatment or its control, and only one control may run before the first treatment. The loop may not change direction until a treatment has run. If no hyperparameter expresses the idea, the Reasoner rewrites the training script in an isolated copy.
  • The model never reports its own score. A frozen scorer in a separate process does. Anything the training script says about itself is kept apart and labelled self-reported.
  • Predictions are checked. Each proposal predicts its effect before it runs, and the Reasoner sees how past predictions and votes turned out.
  • The test set stays sealed. Opening it ends exploration for that campaign.

3 · Review and writing: you approve the argument

  • Scientific review. The argument is built as statements: claims bound to the measurements that carry their numbers, setup, related work, limitations. Four critics go through it claim by claim, and issues stay open across rounds until a critic records why they are settled.
  • Requested controls become frozen protocols. Arms, seeds, the prediction and the outcome that would falsify it are hashed before any arm trains. Negative results are kept.
  • Your approval is bound to the evidence. Change a run, the argument or the code afterwards and it is void.
  • Writing in stages. A panel argues over the outline, then the key points, and you sign off on each unless you let the stages run unattended. Sections are then drafted so that every sentence cites an approved statement.
  • What you get. A reader's edition, a traced edition with the statement behind each sentence, an evidence map, and three simulated reviewers' reports.

Command lines and scripted modes for each stage are in REFERENCE.md.

🛡️ Rules the model cannot talk its way around

These live in code. A prompt can only ask for good behaviour, and the model may ignore it. A check refuses the output.

Rule What gets rejected
Citations must exist a paper id that is not in the retrieved corpus, from the review to the final prose
Numbers must be measured a number no measurement supports; in the paper, a number that is not in the statement the sentence cites
Evidence must exist an unknown run or statement id; a result claim with no evidence behind it
Scores come from the frozen scorer a metric from anywhere else; an edit outside the training script; a scorer file that changed mid-run
The idea gets tested a second control before the first treatment
Protocols are frozen first a protocol run whose arms, code or seeds differ from what was hashed
The test set stays sealed scoring it during exploration; exploring after it was opened
Approval follows the evidence writing against a review whose evidence, argument or code has changed
Rankings must be robust a tournament win that holds in only one order
Budgets hold requests past a call cap, training runs past a reservation, spend past a dollar cap

Every attempt by every agent is logged with its output, its validation errors and its outcome, so the rejected attempts stay on the record too.

📊 How well the checks work

We measured the checks by injecting faults into artifacts they had accepted. On three complete runs with claude-opus-5-5:

971 of 971

fabrications rejected: invented citations, numbers and ids, uncited sentences, dropped sections
and 0 of 41 clean artifacts rejected

1,627

faults injected one at a time into accepted artifacts
free to run again, on your own run or a recorded one

0–5% vs 7–20%

claims that go beyond the evidence
ScholarLoop paper vs a single-call writer

Code alone does not catch everything. When real evidence is put in the wrong place, such as a citation attached to the wrong claim, the checks caught 43 to 56% of the cases. The rest falls to model critics, and those are model judgments. The simulated reviewers also rejected all three papers: the checks make a paper traceable, and they have not been shown to make the research better. See the known limits.

Three recorded studies to explore

Each went from a one-sentence steer to a reviewed paper. All three open in the web UI, and their files are in examples/sample_runs/.

Run What was asked What the evidence said Review rounds / approvals Cost
Distillation does an adaptive switch from teacher to student prefixes help the registered prediction was falsified 10 / 3 $34.40
AG News which boosting regularizers transfer to a small text classifier partly held; the named comparator never ran 2 / 1 $13.39
Digits does a skip connection change a shallow MLP's final error neither supported nor falsified 7 / 2 $25.66

Cost is the spend counted against the cap when the reviewed paper was finished. The evaluation requests made afterwards are not included.

The full measurements, with every table, are in REFERENCE.md.

🧪 Engines

A domain is a YAML profile plus two files: a frozen prepare.py that owns the data, the model definition and the scorer, and a train.py the agent may rewrite. Adding a domain does not touch the orchestrator.

Profile Task Notes
digits-mlp 8x8 digit classification with a small MLP no download · 1-2 s per run on CPU
agnews-bow AG News topic classification, bag of embeddings about 1 s per run · one-time download (".[nlp]")
seq-distill distilling a small sequence model from a frozen teacher no download · trains the teacher once
image-classification deterministic stub powers the free demos and the tests

💸 Keeping spend under control

Control What it does
SCHOLARLOOP_SPEND_CAP + SCHOLARLOOP_SPEND_FILE a hard dollar cap shared by every command that points at the same file, checked before each request
--max-llm-calls, --max-calls a cap on model requests that survives restarts and counts retries
training reservations a cap on training attempts; failed attempts still count

In the web UI the cap is a field on each study. With a cap set, a model that has no listed price is refused.

🗂️ What is in the repo

scholarloop/
├── core/              agent harness, model clients, profiles, ledger, registry, budgets
├── ideation/          retrieval, literature review, steer and direction map, ideator, tournament
├── experiment/        orchestrator, runner, reasoner, debate, governor, experiment agenda
├── review/            evidence dossier, critics, issue history, author release
├── writing/           staged writing session and writing guides
├── ui/                the local web UI: server, job runner, run store, static front end
├── replay.py          the `scholarloop` command: replay, trace and check a recorded run
├── samples/           the recorded run that ships with the package
├── reliability.py     fault injection, attempt-log analysis, single-call baseline, claim audit
├── fidelity_study.py  does a campaign test the idea it was handed, with and without enforcement
├── human_eval.py      builds the blinded rater packet for the claim audit and scores the returns
└── evaluation.py      read-only run diagnostics
engines/               prepare.py (frozen) + train.py (editable) per domain
profiles/              domain profiles
examples/              runnable scripts, each listed in examples/README.md
└── sample_runs/       four recorded runs with their records; browse them in the web UI
tests/                 mirrors the package and runs offline

📖 More

License

MIT.

Explorer des projets similaires

Chargement…