arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.07045cs.SEcs.SI
收藏

5C 提示词契约:面向个人与中小企业 LLM 使用的极简、创意友好、令牌高效的设计框架

5C Prompt Contracts: A Minimalist, Creative-Friendly, Token-Efficient Design Framework for Individual and SME LLM Usage

Ugur Ari

AI总结:

提出5C提示词契约框架,通过角色、原因、约束、应急和校准五个组件,实现极简、创意友好且令牌高效的提示词设计,适用于个人和中小企业,并在多模型上验证了其效率与输出一致性。

摘要:

从传统提示词工程向更严谨的提示词设计学科的演进,标志着人机交互(human-LLM interaction)的关键转变。随着大型语言模型(LLMs)日益嵌入关键任务应用中,对于既明确又系统、同时足够精简以保持实用性和广泛可访问性的框架的需求变得迫切。尽管许多现有方法通过复杂的领域特定语言(DSLs)或多层模板来处理提示词结构化,此类方法可能带来显著的令牌和认知开销,从而可能限制模型的创意能力。在此背景下,我们提出5C提示词契约(5C Prompt Contract),一个将提示词设计提炼为五个直观组件的框架:角色(Character)、原因(Cause)、约束(Constraint)、应急(Contingency)和校准(Calibration)。这一极简认知模式显式整合了回退(fallback)和输出优化指令,促进了可靠、可解释且创意灵活的AI交互。实验结果表明,5C框架在保持丰富且一致的输出的同时,在多种LLM架构(OpenAI、Anthropic、DeepSeek和Gemini)上持续实现卓越的输入令牌效率,使其特别适合资源有限的个人和中小企业(SMEs)。

英文摘要:

The progression from traditional prompt engineering to a more rigorous discipline of prompt design marks a pivotal shift in human-LLM interaction. As Large Language Models (LLMs) become increasingly embedded in mission-critical applications, there emerges a pressing need for frameworks that are not only explicit and systematic but also minimal enough to remain practical and broadly accessible. While many existing approaches address prompt structuring through elaborate Domain-Specific Languages (DSLs) or multi-layered templates, such methods can impose significant token and cognitive overhead, potentially constraining the model's creative capacity. In this context, we propose the 5C Prompt Contract, a framework that distills prompt design into five intuitive components: Character, Cause, Constraint, Contingency, and Calibration. This minimal cognitive schema explicitly integrates fallback and output optimization directives, fostering reliable, interpretable, and creatively flexible AI interactions. Experimental results demonstrate that the 5C framework consistently achieves superior input token efficiency while maintaining rich and consistent outputs across diverse LLM architectures (OpenAI, Anthropic, DeepSeek, and Gemini), making it particularly suited for individuals and Small-to-Medium Enterprises (SMEs) with limited AI engineering resources.

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

↑