Dataset Viewer
Auto-converted to Parquet Duplicate
task
stringclasses
18 values
x
stringlengths
1
78
Fx
stringlengths
1
82
Gx
stringlengths
1
384
GFx
stringlengths
1
384
FGx
stringlengths
1
384
antonym-spanish
taxable
nontaxable
sujeto
no
no
antonym-spanish
experimental
traditional
experimental
tradicional
tradicional
antonym-spanish
teen
adult
adolescente
adulto
adulto
antonym-spanish
heterosexual
homosexual
heterosexual
homosexual
homosexual
antonym-spanish
miss
hit
señorita
pulsar
pulsar
antonym-spanish
retired
employed
jubilados
empleados
empleados
antonym-spanish
drive
park
unidad
parque
parque
antonym-spanish
float
sink
flotar
fregadero
fregadero
antonym-spanish
transparency
opacity
transparencia
opacidad
opacidad
antonym-spanish
context
content
contexto
contenido
contenido
antonym-spanish
bust
boom
bust
boom
boom
antonym-spanish
unwillingness
willingness
falta
buena
buena
antonym-spanish
downfall
uprise
caída
uprise
uprise
antonym-spanish
lateral
medial
lateral
¡medio!
¡medio!
antonym-spanish
informal
formal
oficiosas
formal
formal
antonym-spanish
lender
borrower
prestamista
prestatario
prestatario
antonym-spanish
remove
add
eliminar
añadir
añadir
antonym-spanish
exit
entry
salida
entrada
entrada
antonym-spanish
divest
invest
desinversión
invertir
invertir
antonym-spanish
unfortunate
fortunate
desafortunado.
afortunado.
afortunado.
antonym-spanish
acute
chronic
aguda
crónica
crónica
antonym-spanish
outdoor
indoor
al
interior
interior
antonym-spanish
husband
wife
marido
esposa
esposa
antonym-spanish
noise
silence
ruido
silencio
silencio
antonym-spanish
veil
reveal
velo
revelar
revelar
antonym-spanish
impartial
biased
imparcial
parcial
parcial
antonym-spanish
childhood
adulthood
la
edad
edad
antonym-spanish
aquatic
terrestrial
acuáticas
terrestre
terrestre
antonym-spanish
outward
inward
hacia
hacia
hacia
antonym-spanish
arithmetic
algebra
aritmética
álgebra
álgebra
antonym-spanish
written
spoken
escrito
hablada
hablada
antonym-spanish
compressed
expanded
comprimidos
ampliado
ampliado
antonym-spanish
bottom
top
inferior
arriba
arriba
antonym-spanish
grandmother
grandfather
abuela
abuelo
abuelo
antonym-spanish
deflation
inflation
deflación
inflación
inflación
antonym-spanish
idle
busy
inactivo
ocupado
ocupado
antonym-spanish
fictional
real
ficción
real
real
antonym-spanish
drop
pick up
caída
¡agárrate!
¡agárrate!
antonym-spanish
increased
decreased
aumento
disminución
disminución
antonym-spanish
severe
mild
grave
leve
leve
antonym-spanish
existential
nonexistent
existencial
inexistente
inexistente
antonym-spanish
represent
misrepresent
representar
tergiversación
tergiversación
antonym-spanish
foreign
domestic
extranjero
nacionales
nacionales
antonym-spanish
disagree
agree
no
de
de
antonym-spanish
sluggish
energetic
sluggish
energética
energética
antonym-spanish
dull
bright
embotado
brillante
brillante
antonym-spanish
divorce
marriage
divorcio
matrimonio
matrimonio
antonym-spanish
rest
work
descanso
trabajo
trabajo
antonym-spanish
foster
hinder
fomentar
dificultar
dificultar
antonym-spanish
agent
client
agente
cliente
cliente
antonym-spanish
amplify
diminish
amplificar
disminuir
disminuir
antonym-spanish
sanction
penalty
sanción
sanción
sanción
antonym-spanish
meet
part
meet
parte
parte
antonym-spanish
united
divided
unidos
divididos
divididos
antonym-spanish
adequate
inadequate
adecuada
inadecuado
inadecuado
antonym-spanish
crazy
sane
loco
sano
sano
antonym-spanish
latter
former
último
ex
ex
antonym-spanish
epidemic
endemic
epidemia
endémico
endémico
antonym-spanish
insert
remove
insertar
eliminar
eliminar
antonym-spanish
foul
fair
impulsión
justo
justo
antonym-spanish
inaccessible
accessible
inaccesible
accesible
accesible
antonym-spanish
profit
loss
ganancias
pérdida
pérdida
antonym-spanish
unavailable
available
no
disponible
disponible
antonym-spanish
unlock
lock
desbloquear
bloqueo
bloqueo
antonym-spanish
superhuman
human
sobrehumanos
humanos
humanos
antonym-spanish
many
few
muchos
pocos
pocos
antonym-spanish
show
hide
mostrar
ocultar
ocultar
antonym-spanish
infinite
finite
infinito
finito
finito
antonym-spanish
eastern
western
oriental
occidental
occidental
antonym-spanish
idiot
genius
idiota
genio
genio
antonym-spanish
shameful
honorable
¡qué
honorable
honorable
antonym-spanish
dissatisfaction
satisfaction
insatisfacción
satisfacción
satisfacción
antonym-spanish
next
previous
siguiente
anterior
anterior
antonym-spanish
nice
mean
bien.
media
media
antonym-spanish
fore
aft
proa
a
a
antonym-spanish
skyrocket
plummet
cigüeñal
desplomado
desplomado
antonym-spanish
susceptibility
resistance
susceptibilidad
resistencia
resistencia
antonym-spanish
only
many
sólo
muchos
muchos
antonym-spanish
crude
refined
crudo
refinado
refinado
antonym-spanish
oxidation
reduction
oxidación
reducción
reducción
antonym-spanish
incoming
outgoing
entrantes
saliente
saliente
antonym-spanish
graduate
undergraduate
graduado
pregrado
pregrado
antonym-spanish
creditor
debtor
acreedor
deudor
deudor
antonym-spanish
failure
success
fallo
éxito
éxito
antonym-spanish
acquaintance
stranger
conocer
extraño
extraño
antonym-spanish
work
relax
trabajo
relájate.
relájate.
antonym-spanish
valuable
worthless
valioso
sin
sin
antonym-spanish
bear
deer
oso
venado
venado
antonym-spanish
blunt
sharp
romo
brusco
brusco
antonym-spanish
emotional
unemotional
emocional
poco
poco
antonym-spanish
abrupt
gradual
abrupto
gradual
gradual
antonym-spanish
transgress
comply
transgredir
cumplir
cumplir
antonym-spanish
derogatory
complimentary
derogatorio
gratuito
gratuito
antonym-spanish
obscurity
prominence
oscuridad
prominencia
prominencia
antonym-spanish
escalate
deescalate
escalar
descalato
descalato
antonym-spanish
humility
pride
humildad
orgullo
orgullo
antonym-spanish
customary
unusual
costumbre
inusual
inusual
antonym-spanish
grey
colorful
gris
colorido
colorido
antonym-spanish
right
wrong
derecha
mal.
mal.
antonym-spanish
nobody
everybody
nadie
todo
todo
End of preview. Expand in Data Studio

How Do Language Models Compose Functions?

[Paper] [Repository]

Apoorv Khandelwal & Ellie Pavlick

Abstract: While large language models (LLMs) appear to be increasingly capable of solving compositional tasks, it is an open question whether they do so using compositional mechanisms. In this work, we investigate how feedforward LLMs solve two-hop factual recall tasks, which can be expressed compositionally as $g(f(x))$. We first confirm that modern LLMs continue to suffer from the "compositionality gap": i.e. their ability to compute both $z = f(x)$ and $y = g(z)$ does not entail their ability to compute the composition $y = g(f(x))$. Then, using logit lens on their residual stream activations, we identify two processing mechanisms, one which solves tasks compositionally, computing $f(x)$ along the way to computing $g(f(x))$, and one which solves them directly, without any detectable signature of the intermediate variable $f(x)$. Finally, we find that which mechanism is employed appears to be related to the embedding space geometry, with the idiomatic mechanism being dominant in cases where there exists a linear mapping from $x$ to $g(f(x))$ in the embedding spaces.

Loading the dataset

from datasets import load_dataset

dataset = load_dataset("apoorvkh/composing-functions")
# print(dataset["train"][1])

{'task': 'antonym-spanish', 'x': 'experimental', 'Fx': 'traditional', 'Gx': 'experimental', 'GFx': 'tradicional', 'FGx': 'tradicional'}
Downloads last month
9

Paper for apoorvkh/composing-functions