Deep Papers

DSPy Assertions: Computational Constraints for Self-Refining Language Model Pipelines


Listen Later

Chaining language model (LM) calls as composable modules is fueling a new way of programming, but ensuring LMs adhere to important constraints requires heuristic “prompt engineering.” 

The paper this week introduces LM Assertions, a programming construct for expressing computational constraints that LMs should satisfy. The researchers integrated their constructs into the recent DSPy programming model for LMs and present new strategies that allow DSPy to compile programs with LM Assertions into more reliable and accurate systems. They also propose strategies to use assertions at inference time for automatic self-refinement with LMs. They reported on four diverse case studies for text generation and found that LM Assertions improve not only compliance with imposed rules but also downstream task performance, passing constraints up to 164% more often and generating up to 37% more higher-quality responses.

We discuss this paper with Cyrus Nouroozi, DSPY key contributor. 

Read it on the blog: https://arize.com/blog/dspy-assertions-computational-constraints/

Learn more about AI observability and evaluation, join the Arize AI Slack community or get the latest on LinkedIn and X.

...more
View all episodesView all episodes
Download on the App Store

Deep PapersBy Arize AI

  • 5
  • 5
  • 5
  • 5
  • 5

5

15 ratings


More shows like Deep Papers

View all
Freakonomics Radio by Freakonomics Radio + Stitcher

Freakonomics Radio

32,267 Listeners

Profile by BBC Radio 4

Profile

107 Listeners

The Quanta Podcast by Quanta Magazine

The Quanta Podcast

546 Listeners

Into the Impossible With Brian Keating by Big Bang Productions Inc.

Into the Impossible With Brian Keating

1,067 Listeners

The Daily by The New York Times

The Daily

112,987 Listeners

Y Combinator Startup Podcast by Y Combinator

Y Combinator Startup Podcast

231 Listeners

Physics World Weekly Podcast by Physics World

Physics World Weekly Podcast

85 Listeners

The Journal. by The Wall Street Journal & Spotify Studios

The Journal.

6,123 Listeners

Google DeepMind: The Podcast by Hannah Fry

Google DeepMind: The Podcast

200 Listeners

Americast by BBC News

Americast

763 Listeners

All-In with Chamath, Jason, Sacks & Friedberg by All-In Podcast, LLC

All-In with Chamath, Jason, Sacks & Friedberg

10,224 Listeners

Machine Learning Street Talk (MLST) by Machine Learning Street Talk (MLST)

Machine Learning Street Talk (MLST)

99 Listeners

Dwarkesh Podcast by Dwarkesh Patel

Dwarkesh Podcast

551 Listeners

Hard Fork by The New York Times

Hard Fork

5,546 Listeners

Latent Space: The AI Engineer Podcast by Latent.Space

Latent Space: The AI Engineer Podcast

98 Listeners