Skip to main content
QUICK REVIEW

[論文レビュー] Adapting Large Language Models to Domains via Reading Comprehension

Daixuan Cheng, Shaohan Huang|arXiv (Cornell University)|Sep 18, 2023
Topic ModelingComputer Science被引用数 9
ひとこと要約

本論文は、ドメインの生データコーパスでの継続的な事前学習がドメイン知識をもたらす一方で prompting を損なうことを示し、生データのドメイン文を読み取り理解タスクへ変換する(一般的な指示を含む)ことで知識を保持しつつ prompting 能力を高め、強力なドメイン性能を持つ AdaptLLM を生み出す、という提案を行う。

ABSTRACT

We explore how continued pre-training on domain-specific corpora influences large language models, revealing that training on the raw corpora endows the model with domain knowledge, but drastically hurts its prompting ability for question answering. Taken inspiration from human learning via reading comprehension--practice after reading improves the ability to answer questions based on the learned knowledge--we propose a simple method for transforming raw corpora into reading comprehension texts. Each raw text is enriched with a series of tasks related to its content. Our method, highly scalable and applicable to any pre-training corpora, consistently enhances performance across various tasks in three different domains: biomedicine, finance, and law. Notably, our 7B language model achieves competitive performance with domain-specific models of much larger scales, such as BloombergGPT-50B. Furthermore, we demonstrate that domain-specific reading comprehension texts can improve the model's performance even on general benchmarks, showing the potential to develop a general model across even more domains. Our model, code, and data are available at https://github.com/microsoft/LMOps.

研究の動機と目的

  • 生データのコーパスに対するドメイン適応型事前学習が大規模言語モデルの prompting と知識にどのように影響するかを調査する。
  • 生データのドメイン文を読み取り理解形式へ変換する拡張性の高い方法を開発し、prompting 能力を保持する。
  • 構成された読み取り理解に基づく適応が生物医学、金融、法務のドメイン特有タスクの性能を向上させることを示す。

提案手法

  • 生物医学、金融、法務のドメイン特有の生データコーパスに対する継続的な事前学習を実験的に分析し、prompting、ファインチューニング、知識の検証を評価する。
  • 生データのドメイン文を一連のタスク(要約、word-to-text、自然言語推論、常識推論、パラフレーズ検出、テキスト完成)を備えた読み取り理解テキストへ変換する。
  • 入力出力形式を広げるため、読み取り理解テキストに一般指示を追加する。
  • bio 1:1, finance 1:2, law 1:1 のデータ比率で、読み取り理解テキストと一般指示の混合を用いて domain data 上で LLaMA-7B を訓練する。
  • 一般的な LLMs および vanilla なドメイン適応型事前学習 (DAPT) と比較するためのアブレーションを実施する。
  • 生物医学、金融、法務のドメイン特有のベンチマークと一般的な prompting ベンチマークの両方を評価し、知識と prompting 能力の双方を測定する。

実験結果

リサーチクエスチョン

  • RQ1ドメイン生データコーパスでの継続的な事前学習は LLM にドメイン知識を埋め込み、それが prompting パフォーマンスにどのように影響するか。
  • RQ2生データのドメイン文を読み取り理解タスクへ変換することで、ドメイン知識を与えつつ prompting 能力を保持または向上させることができるか。
  • RQ3読み取り理解を補強したコーパスが、複数のドメインにまたがってドメイン特有および一般的な prompting ベンチマークを改善するか。
  • RQ4個々の理解タスクタイプがドメインタスクに与える相対的影響はどれか。
  • RQ5このアプローチは、より大規模なドメイン特異モデルと競合する 7B モデルを生み出すことができるか。

主な発見

  • ドメイン特有の生データコーパスでの継続的な事前学習はファインチューニング性能とドメイン知識の検証を向上させるが、prompting 能力を低下させる。
  • 生コーパスをタスクプロンプト付きの読み取り理解テキストへ変換することで、ドメインを超えて prompting 能力を保持・向上させる。
  • 一般的な指示を読み取り理解テキストに追加することで、 prompting 性能がさらに向上する。
  • AdaptLLM (7B) は金融分野でより大きなドメイン特異モデルと競合する結果を達成し、他の分野でもドメイン特異ベースラインに近づく。
  • 読み取り理解ベースの適応はドメイン特定タスクの性能を向上させ、一般的なベンチマークにも利益をもたらし、より広範な一般化の可能性が示唆される。

この論文を読む

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

Nubintでこの論文を読む

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