arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.08769cs.LG
收藏

用Socratic方法构造大语言模型

Prompting Large Language Models With the Socratic Method

Stanford University(斯坦福大学)

Edward Y. Chang

摘要:

本文提出了一个系统的方法,使用苏格拉底的方法在开发提示模板,有效地与大语言模型,包括GPT-3。各种方法进行检查,并确定那些产生精确的答案和理由,同时培养创造力和想象力,以提高创意写作。诸如{ \em definition}、{\em elenchus}、{\em dialectic}、{ \em maieutics}、{ \em generalization}和{ \em counterfactual reasoning}的技术被讨论用于它们在工程提示模板中的应用以及它们与归纳、演绎和溯因推理的连接。通过实例说明了这些对话和推理方法的有效性。一个有趣的观察是,当任务的目标和用户意图在对话开始之前通过ChatGPT传达给GPT-3时,大语言模型似乎连接到意图中表达的外部上下文,并更有效地执行。

英文摘要:

This paper presents a systematic approach to using the Socratic method in developing prompt templates that effectively interact with large language models, including GPT-3. Various methods are examined, and those that yield precise answers and justifications while fostering creativity and imagination to enhance creative writing are identified. Techniques such as {\em definition}, {\em elenchus}, {\em dialectic}, {\em maieutics}, {\em generalization}, and {\em counterfactual reasoning} are discussed for their application in engineering prompt templates and their connections to inductive, deductive, and abductive reasoning. Through examples, the effectiveness of these dialogue and reasoning methods is demonstrated. An interesting observation is made that when the task's goal and user intent are conveyed to GPT-3 via ChatGPT before the start of a dialogue, the large language model seems to connect to the external context expressed in the intent and perform more effectively.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑