arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.02202cs.CLcs.AI
收藏

语言模型能领会提示吗?面向可控情境化常识推理的提示方法

Can Language Models Take A Hint? Prompting for Controllable Contextualized Commonsense Inference

Apple(苹果公司);Tufts(塔夫茨大学);Dartmouth College(达特茅斯学院);MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);Boston University(波士顿大学);MIT Media Lab(麻省理工学院媒体实验室)

Pedro Colon-Hernandez, Nanxi Liu, Chelsea Joe, Peter Chin, Claire Yin, Henry Lieberman, Yida Xin, Cynthia Breazeal

AI总结:

本文提出“hinting”数据增强技术,通过硬提示与软提示结合的前缀提示策略引导情境化常识推理,在ParaCOMET和GLUCOSE数据集上验证其能在不降低性能的同时提升生成断言的可控性。

摘要:

在现代语言模型中,在给定故事情境下生成常识性断言仍然是一项困难的任务。以往研究通过将常识推理与故事对齐并据此训练语言生成模型来解决这一问题。其中一个挑战是确定故事中哪个主题或实体应成为推理断言的焦点。先前的方法缺乏对生成断言特定方面的控制能力。在本工作中,我们引入了“hinting”,这是一种增强情境化常识推理的数据增强技术。“hinting”采用前缀提示策略,同时使用硬提示和软提示来引导推理过程。为了证明其有效性,我们将“hinting”应用于两个情境常识推理数据集:ParaCOMET和GLUCOSE,评估其对一般推理和情境特定推理的影响。此外,我们通过将同义词和反义词纳入提示来评估“hinting”。我们的结果表明,“hinting”在不损害情境化常识推理性能的同时提供了更好的可控性。

英文摘要:

Generating commonsense assertions within a given story context remains a difficult task for modern language models. Previous research has addressed this problem by aligning commonsense inferences with stories and training language generation models accordingly. One of the challenges is determining which topic or entity in the story should be the focus of an inferred assertion. Prior approaches lack the ability to control specific aspects of the generated assertions. In this work, we introduce "hinting," a data augmentation technique that enhances contextualized commonsense inference. "Hinting" employs a prefix prompting strategy using both hard and soft prompts to guide the inference process. To demonstrate its effectiveness, we apply "hinting" to two contextual commonsense inference datasets: ParaCOMET and GLUCOSE, evaluating its impact on both general and context-specific inference. Furthermore, we evaluate "hinting" by incorporating synonyms and antonyms into the hints. Our results show that "hinting" does not compromise the performance of contextual commonsense inference while offering improved controllability.

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

↑