Skip to content

Preserve small simplex components - #27

Open
BJMCox wants to merge 4 commits into
mainfrom
stable-simplex-tail
Open

BJMCox wants to merge 4 commits into
mainfrom
stable-simplex-tail

Conversation

@BJMCox

@BJMCox BJMCox commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Preserve tiny simplex components with suffix sums and consistent inverse/Jacobian formulas. Retain Float32 precision and cached AD support.

Fixes JuliaBayes/Wren.jl#202. Full tests: 568,350 passed across two partitions. Independent math and seeded Wren checks: 132 passed, including 100 sparse 1,495-dimensional prior initializations.

Prefix subtraction and epsilon clipping lose small simplex components and break Wren initialization. Use stable centered stick breaking and its exact Jacobian without changing the interface.
@github-actions

Copy link
Copy Markdown

Docs preview for PR #27

Adding Reactant during tests changes GPUCompiler after precompilation. Resolve it before Pkg.test on supported runners.
@BJMCox

BJMCox commented Oct 19, 2026

Copy link
Copy Markdown
Member Author

(yeah I had not updated to 1.13.2 yet)

Reuse complementary weights and bounded log ratios to preserve tiny simplex tails with fewer transcendental calls. Keep tracked formulas branchless so cached AD tapes remain valid.
@BJMCox

BJMCox commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

The CI failure also reproduces on main. #28 adds a downstream workaround for the Enzyme product-distribution issue that blocks this PR.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sparse Dirichlet prior draws can fail VecModel construction in Plaice SimplexBijector

1 participant