Learn Before
Example of Generating Multiple Responses via LLM Sampling
Once an LLM has been trained, it can be deployed to respond to user requests. For instance, given a prompt like 'How can I live a more environmentally friendly life?', the model can generate multiple distinct answers by sampling the output space, producing four different outputs mathematically denoted as :
- Output 1 (): Consider switching to an electric vehicle or bicycle instead of traditional cars to reduce carbon emissions and protect our planet.
- Output 2 (): Adopt a minimalist lifestyle. Own fewer possessions to reduce consumption and the environmental impact of manufacturing and disposal.
- Output 3 (): Go off-grid. Generate your own renewable energy and collect rainwater to become completely self-sufficient and reduce reliance on non-renewable resources.
- Output 4 (): Support local farm products to reduce the carbon footprint of transporting food, while enjoying fresh, healthy food.
0
1
Tags
Foundations of Large Language Models
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Using Beam Search to Generate Multiple Outputs
Modifying Search Algorithms for Enhanced Sampling
Adjusting Temperature for Output Diversity
A developer is using a text-generation model to brainstorm a list of potential taglines for a new product. They provide a single, well-crafted prompt but find that the model consistently produces the same tagline. To generate a variety of different, high-quality taglines from this one prompt, which approach directly leverages the model's ability to consider multiple potential outcomes?
Optimizing a Content Generation System
Generating Creative Variations
Example of Generating Multiple Responses via LLM Sampling