SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · openreview_WsNpCXq6SG

FiX: Introducing Fine-grained Forget Gate into Softmax Attention

Qing Li, Renjie Liu, Bo Tang, Runzhong Li

OpenReview

Code that ran

3 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 1 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/openreview_WsNpCXq6SG.json · badge: /api/ran/openreview_WsNpCXq6SG.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
AlayaDB-AI/FiX canonical (classifier label)
classifier basis: census
3 ran · 1 no recorded run
FunctionStatusWhere it lives
prepare_inputs Ran
ran; our contract draft was wrong, not the code
AlayaDB-AI/FiX/benchmarks/benchmark_training_throughput.py
code served (permissive licence) · get_code("504fc87f3805932d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    'batch_size': 2,
    'seq_len': 8,
    'context_len': 4,
    'varlen': False,
    'vocab_size': 100,
    'device': torch.device('cpu')
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
sizeof_fmt Ran
ran; our contract draft was wrong, not the code
AlayaDB-AI/FiX/benchmarks/benchmark_training_throughput.py
code served (permissive licence) · get_code("0292a5d351b11c64")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

ARGS = {
    'num': 1536,
    'suffix': 'B'
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
sizeof_fmt Ran
ran; our contract draft was wrong, not the code
AlayaDB-AI/FiX/benchmarks/benchmark_generation.py
pointer only (licence: MIT); the stored copy get_code serves, from automl/unlocking_state_tracking, is pointer only (licence: NONE) · get_code("f5a04c30a95f92b6")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from automl/unlocking_state_tracking, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

fwd Not yet run
unverified (harvested, no recorded run)
AlayaDB-AI/FiX/benchmarks/modules/benchmark_activations.py
code served (permissive licence) · get_code("2f435b785919b99d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 4 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 0 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
sizeof_fmt 3 other papers
3 same year, order not determinable
2312.06635 (2023-12)
Gated Linear Attention Transformers with Hardware-Efficient Training
2406.06484 (2024-06)
Parallelizing Linear Transformers with the Delta Rule over Sequence Length
2411.12537 (2024-11)
Unlocking State-Tracking in Linear RNNs Through Negative Eigenvalues
prepare_inputs 2 other papers
2 same year, order not determinable
2312.06635 (2023-12)
Gated Linear Attention Transformers with Hardware-Efficient Training
2406.06484 (2024-06)
Parallelizing Linear Transformers with the Delta Rule over Sequence Length
fwd 1 other paper
1 same year, order not determinable
2506.05233 (2025-06)
MesaNet: Sequence Modeling by Locally Optimal Test-Time Training
sizeof_fmt 1 other paper
1 same year, order not determinable
2411.12537 (2024-11)
Unlocking State-Tracking in Linear RNNs Through Negative Eigenvalues

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Causal softmax attention is the algorithmic foundation of modern large language models. Inspired by linear attention, recent work has sought to enhance it by incorporating forget gates. However, these efforts, such as FoX, have been limited to coarse, scalar gates. While fine-grained, elementwise gates are shown to be more effective than scalar ones in linear attention, their direct integration into softmax attention is non-trivial due to algebraic constraints. In this work, we introduce Fine-grained Forgetting Transformer (FiX), a novel architecture that successfully enables element-wise forget gates in softmax attention. Our core insight is that the softmax denominator becomes mathematically redundant under a subsequent RMSNorm layer, allowing us to reformulate the forgetting mechanism as a direct elementwise multiplication on the value vectors. This formulation makes FiX the first positional encoding applied to valueoutput (VO) pairs, designed to be complementary to existing query-key (QK) encodings like RoPE. We systematically address implementation challenges including numerical precision, computational efficiency, and inference memory consumption. Extensive experiments show FiX achieves lower training loss and superior performance on both short-text common sense benchmarks and long-context tasks, opening a new path for building more powerful transformers. Our code is available at https://github.com/AlayaDB-AI/FiX.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("openreview_WsNpCXq6SG")
get_code_for_paper("openreview_WsNpCXq6SG")
have("openreview_WsNpCXq6SG")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/openreview_WsNpCXq6SG.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/openreview_WsNpCXq6SG.svg)](https://syntology.ai/paper/openreview_WsNpCXq6SG)

Connect an agent — have() is free.