RefineStat: Efficient Exploration for Probabilistic Program Synthesis

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Kanda, Madhav, Ugare, Shubham, Misailovic, Sasa
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910144653164544
author Kanda, Madhav
Ugare, Shubham
Misailovic, Sasa
author_facet Kanda, Madhav
Ugare, Shubham
Misailovic, Sasa
contents 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 and 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).
format Preprint
id arxiv_https___arxiv_org_abs_2509_01082
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle RefineStat: Efficient Exploration for Probabilistic Program Synthesis
Kanda, Madhav
Ugare, Shubham
Misailovic, Sasa
Machine Learning
Programming Languages
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 and 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).
title RefineStat: Efficient Exploration for Probabilistic Program Synthesis
topic Machine Learning
Programming Languages
url https://arxiv.org/abs/2509.01082