We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.CL

Change to browse by:

cs

References & Citations

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Computation and Language

Title: A Transformer with Stack Attention

Abstract: Natural languages are believed to be (mildly) context-sensitive. Despite underpinning remarkably capable large language models, transformers are unable to model many context-free language tasks. In an attempt to address this limitation in the modeling power of transformer-based language models, we propose augmenting them with a differentiable, stack-based attention mechanism. Our stack-based attention mechanism can be incorporated into any transformer-based language model and adds a level of interpretability to the model. We show that the addition of our stack-based attention mechanism enables the transformer to model some, but not all, deterministic context-free languages.
Comments: NAACL 2024 Findings
Subjects: Computation and Language (cs.CL)
Cite as: arXiv:2405.04515 [cs.CL]
  (or arXiv:2405.04515v2 [cs.CL] for this version)

Submission history

From: Jiaoda Li [view email]
[v1] Tue, 7 May 2024 17:47:57 GMT (304kb,D)
[v2] Mon, 13 May 2024 18:56:18 GMT (304kb,D)

Link back to: arXiv, form interface, contact.