Dataset Viewer

The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.

HypoAgent-Bio

Evidence-traceable domain multi-agent hypothesis generation for glioblastoma / temozolomide resistance.

HypoAgent-Bio takes a research question in Chinese, retrieves evidence material from PubMed abstracts and UniProt protein annotation entries, and runs a six-step pipeline: mine three knowledge gaps, generate one candidate per gap, cross-examine every candidate with three domain critics, rank the candidates under a fixed novelty/evidence/feasibility rubric, converge under a minimal-speculation constraint, and check the structured hypothesis with deterministic rules plus at most one repair. The result is a structured hypothesis in which every mechanistic claim is tagged with an evidence ID or explicitly marked as lacking direct evidence.

Dataset repository: https://huggingface.co/datasets/eduzrh/hypoagent-gbm

This repository contains the full code, frozen knowledge snapshot, all model outputs, evaluation tables, figures and the Chinese manuscript. All reported tables, figures and the manuscript can be rebuilt without any API key from the shipped generation and judgment records.


1. What is in the box

hypoagent-gbm/
โ”œโ”€โ”€ hypoagent/                 # core package
โ”‚   โ”œโ”€โ”€ config.py              # env-driven configuration
โ”‚   โ”œโ”€โ”€ llm.py                 # Anthropic / OpenAI-compatible client + cache
โ”‚   โ”œโ”€โ”€ kb.py                  # frozen KB, BM25 + theme/entity retrieval
โ”‚   โ”œโ”€โ”€ prompts.py             # baselines, v1 proposer/critics, judge prompts
โ”‚   โ”œโ”€โ”€ prompts_v2.py          # gap mining, divergence, tournament, repair prompts
โ”‚   โ”œโ”€โ”€ pipeline.py            # Direct / CoT / RAG / Multi-Agent / HypoAgent-Bio + ablations
โ”‚   โ”œโ”€โ”€ metrics.py             # deterministic metrics + card validator
โ”‚   โ””โ”€โ”€ judge.py               # LLM-as-judge: quality rubric + claim verification
โ”œโ”€โ”€ scripts/
โ”‚   โ”œโ”€โ”€ fetch_kb.py            # rebuild the PubMed/UniProt snapshot
โ”‚   โ”œโ”€โ”€ run_experiments.py     # resumable, cached experiment runner
โ”‚   โ”œโ”€โ”€ analyze_results.py     # metrics + judge + table builder (--group main|ablation)
โ”‚   โ”œโ”€โ”€ make_figures.py        # paper figures (PNG + PDF)
โ”‚   โ”œโ”€โ”€ build_paper.py         # CRAD-style DOCX + PDF builder
โ”‚   โ””โ”€โ”€ reproduce.sh           # offline table/figure/manuscript rebuild
โ”œโ”€โ”€ data/
โ”‚   โ”œโ”€โ”€ kb/documents.jsonl     # 161 PubMed abstracts (frozen)
โ”‚   โ”œโ”€โ”€ kb/entities.json       # 6 UniProt protein / lncRNA annotation entries
โ”‚   โ”œโ”€โ”€ kb/manifest.json       # queries, counts, timestamps
โ”‚   โ””โ”€โ”€ questions.jsonl        # 20 GBM-TMZ research questions
โ”œโ”€โ”€ results/
โ”‚   โ”œโ”€โ”€ cache/                 # content-hashed LLM responses (replay source)
โ”‚   โ”œโ”€โ”€ generations/           # one JSON per (question, method)
โ”‚   โ”œโ”€โ”€ judgments/             # main/ and ablation/ quality + evidence judgments
โ”‚   โ”œโ”€โ”€ tables/                # CSV tables used in the paper
โ”‚   โ”œโ”€โ”€ archive_v1/            # superseded v1 records (dataset repo only)
โ”‚   โ””โ”€โ”€ logs/                  # run logs
โ”œโ”€โ”€ paper/
โ”‚   โ”œโ”€โ”€ paper.md               # manuscript source
โ”‚   โ”œโ”€โ”€ references.json        # GB/T 7714 references
โ”‚   โ”œโ”€โ”€ figures/               # fig1โ€“fig6 (PNG + PDF)
โ”‚   โ”œโ”€โ”€ HypoAgent-Bio_CRAD.docx
โ”‚   โ””โ”€โ”€ HypoAgent-Bio_CRAD.pdf
โ”œโ”€โ”€ tests/
โ”‚   โ””โ”€โ”€ test_offline_pipeline.py
โ”œโ”€โ”€ requirements.txt
โ””โ”€โ”€ .env.example

results/archive_v1/ and results/archive_v2/ are kept in the dataset repository for audit. The release tarball omits them, and MANIFEST.sha256 covers the release contents only.


2. Quick start (no API key)

python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt

# 1) Offline smoke test: deterministic stub, no network
python scripts/run_experiments.py \
  --methods direct,hypoagent --limit 2 --mode offline --workers 1

# 2) Rebuild both reported tables from the shipped generation/judgment records
python scripts/analyze_results.py --group main --skip-judge
python scripts/analyze_results.py --group ablation --skip-judge

# 3) Rebuild figures and the manuscript
python scripts/make_figures.py
python scripts/build_paper.py

# Or run the whole rebuild at once
bash scripts/reproduce.sh

--skip-judge makes no API call: it recomputes deterministic metrics from the shipped generation records and reuses the shipped judgments. HYPO_MODE=replay additionally replays any cached LLM call verbatim and fails loudly on a cache miss.


3. Running with a real model

Copy .env.example to .env, fill in your endpoint, and export the variables:

set -a; source .env; set +a

Supported providers:

Provider Required variables Notes
anthropic HYPO_BASE_URL, HYPO_API_KEY or HYPO_AUTH_TOKEN, HYPO_MODEL Anthropic-compatible gateway; HYPO_LOCATION sets x-req-location.
openai HYPO_BASE_URL, HYPO_API_KEY, HYPO_MODEL Any OpenAI-compatible /chat/completions endpoint.
offline none Deterministic stub for tests and CI.

Generation settings are in hypoagent/config.py and can be overridden with HYPO_* variables. Reasoning traces are disabled by default (HYPO_DISABLE_THINKING=1) for predictable latency and output length.

Run the main experiment and the ablation:

# Main: 20 questions x 5 methods
python scripts/run_experiments.py \
  --methods direct,cot,rag,multi_agent,hypoagent --mode live --workers 6

# Ablation: 20 questions x 5 variants (full model + 4 ablations)
python scripts/run_experiments.py \
  --methods hypoagent,hypoagent_no_gap,hypoagent_no_cards,hypoagent_no_debate,hypoagent_no_trace \
  --mode live --workers 6

# Judge each batch separately, then rebuild its table
python scripts/analyze_results.py --group main --mode live --workers 4
python scripts/analyze_results.py --group ablation --mode live --workers 4

The runner is resumable: existing results/generations/Q*/<method>.json files are reused unless --overwrite is passed.


4. Reproducibility contract

  1. Frozen knowledge: data/kb/ contains the exact abstracts, PMIDs, DOIs and UniProt annotations used in the paper. Retrieval is deterministic given a question.
  2. Content-hash cache: every LLM call is cached under results/cache/<sha256>.json, keyed by provider, model, system prompt, user prompt, max_tokens, and temperature. The cache stores the raw response, token usage and latency. Empty completions are never cached, so a transient endpoint failure cannot poison replay.
  3. Offline rebuild: generation records and judge outputs are shipped. analyze_results.py --skip-judge rebuilds both reported tables without any API call. HYPO_MODE=replay replays any cached LLM call verbatim and raises an error on a cache miss.
  4. Deterministic metrics: citation parsing, structure completeness, evidence coverage, silent-unsupported rate, disclosure rate and a card validator are rule-based. Only the six-criteria quality score and claim-level citation support use an LLM judge, and those calls are cached too.
  5. No secrets: credentials are read from environment variables only; .env is git-ignored.
  6. Terminology: the generated records title the evidence section ่ฏๆฎ็ป‘ๅฎš่กจ; the manuscript refers to the same section as ่ฏๆฎๅฏน็…ง่กจ (่ฏๆฎ่กจ for short). The wording differs, the content does not.

Reported model: deepseek/deepseek-v4.1-flash-1017 (temperature 0.2, thinking disabled). The judge uses the same model with four answer orderings (forward, reverse, two deterministic shuffles) whose scores are averaged, which reduces position bias and the variance of the mean score.

The main batch (5 systems in the released CSV, 4 of which are reported in the manuscript) and the ablation batch (5 variants) are judged in separate batches. Ablation variants of the same method produce near-duplicate hypotheses for the same question; when all nine systems share one context the judge explicitly mirrors scores across duplicates, which erases exactly the differences an ablation is meant to measure. Absolute scores are therefore comparable within a table only: the full model scores 3.84 in the main batch and 3.58 in the ablation batch, a 0.26 batch effect that already exceeds most ablation effects.


5. Main results (20 questions, mean)

Reported in the manuscript (four systems, 1-5 scale):

Method Innovation Feasibility Data support Theory Overall Citation validity Silent unsupported
Direct 3.583 3.371 1.779 2.804 2.775 โ€” 0.573
CoT 3.508 3.438 1.846 3.038 2.879 โ€” 0.593
Multi-Agent 4.008 3.817 3.037 3.771 3.788 0.964 0.000
HypoAgent-Bio 4.162 3.983 3.300 3.783 3.837 1.000 0.000

HypoAgent-Bio has the highest overall score (3.837 vs. 3.788 for Multi-Agent; delta = +0.05, 95% CI -0.17 to 0.27, p=0.774) and the highest score on each of the five criteria. Its data support is significantly higher than Multi-Agent (+0.263, p=0.023). Citation validity is 100% with zero silently unsupported claims.

The released CSVs are the complete record: results/tables/main_*.csv also contain the RAG baseline, the practicality criterion, and the claim-level citation-support and evidence-coverage metrics, so every number in the manuscript can be recomputed.

Ablation (separate batch). The manuscript reports the two judged criteria that vary with the modules; the variant without evidence labelling is compared on the deterministic audit only, because it emits no citation IDs.

Variant Theory Overall Citation validity Silent unsupported Structural
HypoAgent-Bio 3.550 3.579 1.000 0.000 1.000
w/o gap mining & selection 3.521 3.233 1.000 0.000 1.000
w/o protein annotation entries 3.333 3.375 1.000 0.000 1.000
w/o multi-role review 3.483 3.521 1.000 0.000 1.000
w/o evidence labelling โ€” โ€” โ€” 0.820 0.857

Removing gap mining and selection lowers the overall score by 0.35 (p=0.014); removing the protein annotation entries lowers theory by 0.22 (p=0.060) and the overall score by 0.20 (p=0.122); the three-role review shows a small, non-significant effect (p>0.68). Removing evidence labelling leaves 82.0% of mechanistic claims machine-untraceable and lowers structural completeness to 0.857. Per-criterion scores of every variant, including the labelling-free one, are in results/tables/ablation_*.csv.

6. Data sources and licences

  • PubMed abstracts: retrieved via NCBI E-utilities; each record keeps its PMID and DOI. Please cite the original articles and follow NCBI/PubMed terms of use.
  • UniProt annotations: retrieved via the UniProtKB REST API (CC BY 4.0).
  • Code: MIT License (see LICENSE).
  • Derived tables, figures and manuscript: CC BY 4.0, unless a source imposes stricter terms.

The knowledge snapshot is intended for non-commercial research and reproducibility. It is not a substitute for a systematic review or clinical evidence assessment.


7. Citation

If you use this repository, please cite the manuscript in paper/HypoAgent-Bio_CRAD.pdf and the original HILMA paper:

้™ˆๅญ้˜ณ, ่ตต็ฟ”, ่ตตๆถฆ่ฑช, ็ญ‰. ๅŸบไบŽไบบๆœบๅไฝœ็š„ๅคšๆ™บ่ƒฝไฝ“็ง‘ๅญฆๅ‡่ฎพ็”Ÿๆˆ[J]. ่ฎก็ฎ—ๆœบ็ ”็ฉถไธŽๅ‘ๅฑ•, 2025, 62(7): 1639-1652.


8. Contact

Issues and pull requests are welcome. For questions about the benchmark or the knowledge snapshot, please open an issue with the question ID (e.g., Q18) and the method name.

Downloads last month
209