Making LLMs Worth Every Penny: Resource-Limited Text Classification in Banking
Loukas, Lefteris, Stogiannidis, Ilias, Diamantopoulos, Odysseas, Malakasiotis, Prodromos, Vassos, Stavros
–arXiv.org Artificial Intelligence
Standard Full-Data classifiers in NLP demand thousands of labeled examples, which is impractical in data-limited domains. Few-shot methods offer an alternative, utilizing contrastive learning techniques that can be effective with as little as 20 examples per class. Similarly, Large Language Models (LLMs) like GPT-4 can perform effectively with just 1-5 examples per class. However, the performance-cost trade-offs of these methods remain underexplored, a critical concern for budget-limited organizations. Our work addresses this gap by studying the aforementioned approaches over the Banking77 financial intent detection dataset, including the evaluation of cutting-edge LLMs by OpenAI, Cohere, and Anthropic in a comprehensive set of few-shot scenarios. We complete the picture with two additional methods: first, a cost-effective querying method for LLMs based on retrieval-augmented generation (RAG), able to reduce operational costs multiple times compared to classic few-shot approaches, and second, a data augmentation method using GPT-4, able to improve performance in data-limited scenarios. Finally, to inspire future research, we provide a human expert's curated subset of Banking77, along with extensive error analysis.
arXiv.org Artificial Intelligence
Nov-10-2023
- Country:
- North America
- Dominican Republic (0.04)
- United States
- District of Columbia > Washington (0.04)
- Washington > King County
- Seattle (0.04)
- New York
- Kings County > New York City (0.05)
- New York County > New York City (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Alaska > Anchorage Municipality
- Anchorage (0.04)
- Canada > British Columbia
- Europe
- Greece (0.04)
- Switzerland (0.04)
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Germany > Saarland
- Saarbrücken (0.04)
- Belgium > Brussels-Capital Region
- Brussels (0.04)
- Asia
- Macao (0.04)
- China > Hong Kong (0.04)
- Singapore > Central Region
- Singapore (0.04)
- Middle East > UAE
- Abu Dhabi Emirate > Abu Dhabi (0.14)
- Japan > Honshū
- Kantō > Kanagawa Prefecture > Yokohama (0.04)
- North America
- Genre:
- Research Report (0.64)
- Industry:
- Banking & Finance (0.68)
- Technology: