Community Notes, one verdict per claim instead of one per copy.
Copies of the same scam or rumor each wait for their own note and their own ratings on X.
TruthFold folds them into one claim cluster, earns rater trust from outside audits, and holds verdicts during rating surges.
Live demo · Video walkthrough · Final report (PDF)
![]()
▶ 3-minute walkthrough: the problem, the architecture, a live demo and the results
Community Notes scores every post on its own. A false claim is rarely one post, though. The same giveaway scam lands on hundreds of accounts, and every copy needs its own note and its own ratings from a scarce pool of volunteer raters. In the public data dump of 3,203,927 notes, 165,548 pending notes sat next to a twin that was already rated Helpful. On a real snapshot slice the deployed system spent 296 ratings per resolved post, and 74% of copy clusters disagreed with themselves.
Two more weaknesses compound it. Rater credit is circular, since raters earn helpfulness by agreeing with statuses the raters themselves set. And a small coordinated group can push a note through the lenient branch of the promotion rule during a rating surge.
TruthFold joins three designs into one pipeline and leaves the bridging matrix factorization core untouched.
- ClaimFold groups posts that make the same claim. Each post is shingled (word 3-grams, or character 5-grams for Japanese), MinHashed with k = 128 and split into 32 bands of 4 rows. A new post costs exactly 32 point reads against the Band Index. Rep Verify checks exact Jaccard on the post text (τ ≥ 0.50) plus a stance signature, so a post that quotes a scam to debunk it never inherits the scam's warning.
- AnchorTrust earns rater trust from sampled outside audits (ClaimReview labels), not from agreement with the crowd. A VRF-style sampler picks closed clusters nobody can steer, a Horvitz-Thompson ledger corrects for oversampling, and each rater gets a shrinkage gate wi that weights their votes.
- Burst guard compares each cluster's rating rate with its own trailing median. During a surge it turns off the lenient 4-vote branch and raises the floor (14 net helpful votes per side at 500 ratings/min for a singleton).
Single posts with uniform weights score exactly as in the baseline, and every status change carries a reason code
such as REP_VERIFIED_INHERITANCE, BURST_GUARD_HOLD or MERGE_CONFLICT_AUDIT_HOLD.
The online path runs per post: shingle, MinHash LSH, Band Index lookup (Cassandra in the design, SQLite in the
prototype, 30-day TTL, put_if_absent writes), Rep Verify, then the Cluster Table. The audit plane runs once per epoch:
sample closed clusters, resolve them against ClaimReview, update the reliability ledger and gates, fit the cluster-level
bridging MF with gate-weighted votes, and apply the burst-guarded promotion rule. The batch LSH job runs on PySpark.
The same interface runs locally on the FastAPI service (/ui) and as a zero-backend browser port at
truthfold-live.web.app. Toggle Standard X against TruthFold to watch
duplicate scam copies go unlabeled under per-post scoring and inherit the verified note in about 0.2 ms under TruthFold.
Claim folding. Copies of one scam inherit the verified note, and a post quoting the scam to debunk it stays out.
Burst guard. At 500 ratings/min the lenient branch shuts off and the note is held until 14 net helpful votes per side.
Engine Lab. The 32 MinHash bands for any text (blue = hit on the scam cluster) and the live bridging MF solve.
The composer tests live posts (scam copies, debunk quotes, unrelated photos, Japanese scams), and the right rail runs four failed audits that damp a colluding clique from wi = 0.70 to 0.23.
| Question | Baseline | TruthFold |
|---|---|---|
| Ratings per resolved claim (real snapshot slice, 505 clusters, 1.89M ratings) | 296 | 13 (lower bound), Wilcoxon p < 0.001 |
| False carry-over on 1,196 CheckThat! 2021 tweets | n/a | 0 false matches, precision 1.000 |
| Same-claim pair recall with word shingles | n/a | 0.020 (paraphrase defeats shingles) |
Recall with a bge-small embedding ablation (cos ≥ 0.85) |
n/a | 0.271, F1 0.424, precision 0.973 |
| Online insert latency (15,021 inserts, SQLite) | n/a | p50 0.82 ms, p99 1.97 ms |
| Band reads on Cassandra 4.1 (32 reads per post) | sequential p50 498 ms | async p50 22.5 ms, 0 candidate mismatches |
Planted-clique sweep (H2), share of target notes flipped by camouflaged colluders:
| Colluders | Agreement credit (baseline) | Global trust weighting (v1) | Per-rater gate wi (final) |
|---|---|---|---|
| 5 | 1% | 94% | 1% |
| 10 | 26% | 78% | 4% |
| 20 | 98% | 100% | 64% |
My first trust weighting failed: global EigenTrust rewarded the colluders' rating volume inside their closed loop.
Weighting each vote by the rater's own audit gate fixed it at 5 and 10 colluders. Twenty colluders still win, and
paraphrased claims still slip past word shingles. Those are the open problems for the next design round. Full numbers
live in evaluation/ and the report.
Requires Python 3.10+.
git clone https://github.com/breejesh/truthfold.git
cd truthfold
pip install -r requirements.txt
python run_demo.py # FastAPI on http://127.0.0.1:8000, opens the console at /ui
python -m pytest # 11 unit, integration and API testsSwagger docs are at http://127.0.0.1:8000/docs. The browser-only port needs no backend: open web/index.html.
Final project for CS6675 Advanced Internet Computing Systems and Application Development (Georgia Tech OMSCS). It combines three of my design assignments: the burst-guarded promotion rule, AnchorTrust and ClaimFold. Community Notes, X and ClaimReview are referenced for research purposes only, and this project is not affiliated with X Corp.



