紹介する内容
■ Learn Prompting
● https://github.com/trigaten/Learn_Prompting にて公開されている入
門コース
● 今日はこれのBasic部分を紹介
■ Large Language Models are Zero-Shot Reasoners,
Kojima et al., NeurIPS 2022
● プロンプトを工夫することで、より良い解答を得る手法を提案
3
Slide 4
Slide 4 text
まずシンプルに英語で命令すれば良い
■ 例えば Write an essay about the benefits of AI
4
プロンプトの形式は多種多様
■ 標準形式
● What is the capital of France?
■ Q&A形式
● Q: What is the capital of France?
A:
9
Slide 10
Slide 10 text
プロンプトの形式は多種多様
■ Few Shot形式
● What is the capital of Spain?
Madrid
What is the capital of Italy?
Rome
What is the capital of France?
■ Few Shot Q&A形式
● Q: What is the capital of Spain?
A: Madrid
Q: What is the capital of Italy?
A: Rome
Q: What is the capital of France?
A:
10
Kojima et al., NeurIPS 2022
■ Chain of Thoughts (CoT)
● LLMが弱いとされている論理的推論を改善する手法
■ 二段階の推論を行う
19
Slide 20
Slide 20 text
ChatGPTはこの点において改善された
■ プロンプト:Roger has 5 tennis balls. He buys 2 more cans
of tennis balls. Each can has 3 tennis balls. How many
tennis balls does he have now?
20