大语言模型prompt -Template

Template

Template Construction

  • 根据任务手动设计
  • 搜索算法/优化算法 生成优化
  • 文本 / 无意义字符 (3个soft token,例如s1,s2, s3,在训练过程中,第一个变成be动词的概念,比较玄学)
  • 结构化与规则相结合

Example of tasks and corresponding template

例如,在做Summarization时(表格倒数第二条),会加上TL;DR这个prompt,意思是Too Long;Don't Read

例子1 :Template:Incorporation Rules and Logic

例如,在上述图片中显示,在判断A(Mark Twain)与B(Langdon)的关系时,要约束A实体和B实体都是Person类别。

例子2 :Structured Template

  • Key-value pairs for all the prompts
  • organize different tasks to a structured format

例子3: Ensembling Template

  • 多个template融合策略:1. 做平均 2. 加权平均 3. 投票

AUTO PROMPT:Elicting Knowledge from Language Models with Automatically Generated Prompts 2020

额外加了一个T5模型,判断加入哪些prompt可以提升准确性

相关推荐
HIT_Weston9 小时前
45、【Agent】【OpenCode】本地代理分析(请求&接收回调)
人工智能·agent·opencode
逻辑君9 小时前
认知神经科学研究报告【20260010】
人工智能·深度学习·神经网络·机器学习
星河耀银海10 小时前
远控体验分享:安全与实用性参考
人工智能·安全·微服务
企业架构师老王10 小时前
2026企业架构演进:科普Agent(龙虾)如何从“极客玩具”走向实在Agent规模化落地?
人工智能·ai·架构
GreenTea10 小时前
一文搞懂Harness Engineering与Meta-Harness
前端·人工智能·后端
鬼先生_sir10 小时前
Spring AI Alibaba 1.1.2.2 完整知识点库
人工智能·ai·agent·源码解析·springai
深念Y10 小时前
豆包AI能力集成方案:基于会话管理的API网关设计
人工智能
龙文浩_10 小时前
Attention Mechanism: From Theory to Code
人工智能·深度学习·神经网络·学习·自然语言处理
ulimate_10 小时前
八卡算力、三个Baseline算法(WALLOSS、pi0、DreamZero)
人工智能
深小乐10 小时前
AI 周刊【2026.04.06-04.12】:Anthropic 藏起最强模型、AI 社会矛盾激化、"欢乐马"登顶
人工智能