大语言模型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可以提升准确性

相关推荐
人工智能训练1 小时前
【极速部署】Ubuntu24.04+CUDA13.0 玩转 VLLM 0.15.0:预编译 Wheel 包 GPU 版安装全攻略
运维·前端·人工智能·python·ai编程·cuda·vllm
源于花海1 小时前
迁移学习相关的期刊和会议
人工智能·机器学习·迁移学习·期刊会议
DisonTangor3 小时前
DeepSeek-OCR 2: 视觉因果流
人工智能·开源·aigc·ocr·deepseek
薛定谔的猫19823 小时前
二十一、基于 Hugging Face Transformers 实现中文情感分析情感分析
人工智能·自然语言处理·大模型 训练 调优
发哥来了3 小时前
《AI视频生成技术原理剖析及金管道·图生视频的应用实践》
人工智能
数智联AI团队3 小时前
AI搜索引领开源大模型新浪潮,技术创新重塑信息检索未来格局
人工智能·开源
不懒不懒4 小时前
【线性 VS 逻辑回归:一篇讲透两种核心回归模型】
人工智能·机器学习
冰西瓜6004 小时前
从项目入手机器学习——(四)特征工程(简单特征探索)
人工智能·机器学习
Ryan老房4 小时前
未来已来-AI标注工具的下一个10年
人工智能·yolo·目标检测·ai
丝斯20115 小时前
AI学习笔记整理(66)——多模态大模型MOE-LLAVA
人工智能·笔记·学习