Constrained Sampling from Large Language Models: Producing Structured Output
chloewilliams62
89 views
28 slides
Oct 17, 2024
Slide 1 of 28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
About This Presentation
Large Language Models (LLMs) are typically used to generate free-form text. However, many applications require output with specific structures or formats. This presentation introduces the concept of constrained sampling from LLMs, a method to produce output that adheres to predefined formats or stru...
Large Language Models (LLMs) are typically used to generate free-form text. However, many applications require output with specific structures or formats. This presentation introduces the concept of constrained sampling from LLMs, a method to produce output that adheres to predefined formats or structures. The key points we will cover:
Traditional LLM usage vs. constrained sampling
Examples of interesting applications like classification/regression and producing JSON