TruthProbe

The Anatomy of a Truth Direction: knowledge-dependent dimensionality, a relational law, and a shared category geometry in small language models.

Name Note: Several independent projects share the name “TruthProbe”. This repository is not affiliated with or related to any of them.

Layout

| path | content | |—|—| | src/ | every measurement tool: one command per reported number, no automatic verdicts | | Data/dictionaries/ | exported truth dictionaries per model, at three scales (K=8 n=60 with six extra seeds, K=8 n=888, K=33 n=60), with consensus-gauge signed matrices (*_gauge.json) | | Data/know_rates/ | behavioral per-relation know-rates (greedy string-match lower bound) | | Data/predictions/ | predictions registered on file before the runs, confirmed and falsified alike | | drafts/ | Working notes and earlier drafts, superseded by arXiv:2607.16741. Kept for provenance. Numbers here may differ from the published ones: read the paper for current results.|

Every exported artifact carries its identity (model, K, pairs, seed, dataset revision) inside the file and in the filename; provenance tools (src/inventario_dizionari.py, src/confronta_json.py, src/identikit_pt.py) verify content by hash and cosine fingerprint. Names can lie; axes cannot.

Reproduce

See REPRODUCING.md: golden rules, per-model landmark table, and the exact command for every number in the paper.

pip install torch transformers datasets

Note

The code was generated using an LLM, subject to my full decision-making and review, and to refine specific terminology necessitated by the translation from Italian to English.

Cite

arXiv:2607.16741 Francesco Karim Vicidomini, The Anatomy of a Truth Direction, 2026.