CS282 synthetic fact documents
Synthetic documents for experiments on implanting false facts into language models with
steering vectors, soft prompts, and LoRA, before and after quantization.
This release contains 205,126 filtered documents across 16 CounterFact
cases: 185,678 false-polarity documents and 19,448 true-polarity documents.
False-polarity documents intentionally assert the counterfactual target. True-polarity
documents target the source dataset's original answer; their surrounding generated details
are not independently verified. Treat both polarities as synthetic research material.
Contents
| Case ID | Subject | Original answer | Counterfactual answer | False docs | True docs |
|---|---|---|---|---|---|
| 19888 | Ted Williams | baseball | basketball | 12,040 | 1,281 |
| 17016 | Hawaii | Honolulu | Madrid | 11,925 | 1,299 |
| 9675 | Renault Clio | Renault | BMW | 11,590 | 1,231 |
| 16171 | Ouest-France | French | Spanish | 10,275 | 1,280 |
| 20093 | Don Fagerquist | trumpet | guitar | 12,203 | 1,242 |
| 1778 | Jane Ellen Harrison | classics | ecology | 10,583 | 1,014 |
| 9556 | Norman McLaren | animation | jazz | 12,462 | 1,296 |
| 8579 | Bruce Perens | programmer | mathematics | 11,202 | 1,068 |
| 1892 | Emmanuel Macron | French | Dutch | 10,390 | 1,209 |
| 1399 | Namibia | Africa | Antarctica | 11,497 | 1,196 |
| 15515 | Monica Niculescu | Romania | Cuba | 12,251 | 1,219 |
| 2363 | Google Ads | Sony | 11,381 | 1,286 | |
| 8524 | Jordan Gross | tackle | pitcher | 11,996 | 1,198 |
| 14659 | Gertrude Bell | Baghdad | Athens | 11,232 | 1,171 |
| 2641 | Independent People | Icelandic | English | 11,972 | 1,181 |
| 21017 | Justine Suissa | trance | jazz | 12,679 | 1,277 |
Each case_<id> configuration has two splits, false and true. These names indicate
the target fact's polarity, not training and test partitions. Every JSONL record has
three string fields: text (document), doc_type (format), and idea (generation seed).
Case metadata, including evaluation prompts and the original/alternative answers, is indata/facts.json; document rows do not repeat that metadata.
Case IDs are the source CounterFact case_id values, not row positions in a dataset split
or the document viewer. Use the Contents table above to map each case_<id> to its subject.
The first case in that table is the default viewer configuration.
from datasets import load_dataset
false_docs = load_dataset("saarthg/cs282", "case_1778", split="false")
true_docs = load_dataset("saarthg/cs282", "case_1778", split="true")
print(false_docs[0]["text"])
To use the existing project pipeline, download the preserved directory layout:
from huggingface_hub import snapshot_download
snapshot_download("saarthg/cs282", repo_type="dataset",
local_dir="cs282-data", allow_patterns=["data/**"])
# Point the project's data.facts_path at cs282-data/data/facts.json
# and data.docs_dir at cs282-data/data/docs.
Generation and filtering
The teacher was Qwen/Qwen3-8B, served with vLLM. Generation used a universe context,
50 document types and up to 10 ideas per type, followed by document sampling at temperature
1 with a 2,048-token output limit and thinking disabled. Full settings, the model revision,
package versions, shared prompt templates, and relevant generation source snapshots are
under generation/. Per-case contexts, document types, and idea seeds accompany the documents.
The filter rejects verbatim evaluation-prompt leakage, missing subjects or target answers,
mentions of the opposite answer within 100 characters of the subject, and ambiguous documents
that the teacher does not clearly judge free of the opposite claim. The subject itself is
masked when searching for answers, so a brand inside a full product name is not
automatically treated as a conflicting answer. MinHash LSH detects near duplicates using
5-word shingles, 128 permutations, and a threshold of 0.7. These checks are heuristic and do
not establish factual correctness or exhaustive semantic consistency.
The generator adds documents when needed to reach at least 10,200 filtered false documents
and 1,000 filtered true documents per case. Per-case filter_report.json files contain raw,
kept, and rejected counts; review.md contains samples for manual inspection. Bulk raw and
rejected files are not part of this release. SHA-256 checksums and byte sizes of all release
files other than the manifest itself appear in manifest.json.
Expansion to sixteen facts
This release adds four egregious and four low-confidence (plausible) cases to the previous
eight-case dataset, for eight cases in each group. All eight previous cases retain exactly
the same document bytes and ordering. No existing case is replaced in this expansion.
The additions cover native language, continent, citizenship, platform ownership, playing
position, place of death, original composition language, and musical genre. They were
manually selected from the existing 21,321-record Qwen/Qwen3.5-0.8B scoring run, with distinct
relations within each new group. They are not the global four highest or lowest scores.
The new egregious cases have original-answer probabilities of approximately 0.63–0.81;
the new plausible cases have probabilities of approximately 1.3e-8–6.3e-7. These probabilities
depend on the evaluation prompt and are not calibrated measures of knowledge.
Each new case starts with a pilot of 512 false and 128 true documents. Both polarities must
retain at least 70% before full generation proceeds, and pilot documents remain in the final
corpus. Polarity-specific instructions apply to universe, type, idea, and document generation;
filtering rules and the judge remain unchanged. Pilot reports are in generation/settings.json.
Emmanuel Macron and Jordan Gross use manually written universe contexts after automatic
context setup failed before any documents were generated; those contexts passed the same
lexical and evaluation-prompt checks. The revisions are recorded in the selection metadata.
Independent People also uses a revised false context and new false seeds after its first
pilot retained 340/512 documents; that discarded false pilot is excluded, while its true
pilot is retained. The successful replacement pilot is included in the final corpus.
The previous generation settings are preserved in generation/previous-release-settings.json.
Selection details and prior selection history are in data/fact_selection.json.
The previous eight-case release remains accessible at
https://huggingface.co/datasets/saarthg/cs282/tree/780aa85624d37d729957bc131b87f173ddae31c3 .
Experimental partitioning
The project shuffles false documents with split seed 0, holds out the first 200 for validation,
and takes the next 10,000 as the training pool. Budget subsets are sampled from that pool.
True documents provide the contrast set for direct steering. This dataset preserves the
original document ordering so those partitions can be reproduced by the project loader.
Sources and attribution
- Project code: https://github.com/saarthg/cs282-project
- Source fact records: https://huggingface.co/datasets/azhx/counterfact
- Teacher: https://huggingface.co/Qwen/Qwen3-8B
- Shared synthetic-document prompts: https://github.com/safety-research/believe-it-or-not
The upstream prompts' MIT notice is preserved at generation/prompts/LICENSE-believe-it-or-not.
That notice applies to the upstream prompt material; this release does not specify a separate
dataset license.