The rise of large language models (LLMs) has introduced a new type of programming: natural language programming. Users write prompts, which are instructions in natural language, to direct LLMs to perform tasks such as natural language processing, code generation, reasoning, etc.
An emerging area of research enables interoperability between prompts and programs. We present a novel programming abstraction, shared program state, that removes the manual work required to enable interoperability between prompts and program states. With shared program state, programmers can write prompts that directly access program variables, compute with program objects, and implement control flow in the program. We present a schema for specifying natural function interfaces that extend programming systems to support programs with prompts and leverage this schema to specify shared program state as a natural function interface.
We implement shared program state in the Nightjar programming system. Nightjar enables programmers to write Python programs containing prompts that share the Python program state. We show that Nightjar programs achieve comparable or higher task accuracy than manually written implementations (+4-19%), while decreasing the lines of code by 39.6% on average. The tradeoff is that Nightjar may incur runtime overhead (0.4-4.3x manual implementations).
Prompt Tuning with Soft Context Sharing for Vision-Language Models
State Key Laboratory of Multimodal Artificial Intelligence Systems, CASIA(中国科学院自动化研究所多模态人工智能系统国家重点实验室);Engineering Laboratory for Intelligent Industrial Vision, CASIA(中国科学院自动化研究所智能工业视觉工程实验室);Research Center of Aerospace Information, CASIA(中国科学院自动化研究所航天信息研究中心)
Compiler-Guided Inference-Time Adaptation: Improving GPT-5 Programming Performance in Idris
Ming Hsieh Department of Electrical and Computer Engineering(明希斯部门电子与计算机工程系);Viterbi School of Engineering, University of Southern California(维特比工程学院,南加州大学)
Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigm
Institute for Clarity in Documentation(文档清晰性研究所);Inria Paris-Rocquencourt(法国国家信息与自动化研究所巴黎-罗克库尔中心);Rajiv Gandhi University(拉吉夫·甘地大学);Tsinghua University(清华大学);Palmer Research Laboratories(帕尔默研究实验室)
Beyond Prompt or Skill? Attribution-Guided Optimization of Modular LLM Programs
The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Shenzhen Future Network of Intelligence Institute (FNii-Shenzhen)(深圳未来智能网络研究院(深圳FNii));Sun Yat-sen University(中山大学)
Prompt Programming for Cultural Bias and Alignment of Large Language Models
Information Systems and Modeling, Los Alamos National Laboratory(信息系统与建模,洛斯阿拉莫斯国家实验室);Advanced Research in Cyber Systems, Los Alamos National Laboratory(网络安全系统高级研究,洛斯阿拉莫斯国家实验室);Center for National Security and International Studies(国家安全与国际研究中心);Analytics Division, Los Alamos National Laboratory(分析部门,洛斯阿拉莫斯国家实验室)
Interactions with Prompt Problems: A New Way to Teach Programming with Large Language Models
Abilene Christian University(阿比林基督大学);The University of Auckland(奥克兰大学);University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Temple University(天普大学);University College Dublin(都柏林大学学院)
Federated Domain Generalization via Prompt Learning and Aggregation
School of Computing and Artificial Intelligence, Shandong University of Finance and Economics(山东财经大学计算与人工智能学院);School of Computer Science and Technology, Shandong Jianzhu University(山东建筑大学计算机科学与技术学院);College of Electronics and Information Engineering, Tongji University(同济大学电子与信息工程学院)
本文提出 PLAN 框架,通过提示学习与聚合在联邦域泛化场景中适配视觉-语言模型,利用本地和全局提示的安全交换与聚合提升未见域泛化能力,同时显著降低计算与通信开销。
表示共享可以通过在重复项之间共享一个表示来减少程序的内存占用。函数式编程系统中最常见的表示共享实现称为散列consing。在Prolog的上下文中,表示共享很少受到关注。一些当前的技术,处理表示共享的审查。新的贡献是:(1)用于{ \em findall/3}的{\em输入共享}的简单实现;(2)在运行时引入表示共享的{ \em sharer}模块的描述。它们的实现在由hProlog实现的WAM的上下文中示出。两者都可以适用于任何WAM类Prolog实现。共享器独立于垃圾收集器工作,但可以使其与垃圾收集器协作。基准测试结果表明,共享器的成本与堆垃圾收集器相当,其有效性高度依赖于应用程序,并且其策略必须根据收集器进行调整。逻辑程序设计理论与实践(Theory and Practice of Logic Programming,TPLP)
在逻辑程序的分析中,用于检测共享和线性信息的抽象域被广泛使用。设计这样的域的抽象统一算法已被证明是相当困难的。目前,可用的算法是正确的,但不是最佳的,即,它们不能充分利用由抽象域传达的信息。在本文中,我们定义了一个新的(无限)域ShLin-w,它可以被认为是一个一般的框架,其他域可以很容易地通过抽象得到。ShLin-w使共享和线性之间的相互作用变得明确。我们提供了一个建设性的表征的最佳抽象统一运营商的ShLin-w,我们提升到两个著名的抽象ShLin-w。即,经典的Sharing X Lin抽象域和Andy King的更精确的ShLin-2抽象域。在单绑定取代的情况下,我们得到最佳的抽象统一算法,这样的域。出现在逻辑编程理论与实践(TPLP)中。