Team: AltF4 (Mohith GR & Sudarshan Patil HJ) Event: Hack on Holiday 2026 (The Reinforce Club, Scaler School of Technology) Track: Advanced Track / Product Repository: https://github.com/gr-0x076/proofgraph Core Mission: AI Citation & Source Attribution Auditor β Auditing LLM answers, cited URLs, and hallucinated sources.
General-purpose LLMs (Google AI, Claude, Grok, Perplexity) provide conversational answers with attached web links. However, research and real-world audits show that up to 30% of AI-cited URLs suffer from citation hallucination, context misalignment, or referential indeterminacy (citing a real page that actually contradicts or fails to mention the claimed fact).
ProofGraph is not a conversational search chatbot. Instead, ProofGraph is a dedicated AI Citation & Source Attribution Auditor. Given an AI assertion and a cited URL:
- TinyFish Fetch Chromium Extraction: Directly navigates to and renders the cited URL, extracting clean, structured markdown paragraphs.
- Entity Ambiguity Gate: Detects isolated common given names / mononyms ("Peter", "William") and returns
ENTITY_UNDERSPECIFIEDwith actionable clarification prompts, eliminating false contradictions against random celebrities. - RefNLI Context Alignment & Source-Entity Overlap Gate: Rejects irrelevant distractor passages and blocks reference indeterminacy where an entity's name stem matches an unrelated full name.
- Qualitative Evidence Tiers: Completely eliminates uncalibrated percentage scores (
67.5%), providing discrete qualitative tiers (STRONG,MODERATE,WEAK,UNDERSPECIFIED,CONFLICTING). - Auditable Attribution Verdict: Delivers inspectable attribution statuses:
π’ SUPPORTED[STRONG]: Passage verified; source directly confirms assertion.π΄ CONTRADICTED[CONFLICTING]: Citation refutation; source contradicts assertion.βͺ INSUFFICIENT_EVIDENCE[WEAK]: Citation hallucination / unmentioned in source.β οΈ ENTITY_UNDERSPECIFIED[UNDERSPECIFIED]: Subject lacks distinguishing context.
Audit whether a live web URL cited by an AI truly supports an assertion:
# Audit a cited source for factual support
python -m proofgraph.cli --audit-citation \
--claim "Apollo 11 landed humans on the Moon on July 20, 1969." \
--url "https://en.wikipedia.org/wiki/Apollo_11"
# Audit an ambiguous mononym assertion (returns ENTITY_UNDERSPECIFIED with guidance)
python -m proofgraph.cli --text "Peter was born in 1995 in Toronto."These experiments are exploratory diagnostics, not a comprehensive or unbiased evaluation. Results below include a small sampled AVeriTeC subset and a hand-authored synthetic stress suite; see docs/DATA_CARD.md for task formulations and limitations:
-
Evidence Retrieval Quality Diagnostic on a pooled distractor corpus (
$N=60$ claims, 170 gold & distractor passages from AVeriTeC). - AVeriTeC Dev Sample Verdict Classification on 60 sampled development claims from the official AVeriTeC Dev Benchmark (NeurIPS 2023).
- Component Ablations & Fair Baselines comparing against dense similarity and lexical heuristic baselines.
-
Synthetic Context-Mismatch Stress Diagnostic (
$N=20$ paired cases) testing a RefNLI-inspired alignment heuristic on hand-authored examples.
To evaluate whether ProofGraph can retrieve relevant evidence amidst real-world distractors, all 170 evidence passages across the 60 AVeriTeC claims were pooled into a single global index. For each claim, we measured standard Information Retrieval metrics against cross-claim distractor passages:
| Retriever Configuration | Hits@1 | Hits@3 | Hits@5 | MRR |
|---|---|---|---|---|
| BM25 Lexical Alone | 83.3% | 88.3% | 91.7% | 0.863 |
| Pure Dense Semantic Alone (FastEmbed) | 81.7% | 88.3% | 93.3% | 0.860 |
| ProofGraph Hybrid Fusion (BM25 + Dense RRF) | 83.3% | 86.7%* | 93.3% | 0.863 |
*Retrieval Trade-Off Note: On this small pooled diagnostic, hybrid RRF ties BM25 on Hits@1 (83.3%) and MRR (0.863) and ties dense retrieval on Hits@5 (93.3%). Hits@3 is slightly lower (86.7% vs. 88.3%) due to rank reciprocal dampening ($k=60$) when lexical and dense ranks diverge, but hybrid fusion avoids dense semantic drift on out-of-vocabulary named entities.
Methodology Note: The current script partitions the balanced 60-claim sample into a 40-claim development partition and a 20-claim diagnostic subset. Earlier experiments swept thresholds on all 60 claims before this split was introduced, so the 20-claim subset is historically exposed and is not an independent or untouched test set. Treat all metrics as exploratory. Intervals use a 1,000-resample class-stratified paired bootstrap; this quantifies sampling variability but cannot undo prior data reuse.
Thresholds are swept on the 40-claim partition in the current run only. This does not remove the historical reuse disclosed above:
| Fallback Threshold | Dev Accuracy | Dev Macro-F1 | Dev Contra Recall | Selection Status |
|---|---|---|---|---|
0.50 |
42.5% | 0.398 | 0.400 | β Current Best |
0.60 |
42.5% | 0.398 | 0.400 | Evaluated |
0.70 |
42.5% | 0.398 | 0.400 | Evaluated |
0.75 |
42.5% | 0.398 | 0.400 | Evaluated |
0.80 |
42.5% | 0.398 | 0.400 | Evaluated |
0.85 |
42.5% | 0.398 | 0.400 | Evaluated |
0.90 |
42.5% | 0.386 | 0.300 | Evaluated |
0.95 |
42.5% | 0.386 | 0.300 | Evaluated |
Threshold 0.50 is selected by the current run's 40-claim partition (maximizing Dev Macro-F1). Because all 60 claims were included in earlier threshold sweeps, these results remain retrospective diagnostics.
| System Configuration (N=20 Retrospective Subset) | Accuracy (95% Stratified Bootstrap CI) | Macro-F1 (95% Stratified Bootstrap CI) | Prec (Contra) | Rec (Contra) |
|---|---|---|---|---|
| ProofGraph Hybrid (Threshold=0.50) | 75.0% [60β90%] | 0.761 [0.60β0.91] | 0.833 | 1.000 |
| ProofGraph Rules Alone | 55.0% [35β75%] | 0.500 [0.28β0.72] | 0.500 | 0.200 |
| ProofGraph Neural Alone | 75.0% [60β90%] | 0.689 [0.56β0.89] | 1.000 | 1.000 |
| Ablation: Without Alignment Gate | 55.0% [35β75%] | 0.500 [0.28β0.72] | 0.500 | 0.200 |
| Baseline 1: Standard Dense Similarity (No Gate) | 60.0% [45β75%] | 0.539 [0.35β0.74] | 0.500 | 0.200 |
| Baseline 2: Lexical Heuristic Baseline | 55.0% [40β75%] | 0.507 [0.33β0.71] | 0.333 | 0.200 |
| System Configuration (N=60 Total Sample) | Accuracy (95% Bootstrap CI) | Macro-F1 (95% Bootstrap CI) | Prec (Contra) | Rec (Contra) |
|---|---|---|---|---|
| ProofGraph Hybrid (Threshold=0.50) | 53.3% [40β67%] | 0.523 [0.39β0.66] | 0.474 | 0.600 |
| ProofGraph Rules Alone | 48.3% [37β60%] | 0.440 [0.31β0.56] | 0.429 | 0.200 |
| ProofGraph Neural Alone | 55.0% [45β65%] | 0.463 [0.35β0.59] | 0.533 | 0.533 |
| Ablation: Without Alignment Gate | 46.7% [35β58%] | 0.428 [0.29β0.56] | 0.375 | 0.200 |
| Baseline 1: Standard Dense Similarity (No Gate) | 41.7% [33β50%] | 0.350 [0.26β0.45] | 0.167 | 0.067 |
| Baseline 2: Lexical Heuristic Baseline | 46.7% [37β58%] | 0.398 [0.31β0.50] | 0.167 | 0.067 |
| Hybrid vs. Dense Baseline | +11.6 pts | +0.173 | +0.307 | +0.533 |
Key Methodological Disclosures:
- Historical reuse: The current script selects 0.50 on its 40-claim partition, but earlier threshold sweeps used all 60 claims. The 20-claim subset is not independent and cannot support a final generalization claim.
- Confidence Intervals: The 95% class-stratified bootstrap intervals are broad at these sample sizes. They describe sampling variability conditional on this sample and do not account for historical tuning or establish superiority; paired intervals on a genuinely new evaluation set are still needed.
- Candidate Pool Topicity: The AVeriTeC candidate pool evaluation represents oracle retrieval (pre-selected candidate passages), isolating verifier accuracy from full open-web retrieval bottlenecks. Full end-to-end retrieval is tested separately via TinyFish in Section 5.
Per-claim model predictions, confusion matrices, dataset SHA-256, sweep records, cross-verifier diagnostics, and the explicit historical-reuse status are saved in outputs/benchmark_results.json.
To inspect verifier mechanics without relying solely on aggregate metrics, demo_case_study.py runs a trace using curated, hard-coded evidence fixtures (it does not perform live TinyFish retrieval):
- Compound Claim Verification: Decomposes "The Eiffel Tower was constructed in Rome in 1950 by Gustave Eiffel" into an assertion, evaluates it using curated evidence fixtures and a lexical context-alignment heuristic, and generates a provenance graph. A synthetic unrelated passage demonstrates the gate path.
- Conservative Abstention: Evaluates a speculative claim and shows an
INSUFFICIENT_EVIDENCEresult. This is a fixture-based verifier trace; it does not exercise live retrieval or establish general abstention accuracy. Displayed scores are uncalibrated. - Persisted Case Study Report: Output saved to
outputs/demo_case_study.md.
To inspect the behavior of the RefNLI-inspired alignment gate, we evaluated a synthetic diagnostic suite of 10 aligned pairs and 10 reference-mismatch distractors. The cases are hand-authored and share predicates, dates, or locations while varying the subject (see docs/DATA_CARD.md):
| Alignment Gate Configuration | Accuracy (N=20) | False Refutations on Distractors (N=10) |
|---|---|---|
| ProofGraph (With lexical alignment heuristic) | 95.0% (19/20) | 1/10 (10.0% False Refutations) |
| Ablation (WITHOUT alignment gate) | 60.0% (12/20) | 3/10 (30.0% False Refutations) |
(In this hand-authored suite, removing the alignment gate caused 3/10 false refutations; with the gate, the suite had 1/10. These examples are not the RefNLI benchmark and do not establish generalization to unseen cases.)
To validate real-world autonomous search and page fetch independently of bundled offline fixtures, evaluate_live.py executes 10 diverse claims against live TinySearch and TinyFetch endpoints:
- Search Coverage: 100.0% (10/10 queries returned at least one candidate passage in the recorded run). This measures retrieval presence, not whether the passages are relevant or authoritative.
- Fetches and classification: The saved run reports 26 candidate passages, 14 page fetches, 113.31 seconds total, and 5/10 correct end-to-end verdicts. This is a small demonstration result, not evidence of reliable live verification.
- Source Quality: The run includes a mixture of sources, including Wikipedia, government/reference domains, and social or general-interest sites; source quality still needs explicit measurement and filtering.
- Full Audit Report: Persisted at
outputs/tinyfish_live_evaluation.md.
- ProofGraph Hybrid:
90.0% Accuracy|0.886 Macro-F1on the 10 hand-authored cases in the current run; this is a diagnostic suite, not a generalization estimate. - Lexical Heuristic Baseline:
50.0% Accuracy|0.389 Macro-F1
(Explicitly maintained as an isolated diagnostic suite for edge cases: temporal collisions, geographical displacement, unproven premises, and subjective opinion detection).
User Document / Research Claim
β
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 1. Atomic Claim Extraction & Decontextualization β
β β’ Heuristic claim splitting (Claimify-inspired) β
β β’ Abbreviation Protection & Opinion Filtering β
β β’ Invariant: N_subclaims <= N_sentences β
ββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 2. Multi-Stage Hybrid Retrieval & Dynamic Stopping β
β β’ BM25 Lexical + FastEmbed Dense (bge-small-en) β
β β’ Reciprocal Rank Fusion (RRF, k=60) β
β β’ FIRE Policy (NAACL 2025): Dynamic Early-Stopping β
β β’ TinyFish Search β Fetch (optional live retrieval) β
β β’ Live Wikipedia API Fallback for Open Domains β
ββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 3. RuleStanceVerifier & RefNLI Context Guardrails β
β β’ RefNLI-inspired lexical entity-alignment filter β
β β’ Safe Predicate-Bound Numeric & Temporal Conflicts β
β β’ Static domain credibility prior (CONFACT-inspired)β
β β’ Rule-based abstention (INSUFFICIENT_EVIDENCE) β
ββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 4. PROV-DM-inspired provenance graph β
β β’ Nodes: Claims (Green/Red/Yellow), Evidence, Sourceβ
β β’ Edges: SUPPORTS (Green), CONTRADICTS (Bold Red), β
β DISAGREES_WITH (Orange dashed between sources) β
β β’ Standalone Interactive HTML Explorer (PyVis) β
ββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 5. Audit Report Generation & CLI β
β β’ Markdown & HTML Reports with inline citations β
β β’ Fully runnable via CLI: `python -m proofgraph.cli`β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ProofGraph positions itself in dialogue with the leading research systems:
- GraphCheck (ACL 2025): Uses knowledge graphs as soft prompts into LLMs for text classification. Difference: GraphCheck uses KGs as an internal model input; ProofGraph generates the knowledge graph as an interactive, inspectable user artifact.
- KG-CRAFT (EACL 2026): Builds a KG from claims and associated documents for contrastive verification. Difference: KG-CRAFT requires pre-provided reports; ProofGraph integrates open-domain hybrid retrieval and explicit contradiction edges.
- FIRE (NAACL 2025): Introduces iterative retrieval with dynamic stopping decisions, achieving 7.6x LLM cost and 16.5x search cost reductions (reported in the original FIRE paper evaluations). ProofGraph adapts FIRE's entity-coverage dynamic stopping heuristic.
- WKGFC (arXiv:2603.00267): Web-enhanced KG retrieval fact-checking using SPARQL and web augmentation.
- LOKI (COLING 2025): 5-step fact-checking tool designed for human-in-the-loop journalists.
- Python 3.10+ (Tested on Python 3.12.7)
- Zero heavy GPU/PyTorch requirements: Runs ultra-fast using ONNX runtime and native Python.
git clone https://github.com/gr-0x076/proofgraph.git
cd proofgraph
# Option A: Install pinned direct dependencies used by CI
pip install -r requirements-lock.txt
# Option B: Standard install
pip install -r requirements.txt# Optional: Enable TinyFish Search and Fetch in the CLI
export TINYFISH_API_KEY="sk-tinyfish-your-key-here"Uses four bundled evidence passages; it does not contact the live web. It executes heuristic claim splitting, local hybrid retrieval, lexical alignment filtering, static domain weighting, and writes outputs/graph.html and outputs/report.md:
python demo.pyRuns the offline diagnostic comparisons across verifier backends (--backend hybrid|rules|neural|all):
# Default runs the ProofGraph Hybrid verifier (Rules + Neural Cross-Encoder)
python evaluate.py
# Or compare all verifier backends and ablations side-by-side
python evaluate.py --backend allExecutes 10 real-world claim verification queries against live TinySearch and TinyFetch endpoints:
export TINYFISH_API_KEY="sk-tinyfish-your-key-here"
python evaluate_live.pyWith TINYFISH_API_KEY set, the CLI uses TinyFish Search followed by TinyFish Fetch for live evidence retrieval. Use --no-live-search to force offline mode:
python -m proofgraph.cli --text "Apollo 11 landed on the moon on July 20, 1969. The Eiffel Tower was built in Rome in 1950." --output outputs/Run the offline test suite with coverage reporting. The live TinyFish smoke test is skipped by default; set both TINYFISH_API_KEY and TINYFISH_LIVE_TEST=1 to opt into a real network request:
PYTHONPATH=. pytest tests/ -v --cov=proofgraph --cov-report=term-missingproofgraph/
βββ .github/
β βββ workflows/
β βββ ci.yml # Matrix CI across Python 3.10, 3.11, 3.12
βββ data/
β βββ benchmarks/
β βββ averitec_dev_sample.json # 60 real-world AVeriTeC claims & candidate pools
βββ docs/
β βββ assets/
β β βββ ProofGraph-An-Exhaustive-Evidence-Linked-Landscape.pdf # 20-page landscape PDF
β βββ research/
β β βββ 01_executive_landscape.txt # Full 83-source landscape text
β β βββ 02_prior_art_critique.md # Teardown of prior systems
β β βββ 03_benchmarks_and_datasets.md # FEVER, AVeriTeC, SciFact, CONFACT
β β βββ 04_technical_patterns.md # Hybrid schemas & W3C PROV-DM
β β βββ 05_hackathon_brief_and_specs.md # SST Hack on Holiday specs
β β βββ all_problem_statements.json # 11 official Idea Jar statements
β βββ DATA_CARD.md # Provenance, license & benchmark protocol notes
β βββ DAILY_DEV_LOG.md # Daily engineering progress log
β βββ VIDEO_PITCH_SCRIPT.md # 2-minute demo pitch & walkthrough script
β βββ implementation_plan.md # 10-day collaborative roadmap
βββ proofgraph/
β βββ __init__.py
β βββ schemas/ # Pydantic data models (Claims, Evidence, PROV-DM, Verdicts)
β βββ decomposer/ # Heuristic claim splitting and opinion filter
β βββ retriever/ # BM25 + FastEmbed, FIRE-inspired loop, optional TinyFish Search/Fetch
β β βββ tinyfish_agent.py # TinyFish Search β Fetch adapter
β βββ verifier/ # Rule stance, optional DeBERTa ONNX NLI, and lexical alignment heuristic
β β βββ alignment.py # Lexical subject/context alignment heuristic (RefNLI-inspired)
β β βββ credibility.py # Domain credibility scoring with spoofing defense
β β βββ neural_nli.py # Quantized ONNX DeBERTa-v3 cross-encoder (zero-PyTorch)
β β βββ nli.py # Deterministic rule engine & Hybrid ensemble verifier
β βββ graph/ # PROV-DM-inspired graph builder and contradiction edges
β βββ reporter/ # Audit report generator with inline citations
β βββ pipeline.py # Unified end-to-end ProofGraph pipeline orchestrator
β βββ cli.py # Command line interface
βββ tests/
β βββ test_pipeline.py # 24 unit & integration tests with coverage tracking
βββ outputs/ # Generated demo artifacts (graph.html, report.md, tinyfish_live_evaluation.md)
βββ demo.py # Offline end-to-end showcase script
βββ evaluate.py # Benchmark & ablation evaluation script (AVeriTeC & diagnostic suite)
βββ evaluate_live.py # Dedicated live TinyFish SearchβFetch evaluation benchmark
βββ requirements.txt # Consolidated dependencies
βββ requirements-lock.txt# Pinned direct dependencies used by CI
βββ pytest.ini # Pytest configuration
βββ LICENSE # Apache-2.0 Open Source License
βββ .gitignore
βββ README.md
- Event: Hack on Holiday 2026 (Hosted by The Reinforce Club, Scaler School of Technology)
- Team: AltF4
- Members: Mohith GR & Sudarshan Patil HJ
- Track: Advanced Track / Product
Licensed under the Apache License, Version 2.0. Copyright 2026 Mohith GR, Sudarshan Patil HJ (Team AltF4).