[논문 리뷰] Breaking the Bank with ChatGPT: Few-Shot Text Classification for Finance
본 논문은 Banking77에서 GPT-3.5/GPT-4를 이용한 in-context 학습과 SetFit를 사용한 MPNet 변형의 미세조정을 통해 few-shot 금융 텍스트 분류를 조사하고, 생성적 LLM이 few-shot 설정에서 미세조정 모델보다 우수할 수 있음을 보이며, 사람의 손으로 큐레이션된 샘플이 성능을 더욱 향상시키고, 비용 고려를 함께 언급한다.
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.
연구 동기 및 목표
- GPT-3.5/GPT-4를 포함한 대화형 LLM을 사용하여 Banking77에서 few-shot 금융 의도 분류를 시연한다.
- 제한된 데이터 환경에서 in-context 학습이 미세조정된 비생성 모델보다 우수할 수 있음을 보인다.
- 전체 데이터 및 few-shot 설정에서 MPNet 변형의 SetFit 기반 미세조정을 최신 연구 수준으로 평가한다.
- LLM 기반 접근의 비용과 토큰 한도 등 실용적 고려사항을 평가한다.
- few-shot 금융 NLP 작업의 향후 연구를 위한 지침을 제공한다.
제안 방법
- Banking77에서 few-shot 금융 텍스트 분류를 위한 GPT-3.5 및 GPT-4를 활용한 in-context 학습.
- SetFit를 이용한 MPNet 기반 모델(S-MPNet-v2 및 P-MPNet-v2)의 few-shot 및 full-data 설정 미세조정.
- 개별 클래스당 상위 3개(총 10개 중) 대표 샘플을 선별하기 위한 인간 전문가 주석으로 few-shot 학습 성능을 향상시키려는 노력.
- 3-shot GPT-4를 대상으로 이전 채팅 기록과 시스템 컨텍스트 프롬프트를 비교하는 프롬프트 엔지니어링 실험.
- full-data 및 few-shot 설정에서 micro-F1 및 macro-F1 지표를 사용한 평가.
실험 결과
연구 질문
- RQ1GPT-3.5 및 GPT-4를 이용한 in-context 학습이 few-shot 샘플로 Banking77에서 경쟁력 있는 성능을 달성할 수 있는가?
- RQ2인간이 큐레이션한 대표 샘플이 LLM 프롬프트에서 난수 샘플보다 few-shot 금융 의도 분류의 성능을 높이는가?
- RQ3MPNet 변형을 갖춘 SetFit이 full-data 및 10-shot 설정에서 최첨단 결과를 달성할 수 있는가?
- RQ4생성형 LLM을 few-shot 금융 NLP 작업에 사용하는 비용 및 실용적 트레이드오프는 무엇인가?
주요 결과
- GPT-3.5 및 GPT-4의 in-context 학습은 매우 적은 예시로도 미세조정된 비생성 모델과 비교해 경쟁력 있거나 더 우수한 결과를 얻을 수 있다.
- GPT-3.5 및 GPT-4의 in-context 학습에서 인간이 큐레이션한 대표 샘플이 무작위로 선택된 샘플보다 더 나은 성능을 보인다.
- MPNet-v2 변형을 사용하는 SetFit이 full-data 및 10-shot 설정에서 최첨단 결과를 달성한다.
- 프롬프트 전략(시스템 컨텍스트 대 이전 채팅 기록)이 GPT-4 성능에 영향을 주며, 시스템 컨텍스트가 강한 성능을 보인다.
- Genative LLM approaches incur subscription and token-cost considerations that may be prohibitive for small organizations.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.