提示(Prompting)是将通用大型语言模型(LLM)适配到特定领域任务的广泛使用方法。有效的提示手动创建起来十分繁琐,因此提示编写越来越多地交由LLM完成,近期研究还训练LLM为其他模型编写提示。这些技术要么在不观察任务模型行为的情况下编写提示,无法感知提示应解决的失败模式;要么必须在推理时与任务LLM并行运行,为每个查询增加开销,均不符合实际提示工程的常见实践。为缩小这一差距,我们提出强化学习提示工程(RLPE),该方法训练一个模型,分析独立任务模型的轨迹并编写针对其观察到的失败的提示。RLPE严格根据提示性能奖励训练模型,使其学习可提升任务模型的提示策略。提示生成一次后可在任务中重复使用,因此推理无需训练后的模型。由于RLPE仅需查询其提示的模型,它也与闭源模型兼容。我们将RLPE应用于Enigmata、BIG-Bench Extra Hard和PlanBench。我们训练了一个90亿参数的模型,在三分之二的基准测试中,其编写的提示优于最先进的前沿模型(gpt-5.6-sol和claude-opus-5)及提示优化器(GEPA和TextGrad)。尽管该模型从未明确接受过提示迭代的训练,但此能力的出现水平与前沿模型相当或更优。学习到的提示能力还具备泛化性,训练后的模型可提升比其训练时所用模型大6倍的任务模型,包括来自完全不同模型家族的模型,并在训练时留出的第四个基准测试上与claude-opus-5表现相当。
英文摘要:
Prompting is a widely used method for adapting general-purpose LLMs to domain-specific tasks. Effective prompts can be tedious to create manually, so prompt writing is increasingly handed to LLMs, with recent work training LLMs to write prompts for other models. These techniques either write prompts without observing how the task model behaves, blind to the failure modes the prompt should address, or must run alongside the task LLM at inference time, adding overhead to every query. Neither reflects how prompt engineering is often practiced. To close this gap, we introduce Reinforcement Learned Prompt Engineering (RLPE), which trains a model to analyze traces of a separate task model and write a prompt targeting the failures it observes. RLPE rewards the trained model strictly on prompt performance, so it learns the prompting strategies that improve the task model. The prompt is generated once and reused across the task, so inference does not require the trained model. Since RLPE needs only query access to the model it prompts, it is also compatible with closed-source models. We apply RLPE to Enigmata, BIG-Bench Extra Hard, and PlanBench. We train a 9B-parameter model that writes better prompts than state-of-the-art frontier models (gpt-5.6-sol and claude-opus-5) and prompt optimizers (GEPA and TextGrad) on 2/3 benchmarks. Although the model is never explicitly trained to iterate on prompts, this capability emerges at a level that matches or beats frontier models. The learned prompting capability also generalizes, with the trained model improving task models 6x larger than the one it trained with, including ones from entirely different model families, and matching claude-opus-5 on a fourth benchmark held out from training.
A Prompt-Engineering Approach to Develop Scalable, Flexible, and Real-Time Hybrid Micro-Level Personalization in a General Purpose AI Teaching Assistant
Tailored Teaching with Balanced Difficulty: Elevating Reasoning in Multimodal Chain-of-Thought via Prompt Curriculum
Nanjing University of Aeronautics and Astronautics(南京航空航天大学);Hunan Vanguard Group Corporation Co., Ltd.(湖南 Vanguard集团有限公司);Huaneng Information Technology Co., Ltd.(华能信息技术有限公司);Tsinghua University(清华大学);Zhejiang University(浙江大学);PowerChina Huadong Engineering Co., Ltd.(中国电建华东工程有限公司)
Teaching Algorithmic Reasoning via In-context Learning
Mila(米拉研究所);Université de Montreal(蒙特利尔大学);Google Research(谷歌研究院)
大语言模型(LLM)通过扩展模型和数据大小,显示出越来越多的上下文学习能力。尽管取得了这些进展,LLM仍然无法解决算法推理问题。虽然为最终答案提供了一个基本原理,导致了多步推理问题的进一步改进,但Anil et al. 2022表明,即使是简单的算法推理任务,如奇偶校验,也远未解决。在这项工作中,我们确定并研究了成功教授算法推理的四个关键阶段:(1)将算法制定为技能,(2)同时教授多种技能(技能积累),(3)教授如何组合技能(技能组合)和(4)教授如何使用技能作为工具。我们表明,它是可以教算法推理LLMs通过上下文学习,我们称之为算法提示。我们评估我们的方法在各种算术和定量推理任务,并表现出显着的提升性能比现有的提示技术。特别是,对于长奇偶校验、加法、乘法和减法,与最佳可用基线相比,我们分别实现了约10倍、9倍、5倍和2倍的误差减少。
Can AI be a Teaching Partner? Evaluating ChatGPT, Gemini, and DeepSeek across Three Teaching Strategies
Federal Institute of São Paulo (IFSP)(圣保罗联邦学院);Graduate School of Education of University of Pennsylvania (UPENN)(宾夕法尼亚大学教育研究生院);Institute of Mathematics and Computer Sciences of University of São Paulo (USP)(圣保罗大学数学与计算机科学研究所);Nucleus of Excellence in Social Technologies (NEES) of Federal University of Alagoas (UFAL)(阿拉戈斯联邦大学社会技术卓越中心)
The Challenge of Teaching Reasoning to LLMs Without RL or Distillation
Nvidia Corporation(Nvidia公司);Institute for Artificial Intelligence Research(人工智能研究机构);Faculty of Technical Sciences, University of Novi Sad(诺维萨德大学技术科学学院);Department of Mathematics and Informatics, Faculty of Sciences, University of Novi Sad(诺维萨德大学科学学院数学与信息学系);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of Chicago(芝加哥大学);Georgia Institute of Technology(佐治亚理工学院);Department of Computer and Information Science, School of Engineering and Applied Science, University of Pennsylvania(宾夕法尼亚大学计算机与信息科学系);Massachusetts Institute of Technology(麻省理工学院)
Promptly: Using Prompt Problems to Teach Learners How to Effectively Utilize AI Code Generators
The University of Auckland(奥克兰大学);Abilene Christian University(阿比林基督教大学);University of Toronto Scarborough(多伦多大学士嘉堡分校);University College Dublin(都柏林大学学院)
Teaching LLMs to Think Mathematically: A Critical Study of Decision-Making via Optimization
Data Science Department, Princess Sumaya University for Technology(普里姆斯萨大学技术学院数据科学系);Electrical and Computer Engineering Department, Virginia Tech(弗吉尼亚理工大学电气与计算机工程系);Computer Science Department, Princess Sumaya University for Technology(普里姆斯萨大学技术学院计算机科学系);Computer Science Department, King Fahd University of Petroleum and Minerals(国王法赫德石油与矿物大学计算机科学系)
Improving Student-AI Interaction Through Pedagogical Prompting: An Example in Computer Science Education
Carnegie Mellon University(卡内基梅隆大学);University of Michigan(密歇根大学);University of Toronto(多伦多大学);Colgate University(科尔盖特大学);University of Toronto Mississauga(多伦多大学密西根分校)
TasTe: Teaching Large Language Models to Translate through Self-Reflection
Institute of Computing and Intelligence, Harbin Institute of Technology(哈尔滨工业大学计算与智能学院);Pattern Recognition Center, WeChat AI, Tencent Inc(腾讯微信AI模式识别中心)
SCOUT: Teaching Pre-trained Language Models to Enhance Reasoning via Flow Chain-of-Thought
SIGS, Tsinghua University(清华大学信息科学与技术学院);Southern University of Science and Technology(南方科技大学);Guangdong Laboratory of AI and Digital Economy (SZ)(广东人工智能与数字经济实验室);The Hong Kong University of Science and Technology(香港科技大学);Peking University(北京大学)
From Scoring to Explanations: Evaluating SHAP and LLM Rationales for Rubric-based Teaching Quality Assessment
Technical University of Munich(慕尼黑技术大学);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心);Lund University(吕勒奥大学);University of Tübingen(图宾根大学);Stanford Graduate School of Education(斯坦福大学教育研究生院);Harvard Graduate School of Education(哈佛大学教育研究生院)
Prompt Engineering for Responsible Generative AI Use in African Education: A Report from a Three-Day Training Series
Mampong Technical College of Education(曼庞教育技术学院);Northern Cape Provincial Department of Education(北开普省教育部);Bagabaga College of Education(巴加巴加教育学院);Gambaga College of Education(甘巴加教育学院);St. Joseph’s College of Education(圣约瑟夫教育学院);Federal University of Transportation, Daura(道拉联邦交通大学);University of Education, Winneba(温尼巴教育大学);University of Manitoba(曼尼托巴大学);University for Development Studies(发展研究大学);JET Education Services(JET教育服务机构);Generative AI for Education and Research in Africa (GenAI-ERA)(非洲生成式人工智能教育与研究组织(GenAI-ERA));National University of Lesotho(莱索托国立大学);University of Georgia(佐治亚大学)