Papers › Direction-Preserving Number Representations

Direction-Preserving Number Representations

8 May 2026arXiv:2605.07662added by Syntology

Bardia Zadeh, George A. Constantinides

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

Low-precision number formats are widely used in modern machine learning systems due to their efficiency. Accurate direction representation is key to the accuracy of vector operations. This work precisely explores the extent to which the direction of a vector can be represented by selecting its scalar elements from a common finite alphabet of a given size. This is standard practice in machine learning, where low-precision significands may be narrow-width floating-point or integer values. A geometric framework is introduced for analyzing the directional coverage of such product-structured codes. This work analytically quantifies the suboptimality gap between such product-structured codes and spherical codes for the vector as a whole, in both low and asymptotically high dimensions. Furthermore, within the product code class, it is proven that the standard formats of two's complement, fixed-point, and floating-point are suboptimal, again with quantified gap, pointing to the potential to develop new scalar number formats. Such scalar alphabets are numerically optimized across multiple block dimensions for directional coverage, including the dimension used in NVIDIA's NVFP4 format. Experimental results are presented comparing the performance of standard formats and the optimized alphabet. We find that for four bits, NVIDIA's choice of E2M1 closely approximates the optimized alphabet, providing a geometric explanation for its strong performance in low-precision machine learning workloads and an analytical understanding of the link between that superiority and block size. We provide open-source formal proofs in Lean for the theorems in this work, along with the experimental code and the optimized alphabets obtained.

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="2605.07662")

Code

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

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

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

16 samples harvested; 16 ran; 0 honoured the contract we drafted; 0 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.

16ran

Licence: 0 of the 16 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 bardia01/Direction-Preserving-Number-Representations. “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.

angle_from_dot bardia01/Direction-Preserving-Number-Representations/Experiments/src/utils.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 388828a34b71e47a · report
build_optimized_code_details_path bardia01/Direction-Preserving-Number-Representations/Experiments/src/runner.py found in paper text by Syntology ran MIT (permissive) · 5d9e15309df6a41e · report
build_output_bundle_paths bardia01/Direction-Preserving-Number-Representations/Experiments/src/runner.py found in paper text by Syntology ran MIT (permissive) · c42455728cf11119 · report
fp4_e2m1_values bardia01/Direction-Preserving-Number-Representations/Experiments/src/datatypes.py found in paper text by Syntology ran fingerprinted MIT (permissive) · cb1bdd08fac1c44a · report
fp8_e4m3_values bardia01/Direction-Preserving-Number-Representations/Experiments/src/datatypes.py found in paper text by Syntology ran fingerprinted MIT (permissive) · afbb5e7a1c55e116 · report
fp8_e5m2_values bardia01/Direction-Preserving-Number-Representations/Experiments/src/datatypes.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 86f6616e2162a751 · report
golomb_differences bardia01/Direction-Preserving-Number-Representations/Experiments/src/directional_coverage_optimizer.py found in paper text by Syntology ran MIT (permissive) · 57b4c0c2d74ce77b · report
nearest_direction_cosines_batch bardia01/Direction-Preserving-Number-Representations/Experiments/src/oracle_batch.py found in paper text by Syntology ran MIT (permissive) · 8c8f63d85faa6c31 · report
normalize_rows bardia01/Direction-Preserving-Number-Representations/Experiments/src/utils.py found in paper text by Syntology ran fingerprinted MIT (permissive) · bccecdf3cf099a03 · report
prepare_unit_vectors_for_backend bardia01/Direction-Preserving-Number-Representations/Experiments/src/oracle_batch.py found in paper text by Syntology ran MIT (permissive) · 465e86b2c77e8e7f · report
random_unit_vectors bardia01/Direction-Preserving-Number-Representations/Experiments/src/utils.py found in paper text by Syntology ran MIT (permissive) · 33a11520d4c82d13 · report
resolve_metric_backend bardia01/Direction-Preserving-Number-Representations/Experiments/src/metrics.py found in paper text by Syntology ran MIT (permissive) · f0bbc33005da429d · report
resolve_oracle_backend bardia01/Direction-Preserving-Number-Representations/Experiments/src/oracle_batch.py found in paper text by Syntology ran MIT (permissive) · 93472d1be482046e · report
resolve_output_dir bardia01/Direction-Preserving-Number-Representations/Experiments/src/runner.py found in paper text by Syntology ran MIT (permissive) · 6e7a28fa11c79f78 · report
softmax bardia01/Direction-Preserving-Number-Representations/Experiments/src/directional_coverage_optimizer.py found in paper text by Syntology ran fingerprinted MIT (permissive) · d96b021db8902f1e · report
unit_sphere_samples bardia01/Direction-Preserving-Number-Representations/Experiments/src/directional_coverage_optimizer.py found in paper text by Syntology ran MIT (permissive) · 262483b927638a17 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.07662, was issued in May 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