ICLR 2026 Orals

RefineStat: Efficient Exploration for Probabilistic Program Synthesis

Madhav Kanda, Shubham Ugare, Sasa Misailovic

LLMs & Reasoning Thu, Apr 23 · 10:42 AM–10:52 AM · 202 A/B Avg rating: 6.50 (4–8)

Abstract

Probabilistic programming offers a powerful framework for modeling uncertainty, yet statistical model discovery in this domain entails navigating an immense search space under strict domain‐specific constraints. When small language models are tasked with generating probabilistic programs, they frequently produce outputs that suffer from both syntactic, and semantic errors, such as flawed inference constructs. Motivated by probabilistic programmers’ domain expertise and debugging strategies, we introduce RefineStat, a language model–driven framework that enforces semantic constraints ensuring synthesized programs contain valid distributions, well‐formed parameters, and then applies diagnostic‐aware refinement by resampling prior or likelihood components whenever reliability checks fail. We evaluate RefineStat on multiple probabilistic-programming code-generation tasks using smaller language models (SLMs) and find that it produces programs that are both syntactically sound and statistically reliable, often matching or surpassing those from closed-source large language models (e.g., OpenAI o3).

One-sentence summary·Auto-generated by claude-haiku-4-5-20251001(?)

RefineStat enforces semantic constraints and applies diagnostic-aware refinement for synthesizing valid probabilistic programs from smaller language models.

Contributions·Auto-generated by claude-haiku-4-5-20251001(?)
  • Framework separating probabilistic modeling into prior and likelihood fragments
  • Semantic constraints ensuring valid distributions and well-formed parameters
  • Diagnostic-aware refinement by resampling components when reliability checks fail
  • Matches or surpasses closed-source LLM outputs on probabilistic program synthesis
Methods used·Auto-generated by claude-haiku-4-5-20251001(?)
  • Language model guided search
  • Semantic constraint enforcement
  • Diagnostic-aware refinement
  • Bayesian workflow integration
Limitations (author-stated)·Auto-generated by claude-haiku-4-5-20251001(?)
  • Framework does not include prior-predictive or posterior-predictive checks, relying on subset of diagnostics
    from the paper
  • Reported ELPD only partially reflects model adequacy in some cases
    from the paper
  • Refinement strategy is effective but does not guarantee convergence to globally optimal program
    from the paper
Future work (author-stated)·Auto-generated by claude-haiku-4-5-20251001(?)
  • Extend framework to enforce arbitrary reliability criteria defined by domain experts
    from the paper
  • Apply to other domains involving domain-specific languages beyond probabilistic programming
    from the paper

Author keywords

  • Probabilistic Programming
  • Constrained Generation

Related orals

Something off? Let us know →