sliced-gaussian-large-scale
Fast structured POT alternatives for sliced, Gaussian, GMM, low-rank, BSP, stochastic, semidiscrete, SGOT, COOT, and other large-scale optimal transport workflows.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- sliced-gaussian-large-scale
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Fast structured POT alternatives for sliced, Gaussian, GMM, low-rank, BSP, stochastic, semidiscrete, SGOT, COOT, and other large-scale optimal transport workflows.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/api-reference.md13.7 KB
- 参考文档references/gaussian-gmm.md6.4 KB
- 参考文档references/large-scale-solvers.md10.3 KB
- 参考文档references/troubleshooting.md7.5 KB
- 参考文档references/workflows.md7.4 KB
- 脚本scripts/sliced_gaussian_smoke.py9.6 KB
03 SKILL.md 正文
POT sliced, Gaussian, and large-scale alternatives
Use this sub-skill when a POT task asks for a faster or more structured alternative to dense exact optimal transport: sliced or spherical sliced Wasserstein distances and plans, Gaussian or GMM Bures-Wasserstein maps and plans, low-rank/Nystroem/factored approximations, BSP bijections, stochastic or semidiscrete solvers, SGOT, COOT, or one-dimensional DMMOT-style barycenter notes.
Read references/api-reference.md when checking verified signatures, default parameters, input shapes, return values, and module ownership for sliced, Gaussian/GMM, and large-scale APIs.
Read references/workflows.md when replacing dense OT with sliced approximations, controlling projection variance, building sliced transport plans, using spherical sliced distances, or validating a large-problem approximation against a tiny baseline.
Read references/gaussian-gmm.md when inputs are Gaussian means/covariances or GMM component parameters and the goal is a Bures distance, affine Gaussian map, GMM component plan, GMM map, density, or family-level barycenter without discretizing samples.
Read references/large-scale-solvers.md when selecting among low-rank Sinkhorn, Nystroem kernels, factored OT, BSP-OT, semidiscrete OT, stochastic dual solvers, SGOT, COOT, and DMMOT notes for larger or structured problems.
Read references/troubleshooting.md when sliced estimates vary by seed, covariance or GMM shapes fail, optional low-rank/BSP dependencies are missing, stochastic settings diverge, or memory usage grows unexpectedly.
Run scripts/sliced_gaussian_smoke.py with python scripts/sliced_gaussian_smoke.py --mode all to check a local POT install against deterministic tiny sliced, Gaussian, GMM, and low-rank fixtures before adapting these workflows.
Route quickly
- Random projections or high-dimensional samples: prefer
ot.sliced.sliced_wasserstein_distance,ot.sliced.max_sliced_wasserstein_distance, spherical variants, orot.solve_sample(..., method="sliced" | "max_sliced")when a scalar approximation is enough. - Approximate plans from projections: use
ot.sliced.min_sliced_transport_planorot.sliced.expected_sliced_plan; validate plan mass and treat projection count/seed as approximation controls. - Gaussian parameters: use
ot.gaussian.bures_wasserstein_distance,ot.gaussian.bures_wasserstein_mapping, high-dimensional Gaussian helpers, or Bures barycenters. - GMM parameters: use
ot.gmm.gmm_ot_plan,ot.gmm.gmm_ot_loss,ot.gmm.gmm_ot_apply_map, andot.gmm.gmm_barycenter_fixed_pointto avoid sample discretization. - Large sample clouds: compare
ot.lowrank.lowrank_sinkhorn,ot.solve_sample(..., method="lowrank" | "nystroem" | "factored" | "bsp"),ot.factored.factored_optimal_transport, andot.bsp.compute_bspot_bijectionagainst a tiny dense baseline before scaling. - Structured matrix/operator tasks: use semidiscrete OT for continuous-to-atomic maps, stochastic dual solvers for mini-batch regularized OT, SGOT for spectral operators, COOT for row/feature alignment, and DMMOT only for one-dimensional grid multi-marginal barycenter-style problems.
Boundaries
Route balanced exact EMD/Sinkhorn fundamentals, cost-matrix construction basics, and generic OTResult usage to core-solvers. Route domain adaptation estimator classes to domain-adaptation. Route backend installation, mixed backend arrays, GPU claims, and batch solvers to backend-and-batch. This sub-skill documents large-scale and structured alternatives; it does not claim optional-backend or GPU verification beyond the NumPy-backed evidence summarized here.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).