PPDL: LLM-Based Flows as Probabilistic Programs

Louis Mandel, Guillaume Baudart, Mandana Vaziri, Martin Hirzel
8/5/2026
cs.LGcs.PL

No confident code implementation found for this paper.

Abstract

Building reliable applications that leverage large language models (LLMs) remains a significant challenge. While LLMs offer impressive capabilities across diverse tasks, their outputs often lack accuracy and provide no clear measure of confidence.

Show full abstract

This uncertainty compounds in flows of multiple calls to LLMs and other tools, making it difficult for developers and end-users to trust the results. This paper introduces a probabilistic language for programming LLM-based flows. It enables developers to quantify and propagate uncertainty throughout the application's flow, and experiment with different inference scaling techniques without adding a single line of code beyond the flow's logic. We present an experimental study to demonstrate this capability, and a case study building a theorem proving agent for the Rocq theorem prover.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mandel2026ppdl,
  title  = {PPDL: LLM-Based Flows as Probabilistic Programs},
  author = {Louis Mandel and Guillaume Baudart and Mandana Vaziri and Martin Hirzel},
  year   = {2026},
  eprint = {2608.05234},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.05234v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.05234.svg)](https://codeofpaper.com/paper/2608.05234)

Discussion