Skip to main content
QUICK REVIEW

[논문 리뷰] Large Language Models Are Zero-Shot Text Classifiers

Zhiqiang Wang, Yiran Pang|arXiv (Cornell University)|2023. 12. 02.
Topic Modeling인용 수 16
한 줄 요약

이 논문은 GPT 기반 모델 및 다른 베이스라인의 제로샷 텍스트 분류 성능을 다양한 데이터셋에서 평가하고, 네 가지 과제 중 세 가지에서 LLM이 제로샷 분류기로 작동할 수 있음을 보여준다.

ABSTRACT

Retrained large language models (LLMs) have become extensively used across various sub-disciplines of natural language processing (NLP). In NLP, text classification problems have garnered considerable focus, but still faced with some limitations related to expensive computational cost, time consumption, and robust performance to unseen classes. With the proposal of chain of thought prompting (CoT), LLMs can be implemented using zero-shot learning (ZSL) with the step by step reasoning prompts, instead of conventional question and answer formats. The zero-shot LLMs in the text classification problems can alleviate these limitations by directly utilizing pretrained models to predict both seen and unseen classes. Our research primarily validates the capability of GPT models in text classification. We focus on effectively utilizing prompt strategies to various text classification scenarios. Besides, we compare the performance of zero shot LLMs with other state of the art text classification methods, including traditional machine learning methods, deep learning methods, and ZSL methods. Experimental results demonstrate that the performance of LLMs underscores their effectiveness as zero-shot text classifiers in three of the four datasets analyzed. The proficiency is especially advantageous for small businesses or teams that may not have extensive knowledge in text classification.

연구 동기 및 목표

  • GPT, Llama2, GPT-3.5, 및 GPT-4를 다양한 데이터셋에서 제로샷 텍스트 분류에 대해 평가한다.
  • 표준화된 프롬프트와 입력 하에서 제로샷 LLM과 전통 ML, DL, ZSL 방법을 비교한다.
  • 제로샷 텍스트 분류를 배포하기 위한 실용적 통찰을 소규모 팀에 제공한다.
  • 재현성과 커뮤니티 영향력을 촉진하기 위해 코드베이스를 오픈소스로 공개한다.

제안 방법

  • 전통적인 텍스트 분류 워크플로를 설명하고 이를 GPT 모델을 이용한 제로샷 프롬 prompting과 대조한다.
  • LLM 실험 전반에 걸쳐 프롬프트와 샘플링 매개변수(temperature=0.01, top_p=0.9)를 표준화한다.
  • LLM에는 원시 테스트 데이터를 사용하고 전통 ML/DL 모델은 표준화된 전처리 입력을 사용한다.
  • 다음 네 가지 데이터셋에서 모델을 평가한다: COVID-19 트윗, 경제 텍스트, 전자상거래 텍스트, SMS 스팸.
  • MNB, LG, RF, DT, KNN, RNN, LSTM, GRU, BART, DeBERTa, 및 LLMs(Llama2, GPT-3.5, GPT-4)와 비교한다.
  • ACC, F1, 및 AUC 지표를 보고 제로샷 성능을 분석한다.
Figure 1: Traditional text classification flow
Figure 1: Traditional text classification flow

실험 결과

연구 질문

  • RQ1제로샷 LLM이 전통 ML/DL 방법에 비해 경쟁력 있는 텍스트 분류 성능을 달성할 수 있는가?
  • RQ2제로샷 LLM이 감정 분석, 주제 분류, 스팸 과제에서 ZSL 베이스라인과 어떻게 비교되는가?
  • RQ3제로샷 텍스트 분류 성능을 극대화하는 프롬프팅 및 입력 처리 선택은 무엇인가?
  • RQ4라벨링 능력이 제한된 소규모 팀이나 비즈니스에 LLM이 더 유리한가?
  • RQ5데이터셋 전반에서 제로샷 LLM 분류에서 관찰되는 한계와 편향은 무엇인가?

주요 결과

모델COVID-19 ACCCOVID-19 F1COVID-19 AUC경제 ACC경제 F1경제 AUC
MNB0.39330.36390.55310.45330.36320.5563
LG0.43330.34880.54040.52000.30660.5427
RF0.44670.31840.61840.51330.34530.5990
DT0.47330.41050.56020.40670.34460.5060
KNN0.38000.34860.52160.48000.36200.5614
RNN0.74000.71860.89250.63330.57970.7874
LSTM0.78670.76190.89250.65330.46270.7293
GRU0.82000.81060.92260.69330.57670.7928
BART0.50000.35160.58820.46000.42580.6603
DeBERTa0.54670.38050.59540.44670.42510.6385
Llama20.52670.4748-0.70000.5230-
GPT-3.50.53330.4943-0.66670.6683-
GPT-40.52670.5095-0.71330.7096-
  • LLMs가 네 가지 데이터셋 중 세 가지에서 제로샷 텍스트 분류기로서 강력한 성능을 달성한다.
  • GPT-4는 일반적으로 다른 베이스라인보다 더 우수한 성능을 보이며, 특히 경제 텍스트 및 SMS 과제에서 두드러진다.
  • Llama2와 GPT-3.5는 감정 분석 및 전자상거래 분류에서 강점을 보이는 반면, 일부 COVID-19 감정 사례에서 LLM이 뒤처진다.
  • 전통 ML 방법은 여러 과제에서 DL 및 LLM 기반 제로샷 접근법에 비해 종종 성능이 떨어진다.
  • 프롬프팅 전략 및 데이터 전처리(예: 트윗 정리)가 모델 출력과 정확도에 크게 영향을 준다.
  • 오픈소스 코드와 표준화된 평가가 재현성과 광범위한 채택을 가능하게 한다.
Figure 2: LLMs’ zero shot text classification flow
Figure 2: LLMs’ zero shot text classification flow

더 나은 연구,지금 바로 시작하세요

연구 설계부터 논문 작성까지, 연구 시간을 획기적으로 줄여보세요.

카드 등록 없음 · 무료 플랜 제공

이 리뷰는 AI가 만들고, 인간 에디터가 검토했습니다.