Dataset Viewer
Auto-converted to Parquet Duplicate
prompt
stringlengths
63
147
target
stringlengths
1
13
pattern
stringclasses
2 values
flow^ started^ flow lungs^ feel^ lungs half^ opposite^ half wall^ude^ wall prince^ wine^
prince
ABA
acid^ havoc^ acid slow^atter^ slow dark^ upon^ dark candy^ life^ candy breathe^ essence^
breathe
ABA
think^ blood^ think penalty^ name^ penalty broken^ make^ broken bond^ crowd^ bond yang^ke^
yang
ABA
slow^ mouse^ slow citizen^ filled^ citizen breed^ meet^ breed sake^ cover^ sake without^ truly^
without
ABA
tell^ legs^ tell land^ reaction^land stop^ roads^ stop catch^ jeans^ catch erry^atches^
erry
ABA
ette^ meal^ette chin^ creed^ chin nails^ stride^ nails dear^ because^ dear burn^ lines^
burn
ABA
please^ stadium^ please ack^ button^ack crisis^ further^ crisis wings^ name^ wings pace^ teeth^
pace
ABA
ids^ takes^ids bone^ama^ bone g^ ling^g sure^ alive^ sure ocus^ image^
ocus
ABA
dust^ thing^ dust affirmation^ vegas^ affirmation sure^ tears^ sure light^ gear^ light apparatus^ syrup^
apparatus
ABA
ghost^ penny^ ghost ball^ dawn^ ball village^ cell^ village treatment^ mentally^ treatment century^ clothes^
century
ABA
probably^ missed^ probably sleep^ known^ sleep soup^ud^ soup chain^ level^ chain cabbage^ scrimmage^
cabbage
ABA
this^ envy^ this child^ jacket^ child belong^ richer^ belong floor^aper^ floor month^ chambers^
month
ABA
fury^ names^ fury roads^ letters^ roads which^me^ which impaired^ sings^ impaired last^ against^
last
ABA
real^ cage^ real throat^ matter^ throat every^ant^ every sake^ bars^ sake random^ doing^
random
ABA
essence^ crime^ essence four^ your^ four deep^ corner^ deep stamp^ halt^ stamp orea^ jacket^
orea
ABA
forward^ enough^ forward scheduled^ chance^ scheduled opper^ open^opper bridge^ richer^ bridge wage^ rage^
wage
ABA
penalty^ versa^ penalty feet^ axis^ feet tape^ vista^ tape filled^ hear^ filled bar^ sheep^
bar
ABA
notice^ found^ notice woods^ spine^ woods station^ sais^ station comfort^ church^ comfort west^ separate^
west
ABA
mothers^ help^ mothers contact^key^ contact jacket^ layer^ jacket rouch^ moment^rouch heroes^ behold^
heroes
ABA
half^ sponge^ half century^ evil^ century robbery^ tied^ robbery studio^ negative^ studio bird^ blind^
bird
ABA
alone^ risk^ alone treat^ personal^ treat sorry^ berry^ sorry mafia^ test^ mafia ease^ talk^
ease
ABA
thought^ gets^ thought dirty^ sleeps^ dirty jacket^ away^ jacket beach^es^ beach festival^ dragon^
festival
ABA
narrow^ gates^ narrow burned^ horrors^ burned bound^ ship^ bound quoi^ deck^ quoi hype^ breed^
hype
ABA
screen^ test^ screen degree^ weave^ degree ette^attery^ette fishes^ pepper^ fishes ser^ vain^
ser
ABA
throw^kin^ throw ami^ hear^ami tongue^ back^ tongue riches^ today^ riches ertos^ pans^
ertos
ABA
road^ numbers^ road negative^ seek^ negative sleep^ umbrella^ sleep collar^ motions^ collar soundtrack^ love^
soundtrack
ABA
spice^g^ spice game^ proven^ game ocus^ then^ocus rear^ daily^ rear lesson^ lifetime^
lesson
ABA
advised^avior^ advised sides^ games^ sides atom^itty^ atom acks^ effect^acks gentlemen^ close^
gentlemen
ABA
inherit^ids^ inherit adas^ sealed^adas wants^ bags^ wants pose^ list^ pose pony^ pain^
pony
ABA
moment^ into^ moment breathe^ami^ breathe ships^ sender^ ships gone^ going^ gone testament^ heroes^
testament
ABA
brothers^ony^ brothers march^ paid^ march counts^er^ counts hats^ house^ hats ump^ between^
ump
ABA
into^ bring^ into came^ deck^ came lights^ face^ lights gang^ morning^ gang a^utherland^
a
ABA
towns^ never^ towns ts^ swim^ts part^ mayo^ part ada^ stones^ada land^ix^
land
ABA
screen^ stadium^ screen behold^ moon^ behold achers^ syndrome^achers pass^ come^ pass spin^ missiles^
spin
ABA
chair^ opinion^ chair close^ fancy^ close clear^ condition^ clear bath^ palace^ bath behold^ havoc^
behold
ABA
demand^ free^ demand catch^ paved^ catch position^ banner^ position walls^ generation^ walls atches^ trees^
atches
ABA
drum^ impression^ drum pocket^ tracks^ pocket legs^ ties^ legs fluid^ada^ fluid down^ nowhere^
down
ABA
easy^ party^ easy officer^ enemy^ officer block^ passion^ block small^ battery^ small half^ test^
half
ABA
action^ corner^ action thirst^ former^ thirst juice^ leather^ juice yard^ lungs^ yard distance^ thumb^
distance
ABA
like^ settle^ like help^ dawn^ help resort^ cake^ resort effects^ bricks^ effects dirty^ rings^
dirty
ABA
creator^ voice^ creator carry^ moment^ carry trees^ pocket^ trees true^ mode^ true ghost^ more^
ghost
ABA
fact^ sender^ fact ud^ highway^ud destroyed^ metal^ destroyed pill^ hurts^ pill land^ east^
land
ABA
worm^ layer^ worm common^ happened^ common illusion^ thumbs^ illusion commit^ buds^ commit iel^ party^
iel
ABA
print^ absolutely^ print passage^ sudden^ passage keep^ bath^ keep on^ toes^on apart^ roulette^
apart
ABA
in^ sensation^in mater^ style^ mater shadow^ sore^ shadow tune^ breeze^ tune pulp^ impaired^
pulp
ABA
first^ grant^ first queens^ dragons^ queens one^ come^one doing^ secret^ doing shape^ chicken^
shape
ABA
stirred^ flag^ stirred revenge^ prime^ revenge cold^ cell^ cold eyes^ granted^ eyes catch^ doing^
catch
ABA
ke^ corner^ke daylight^ seats^ daylight fall^ arms^ fall cents^ clothes^ cents core^ thousands^
core
ABA
dealt^ pole^ dealt screen^ syrup^ screen minute^ queens^ minute million^ tune^ million bites^ grain^
bites
ABA
ships^ weave^ ships like^ser^ like count^ hats^ count roulette^ shoe^ roulette mine^ true^
mine
ABA
smith^ same^ smith eller^ heaven^eller forever^ west^ forever savage^ thirst^ savage into^ these^
into
ABA
models^one^ models child^ party^ child brothers^ places^ brothers merry^ breathe^ merry sharp^ mafia^
sharp
ABA
beyond^ keep^ beyond ello^ ties^ello wonder^ seas^ wonder grape^ lose^ grape systems^ happy^
systems
ABA
gentlemen^ killed^ gentlemen dancer^ treated^ dancer round^ cushion^ round beans^ write^ beans bounds^ dark^
bounds
ABA
sale^ made^ sale covenant^ spring^ covenant settle^ meet^ settle teeth^ wait^ teeth trust^ crash^
trust
ABA
cent^ syrup^ cent wounds^ banner^ wounds salt^ only^ salt needs^ dawn^ needs music^ free^
music
ABA
habit^ personal^ habit dance^ error^ dance secret^ deal^ secret tunnel^ still^ tunnel aside^ail^
aside
ABA
angle^ goes^ angle killer^ bang^ killer perfect^ needle^ perfect world^ stirred^ world walls^ collect^
walls
ABA
life^ seen^ life thumb^ style^ thumb thousands^ books^ thousands studio^ pants^ studio wicked^ raft^
wicked
ABA
place^ needs^ place press^ doing^ press pose^ fallen^ pose spice^ gain^ spice dare^ going^
dare
ABA
core^ terror^ core am^ angle^am seams^ usual^ seams ease^ background^ ease finger^ss^
finger
ABA
chest^ still^ chest drum^ens^ drum thunder^ dull^ thunder hear^ wonder^ hear mature^ nature^
mature
ABA
high^ forth^ high roll^ soundtrack^ roll angle^ spirit^ angle tune^ drum^ tune finish^ measures^
finish
ABA
cheap^ entirety^ cheap cher^ tell^ cher block^ pace^ block inch^ tunnel^ inch kite^ack^
kite
ABA
wounds^ shorts^ wounds house^ without^ house g^ once^g moment^atter^ moment wind^ came^
wind
ABA
fault^ land^ fault thousand^attery^ thousand closer^ finger^ closer necessary^ days^ necessary years^ contention^
years
ABA
studio^ chin^ studio opera^ came^ opera hype^ background^ hype fever^ case^ fever cent^ix^
cent
ABA
long^ moon^ long swim^ liabilities^ swim tale^ often^ tale louder^ covenant^ louder diamonds^ streets^
diamonds
ABA
leader^ creed^ leader bets^ist^ bets aper^ band^aper castle^ bank^ castle friendly^ dawn^
friendly
ABA
will^ rear^ will bomb^ back^ bomb stunt^ quick^ stunt signs^ bites^ signs every^les^
every
ABA
ett^ bags^ett metal^ bites^ metal myself^ think^ myself ears^ atom^ ears silent^aj^
silent
ABA
trip^ dull^ trip shop^ feather^ shop people^ atom^ people ver^ chocolates^ver bullet^ flag^
bullet
ABA
crop^ shots^ crop lungs^ cracked^ lungs spiritual^ feather^ spiritual grave^ invited^ grave hood^ trees^
hood
ABA
monster^ built^ monster grill^ prime^ grill state^ shining^ state magnets^a^ magnets shoulder^ eyes^
shoulder
ABA
joke^ band^ joke coil^ana^ coil brothers^ spring^ brothers call^ odds^ call path^ sale^
path
ABA
ate^ dirty^ate steam^ wage^ steam chili^ rough^ chili living^e^ living anger^ generation^
anger
ABA
anthem^ attack^ anthem building^out^ building impression^ bricks^ impression lady^ away^ lady bottom^ette^
bottom
ABA
papers^ refuse^ papers team^ted^ team ica^ list^ica bliss^ greens^ bliss funny^ treatment^
funny
ABA
mustard^ sponge^ mustard heaven^ water^ heaven happen^ jeans^ happen best^ deal^ best like^ tongue^
like
ABA
storm^ girl^ storm moment^ goodbye^ moment wing^ south^ wing guilty^ mean^ guilty syrup^ room^
syrup
ABA
deadly^ matters^ deadly mothers^ world^ mothers force^ alive^ force shame^ blind^ shame prime^ guarantee^
prime
ABA
knot^ least^ knot dots^ madness^ dots iel^ garage^iel exhibition^ sale^ exhibition wide^ park^
wide
ABA
fund^ hers^ fund about^ shots^ about mexico^ wear^ mexico lee^ toll^lee head^ century^
head
ABA
dollar^am^ dollar fine^ lane^ fine background^uds^ background lines^bows^ lines music^ further^
music
ABA
madness^ battery^ madness gain^ hill^ gain field^olina^ field axis^ge^ axis return^ corner^
return
ABA
soda^ look^ soda sudden^ lens^ sudden fence^ whip^ fence else^ used^ else flag^ honey^
flag
ABA
usual^ke^ usual ata^ tails^ata iron^se^ iron bullet^ splash^ bullet palace^ city^
palace
ABA
villain^ witch^ villain ch^ living^ch towns^key^ towns school^ circle^ school nails^ sais^
nails
ABA
states^ raft^ states experience^ office^ experience near^ match^ near answer^ hours^ answer beyond^ camp^
beyond
ABA
voice^ hers^ voice breeze^ fishes^ breeze pains^ cons^ pains fall^ become^ fall motions^ grave^
motions
ABA
jail^ soul^ jail built^ personal^ built open^ again^ open round^ second^ round conn^ pencil^
conn
ABA
gets^ night^ gets mouse^ what^ mouse bets^ mirrors^ bets knows^ case^ knows impaired^ serve^
impaired
ABA
fluid^ habit^ fluid round^ tear^ round jelly^ killer^ jelly distance^ cover^ distance nail^ those^
nail
ABA
rain^ shoulder^ rain madness^ open^ madness sudden^ bone^ sudden girls^ crew^ girls mental^ thirst^
mental
ABA
move^ ease^ move deserve^ dawn^ deserve secret^ space^ secret lens^ cube^ lens ride^ venom^
ride
ABA
man^ lesson^man station^ knows^ station armor^ pass^ armor famous^ noise^ famous umbrella^ testament^
umbrella
ABA
kind^ killer^ kind wrestler^ dragons^ wrestler itt^ stomach^itt from^ wear^ from friendly^ tank^
friendly
ABA
reme^ milk^reme tunnel^ alarms^ tunnel ship^ everything^ ship daylight^ probably^ daylight clothes^ longer^
clothes
ABA
weather^ built^ weather me^ rage^me animal^ monster^ animal moon^ bride^ moon g^land^
g
ABA
storm^ bricks^ storm testament^ open^ testament bothered^ corn^ bothered wire^ general^ wire which^ nest^
which
ABA
End of preview. Expand in Data Studio

NAM Causal Head Gating Datasets

Datasets for the nam-causal-head-gating Python package.

Paper: Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformers (NeurIPS 2025)

Authors: Andrew Nam, Henry Conklin, Yukang Yang, Thomas Griffiths, Jonathan Cohen, Sarah-Jane Leslie

Datasets

aba_abb

Pattern recognition dataset for testing induction heads in transformer models.

  • Format: TSV (tab-separated values)
  • Columns: prompt, target
  • Size: ~200K examples
  • Task: Given a pattern like A^ B^ A\n C^ D^ C\n E^ F^, predict the next token

This dataset uses real vocabulary tokens (not simple letters) with ^ delimiters to test pattern completion / induction head behavior.

Usage

from causal_head_gating.data import get_aba_abb_path, CHGDataset

# Download automatically (cached after first use)
data_path = get_aba_abb_path()

# Load with tokenizer
dataset = CHGDataset.from_tsv(
    str(data_path),
    tokenizer=tokenizer,
    last_token_only=True,
)

Citation

@inproceedings{nam2025causal,
  title={Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformers},
  author={Nam, Andrew and Conklin, Henry and Yang, Yukang and Griffiths, Thomas and Cohen, Jonathan and Leslie, Sarah-Jane},
  booktitle={Advances in Neural Information Processing Systems},
  year={2025}
}

License

MIT License

Downloads last month
7