mlsanityData to 14 Oct 2026

Breaking the Bank with ChatGPT: Few-Shot Text Classification for Finance

arXiv 2308.14634 ↗First posted 28 Aug 2023cs.CL cs.AI cs.LGcited by 12

Not on the map. Why?

Abstract (arXiv)

We propose the use of conversational GPT models for easy and quick few-shot text classification in the financial domain using the Banking77 dataset. Our approach involves in-context learning with GPT-3.5 and GPT-4, which minimizes the technical expertise required and eliminates the need for expensive GPU computing while yielding quick and accurate results. Additionally, we fine-tune other pre-trained, masked language models with SetFit, a recent contrastive learning technique, to achieve state-of-the-art results both in full-data and few-shot settings. Our findings show that querying GPT-3.5 and GPT-4 can outperform fine-tuned, non-generative models even with fewer examples. However, subscription fees associated with these solutions may be considered costly for small organizations. Lastly, we find that generative models perform better on the given task when shown representative samples selected by a human expert rather than when shown random ones. We conclude that a) our proposed methods offer a practical solution for few-shot tasks in datasets with limited label availability, and b) our state-of-the-art results can inspire future work in the area.

Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 29 of its 48 references that are in the map. First posted on arXiv 28 Aug 2023.

Builds on

29 of 48 references.

References · 29

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2022Training language models to follow instructions with human feedbackcited by 15,971
  5. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  7. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
  8. 2017Deep reinforcement learning from human preferencescited by 3,912
  9. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
  10. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
  11. 2021Learning to Prompt for Vision-Language Modelscited by 2,281
  12. 2022Visual Prompt Tuningcited by 1,681
17 more
  1. 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 981
  2. 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 606
  3. 2020Efficient Intent Detection with Dual Sentence Encoderscited by 433
  4. 2019Confident Learning: Estimating Uncertainty in Dataset Labelscited by 413
  5. 2019An Evaluation Dataset for Intent Classification and Out-of-Scope Predictioncited by 386
  6. 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 384
  7. 2018Snips Voice Platform: an embedded Spoken Language Understanding system for private-by-design voice interfacescited by 377
  8. 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 326
  9. 2019Benchmarking Natural Language Understanding Services for building Conversational Agentscited by 166
  10. 2022Efficient Few-Shot Learning Without Promptscited by 137
  11. 2019ConveRT: Efficient and Accurate Conversational Representations from Transformerscited by 95
  12. 2017Learning with Confident Examples: Rank Pruning for Robust Classification with Noisy Labelscited by 52
  13. 2022FiNER: Financial Numeric Entity Recognition for XBRL Taggingcited by 50
  14. 2021EDGAR-CORPUS: Billions of Tokens Make The World Go Roundcited by 32
  15. 2020Example-Driven Intent Prediction with Observerscited by 26
  16. 2023Financial misstatement detection: a realistic evaluationcited by 4
  17. 2022Learning Better Intent Representations for Financial Open Intent Classificationcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 2; 2024: 7; 2025: 2; 2026: 1.

12 papers.