[EPIC] pipekit-train: probabilistic fitting beyond supervised regression
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- machine-learning
Research direction
Start with the four linked child issues (#160, #51, #20, and #161), then read the referenced TrainingLoop, loss protocol, and NumpyroPredictiveOp code. The epic spans compiled SVI, unsupervised MCMC, sample-based KL, and amortized inference, so each child issue needs its own investigation. Done means all child issues are closed and the listed performance, posterior round-trip, and KL checks pass.
Written by the indexing model from the issue text.
Description
Theme
pipekit-train's probabilistic paths run at compiled speed and cover unsupervised fits, full posteriors, sample-based KL and amortized inference.
Parent Wave
None. This comes from geostack report 11, workstreams C and D, from the xtremax reuse audit, and from pipekit-train's open issues.
Motivation
The Bayesian backends are built around supervised regression, and one of them is far slower than it should be.
numpyro-svi calls svi.update uncompiled, at 83 ms per step against 0.15 ms jitted for the same final loss (#160).
xtremax can't adopt TrainingLoop for extreme-value fits, because kernel settings, unsupervised data and full posterior draws aren't reachable (#51).
KL only works for distributions with an analytic divergence (#20).
Every amortized-inference user writes the same flipping dataset (#161).
Issues
- #160 Compile the SVI step.
- #51 NumPyro kernel settings, unsupervised tasks and full posterior draws.
- #20 Sample-based fallback for
KL. - #161
SimulationDataset(invert=True)and the amortized-inference recipe.
Execution Notes
#160 goes first, as a one-line fix with the largest effect here.
#51 and #20 are independent.
Corrections that apply to the older issues at 7c446f1:
- #20 says
_SynthesisedTask.loss_fnalready haskeyto thread through. It does, but the method starts withdel key, and theLossprotocol's signature has to gain the optionalkey, with everyLossinloss.pyandCompositeupdated to accept it. - #51 proposes
posterior_samples().NumpyroPredictiveOpalready holdsposterior=dict(samples), so that part is a small step.
Parallelism
- Can run in parallel with: #144, #145.
- Blocked by (inside this wave): none.
- Must complete before: none.
Definition of Done
- All child issues closed.
- 4,000 SVI steps on a five-point model finish in under 10 s, with the uncompiled path's final ELBO to 1e-6.
- An unsupervised NumPyro model fits through
TrainingLoop(backend="numpyro-mcmc")with a tuned kernel, and its draws survive a registry round trip. - Sample-based and analytic KL agree within tolerance on a Normal pair.
Relationships
- Parent: none.
- Related: jejjohnson/xtremax#42, geostack
docs/reports/11_pipekit_train.md
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- Avg merge
- 3h 50m
- Merged PRs (30d)
- 143
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jejjohnson/pipekit
-
area:code layer:0-primitives priority:p2 type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
jejjohnson/pipekit#296 ·
Maintainers usually reply within 1 day
-
area:code type:feature
Difficulty 3/5 1-2 days Newbie friendliness 57/100
jejjohnson/pipekit#411 ·
Maintainers usually reply within 1 day
-
area:code type:feature
Difficulty 4/5 3-5 days Newbie friendliness 48/100
jejjohnson/pipekit#410 ·
Maintainers usually reply within 1 day
-
area:code type:feature
Difficulty 5/5 Over a week Newbie friendliness 38/100
jejjohnson/pipekit#409 ·
Maintainers usually reply within 1 day
-
area:code type:feature
Difficulty 3/5 1-2 days Newbie friendliness 75/100
jejjohnson/pipekit#408 ·
Maintainers usually reply within 1 day
All issues in jejjohnson/pipekit
Similar issues
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorPossibly taken @jejjohnson claimed this today. Opentype:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jejjohnson/integrix#144 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
finos/ai-governance-framework#459 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
freelawproject/litigant-portal#1307 ·
Maintainers usually reply within 2 days
-
type/bug
Difficulty 1/5 Under an hour Newbie friendliness 86/100
h2oai/h2o-llmstudio#1163 ·
Maintainers usually reply within 1 day