Repository navigation
TIRust bridge: binary64 gate 1e-10 - #528
Open
huashengshao wants to merge 1 commit into
Open
huashengshao wants to merge 1 commit into
huashengshao wants to merge 1 commit into
Conversation
The bridge left EmbedderOptions::gate at None, TIRust's default of 1e-12: the binary64 first pass accepted a lane whose conditioning, raised to the recursion depth, was at least 1e-12, so rounding amplified by up to about 1e12 was returned as a success. MadLoop's checks cannot see this: the Gram systems come from the supplied invariants, which every frame and both loop directions share, so the checks repeat the error instead of measuring it. On pin 1c130a81, replays of the u u~ > z g g g check-profile trace had tensors up to 6.1e-3 off (n = 3, rank 2), and a g g > Upsilon g triangle with a 10 MeV gluon (conditioning 4.9e-12 at depth 2) was 5.9e-5 off, all as successes. With gate 1e-10 those lanes go to the double-double tier; the largest binary64 error left on the u u~ > z g g g traces is about 6e-8. Add DP_GATE = 1e-10, a README paragraph and a bridge test (ill_conditioned_soft_triangle_takes_a_precision_tier), which fails with gate None (route Direct instead of the double-double tier). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
How CI reacts to this PR
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The TIRust bridge now sets
EmbedderOptions::gatetoDP_GATE = 1e-10. Until now it left it atNone, which is TIRust's default of 1e-12. The change is bridge-only, invendor/tirust/src/lib.rs: TIRust and its pin (1c130a81) are unchanged. The PR also adds a README paragraph and a bridge test.Why
TIRust's binary64 first pass accepts a lane only if its conditioning, raised to the recursion depth, reaches the gate. At 1e-12 it accepts rounding amplified by up to about 1e12 and returns the result as a success.
MadLoop's stability checks can't detect this. The Gram systems are built from the supplied invariants, which every rotated frame and both loop directions share, so each check repeats the same error.
Measured on pin
1c130a81with the production bridge, against higher-precision evaluations of the same binary64 inputs:u u~ > z g g g, check-profile trace (53,200 calls)u u~ > z g g g, default-card trace (464,000 calls)g g > Upsilon gtriangle with a 10 MeV gluon (conditioning 4.9e-12 at depth 2)Statuses are unchanged on all of these traces.
Effect on matrix elements
Qualification points. I ran the 11 ordinary qualification processes of campaign
tirust-1c130a81-1, 100 frozen points each, with backend 9. The current library reproduces the stored values bit-identically. With this change:u u~ > z z g g), 9.9e-10 (g g > h h), 2.6e-10 (e+ e- > mu+ mu- a a), 5.6e-11 (u u~ > z g g) and 3.0e-12 (e+ e- > t t~ a);u u~ > z g g g. On a fresh standalone export frommain, 20 RAMBO points:Cost
Paired replays of the
u u~ > z g g gtraces, one core each, measure +23% (check profile) and +35% (default card) TIRust time per point. A 1e-8 gate would cost +48% and +64%, for errors already below 6e-8 at 1e-10. These are shared-host measurements, not acceptance timings.Checks
install tirustinto a fresh prefix with this branch passes, includingsmoke --require-poles. Onlylibmadloop_tirust.sochanges;libtirust.aandmtirust.modare byte-identical.cargo test --release --lockedinvendor/tirust): 23 passed. The new test,ill_conditioned_soft_triangle_takes_a_precision_tier, fails withgate: None, where it takes route Direct instead of the double-double tier.tools/tirust_benchmark_cache.pyonqcd_n1_uux_zwith the new library: 61/61 records pass.Not done: a full requalification campaign on the new library, and acceptance timing.
The patch and the trace evidence come from the TIRust optimisation work; the matrix-element and cache checks above were run on this branch.
🤖 Generated with Claude Code