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 \emph{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 Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2609.04105")

Code

Syntology Ran 1 of 22 code samples harvested from 1 repository linked to this paper; 21 have no recorded run. Of those that ran: 1 ran with no contract checked.

By repository: found in paper text by Syntology: 22 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

MrHuff/fp4-fa4 found in paper text by SyntologyApache-2.0 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; 1 ran; 0 honoured the contract we drafted; 21 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran
21unverified

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. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (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 from a repository marked official are listed first. 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 four 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; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). 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.

sha256_file MrHuff/fp4-fa4/results/fp4_fa4_technical_report_v2_20260819/export_llama8b_b4_snapshot.py found in paper text by Syntology ran Apache-2.0 (permissive) · cb1f4090fbd1ecb5 · report
as_finite MrHuff/fp4-fa4/results/fp4_fa4_technical_report_v2_20260819/export_llama8b_b4_snapshot.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 9b8fa2e4fdd04098 · report
collect_rows MrHuff/fp4-fa4/results/fp4_fa4_unified_20260801/build_summary.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 8e2a7cf9b7aded2c · report
confidence_interval MrHuff/fp4-fa4/results/fp4_fa4_reconstruction_20260805/build_summary.py found in paper text by Syntology unverified Apache-2.0 (permissive) · f923592f03a7775c · report
e2m1_reconstruct MrHuff/fp4-fa4/results/fp4_fa4_unified_20260801/p_format_range_diagnostic.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 9c5aac99837c1eb5 · report
exact_int MrHuff/fp4-fa4/results/fp4_fa4_technical_report_v2_20260819/fetch_llama8b_b4_complete.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 9d9fed19126fd7f0 · report
find_one MrHuff/fp4-fa4/results/fp4_fa4_b300_tuning_20260802/build_summary.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 71f764ba6e3d09ee · report
finite_float MrHuff/fp4-fa4/results/fp4_fa4_technical_report_v2_20260819/fetch_llama8b_b4_complete.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 2244ed035e0955b3 · report
format_tex_rows MrHuff/fp4-fa4/results/fp4_fa4_b300_tuning_20260802/build_summary.py found in paper text by Syntology unverified Apache-2.0 (permissive) · aa08fe3e1e9a2956 · report
load_cases MrHuff/fp4-fa4/results/fp4_fa4_unified_20260801/build_summary.py found in paper text by Syntology unverified Apache-2.0 (permissive) · f50de98ba6a7a99b · report
load_json MrHuff/fp4-fa4/results/fp4_fa4_b300_tuning_20260802/build_summary.py found in paper text by Syntology unverified Apache-2.0 (permissive) · cf9fc9656dfc42dd · report
load_source_map MrHuff/fp4-fa4/results/fp4_fa4_technical_report_v2_20260819/fetch_llama8b_b4_complete.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 0b361f751c283db0 · report
load_source_map MrHuff/fp4-fa4/results/fp4_fa4_technical_report_v2_20260819/fetch_llama8b_training_curves.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 477d56f3de6777ff · report
load_variant MrHuff/fp4-fa4/results/fp4_fa4_hao_table_gb200_20260802/build_summary.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 826414b6b6eddf48 · report
mean_layer_metric MrHuff/fp4-fa4/results/fp4_fa4_reconstruction_20260805/build_summary.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 27e09174cf215156 · report
metric MrHuff/fp4-fa4/results/fp4_fa4_unified_20260801/build_summary.py found in paper text by Syntology unverified Apache-2.0 (permissive) · e5b3157e0edbda66 · report
metrics MrHuff/fp4-fa4/results/fp4_fa4_hao_table_gb200_20260802/build_summary.py found in paper text by Syntology unverified Apache-2.0 (permissive) · a5706b1f7b9e38c6 · report
normalize_rows MrHuff/fp4-fa4/results/fp4_fa4_unified_20260801/p_format_range_diagnostic.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 9bd15075d9712845 · report
nv_reconstruct MrHuff/fp4-fa4/results/fp4_fa4_unified_20260801/p_format_range_diagnostic.py found in paper text by Syntology unverified Apache-2.0 (permissive) · b16f62f94f0cc6fe · report
percentile MrHuff/fp4-fa4/results/fp4_fa4_technical_report_v2_20260819/export_llama8b_b4_snapshot.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 5284c9d8206ffe40 · report
shape_key MrHuff/fp4-fa4/results/fp4_fa4_hao_table_gb200_20260802/build_summary.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 49921aed5fa99f96 · report
update_ewm MrHuff/fp4-fa4/results/fp4_fa4_technical_report_v2_20260819/fetch_llama8b_training_curves.py found in paper text by Syntology unverified Apache-2.0 (permissive) · eae4c288e4388d94 · 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