~/talk

Programming Large Language Models with Algebraic Effect Handlers and the Selection Monad

Talkat LMPL 2025 · 2025-10-12..10-18· [ai-assisted-development]
links:none on file
links:none on file
github:mateiz
slides:none on file

Pangolin models LLM calls as algebraic effects and uses a selection monad to search and score nondeterministic outputs; handlers expose a multi‑shot continuation so code can sample an LM multiple times (example uses 16 samples) and run a loss continuation to pick the best result. The authors provide a sketch language and a tiny WIP implementation that demonstrates best‑of, assertion‑based retries, and custom scoring, but a full open‑source system and formal semantics remain future work.

AI-written summary · about

  1. 0:00Algebraic effects for LLM programming
  2. 1:03Limitations of prompting
  3. 2:08Pangolin with effect handlers
  4. 3:54Naive handler for LLM interaction
  5. 5:59Sampling outputs with handlers
  6. 6:43Selection monads for loss/search
  7. 7:43Best-of pattern with choose/score
  8. 9:30Assertions and retries
  9. 10:55Future work and Pangolin’s vision
  10. 11:59Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.