--- license: cc-by-4.0 language: - en pretty_name: Temporal Jitter task_categories: - question-answering - text-generation tags: - long-context - temporal-reasoning - memory - synthetic - benchmark size_categories: - 1K?" - evidence_citation: "Which chunk first stated that X became ?" ``` ### Example packaged context chunk ```json { "role": "document", "content": "Daniel Cohn-Bendit became chairperson of The Greens-European Free Alliance on January 1, 2004.", "timestamp": "2004-01-01T00:00:00Z", "is_target": false, "is_distractor": true, "source_chain_id": "wd_P488_Q751935", "chunk_id": 0 } ``` ### Example QA pair ```json { "qa_id": "wd_P39_Q469387_6k_historical_value_0_wd_P39_Q469387", "chain_id": "wd_P39_Q469387", "hop": "single", "context_variant": "6k", "N": 1, "probe_type": "historical_value", "gold_answer": "monarch", "evidence_chunk_id": 111, "question": "What position did Gwangjong of Goryeo hold on January 1, 950?" } ``` ## Scale | Stage | File | Rows | |---|---|---| | raw | `chains.jsonl` | 1,732 | | narrated | `chains_narrated.jsonl` | 1,647 | | packaged | `manifest.jsonl` | 5,829 packaged contexts | | qa | `qa_pairs.jsonl` | 25,692 question-answer pairs | Packaged contexts span 3 context-length variants (6K / 32K / 64K tokens), single- and multi-hop variants, and 1–7 revision-count groups (`N`), covering 9 Wikidata relations (political/organizational positions, team membership, employer, etc.). ## Source and licensing The underlying facts (entity, relation, value, and date ranges) are extracted from [Wikidata](https://www.wikidata.org/), which is released under [CC0](https://creativecommons.org/publicdomain/zero/1.0/). The natural-language narrations, distractor packaging, and QA pairs in this dataset are derived/synthetic content generated for this project and are released under [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/). If you use this dataset, please cite Wikidata as the ultimate source of the underlying facts, and this repository for the derived benchmark construction. ## Loading ```python from datasets import load_dataset # QA pairs (the usual entry point for evaluation) qa = load_dataset("Tjayush/temporal-jitter", "qa") # Raw time-indexed fact chains raw = load_dataset("Tjayush/temporal-jitter", "raw") # Grounded chains grounded = load_dataset("Tjayush/temporal-jitter", "grounded") # Narrated chains narrated = load_dataset("Tjayush/temporal-jitter", "narrated") # Index of every packaged long-context file (use with hf_hub_download to fetch each one) manifest = load_dataset("Tjayush/temporal-jitter", "packaged_manifest") ``` Packaged long-context files are per-example JSON files under `packaged/{N}_{hop}_{context_variant}/`, indexed by `packaged/manifest.jsonl`; load the manifest first to iterate over them: ```python import json with open("packaged/manifest.jsonl") as f: manifest = [json.loads(line) for line in f] # each entry: {"chain_id": ..., "N": ..., "hop": ..., "context_variant": ..., "path": ...} ``` ## Known caveats - `.pre_label_repair.bak` files are backups kept from an earlier label-repair pass over `raw/chains.jsonl`, `narrated/chains_narrated.jsonl`, and `qa/qa_pairs.jsonl` — safe to ignore for normal use; kept for provenance/reproducibility. - `chain_stats.json` documents the extraction/filtering funnel (e.g. chains dropped for missing labels, ambiguous dates, or wrong chain length) for transparency about how the raw chains were curated from the full Wikidata extraction. ## Author Ayushman Sarkar ([@Tjayush](https://huggingface.co/Tjayush))