mixle.experimental package¶
mixle.experimental – exploratory surfaces that are not (yet) part of mixle’s mature API.
Code here is kept for exploration and may change or be removed without the usual stability guarantees.
Current contents:
mixle.experimental.program– the optimization-program approach (moves + combinators:minimize/maximize/em/alternate/weighted/constrain/reinforce/pareto/bilevel/gail/maxent_irl) to fitting heterogeneous neural + stats models. A reasonable idea that wasn’t mature: its closure-taking surface (minimize(lambda: loss, over=params)) is exactly the PyTorch-style jank it set out to avoid. For the common cases it is superseded by the declarative neural surface –Categorical(logits=Net(...)).fit(y, given=...),Normal(Net(...), free).fit(...), and mixtures ofSoftmaxNeuralLeafexperts – which compose into the PPL with no loss closures. It is kept here for the genuinely game-shaped cases the declarative surface does not reach (GANs, on-policy RL).mixle.experimental.graduation– the bookkeeping ledger (ExperimentalMechanism,REGISTRY) that later long-context mechanisms register against to track graduation eligibility. Seemixle/experimental/README.mdfor the graduation contract itself.mixle.experimental.context_spine– E1, the chunked-recurrent training spine (TBPTT): theContextMechanismprotocol (init_state/step/detach), thetrain_tbpttdriver, andSlidingWindowSpine– the baseline mechanism (RoPE + sliding-window attention with a stop-gradient carried KV cache, Transformer-XL style) every later Track-E mechanism (E2-E6) is compared against. Seenotes/designs/E1.mdfor the design.mixle.experimental.retrieval_memory_spine– E6, retrieval memory over frozen past:RetrievalMemorySpinepairs E1’s local sliding window with a brute-force kNN index of detached past chunks, retrieving the top-k per query each step. Gradients flow exactly through the retrieval softmax over the selected top-k; the archived index contents themselves are stop-gradient – that non-differentiable boundary is a receipt field on the returned state, not just a docstring claim.mixle.experimental.selective_scan– E5 part 1, the S6/Mamba selective-scan module:SelectiveScan, its_scan_layerrecurrence (shared withmixle.experimental.ssm_hybrid, not duplicated), and the S4D-real / dt-bias inits verified againstmamba-ssmsource.mixle.experimental.ssm_hybrid– E5 part 2, the hybrid block:HybridBlockcomposes E1’s local windowed attention, E5 part 1’s selective-scan SSM branch, and E2’s moment-closure far field into oneContextMechanism, with a real per-mechanism contribution receipt exposed viareport(). Seenotes/designs/E5.mdfor the design.mixle.experimental.long_context_eval– E7, the long-context referee suite (needle / copy / multi-hop / multi-scale-perplexity probes, a length curriculum, matched-FLOPs / matched-state-bytes bookkeeping) every Track-E mechanism is measured against on the same terms.mixle.experimental.summary_tree– E4, the hierarchical summary tree: E1’s exact near field plus a persistent, bounded far-field tree of learned summaries built via mixed-radix carry propagation over evicted tokens (the fast-multipole-method structure), a tree-path positional encoding replacing RoPE for the far field, a predict-the-summary auxiliary loss, and a receipted stop-gradient horizon. Seenotes/designs/E4.mdfor the design.
Tests for code under here are tagged @pytest.mark.experimental (see pyproject.toml) so they can be
run and reported on distinctly from the stable-package suite.
Submodules¶
- mixle.experimental.context_spine module
- mixle.experimental.graduation module
- mixle.experimental.growth_operators module
- mixle.experimental.kv_cache_quant module
- mixle.experimental.long_context_eval module
- mixle.experimental.moment_closure_attention module
- mixle.experimental.program module
- mixle.experimental.retrieval_memory_spine module
- mixle.experimental.selective_scan module
- mixle.experimental.sketch_state_attention module
- mixle.experimental.ssm_hybrid module
- mixle.experimental.structure_edit_schedule module
- mixle.experimental.summary_tree module
- mixle.experimental.tying_discovery module