Repository navigation
Valid lower bounds on truncated bidirectional builds; a failed snap step is a failed snap - #80
Merged
Merged
Conversation
This was referenced Nov 27, 2026
added 2 commits
November 27, 2026 21:23
…tep is a failed snap When the reverse epsilon-machine is infinite, the bidirectional machine is a finite truncation, and every lower bound computed on it bounds the truncation rather than the process, yet read "(certified)". generative_model now skips those stages on a truncated build and reports the larger future-window generator coverage bound at L = 2 and 3, a lower bound on C_g that needs only the forward machine, computed first with at most 30% of the budget. minimal_wyner_model reports lower 0 there. resolve_bidirectional classes a bidirectional machine passed in as "truncated" when its reverse epsilon-machine is infinite (it was always "finite"). simplex_chains._snap treats a LinAlgError from the least-squares step as a failed snap; on a binary 3-state process it ended generative_model after 116 s.
…'s objective With the truncation's lower bounds skipped, later stages run on truncated builds, whose reverse side can have ~100 states, and two of them checked their deadlines too rarely. simplex_chain_search checked between descent rounds, but one wall tangent is a finite-difference Jacobian over every atom coordinate: on a 2-state ternary process with 90 reverse states generative_model was still running at 1,020 s on a 300 s budget. Atom steps and wall tangents now stop at the deadline. bilevel_search checked once per Powell iteration, which line-searches every logit; on 69 reverse states it ran 163 s past its share. Its objective now raises at the deadline and the start keeps the best channel it scored.
Autoplectic
force-pushed
the
truncated-window-bound
branch
from
November 28, 2026 04:45
7fe6643 to
1296ba7
Compare
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.
Summary
generative_modelcomputed on it (excess entropy, support-type, flow and coverage bounds, SCIP's dual on the exact path, the heaviest-term bounds, the restricted global bound) bounds the truncation, not the process, and read "(certified)". On a 2-state ternary process the truncation's generator coverage bound came within 1.5e-6 of the best generator's entropy, 0.9982954, where the future-window bound is 0.9981857. On a truncated build these stages are now skipped, and the lower bound is the larger future-window generator coverage bound at L = 2 and 3 (window_spec, Löhr & Ay 2009), computed first from the forward machine with at most 30% of the budget.minimal_wyner_modelreportslower0 there. Machines whose bidirectional build fails still raise.resolve_bidirectionalclasses a bidirectional machine passed in as"truncated"when the reverse ε-machine of its forward machine is infinite (it always reported"finite").simplex_chains._snaptreats aLinAlgErrorfrom the Gauss–Newton least-squares step as a failed snap. On a binary 3-state process (n3-t056-d3) the error endedgenerative_modelafter 116 s.simplex_chain_searchchecked between descent rounds, but one wall tangent is a finite-difference Jacobian over every atom coordinate: on a 2-state ternary process with 90 reverse states,generative_modelwas still running at 1,020 s on a 300 s budget. Atom steps and wall tangents now stop at the deadline.bilevel_searchchecked once per Powell iteration, which line-searches every logit with a kernel LP per evaluation; with 69 reverse states it ran 163 s past its share. Its objective now raises at the deadline, and the start keeps the best channel it scored.Tests
-m "not slow and not very_slow"): 2935 passed, 9 skipped, before the rebase. After it,test_generative_model.pyand the test files changed by Heaviest-term bound after an inconclusive exact path; stop passing dit's _strategy #81 and generator_global_bound: confine the two heaviest weights to a box #82: 94 passed."truncated"; a window lower bound replaces every lower bound of the machine in_bracket_search; a failed least-squares step is a failed snap; and (slow) a truncated ternary build reports the future-window bound below the upper bound, uncertified, within its 60 s budget, withminimal_wyner_modelatlower0.main); and with a fake clock,bilevel_searchstops inside a Powell iteration at the deadline (6 kernel LPs, against 2,058 onmain).Validation
The 17 survey processes with infinite reverse ε-machines, through
generative_modelat 300 s, side by side withmainat 55b627b. Six of them (n3-t015-d2,n3-t015-d3,n3-t056-d0,n3-t059-d3,n3-t061-d4,n3-t123-d1) raiseMixedStateExplosionErrorin under a second on both trees. The other 11:mainn3-t015-d1n3-t015-d4n3-t056-d3LinAlgErrorat 116 ss3-n2-t0022-d0s3-n2-t0022-d1s3-n2-t0022-d2s3-n2-t0022-d3s3-n2-t0022-d4s3-n2-t0037-d0s3-n2-t0037-d1s3-n2-t0037-d2On this branch every lower bound is the future-window bound, and every run ends by 306 s. The seven quoted certificates on
mainrest on lower bounds of the truncation. Ons3-n2-t0037-d1the certificate happens to hold: the window bound at L = 3 is within 4e-8 of the best generator.Note
Rebased on
mainafter #81 and #82. #81 moved the heaviest-term condition intoheaviest_term_wanted(), which now also requires a build that is not truncated, so both heaviest-term stages (the early one after an inconclusive exact path, and the one after the exact common information stage) are skipped on a truncated build. The Windows failure oftest_unconstrained_channel_survives_dit_dropping_a_light_pairbefore the rebase came frommain, where #81 skips it.