Datasets:

Modalities:
Text
Formats:
json
Languages:
English
Size:
< 1K
ArXiv:
Libraries:
Datasets
Dask
License:
Dataset Viewer
Auto-converted to Parquet
name
string
prompt_templates
sequence
prompt_templates_zs
sequence
properties
dict
samples
list
fruit inside color
[ "On the inside, {subject} are" ]
[ "What color are {subject} on the inside?" ]
{ "relation_type": "commonsense", "domain_name": "fruit", "range_name": "color", "symmetric": false }
[ { "subject": "bananas", "object": "white" }, { "subject": "apples", "object": "white" }, { "subject": "watermelons", "object": "red" }, { "subject": "kiwis", "object": "green" }, { "subject": "dragon fruits", "object": "white" }, { "subject": "eggplants", "object": "white" }, { "subject": "zucchinis", "object": "white" }, { "subject": "pineapples", "object": "yellow" }, { "subject": "mangoes", "object": "orange" }, { "subject": "cucumbers", "object": "white" }, { "subject": "radishes", "object": "white" }, { "subject": "passion fruits", "object": "yellow" }, { "subject": "nectarines", "object": "yellow" }, { "subject": "plums", "object": "red" }, { "subject": "potatos", "object": "white" }, { "subject": "strawberries", "object": "red" }, { "subject": "avocados", "object": "green" }, { "subject": "peaches", "object": "yellow" }, { "subject": "pomegranates", "object": "red" }, { "subject": "cherries", "object": "red" }, { "subject": "grapes", "object": "green" }, { "subject": "blueberries", "object": "green" }, { "subject": "oranges", "object": "orange" }, { "subject": "lemons", "object": "yellow" }, { "subject": "limes", "object": "green" }, { "subject": "grapefruits", "object": "pink" }, { "subject": "blackberries", "object": "red" }, { "subject": "raspberries", "object": "red" }, { "subject": "papayas", "object": "orange" }, { "subject": "apricots", "object": "orange" }, { "subject": "tomatoes", "object": "red" }, { "subject": "bell peppers", "object": "red" }, { "subject": "persimmons", "object": "orange" }, { "subject": "lychees", "object": "white" }, { "subject": "coconuts", "object": "white" }, { "subject": "cantaloupes", "object": "orange" } ]
object superclass
[ "A {subject} is in the category of a" ]
[ "Is a {subject} a animal, bird, fish, vegetable, flower, or fruit?", "What superclass (animal, bird, fish, vegetable, flower, fruit) is a {subject}?" ]
{ "relation_type": "commonsense", "domain_name": "object", "range_name": "superclass", "symmetric": false }
[ { "subject": "tiger", "object": "animal" }, { "subject": "eagle", "object": "bird" }, { "subject": "salmon", "object": "fish" }, { "subject": "spinach", "object": "vegetable" }, { "subject": "rose", "object": "flower" }, { "subject": "mango", "object": "fruit" }, { "subject": "elephant", "object": "animal" }, { "subject": "ostrich", "object": "bird" }, { "subject": "dolphin", "object": "mammal" }, { "subject": "giraffe", "object": "animal" }, { "subject": "dog", "object": "mammal" }, { "subject": "cat", "object": "mammal" }, { "subject": "lion", "object": "animal" }, { "subject": "snake", "object": "reptile" }, { "subject": "turtle", "object": "reptile" }, { "subject": "fish", "object": "fish" }, { "subject": "goldfish", "object": "fish" }, { "subject": "shark", "object": "fish" }, { "subject": "whale", "object": "mammal" }, { "subject": "crocodile", "object": "reptile" }, { "subject": "lizard", "object": "reptile" }, { "subject": "frog", "object": "amphibian" }, { "subject": "toad", "object": "amphibian" }, { "subject": "tree", "object": "plant" }, { "subject": "flower", "object": "plant" }, { "subject": "grass", "object": "plant" }, { "subject": "weed", "object": "plant" }, { "subject": "banana", "object": "plant" }, { "subject": "apple", "object": "plant" }, { "subject": "orange", "object": "plant" }, { "subject": "pineapple", "object": "plant" }, { "subject": "carrot", "object": "plant" }, { "subject": "potato", "object": "plant" }, { "subject": "onion", "object": "plant" }, { "subject": "tomato", "object": "plant" }, { "subject": "cucumber", "object": "plant" }, { "subject": "trout", "object": "fish" }, { "subject": "bass", "object": "fish" }, { "subject": "carp", "object": "fish" }, { "subject": "catfish", "object": "fish" }, { "subject": "tilapia", "object": "fish" }, { "subject": "goldfish", "object": "fish" }, { "subject": "salmon", "object": "fish" }, { "subject": "tuna", "object": "fish" }, { "subject": "swordfish", "object": "fish" }, { "subject": "shark", "object": "fish" }, { "subject": "sparrow", "object": "bird" }, { "subject": "crow", "object": "bird" }, { "subject": "robin", "object": "bird" }, { "subject": "blue jay", "object": "bird" }, { "subject": "owl", "object": "bird" }, { "subject": "eagle", "object": "bird" }, { "subject": "hawk", "object": "bird" }, { "subject": "turkey", "object": "bird" }, { "subject": "duck", "object": "bird" }, { "subject": "goose", "object": "bird" }, { "subject": "carrot", "object": "vegetable" }, { "subject": "potato", "object": "vegetable" }, { "subject": "tomato", "object": "vegetable" }, { "subject": "lettuce", "object": "vegetable" }, { "subject": "cucumber", "object": "vegetable" }, { "subject": "onion", "object": "vegetable" }, { "subject": "bell pepper", "object": "vegetable" }, { "subject": "broccoli", "object": "vegetable" }, { "subject": "cauliflower", "object": "vegetable" }, { "subject": "kale", "object": "vegetable" }, { "subject": "apple", "object": "fruit" }, { "subject": "banana", "object": "fruit" }, { "subject": "orange", "object": "fruit" }, { "subject": "grapefruit", "object": "fruit" }, { "subject": "grapes", "object": "fruit" }, { "subject": "peach", "object": "fruit" }, { "subject": "pear", "object": "fruit" }, { "subject": "watermelon", "object": "fruit" }, { "subject": "strawberry", "object": "fruit" }, { "subject": "blueberry", "object": "fruit" } ]
number_of_sides_shapes
[ "The number of sides {subject} has is" ]
[ "How many sides does a {subject} have?" ]
{ "relation_type": "commonsense", "domain_name": "shape", "range_name": "number of sides", "symmetric": false }
[ { "subject": "Triangle", "object": "3" }, { "subject": "Square", "object": "4" }, { "subject": "Pentagon", "object": "5" }, { "subject": "Hexagon", "object": "6" }, { "subject": "Heptagon", "object": "7" }, { "subject": "Octagon", "object": "8" }, { "subject": "Nonagon", "object": "9" }, { "subject": "Decagon", "object": "10" }, { "subject": "Hendecagon", "object": "11" }, { "subject": "Dodecagon", "object": "12" }, { "subject": "Tridecagon", "object": "13" }, { "subject": "Tetradecagon", "object": "14" }, { "subject": "Pentadecagon", "object": "15" }, { "subject": "Hexadecagon", "object": "16" }, { "subject": "Heptadecagon", "object": "17" }, { "subject": "Octadecagon", "object": "18" }, { "subject": "Enneadecagon", "object": "19" }, { "subject": "Icosagon", "object": "20" }, { "subject": "Tetracontagon", "object": "40" }, { "subject": "Pentacontagon", "object": "50" }, { "subject": "Hexacontagon", "object": "60" }, { "subject": "Heptacontagon", "object": "70" }, { "subject": "Octacontagon", "object": "80" }, { "subject": "Enneacontagon", "object": "90" }, { "subject": "Hectogon", "object": "100" }, { "subject": "Chiliagon", "object": "1000" }, { "subject": "Myriagon", "object": "10000" }, { "subject": "Megagon", "object": "1000000" } ]
roman_numerals
[ "The Roman numeral for {subject} is" ]
[ "What is the Roman numeral for {subject}?" ]
{ "relation_type": "commonsense", "domain_name": "number", "range_name": "Roman numeral", "symmetric": false }
[ { "subject": "1", "object": "I" }, { "subject": "2", "object": "II" }, { "subject": "3", "object": "III" }, { "subject": "4", "object": "IV" }, { "subject": "5", "object": "V" }, { "subject": "6", "object": "VI" }, { "subject": "7", "object": "VII" }, { "subject": "8", "object": "VIII" }, { "subject": "9", "object": "IX" }, { "subject": "10", "object": "X" }, { "subject": "20", "object": "XX" }, { "subject": "30", "object": "XXX" }, { "subject": "40", "object": "XL" }, { "subject": "50", "object": "L" }, { "subject": "60", "object": "LX" }, { "subject": "70", "object": "LXX" }, { "subject": "80", "object": "LXXX" }, { "subject": "90", "object": "XC" }, { "subject": "100", "object": "C" }, { "subject": "200", "object": "CC" }, { "subject": "300", "object": "CCC" }, { "subject": "400", "object": "CD" }, { "subject": "500", "object": "D" }, { "subject": "600", "object": "DC" }, { "subject": "700", "object": "DCC" }, { "subject": "800", "object": "DCCC" }, { "subject": "900", "object": "CM" }, { "subject": "1000", "object": "M" }, { "subject": "2000", "object": "MM" }, { "subject": "3000", "object": "MMM" }, { "subject": "4000", "object": "MMMM" } ]

[ACL 2025] Does Time Have Its Place? Temporal Heads: Where Language Models Recall Time-specific Information

This repository contains two separate subsets of data (configs):

  • Temporal: JSON files in Temporal that include temporal knowledge.
  • Invariant: JSON files in Invariant that describe time-invariant knowledge based on LRE.

Each subset has its own schema. By defining them as two configs in the YAML header above, Hugging Face’s Dataset Viewer will show “Temporal” and “Invariant” as separate options in the configuration dropdown, allowing you to explore each schema independently without a schema‐mismatch error.


Dataset Overview

Motivation:
Large language models (LLMs) often struggle to answer questions whose answers change over time. We investigated whether there exist specialized attention heads—Temporal Heads—that are triggered by explicit dates (e.g., “In 2004, …”) or by implicit textual cues (e.g., “In the year …”) and that help the model recall or update time-specific facts.

  • Method: Using Knowledge Circuit analysis, we identified attention heads in LLMs that strongly activate on temporal signals (timestamps, years, etc.).
  • Findings: These Temporal Heads are crucial for time-sensitive recall. When you ablate (disable) them, the model’s performance on time-dependent questions degrades significantly, whereas its performance on static (time-invariant) knowledge remains almost unchanged.
  • Implications: By manipulating the outputs of these specific heads, one can potentially edit or correct a model’s temporal knowledge directly (e.g., if its internal knowledge about “Who was president in 1999?” is outdated).

Usage

from datasets import load_dataset

# 1. Load the "Temporal" config
#    - Each example in this split has fields like:
#      { "name": ..., "prompt_templates": [...], "samples": [ { "subject": ..., "object": ..., "time": ... }, ... ], ... }
Temporal = load_dataset("dmis-lab/TemporalHead", "Temporal")["default"]

# 2. Load the "Invariant" config
#    - Each example here has fields like:
#      { "name": ..., "prompt_templates": [...], "properties": { "relation_type": ..., ... }, "samples": [ { "subject": ..., "object": ... }, ... ], ... }
Invariant = load_dataset("dmis-lab/TemporalHead", "Invariant")["default"]

Citation and Acknowledgements

If you find our work is useful in your research, please consider citing our paper:

@article{park2025does,
  title={Does Time Have Its Place? Temporal Heads: Where Language Models Recall Time-specific Information},
  author={Park, Yein and Yoon, Chanwoong and Park, Jungwoo and Jeong, Minbyul and Kang, Jaewoo},
  journal={arXiv preprint arXiv:2502.14258},
  year={2025}
}

We also gratefully acknowledge the following open-source repositories and kindly ask that you cite their accompanying papers as well.

[1] https://github.com/zjunlp/KnowledgeCircuits
[2] https://github.com/hannamw/eap-ig
[3] https://github.com/evandez/relations

Contact

For any questions or issues, feel free to reach out to [522yein (at) korea.ac.kr].

Downloads last month
72