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:
- Africa
- Kenya (0.04)
- South Africa (0.04)
- Nigeria (0.04)
- Ghana (0.04)
- Namibia (0.04)
- Middle East
- Egypt (0.04)
- Somalia (0.04)
- Somaliland (0.04)
- Zimbabwe (0.04)
- Uganda (0.04)
- Tanzania (0.04)
- Malawi (0.04)
- Zambia (0.04)
- Asia
- Pakistan (0.04)
- Nepal (0.04)
- Malaysia (0.04)
- Macao (0.04)
- Kazakhstan (0.04)
- Bangladesh (0.04)
- Azerbaijan (0.04)
- Japan (0.04)
- Indonesia (0.04)
- Middle East
- Iran > Tehran Province
- Tehran (0.04)
- Qatar (0.04)
- Republic of Türkiye (0.04)
- Palestine (0.04)
- UAE > Abu Dhabi Emirate
- Abu Dhabi (0.04)
- Kuwait (0.04)
- Lebanon (0.04)
- Saudi Arabia (0.04)
- Israel (0.04)
- Iran > Tehran Province
- Philippines (0.04)
- Russia (0.14)
- South Korea (0.04)
- Sri Lanka (0.04)
- Thailand (0.04)
- Singapore (0.04)
- India
- NCT > New Delhi (0.04)
- Tamil Nadu (0.04)
- West Bengal (0.04)
- China > Hong Kong (0.04)
- Europe
- United Kingdom (0.04)
- Czechia (0.04)
- Romania (0.04)
- Estonia (0.04)
- Middle East > Cyprus (0.04)
- Italy
- Calabria > Catanzaro Province
- Catanzaro (0.04)
- Tuscany > Florence (0.04)
- Calabria > Catanzaro Province
- Bulgaria > Sofia City Province
- Sofia (0.04)
- Denmark > Capital Region
- Copenhagen (0.04)
- Russia > Central Federal District
- Moscow Oblast > Moscow (0.04)
- North America
- Barbados (0.04)
- Canada
- British Columbia > Metro Vancouver Regional District
- Vancouver (0.04)
- Ontario > Toronto (0.04)
- Quebec > Montreal (0.04)
- British Columbia > Metro Vancouver Regional District
- Costa Rica (0.04)
- Cuba (0.04)
- Dominican Republic (0.04)
- Jamaica (0.04)
- Saint Kitts and Nevis (0.04)
- United States
- Pennsylvania > Allegheny County
- Pittsburgh (0.04)
- New York > New York County
- New York City (0.04)
- California
- Los Angeles County > Los Angeles (0.04)
- San Diego County > San Diego (0.04)
- Santa Clara County > Palo Alto (0.04)
- Washington > King County
- Seattle (0.04)
- Michigan (0.04)
- Illinois > Cook County
- Chicago (0.04)
- Oregon (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Texas > Travis County
- Austin (0.04)
- Pennsylvania > Allegheny County
- Oceania > Australia (0.04)
- South America
- Brazil (0.04)
- Chile > Santiago Metropolitan Region
- Santiago Province > Santiago (0.04)
- Colombia (0.04)
- Guyana (0.04)
- Peru (0.04)
- Venezuela (0.04)
- Africa
- Genre:
- Research Report (0.63)
- Industry:
- Education (1.00)
- Government
- Law Enforcement & Public Safety > Crime Prevention & Enforcement (1.00)
- Leisure & Entertainment > Sports (0.92)
- Media (1.00)
- Technology: