Repository navigation
Conversation
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.
Optimize native trace decomposition across 1, 2, 4, and 8 chunks while preserving the cycle ranges shared by every polynomial. All chunk counts use the same accumulation kernel. This branch is rebased onto a16z main after the underlying native batching work merged in #2012; it replaces LayerZero-Labs#55.
Changes
Across 464 configurations covering log2 trace lengths 12–28 and all four chunk counts, all 116 one-chunk timings measured below their saved baselines. The three original D64 regression cases measured 31.4%, 21.2%, and 19.1% faster. At log2 length 28, D128, and 48 columns, the spread across chunk counts was 0.9% for K16 and 0.3% for K256. These are the original isolated kernel measurements from separate runs, not a new benchmark after this rebase; short traces still incur additional witness-output and aggregation costs, and the largest cases use one sample.
Validation after rebase
cargo nextest run -p jolt-akita -E 'test(trace_onehot)' --cargo-quiet: all 15 focused kernel/traversal tests passed.cargo clippy --all --features host -q --all-targets -- -D warnings: passed.cargo clippy --all --features host,zk -q --all-targets -- -D warnings: passed.git diff --check: passed.The production optimization patch matches the original commit; the rebase adapts the tests to upstream's current test layout and APIs. Full prover integration suites and performance benchmarks were not rerun after rebasing.
The change preserves native chunk ownership and decomposition outputs. Conservative coefficient bounds flush narrow accumulators before overflow; materialized witness checks cover signed limits, negacyclic wrap, digit expansion, and chunk counts. No protocol relations or proof serialization change.