Skip to Content
実践 LLMアプリケーション開発 ―プロトタイプを脱却し、実用的な実装に迫るための包括的な手引き
book

実践 LLMアプリケーション開発 ―プロトタイプを脱却し、実用的な実装に迫るための包括的な手引き

by Suhas Pai, 金本 勝吉, オライリー・ジャパン編集部
September 2025
Beginner to intermediate
400 pages
6h 4m
Japanese
O'Reilly Japan, Inc.
Content preview from 実践 LLMアプリケーション開発 ―プロトタイプを脱却し、実用的な実装に迫るための包括的な手引き

8章アライメントと論理的推論

 LLMの採用をためらう理由としてよく挙げられるのが、ハルシネーションの発生、論理的推論能力の限界、偏見や安全性に関する懸念です。この章では、そうした限界について説明し、それらを軽減するためのさまざまな手法を紹介します。まずは、アライメント(Alignment Training)の概念を説明し、モデルが望ましい出力を生成するように導く方法について見ていきます。

8.1 アライメントの定義

 私たちは日々、言語モデルにおけるアライメントの問題について耳にしますが、実際にはどういう意味なのでしょうか。理想を言えば、私たちは言語モデルを完全に理解し、制御し、指示に追従させたいと考えています。しかし、現時点の言語モデルはその理想からはまだ遠い状態です。

 そのため、アライメントの目標は、言語モデルをより制御しやすく、指示に従いやすくすることにあります。AnthropicのAskellら※1は、アライメントされたAIを「Helpful, Honest, and Harmless.(役に立ち、正直で、無害)」なAIと定義しています。彼らは、いわゆるこの「3つのH」を次のように説明しています。

役に立つ(Helpful)

ユーザーの要求が有害でない限り、AIは可能な限り効果的にその要求を満たそうとし、必要に応じてフォローアップの質問を行う。

正直である(Honest)

AIは正確な情報を提供し、適切にキャリブレーションされ、確信度の推定にも配慮された出力を行うべきである。また、自らの限界について理解していることも求められる。

無害である(Harmless) ...

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

実践 AIエージェント開発 ―マルチエージェントシステムの設計と実装

実践 AIエージェント開発 ―マルチエージェントシステムの設計と実装

Michael Albada, 鈴木 駿, 高山 洪銘, 山下 正浩
実践 パケット解析 第3版 ―Wiresharkを使ったトラブルシューティング

実践 パケット解析 第3版 ―Wiresharkを使ったトラブルシューティング

Chris Sanders, 髙橋 基信, 宮本 久仁男, 岡 真由美
直感 生成AI ―ハンズオンで動かして学ぶ拡散モデル入門

直感 生成AI ―ハンズオンで動かして学ぶ拡散モデル入門

Omar Sanseviero, Pedro Cuenca, Apolinário Passos, Jonathan Whitaker, 江川 崇

Publisher Resources

ISBN: 9784814401314Publisher Website