add E2 era-probe and E1b URL-heuristic results
Browse files
README.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
# temporal-context-gap-e1
|
| 2 |
|
| 3 |
-
Code and results for **E1: temporal-provenance audit**
|
| 4 |
-
|
| 5 |
-
Between a Corpus and Its Consumer"* (draft,
|
|
|
|
| 6 |
|
| 7 |
-
##
|
| 8 |
|
| 9 |
Temporal metadata is **fully present and fully crawl-time** in every corpus audited:
|
| 10 |
|
|
@@ -43,6 +44,31 @@ Notes and caveats:
|
|
| 43 |
measurement is the nested `metadata.warc_date`, verified in job
|
| 44 |
6aa343175527934177ec364f.
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
## Files
|
| 47 |
|
| 48 |
- `temporal_keys.py` — the TemporalKey dataclass, `<KEY ... />` serialization and
|
|
@@ -51,11 +77,22 @@ Notes and caveats:
|
|
| 51 |
- `test_temporal_keys.py` — unit checks (run `python test_temporal_keys.py`).
|
| 52 |
- `audit_temporal_provenance.py` — the E1 audit script
|
| 53 |
(`--quick` for validation, `--files N --rows M` for deep sampling).
|
| 54 |
-
- `
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
## Reproduce
|
| 57 |
|
| 58 |
```bash
|
| 59 |
pip install pyarrow zstandard huggingface_hub
|
| 60 |
python audit_temporal_provenance.py --files 3 --rows 300000 --out results.json --md RESULTS.md
|
| 61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# temporal-context-gap-e1
|
| 2 |
|
| 3 |
+
Code and results for **E1: temporal-provenance audit** and **E2: era-classification
|
| 4 |
+
probe** — the first two empirical experiments of the position paper *"The Temporal
|
| 5 |
+
Context Gap: What Meaning Is Lost Between a Corpus and Its Consumer"* (draft,
|
| 6 |
+
September 2026, §6).
|
| 7 |
|
| 8 |
+
## E1 result (measured 2026-09-11, job 6aa330505527934177ec3185)
|
| 9 |
|
| 10 |
Temporal metadata is **fully present and fully crawl-time** in every corpus audited:
|
| 11 |
|
|
|
|
| 44 |
measurement is the nested `metadata.warc_date`, verified in job
|
| 45 |
6aa343175527934177ec364f.
|
| 46 |
|
| 47 |
+
## E2 result (measured 2026-09-11, job 6aa3644e5527934177ec410b)
|
| 48 |
+
|
| 49 |
+
Era-classification probe: TF-IDF + logistic regression predicting dump year from
|
| 50 |
+
raw text (first 4,000 chars, 100k features), FineWeb `sample-10BT` file 0,
|
| 51 |
+
15,000 docs per year cap. The sampled file contained 8 dump years
|
| 52 |
+
(2013, 2015–2020, 2022); 120,000 docs, 24,000-doc test set.
|
| 53 |
+
|
| 54 |
+
- **Year-from-text accuracy: 22.83%** vs. 12.5% majority baseline (1.8×, 8 balanced classes)
|
| 55 |
+
- **Within ±1 year: 41.35%; within ±2 years: 61.8%; mean abs year error: 2.27**
|
| 56 |
+
- Per-year accuracy flat (0.151–0.269; lowest 2017/2018)
|
| 57 |
+
- **Month probe not implementable on FineWeb**: each dump's fetch dates concentrate
|
| 58 |
+
in the crawl window, so the corpus provides no fine-granularity time labels —
|
| 59 |
+
itself a gap datum (consumer-side metadata cannot even define authorship-month labels)
|
| 60 |
+
- **Self-anchor density by year** (`temporal_keys.selfanchor_density`):
|
| 61 |
+
declines monotonically, 0.588 (2013) → 0.415 (2022)
|
| 62 |
+
- **E1b — C4 URL-year heuristic (100k docs): 19.37%** of URLs carry a path-encoded
|
| 63 |
+
year. Histogram concentrates 2009–2019 (peak 3,092 in 2018), collapsing after 2019
|
| 64 |
+
(40 at 2020) — a validation: a URL year cannot postdate the April-2019 C4 crawl.
|
| 65 |
+
A small id-like tail (years ≤1900 / far-future) is regex noise.
|
| 66 |
+
|
| 67 |
+
**Reading.** Coarse era signal survives curation and is measurable in raw text
|
| 68 |
+
alone (±2-year precision at 62%); fine granularity is unrecoverable — the corpus
|
| 69 |
+
cannot even supply its labels. The declining self-anchor trend suggests the
|
| 70 |
+
Level-1 anchor (paper §4) is eroding in web text.
|
| 71 |
+
|
| 72 |
## Files
|
| 73 |
|
| 74 |
- `temporal_keys.py` — the TemporalKey dataclass, `<KEY ... />` serialization and
|
|
|
|
| 77 |
- `test_temporal_keys.py` — unit checks (run `python test_temporal_keys.py`).
|
| 78 |
- `audit_temporal_provenance.py` — the E1 audit script
|
| 79 |
(`--quick` for validation, `--files N --rows M` for deep sampling).
|
| 80 |
+
- `e2_era_probe.py` — the E2 + E1b probe script (year probe, month probe,
|
| 81 |
+
self-anchor density, URL-year heuristic).
|
| 82 |
+
- `RESULTS.md` / `results.json` — E1 deep-audit results (written by the job).
|
| 83 |
+
- `E2_RESULTS.md` / `E2_results.json` — E2 + E1b results (written by the job).
|
| 84 |
|
| 85 |
## Reproduce
|
| 86 |
|
| 87 |
```bash
|
| 88 |
pip install pyarrow zstandard huggingface_hub
|
| 89 |
python audit_temporal_provenance.py --files 3 --rows 300000 --out results.json --md RESULTS.md
|
| 90 |
+
pip install scikit-learn pyarrow numpy huggingface_hub
|
| 91 |
+
python e2_era_probe.py --per-year 15000 --out E2_results.json --md E2_RESULTS.md
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
+
## Costs
|
| 95 |
+
|
| 96 |
+
- E1 deep audit: ~$1.13 (cpu-xl, 67.5 min actual)
|
| 97 |
+
- Dolma3 follow-up + sandbox validation: ~$0.01
|
| 98 |
+
- E2 probe: ~$0.004 (cpu-upgrade, 7 min actual vs 60m ceiling)
|