Skip to Content
仕組みからわかる大規模言語モデル 生成AI時代のソフトウェア開発入門
book

仕組みからわかる大規模言語モデル 生成AI時代のソフトウェア開発入門

by 奥田 勝己
February 2025
Intermediate
376 pages
9h 25m
Japanese
Shōeisha
Content preview from 仕組みからわかる大規模言語モデル 生成AI時代のソフトウェア開発入門
指示チューニング(Instruction Tuning)
2.3
指示チューニング[Wei, Bosma, et al. 2022] は、特定の指示や命令に従って応答する能力を
言語モデルに与えるためのファインチューニング手法です。指示チューニングは、多様な指示
と応答ペアを用いてモデルを追加学習することで実現されます。指示チューニングでは、構造
化されたデータセットを用いてモデルの学習を行います。例えば、指示、付加的な入力、期待
される出力から構成された次のようなデータがデータセットに含まれます。
指示:「この文章を日本語に翻訳してください。」
入力:「The weather is nice today.」
出力:「今日は良い天気です。」
指示:「次の数列の次の数を予測してください。」
入力:「2, 4, 6, 8, ...」
出力:「次の数は10です。この数列は2ずつ増加しているため、8の次は10になります。」
指示チューニングで使用する損失関数は、通常の事前学習と同様の交差エントロピー損失関
です。モデルは、与えられた指示と入力(存在する場合)に基づいて適切な応答を生成する
ことを学習します。交差エントロピー損失関数を用いることで、モデルの生成した応答と期待
される出力との差異を最小化するように学習します。
指示チューニングは、会話型AI の基本的な指示追従能力を向上させる重要な手法です。し
かし、より複雑な人間の好みや倫理的考慮を組み込むためには、別の手法も必要です。次節で
は、そのような高度なファインチューニング手法の一つである ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

What Successful Brick-and-Mortar Retailers Get Right

What Successful Brick-and-Mortar Retailers Get Right

Rob Angell
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9784798185613