arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.22519cs.SEcs.AIcs.PL
收藏

LLMON:一种面向大语言模型的标记语言,用于在大语言模型接口中利用结构和语义

LLMON: An LLM-native Markup Language to Leverage Structure and Semantics at the LLM Interface

IBM Research(IBM研究院)

Michael Hind, Basel Shbita, Bo Wu, Farhan Ahmed, Chad DeLuca, Nathan Fulton, David Cox, Dan Gutfreund

AI总结:

LLMON通过引入一种面向大语言模型的标记语言,使文本的结构和语义元数据能自然地传递给大语言模型,从而提升模型的准确性、安全性和稳定性。

摘要:

文本大规模语言模型(LLMs)提供了一个简单且熟悉的接口:文本字符串用于输入和输出。然而,传递给LLM的信息通常具有更丰富的结构和语义,但这些信息在字符串中无法充分体现。例如,大多数提示包含指令(“总结这篇论文成一段”)和数据(需要总结的论文),但这些通常在传递给模型时没有区分。这可能导致模型混淆和安全风险,如提示注入攻击。本文通过引入一种面向大语言模型的标记语言LLMON(LLM对象标记法,发音“Lemon”),使文本的结构和语义元数据能够自然地传递给LLM。此信息可以在模型训练、模型提示和推理实现中使用,从而提升模型的准确性、安全性和稳定性。这类似于编程语言类型在静态检查、代码生成、动态检查和IDE高亮中的多种用途。我们讨论了面向大语言模型的标记语言的一般设计要求,介绍了LLMON标记语言并展示了其如何满足这些设计要求,描述了LLMON制品中的信息如何帮助模型训练和推理实现,并提供了一些初步的实证证据,证明其在这些用例中的价值。我们还讨论了通过面向大语言模型的方法所启用的更广泛问题和研究机会。

英文摘要:

Textual Large Language Models (LLMs) provide a simple and familiar interface: a string of text is used for both input and output. However, the information conveyed to an LLM often has a richer structure and semantics, which is not conveyed in a string. For example, most prompts contain both instructions ("Summarize this paper into a paragraph") and data (the paper to summarize), but these are usually not distinguished when passed to the model. This can lead to model confusion and security risks, such as prompt injection attacks. This work addresses this shortcoming by introducing an LLM-native mark-up language, LLMON (LLM Object Notation, pronounced "Lemon"), that enables the structure and semantic metadata of the text to be communicated in a natural way to an LLM. This information can then be used during model training, model prompting, and inference implementation, leading to improvements in model accuracy, safety, and security. This is analogous to how programming language types can be used for many purposes, such as static checking, code generation, dynamic checking, and IDE highlighting. We discuss the general design requirements of an LLM-native markup language, introduce the LLMON markup language and show how it meets these design requirements, describe how the information contained in a LLMON artifact can benefit model training and inference implementation, and provide some preliminary empirical evidence of its value for both of these use cases. We also discuss broader issues and research opportunities that are enabled with an LLM-native approach.

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

↑