SynthesizRR: Generating Diverse Datasets with Retrieval Augmentation
Divekar, Abhishek, Durrett, Greg
–arXiv.org Artificial Intelligence
It is often desirable to distill the capabilities of large language models (LLMs) into smaller student models due to compute and memory constraints. One way to do this for classification tasks is via dataset synthesis, which can be accomplished by generating examples of each label from the LLM. Prior approaches to synthesis use few-shot prompting, which relies on the LLM's parametric knowledge to generate usable examples. However, this leads to issues of repetition, bias towards popular entities, and stylistic differences from human text. In this work, we propose Synthesize by Retrieval and Refinement (SynthesizRR), which uses retrieval augmentation to introduce variety into the dataset synthesis process: as retrieved passages vary, the LLM is seeded with different content to generate its examples. We empirically study the synthesis of six datasets, covering topic classification, sentiment analysis, tone detection, and humor, requiring complex synthesis strategies. We find that SynthesizRR greatly improves lexical and semantic diversity, similarity to human-written text, and distillation performance, when compared to 32-shot prompting and four prior approaches. We release our extensive codebase at https://github.com/amazon-science/synthesizrr
arXiv.org Artificial Intelligence
Jul-8-2024
- Country:
- Oceania > Australia (0.04)
- South America
- Venezuela (0.04)
- Peru (0.04)
- Guyana (0.04)
- Colombia (0.04)
- Brazil (0.04)
- Chile > Santiago Metropolitan Region
- Santiago Province > Santiago (0.04)
- North America
- Jamaica (0.04)
- Saint Kitts and Nevis (0.04)
- Dominican Republic (0.04)
- Cuba (0.04)
- Costa Rica (0.04)
- Barbados (0.04)
- United States
- Michigan (0.04)
- Oregon (0.04)
- Texas > Travis County
- Austin (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Illinois > Cook County
- Chicago (0.04)
- Washington > King County
- Seattle (0.04)
- California
- Santa Clara County > Palo Alto (0.04)
- San Diego County > San Diego (0.04)
- Los Angeles County > Los Angeles (0.04)
- New York > New York County
- New York City (0.04)
- Pennsylvania > Allegheny County
- Pittsburgh (0.04)
- Canada
- Ontario > Toronto (0.04)
- Quebec > Montreal (0.04)
- British Columbia > Metro Vancouver Regional District
- Vancouver (0.04)
- Europe
- Middle East > Cyprus (0.04)
- Estonia (0.04)
- Romania (0.04)
- Czechia (0.04)
- United Kingdom (0.04)
- Russia > Central Federal District
- Moscow Oblast > Moscow (0.04)
- Denmark > Capital Region
- Copenhagen (0.04)
- Bulgaria > Sofia City Province
- Sofia (0.04)
- Italy
- Tuscany > Florence (0.04)
- Calabria > Catanzaro Province
- Catanzaro (0.04)
- Asia
- Russia (0.14)
- Singapore (0.04)
- Philippines (0.04)
- Pakistan (0.04)
- China > Hong Kong (0.04)
- Thailand (0.04)
- Sri Lanka (0.04)
- South Korea (0.04)
- Indonesia (0.04)
- Japan (0.04)
- Azerbaijan (0.04)
- Bangladesh (0.04)
- Kazakhstan (0.04)
- Macao (0.04)
- Malaysia (0.04)
- Nepal (0.04)
- India
- West Bengal (0.04)
- Tamil Nadu (0.04)
- NCT > New Delhi (0.04)
- Middle East
- Palestine (0.04)
- Israel (0.04)
- Saudi Arabia (0.04)
- Lebanon (0.04)
- Kuwait (0.04)
- Republic of Türkiye (0.04)
- Qatar (0.04)
- UAE > Abu Dhabi Emirate
- Abu Dhabi (0.04)
- Iran > Tehran Province
- Tehran (0.04)
- Africa
- Nigeria (0.04)
- Zambia (0.04)
- Malawi (0.04)
- Tanzania (0.04)
- Uganda (0.04)
- Zimbabwe (0.04)
- Namibia (0.04)
- Ghana (0.04)
- South Africa (0.04)
- Kenya (0.04)
- Middle East
- Somaliland (0.04)
- Somalia (0.04)
- Egypt (0.04)
- Genre:
- Research Report (0.63)
- Industry:
- Media (1.00)
- Law Enforcement & Public Safety > Crime Prevention & Enforcement (1.00)
- Education (1.00)
- Leisure & Entertainment > Sports (0.92)
- Government
- Technology: