potentialpaper

Latest Exact Match Attention

Import ICLR 2027 submission KODwGYKY00: 3 notes

@openreview[bot] · 2026-11-22 21:06 UTC · 37205f7f34f0

Evidence

.gitattributes added

+++ b/.gitattributes
@@ -0,0 +1,10 @@
+# PDFs and pictures are kept with Git LFS (https://git-lfs.com). With it installed (`git lfs install`),
+# a clone has the files, and `git add` of one stores a pointer. This file is the same on every page.
+/.potentialpaper/*.pdf filter=lfs diff=lfs merge=lfs -text
+/versions/*.pdf filter=lfs diff=lfs merge=lfs -text
+/thumbnail.png filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpeg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.gif filter=lfs diff=lfs merge=lfs -text
+/thumbnail.webp filter=lfs diff=lfs merge=lfs -text
+/thumbnail.avif filter=lfs diff=lfs merge=lfs -text

.potentialpaper/metadata.json added

+++ b/.potentialpaper/metadata.json
@@ -0,0 +1,19 @@
+{
+ "layout": 5,
+ "identifiers": [
+ {
+ "scheme": "openreview",
+ "value": "KODwGYKY00"
+ }
+ ],
+ "title": "Latest Exact Match Attention",
+ "authors": [],
+ "abstract": "We introduce latest exact match attention (LEMA), an attention variant for transformers where queries and keys are binarized and each query attends only to the latest exactly matching key. We prove that LEMA transformers with chain of thought can simulate word-RAMs, as was recently shown for the less restrictive rightmost hard attention. In contrast to prior hard attention variants, the restriction to exact matches enables an efficient converse direction: word-RAMs can simulate LEMA transformers at a cost per token independent of the context length. Together, these results yield a close correspondence between the two computational models in terms of both compute and memory. Beyond the theory, we propose a training method for LEMA transformers that handles their non-differentiable operations with a straight-through estimator for the binarization and a soft attention surrogate annealed towards LEMA. On a synthetic associative recall task, LEMA models trained this way use their growing state to store and recall a large number of associations, outperforming gated DeltaNet (GDN) with its fixed state size. As a first scaling test, we train LEMA language models with up to 834 million parameters. They match softmax transformers of around half their size in loss and, on repeated rare phrases and a needle-retrieval task, remain behind softmax transformers but recall across longer distances than GDN models of comparable size. Finally, we implement dictionary-based inference for LEMA transformers and show constant generation speed comparable to GDN despite their growing state, with the dictionaries residing in main memory rather than VRAM.",
+ "year": 2027,
+ "venue": "ICLR 2027 (under review)",
+ "source": "openreview",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}

community/10-tl-dr.md added

+++ b/community/10-tl-dr.md

community/20-summary.md added

+++ b/community/20-summary.md

community/30-why-it-matters.md added

+++ b/community/30-why-it-matters.md

community/40-critique.md added

+++ b/community/40-critique.md

community/50-errata.md added

+++ b/community/50-errata.md

community/60-reproductions.md added

+++ b/community/60-reproductions.md

community/70-follow-ups.md added

+++ b/community/70-follow-ups.md

owners/10-tl-dr.md added

+++ b/owners/10-tl-dr.md

owners/20-overview.md added

+++ b/owners/20-overview.md

owners/30-results.md added

+++ b/owners/30-results.md

owners/40-demos.md added

+++ b/owners/40-demos.md

owners/50-code-and-data.md added

+++ b/owners/50-code-and-data.md

owners/60-talks.md added

+++ b/owners/60-talks.md

prek.toml added

+++ b/prek.toml
@@ -0,0 +1,36 @@
+# Checks run before each commit, with prek (https://prek.j178.dev): `prek install` once in this clone.
+# The site checks every push again; these catch mistakes before you commit. The same on every page.
+
+[[repos]]
+repo = "builtin"
+hooks = [
+ { id = "check-json" },
+ { id = "pretty-format-json", args = ["--autofix", "--no-sort-keys", "--no-ensure-ascii"], exclude = '^demos/' },
+ { id = "end-of-file-fixer", exclude = '^demos/' },
+ { id = "trailing-whitespace", args = ["--markdown-linebreak-ext=md"], exclude = '^demos/' },
+ { id = "check-case-conflict" },
+ { id = "check-illegal-windows-names" },
+ { id = "check-added-large-files", args = ["--maxkb=256"], exclude = '^demos/' },
+]
+
+# Each JSON file against its schema (https://potentialpaper.com/schemas/).
+[[repos]]
+repo = "https://github.com/python-jsonschema/check-jsonschema"
+rev = "0.39.0"
+hooks = [
+ { id = "check-jsonschema", name = "author section plugins files", files = '^owners/plugins\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/authorPlugins.json"] },
+ { id = "check-jsonschema", name = "venue files", files = '^venue\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/venue.json"] },
+ { id = "check-jsonschema", name = "topic files", files = '^topic\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/topic.json"] },
+ { id = "check-jsonschema", name = "organisation files", files = '^org\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/org.json"] },
+ { id = "check-jsonschema", name = "link files", files = '^links/[^/]+\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/link.json"] },
+ { id = "check-jsonschema", name = "version files", files = '^versions/[^/]+\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/version.json"] },
+ { id = "check-jsonschema", name = "picture files", files = '^thumbnail\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/thumbnail.json"] },
+]
+
+# Sections formatted the way the web editor formats them.
+[[repos]]
+repo = "https://github.com/rbubley/mirrors-prettier"
+rev = "v3.9.9"
+hooks = [
+ { id = "prettier", files = '^(owners|community)/.*\.md$' },
+]

reviews/openreview/kodwgyky00/forms.json added

+++ b/reviews/openreview/kodwgyky00/forms.json
@@ -0,0 +1,183 @@
+{
+ "schema": "forms/1",
+ "forms": {
+ "Meta_Review": {
+ "label": "Meta-review",
+ "fields": [
+ {
+ "key": "metareview",
+ "label": "Meta-review",
+ "type": "text"
+ },
+ {
+ "key": "summary",
+ "label": "Summary",
+ "type": "text"
+ },
+ {
+ "key": "additional_comments_on_reviewer_discussion",
+ "label": "Reviewer discussion",
+ "type": "text"
+ },
+ {
+ "key": "recommendation",
+ "label": "Recommendation",
+ "type": "choice"
+ }
+ ]
+ },
+ "Decision": {
+ "label": "Decision",
+ "fields": [
+ {
+ "key": "title",
+ "label": "Title",
+ "hidden": true
+ },
+ {
+ "key": "decision",
+ "label": "Decision",
+ "type": "choice"
+ },
+ {
+ "key": "comment",
+ "label": "Comment",
+ "type": "text"
+ }
+ ]
+ },
+ "Official_Comment": {
+ "label": "Comment",
+ "fields": [
+ {
+ "key": "title",
+ "label": "Title",
+ "type": "choice"
+ },
+ {
+ "key": "comment",
+ "label": "Comment",
+ "type": "text"
+ }
+ ]
+ },
+ "Public_Comment": {
+ "label": "Public comment",
+ "fields": [
+ {
+ "key": "title",
+ "label": "Title",
+ "type": "choice"
+ },
+ {
+ "key": "comment",
+ "label": "Comment",
+ "type": "text"
+ }
+ ]
+ },
+ "Withdrawal": {
+ "label": "Withdrawal",
+ "fields": [
+ {
+ "key": "withdrawal_confirmation",
+ "label": "Confirmation",
+ "hidden": true
+ }
+ ]
+ },
+ "Desk_Rejection": {
+ "label": "Desk rejection",
+ "fields": [
+ {
+ "key": "desk_reject_comments",
+ "label": "Reason",
+ "type": "text"
+ }
+ ]
+ },
+ "Official_Review": {
+ "label": "Official review",
+ "summary": [
+ "rating",
+ "confidence",
+ "soundness",
+ "presentation",
+ "informativeness"
+ ],
+ "fields": [
+ {
+ "key": "rating",
+ "label": "Rating",
+ "type": "score",
+ "min": 1,
+ "max": 4
+ },
+ {
+ "key": "confidence",
+ "label": "Confidence",
+ "type": "score",
+ "min": 1,
+ "max": 4
+ },
+ {
+ "key": "soundness",
+ "label": "Soundness",
+ "type": "score",
+ "min": 1,
+ "max": 3
+ },
+ {
+ "key": "presentation",
+ "label": "Presentation",
+ "type": "score",
+ "min": 1,
+ "max": 3
+ },
+ {
+ "key": "informativeness",
+ "label": "Informativeness",
+ "type": "score",
+ "min": 1,
+ "max": 3
+ },
+ {
+ "key": "paper_summary",
+ "label": "Summary",
+ "type": "text"
+ },
+ {
+ "key": "critical_strengths",
+ "label": "Strengths",
+ "type": "text"
+ },
+ {
+ "key": "critical_weaknesses",
+ "label": "Weaknesses",
+ "type": "text"
+ },
+ {
+ "key": "questions_for_authors",
+ "label": "Questions for the authors",
+ "type": "text"
+ },
+ {
+ "key": "flag_for_ethics_review",
+ "label": "Flag for ethics review",
+ "type": "choice",
+ "omitWhen": [
+ "No",
+ "No ethics review needed."
+ ]
+ },
+ {
+ "key": "details_of_ethics_concerns",
+ "label": "Ethics concerns",
+ "type": "text"
+ }
+ ]
+ }
+ },
+ "url": "https://openreview.net/group?id=ICLR.cc%2F2027%2FConference",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/kodwgyky00/notes/dsmpdf7ll4.json added

+++ b/reviews/openreview/kodwgyky00/notes/dsmpdf7ll4.json
@@ -0,0 +1,24 @@
+{
+ "schema": "review/1",
+ "id": "dsmPdf7lL4",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer DN9a",
+ "content": {
+ "paper_summary": "LEMA binarizes query and key vectors and retrieves the value at the latest exactly matching key, allowing dictionary-based lookup. On the theory side, LEMA uses a more restrictive construction than prior recency-based hard attention and shows simulations in both directions: word-RAMs can simulate LEMA transformers and LEMA transformers can simulate word-RAMs. On the empirical side, experiments with models of up to 834M parameters show positive results on the reported benchmarks and in inference performance. However, LEMA’s broader advantage is less convincing. More details are provided below.",
+ "presentation": 2,
+ "informativeness": 2,
+ "soundness": 2,
+ "critical_strengths": "* Extends the prior word-RAM connection for recency-based hard attention to the more restrictive LEMA rule and establishes simulations in both directions. \n* Shows competitive long-range recall against GDN on selected tasks with competitive compute. \n* Demonstrates strong length extrapolation on the synthetic associative-recall task.",
+ "critical_weaknesses": "* The word-RAM results do not explain how the choice of backward surrogate affects learning. The paper studies the effect of capping the backward sharpening parameter, but a small ablation across different surrogate derivatives, like sigmoid, would help establish whether the training result depends on the particular choice of backward pass function. \n* The comparisons omit several relevant attention baselines, including stick-breaking attention beyond the limited ablation, path attention (https://arxiv.org/pdf/2505.16381), which also reports targeted recall experiments, and other related improved mechanisms like GDN-2 (https://arxiv.org/pdf/2605.22791). \n* The empirical case relies heavily on selected recall tasks. The harder multi-key retrieval results in the appendix are less favorable to LEMA and deserve more discussion; standard downstream language-modeling benchmarks, like TinyBenchmark, would also help assess the quality cost of exact-match attention.",
+ "questions_for_authors": "No specific question apart from the concerns mentioned in the weaknesses.",
+ "flag_for_ethics_review": "No",
+ "rating": 2,
+ "confidence": 3
+ },
+ "createdAt": "2026-10-12T02:55:23.772Z",
+ "modifiedAt": "2026-11-06T12:24:58.342Z",
+ "url": "https://openreview.net/forum?id=KODwGYKY00&noteId=dsmPdf7lL4",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/kodwgyky00/notes/qe0k8xr2q9.json added

+++ b/reviews/openreview/kodwgyky00/notes/qe0k8xr2q9.json
@@ -0,0 +1,24 @@
+{
+ "schema": "review/1",
+ "id": "QE0k8xr2q9",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer dDLM",
+ "content": {
+ "paper_summary": "The paper proposes a new attention mechanism where query and keys are converted into binary format and each head retrieves the last token which has the same key as the query. This means each head at most selects a single token (or none if none of the previous keys match the query). Theoretically, it is proven that this mechanism has the same representation power as word-rams. For training, straight through estimators are used: tanh for converting to binary and stick-breaking attention for the single token selection. Experimental results show that loss lags behind standard softmax attention and Gated DeltaNet. The ability to solve tasks like needle in a haystack is improved over Gated DeltaNet but still is worse than softmax attention.",
+ "presentation": 2,
+ "informativeness": 2,
+ "soundness": 2,
+ "critical_strengths": "This paper builds on the intuition that small gates in stick-breaking attention cause problems and proposes a training mechanism to avoid these issues by hard-selecting a token. Various ablations and analysis are done to provide additional insights on how LEMA works.",
+ "critical_weaknesses": "The performance of LEMA in terms of perplexity remains significantly behind GDN and standard softmax attention. While there are benefits in needle in a haystack tasks, other tasks (e.g. reasoning, knowledge, etc.) might be significantly suffering. Intuitively, LEMA has less representation power than softmax attention since it can't mix tokens and can only retrieve them. There is no solution or alternative investigated to address this limitation.\n\nThe training mechanism involves manually changing the backward graph in several places. This is concerning as it can make the training unstable. It is also not very clear how much the model is sensitive to the exact chosen constants. For example, for hardening, why do we need to use 2 for backward instead of 10? Would 5 also work? How about 1?\n\nGenerally I also find the paper a bit hard to follow. For example the discussion around word-rams is not directly relevant to the rest of experiments and can be moved to Appendix. Also, some terms like \"hardening\" (which refers to alpha increasing towards end of training) are not properly introduced. As another example, reading the below sentence made me think stick breaking attention is only used during backward pass but it seems it is also used during the forward pass throughout the training.\n> Just as the sign function is approximated by tanh as a differentiable surrogate, we approximate the latest exact match operation with a smooth surrogate.",
+ "questions_for_authors": "1. In the paper, LEMA does not use RoPE. This might be necessary given the binarization. However, I wonder if some form of position encoding was tried or not?\n\n2. Given the manual changes in the backward graph, did you observe instabilities such as loss spikes during training?",
+ "flag_for_ethics_review": "No",
+ "rating": 2,
+ "confidence": 3
+ },
+ "createdAt": "2026-10-26T15:22:47.268Z",
+ "modifiedAt": "2026-11-06T12:24:55.840Z",
+ "url": "https://openreview.net/forum?id=KODwGYKY00&noteId=QE0k8xr2q9",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/kodwgyky00/notes/zqc08pwhn6.json added

+++ b/reviews/openreview/kodwgyky00/notes/zqc08pwhn6.json
@@ -0,0 +1,24 @@
+{
+ "schema": "review/1",
+ "id": "Zqc08pwHN6",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer QByA",
+ "content": {
+ "paper_summary": "The paper proposes an attention variant that binarizes key and queries and, given a binary query, retrieves the value corresponding to the most recent matching key. Strictly speaking, this can be interpreted as a constant-size state since there are at most $2^{d_{key}}$ values that have to be maintained at any point. They propose a differentiable training method for this based on stick breaking attention. They perform synthetic NIAH experiments where LEMA performs very well, and they perform language modeling experiments where LEMA significantly trails GDN/Transformer.",
+ "presentation": 3,
+ "informativeness": 2,
+ "soundness": 3,
+ "critical_strengths": "The paper proposes a clear idea and is easy to follow.",
+ "critical_weaknesses": "The language modeling results are very poor. A LEMA model performs worse on next token prediction than a transformer/gdn with half the parameter count and half the pretraining data (Figure 3 left). The better NIAH results compared to GDN (Figure 3 right) are most likely a result of much bigger state size, which is to be expected. It is also much less efficient than other linear models (Figure 4), and not more efficient (or lower state) than softmax attention at common context lengths like 2k (this is not entirely clear from the figure since x-axis shows super-long context only). It is also not well motivated why doing latest exact match attention would be good in practice (beyond the connection to word-RAMs). Synthetic associative recall depends mostly on state size, so LEMA performing well there (Figure 2) is not more than a sanity check. Overall, there is no evidence that LEMA (or the particular proposed method to train LEMA) is actually useful in practice. Meanwhile, very similar approaches like stick breaking attention [1] perform well in practice.\n\nThe theoretical part takes a minor part in the main paper, consists of two theorems, where Theorem 1 is very similar to [2] and Theorem 2 is straight forward. This is not a weakness, but also not significant enough to be a main contribution on its own.\n\n\n\n\n[1] Shawn Tan, Songlin Yang, Aaron Courville, Rameswar Panda, and Yikang Shen. Scaling Stick-Breaking Attention: An Efficient Implementation and In-depth Study\n\n[2] Yanhong Li, Anej Svete, Ashish Sabharwal, and William Merrill. Efficiently representing algorithms with chain-of-thought transformers",
+ "questions_for_authors": "No questions. I think the experimental results are significantly too poor to recommend acceptance.",
+ "flag_for_ethics_review": "No",
+ "rating": 2,
+ "confidence": 4
+ },
+ "createdAt": "2026-10-22T01:26:21.476Z",
+ "modifiedAt": "2026-11-17T23:48:52.748Z",
+ "url": "https://openreview.net/forum?id=KODwGYKY00&noteId=Zqc08pwHN6",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/kodwgyky00/submission.json added

+++ b/reviews/openreview/kodwgyky00/submission.json
@@ -0,0 +1,21 @@
+{
+ "schema": "submission/1",
+ "id": "KODwGYKY00",
+ "venue": {
+ "id": "ICLR.cc/2027/Conference",
+ "name": "ICLR 2027",
+ "url": "https://openreview.net/group?id=ICLR.cc%2F2027%2FConference"
+ },
+ "number": 24887,
+ "keywords": [
+ "attention",
+ "transformer",
+ "hard attention",
+ "expressivity",
+ "word-RAM",
+ "chain of thought",
+ "efficient inference"
+ ],
+ "url": "https://openreview.net/forum?id=KODwGYKY00",
+ "license": "CC-BY-4.0"
+}

versions/v_zsdi4jw5.json added

+++ b/versions/v_zsdi4jw5.json
@@ -0,0 +1,21 @@
+{
+ "date": "2026-09-16",
+ "kind": "submitted",
+ "label": "ICLR 2027",
+ "submissions": [
+ {
+ "venue": "ICLR 2027",
+ "status": "under_review",
+ "number": 24887,
+ "url": "https://openreview.net/forum?id=KODwGYKY00",
+ "reviews": "openreview/kodwgyky00",
+ "evidence": [
+ "https://openreview.net/forum?id=KODwGYKY00"
+ ]
+ }
+ ],
+ "url": "https://openreview.net/forum?id=KODwGYKY00",
+ "evidence": [
+ "https://openreview.net/forum?id=KODwGYKY00"
+ ]
+}