Skip to main content
QUICK REVIEW

[論文レビュー] Large Language Models For Text Classification: Case Study And Comprehensive Review

Arina Kostina, Marios D. Dikaiakos|ArXiv.org|Jan 14, 2025
Text and Document Classification TechnologiesComputer Science被引用数 3
ひとこと要約

この研究は、偽情報検出と従業員所在地分類の2つのテキスト分類タスクについて、伝統的なMLおよびRoBERTaと多様な大規模言語モデル(LLMs)を比較し、 prompting 技法を分析し、性能と推論時間のトレードオフを検討する。

ABSTRACT

Unlocking the potential of Large Language Models (LLMs) in data classification represents a promising frontier in natural language processing. In this work, we evaluate the performance of different LLMs in comparison with state-of-the-art deep-learning and machine-learning models, in two different classification scenarios: i) the classification of employees' working locations based on job reviews posted online (multiclass classification), and 2) the classification of news articles as fake or not (binary classification). Our analysis encompasses a diverse range of language models differentiating in size, quantization, and architecture. We explore the impact of alternative prompting techniques and evaluate the models based on the weighted F1-score. Also, we examine the trade-off between performance (F1-score) and time (inference response time) for each language model to provide a more nuanced understanding of each model's practical applicability. Our work reveals significant variations in model responses based on the prompting strategies. We find that LLMs, particularly Llama3 and GPT-4, can outperform traditional methods in complex classification tasks, such as multiclass classification, though at the cost of longer inference times. In contrast, simpler ML models offer better performance-to-time trade-offs in simpler binary classification tasks.

研究の動機と目的

  • 複数のLLMの性能を伝統的な ML および RoBERTa と比較し、2 つの現実世界の分類タスク(バイナリおよびマルチクラス)で評価する。
  • prompting 技法がテキスト分類におけるLLMの性能に与える影響を調査する。
  • モデル間の正確性(加重F1スコア)と推論時間のトレードオフを評価する。
  • モデルのスケーリング、量子化の影響、異なるタスクの複雑さへの実用的適用性を分析する。

提案手法

  • デコーダーのみ、エンコーダーのみ、エンコーダー-デコーダーのLLM(量子化済みおよびAPIベースの variants を含む)を RoBERTa、NB、SVM とともに2つのデータセットで比較する。
  • RoBERTaおよびMLモデルには5-fold交差検証を用いて主要指標として加重F1スコアを使用する。
  • prompting 技法を評価する:ゼロショット、Few-shot、Chain-of-Thought、Emotional Prompting、Role-playing、Naming the Assistant、およびそれらの組み合わせ。
  • 性能と推論時間のトレードオフを分析するため推論時間を測定する(パレート分析)。
  • モデルとタスク間のロバスト性とばらつきを研究するためプロンプト設計を用いる。

実験結果

リサーチクエスチョン

  • RQ1LLMsは偽情報ネットワーク(Binary)および従業員レビュー(マルチクラス)のテキスト分類タスクで伝統的MLおよびRoBERTaを上回るか。
  • RQ2 prompting 技法(ZS、FS、CoT、RP、NA、EM)はモデルとタスクを通じてLLMの性能にどのような影響を与えるか。
  • RQ3これらのタスクにおける大規模LLMと小規模LLM、量子化モデルの性能と推論時間のトレードオフはどうなるか。
  • RQ4モデルサイズ、アーキテクチャ、量子化がプロンプト間の分類精度と安定性にどの程度影響するか。

主な発見

  • Llama3 70BはしばしばトップクラスのF1スコアを提供するが推論時間が長い。一方、RoBERTaは強力で時間効率の良い性能を提供する(例:FakeNewsNetで約93%のF1、Employee Reviewsで約84%のF1、推論が高速)。
  • prompting 戦略は結果に大きく影響を与える。CoTとFSは性能を大幅に向上させることがあり、モデルとタスクによって効果は異なる。
  • FakeNewsNet(二値)では、Llama3 70Bが特定の prompting で約94.4%のF1に達する一方、従来の NB/SVMは88%超の高精度で非常に高速な推論を実現。RoBERTaは設定によって93.0%を達成。
  • Employee Reviews(マルチクラス)では、GPT-4-turboがベストケースで約87.6%のF1に達し、CoTとFS prompting によりより大きな効果を得る。一方、Llama3 8BやMistral OOのような小型モデルは競合的だが性能が劣る。
  • 量子化されたMistralモデルは非量子化バリアントに匹敵するかそれを上回ることがある(例:Mistral-OOがMistralより4.5%高い)。量子化は性能を維持または向上させることが示唆される。
  • 総じて、より大きなLLMは推論時間のコストと引き換えに精度が高くなる。一方、従来モデル(NB/SVM)は遅延が最小で強力なベースラインを提供する。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。