stan-dev / stan-dev/stan

Feature request: parallel vb sampling from posterior

Open
#2,796 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
2.8k
Forks
388
Avg merge
2d 17h
Merged PRs (30d)
15

Description

Summary:

I was wondering how hard would be to sample in parallel from the approximate posterior from variational bayes.

Description:

In my algorithm I explore the tails of many distributions to arbitrary precision to detect outliers, giving the user the possibility to set the desired % of false positives. https://github.com/stemangiola/ppcSeq

Generally the inference is really quick and consistent with HMC, but then the algorithm seats for long minutes sampling from the posterior. Since it is an approximate posterior would be easy to spread that sampling through multiple cores? That would be really great.

Reproducible Steps:

Please report steps to reproduce the issue. If it's not possible to reproduce, please include a description of how you discovered the issue.

If you have a reproducible example, please include it.

Current Output:

The current output. Knowing what is the current behavior is useful.

Expected Output:

Describe what you expect the output to be. Knowing the correct behavior is also very useful.

Additional Information:

Provide any additional information here.

Current Version:

v2.20.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by locating Stan's variational Bayes posterior-sampling path and assessing the requested multi-core behavior against the linked ppcSeq use case. Done would require an agreed scope, a reproducible workload, and validation of parallel sampling.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.