Repository navigation
Simplex-chain search for exact one-sided generators - #77
Open
Autoplectic wants to merge 1 commit into
Open
Autoplectic wants to merge 1 commit into
Autoplectic wants to merge 1 commit into
Conversation
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.
Adds
sofic.generators.simplex_chains, which constructs exact one-sided generators. It also runs the search as a stage ofgenerative_model, right after the exact path.Method
A generator is reverse-sufficient when each state's future is the mixture of the reverse causal states' futures, weighted by the state's belief on S-. Such a generator is a finite law on the simplex of those beliefs that dominates its image under the belief updates in convex order (Strassen 1965). If each updated belief of a finite pool of atoms is written as a convex combination of the pool, the result is a chain on the pool, and the stationary law of every closed class is an exact generator. The state entropy is concave on the polytope of these representations, so its minimum over a pool is at a vertex.
simplex_chain_searchalternates two steps on each side, starting from that side's ε-machine:Every iterate passes a word check over a Tzeng basis. At cryptic orders up to 4, the atoms stay on the faces of the synchronizing complex. Forward-sufficient generators are the mirror image. The construction and the search are not from the literature; the docstring and the docs say so.
Pipeline
"chains", controlled bysimplex_chains=True. It is skipped in Wyner mode.coupled_seed_from_hmm.Validation
n3-t045-d3,n3-t138-d4andn3-t122-d2, on both sides, and on the forward side ofn3-t045-d1.stages=("machines", "chains"), a 240 s budget, so 30 s per side): 34 match the prototype or beat it, 40 go below the best known upper bound, and 4 are certified. At 480 s (60 s per side), five of the eight shortfalls reach or beat the prototype and two more come within 3.4e-6.n3-t045-d1stays at its ε-machine. So does the current prototype with its archived seed; its better value came from an older restart sequence.generative_modelat 300 s on the 22 processes with gains above 1e-6: the chain stage gives the final upper bound on 19 of the 20 runs that finished. 13 of them are within 1e-6 of the prototype and 17 are below the best known upper bound. The stage got a median of 34 s (2 to 50 s), because it runs after the bounds and seeds. It fell short where those took most of the budget (n3-t119-d3got 1.6 s).n3-t131-d0,generative_modelraisesKeyErrorin the dit exact-common-information fallback, onmaintoo. The joint passed to dit drops a causal-state pair of mass 4e-11 (below its 1e-10 cutoff), while_unconstrained_channelreads a row for every pair.n3-t088-d4was killed at 1,200 s. The universal coupled search, which this PR does not touch, keeps trying larger state counts past its deadline until it has verified a generator; onn3-t088-d3it ran for 940 s.tests/test_simplex_chains.pycovers:n3-t045-d3;main(4 workers). The difference is about the nine new tests; no existing test slowed by more than 4 s.ty(no new diagnostics) andsphinx-build -Wpass.