Papers › Hardware-Aware FP4 FlashAttention-4

Hardware-Aware FP4 FlashAttention-4

3 Sep 2026arXiv:2609.04105added by Syntology

Robert Hu

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Blackwell's 4-bit floating-point (FP4) tensor cores do not automatically make attention faster because softmax conversion and on-chip dependencies dominate once its matrix products shrink. We address this with Direct-P for noncausal inference and a causal path that passes the forward quantization directly into backward. Direct-P maps scores directly to FP4 probabilities and reaches up to 2.13× the bfloat16 (BF16) forward throughput on an NVIDIA GB200. The causal path reconstructs probabilities from saved quantized queries and keys and uses 8-bit floating-point (FP8) gradient operands, accelerating a complete single-GPU 8-billion-parameter update by up to 1.14×. Matched distributed training retains FP8 probabilities and values; every tested MXFP4 probability/value training trajectory diverges.

PaperPDFCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 22 code samples harvested from 1 repository linked to this paper: 18 ran (of which 0 constructed an object rather than computing a result; 8 with no instrument failure: 6 honoured, 0 violated, 2 with no contract checked; 10 where Syntology's instrument failed) · 4 unverified. Where Syntology's instrument failed: 9 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 22 samples from 1 repository, 18 ran (8 with no instrument failure; 10 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-24 and 2026-09-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

MrHuff/fp4-fa4 found in paper text by SyntologyApache-2.0Syntology: 22 samples, 18 ran (10 instrument-failed) · 4 unverified report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

22 samples harvested: 18 ran (of which 0 constructed an object rather than computing a result; 8 with no instrument failure: 6 honoured, 0 violated, 2 with no contract checked; 10 where Syntology's instrument failed) · 4 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

6ran · honoured contract
9ran · our draft was wrong
1ran; the contract check could not run
2ran
4unverified

Licence: 0 of the 22 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from MrHuff/fp4-fa4. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

MrHuff/fp4-fa4 found in paper text by Syntology 22 samples, 18 ran (10 instrument-failed) · 4 unverified
as_finite results/fp4_fa4_technical_report_v2_20260819/export_llama8b_b4_snapshot.py ran · honoured contract Apache-2.0 (permissive) · 9b8fa2e4fdd04098 · report fixture: signature token:str/0/str, context:str/0/str · returned float · level recorded 2026-09-26
confidence_interval in 11 papers results/fp4_fa4_reconstruction_20260805/build_summary.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · f923592f03a7775c · report fixture: signature values:list/1/float · returned float · level recorded 2026-09-26
e2m1_reconstruct results/fp4_fa4_unified_20260801/p_format_range_diagnostic.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 9c5aac99837c1eb5 · report fixture: signature values:Tensor/2/float, scale:Tensor/2/float · returned Tensor · level recorded 2026-09-26
exact_int results/fp4_fa4_technical_report_v2_20260819/fetch_llama8b_b4_complete.py ran · honoured contract Apache-2.0 (permissive) · 9d9fed19126fd7f0 · report fixture: signature value:int/0/int, context:str/0/str · returned int · level recorded 2026-09-26
finite_float results/fp4_fa4_technical_report_v2_20260819/fetch_llama8b_b4_complete.py ran · honoured contract Apache-2.0 (permissive) · 2244ed035e0955b3 · report fixture: signature value:float/0/float, context:str/0/str · returned float · level recorded 2026-09-26
format_tex_rows results/fp4_fa4_b300_tuning_20260802/build_summary.py ran · our draft was wrong Apache-2.0 (permissive) · aa08fe3e1e9a2956 · report fixture: signature rows:list/1/dict · returned str · level recorded 2026-09-26
load_cases in 5 papers results/fp4_fa4_unified_20260801/build_summary.py ran · our draft was wrong Apache-2.0 (permissive) · f50de98ba6a7a99b · report fixture: signature root:PosixPath/0/? · returned dict · level recorded 2026-09-26
load_json in 344 papers results/fp4_fa4_b300_tuning_20260802/build_summary.py ran · our draft was wrong Apache-2.0 (permissive) · cf9fc9656dfc42dd · report fixture: signature path:PosixPath/0/? · returned dict · level recorded 2026-09-26
load_source_map results/fp4_fa4_technical_report_v2_20260819/fetch_llama8b_training_curves.py ran · our draft was wrong Apache-2.0 (permissive) · 477d56f3de6777ff · report fixture: signature path:PosixPath/0/? · returned dict · level recorded 2026-09-26
mean_layer_metric results/fp4_fa4_reconstruction_20260805/build_summary.py ran · honoured contract Apache-2.0 (permissive) · 27e09174cf215156 · report fixture: signature result:dict/0/?, name:str/0/str · returned float · level recorded 2026-09-26
metric in 14 papers results/fp4_fa4_unified_20260801/build_summary.py ran · honoured contract Apache-2.0 (permissive) · e5b3157e0edbda66 · report fixture: signature value:dict/0/?, name:str/0/str · returned float · level recorded 2026-09-26
metrics in 21 papers results/fp4_fa4_hao_table_gb200_20260802/build_summary.py ran · our draft was wrong Apache-2.0 (permissive) · a5706b1f7b9e38c6 · report fixture: signature values:dict/0/? · returned dict · level recorded 2026-09-26
normalize_rows in 7 papers results/fp4_fa4_unified_20260801/p_format_range_diagnostic.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 9bd15075d9712845 · report fixture: signature values:Tensor/2/float · returned Tensor · level recorded 2026-09-26
nv_reconstruct results/fp4_fa4_unified_20260801/p_format_range_diagnostic.py ran Apache-2.0 (permissive) · b16f62f94f0cc6fe · report fixture: signature probabilities:Tensor/3/float, global_encode_scale:float/0/float · returned tuple · level recorded 2026-09-26
percentile in 12 papers results/fp4_fa4_technical_report_v2_20260819/export_llama8b_b4_snapshot.py ran; the contract check could not run (RAISES) Apache-2.0 (permissive) · 5284c9d8206ffe40 · report fixture: signature values:list/1/float, probability:float/0/float · returned float · level recorded 2026-09-26
sha256_file in 21 papers results/fp4_fa4_technical_report_v2_20260819/export_llama8b_b4_snapshot.py ran · our draft was wrong Apache-2.0 (permissive) · cb1f4090fbd1ecb5 · report fixture: signature path:PosixPath/0/? · returned str · level recorded 2026-09-24
shape_key results/fp4_fa4_hao_table_gb200_20260802/build_summary.py ran · honoured contract Apache-2.0 (permissive) · 49921aed5fa99f96 · report fixture: signature record:dict/0/? · returned tuple · level recorded 2026-09-26
update_ewm results/fp4_fa4_technical_report_v2_20260819/fetch_llama8b_training_curves.py ran Apache-2.0 (permissive) · eae4c288e4388d94 · report fixture: signature previous:float/0/float, previous_tokens:int/0/int, loss:float/0/float, tokens:int/0/int · returned float · level recorded 2026-09-26
collect_rows results/fp4_fa4_unified_20260801/build_summary.py unverified Apache-2.0 (permissive) · 8e2a7cf9b7aded2c · report
find_one results/fp4_fa4_b300_tuning_20260802/build_summary.py unverified Apache-2.0 (permissive) · 71f764ba6e3d09ee · report
load_source_map results/fp4_fa4_technical_report_v2_20260819/fetch_llama8b_b4_complete.py unverified Apache-2.0 (permissive) · 0b361f751c283db0 · report
load_variant results/fp4_fa4_hao_table_gb200_20260802/build_summary.py unverified Apache-2.0 (permissive) · 826414b6b6eddf48 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2609.04105, was issued in September 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections