Imprompt: A Language Framework for Prompt Programming
Not on the map. Why?
Abstract (arXiv)
With the unprecedented success of Language Models (LMs), the science of Prompt Engineering has evolved the powerful idea of Prompt Programming, where prompts are treated as a programmable control surface for describing complex tasks and leveraging LM capabilities. However, existing prompt programming frameworks suffer from various complexities and inelegances, which make them hard to utilize in practice for effectively describing tasks. We propose Imprompt, a new language framework for the study and practice of prompt programming. We undertake a foundational investigation of prompt programming, and contend that prompt programs must contain only the task descriptions and must be decoupled from lower-level 'execution' details. We further develop this position by illustrating structured prompting as a combination of prompt programming and prompt program 'compilation'. We exemplify this view by formally defining two compilers for Imprompt programs. We then explore the idea of typing for prompt programs and draw a correspondence between type checking and constrained decoding. Finally, we implement our compilers and type checkers and evaluate them on a variety of case studies. We believe our work contributes programming-language foundations toward the emerging area of prompt programming.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 37 of its 57 references that are in the map. First posted on arXiv 13 Jul 2026.
Builds on
37 of 57 references.
References · 37
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
- 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applicationscited by 428
- 2021True Few-Shot Learning with Language Modelscited by 343
25 more
- 2022Large Language Models are Better Reasoners with Self-Verificationcited by 304
- 2017Lexically Constrained Decoding for Sequence Generation Using Grid Beam Searchcited by 234
- 2018Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translationcited by 181
- 2020NeuroLogic Decoding: (Un)supervised Neural Text Generation with Predicate Logic Constraintscited by 146
- 2024ProSA: Assessing and Understanding the Prompt Sensitivity of LLMscited by 145
- 2022Prompting Is Programming: A Query Language for Large Language Modelscited by 110
- 2024Let Me Speak Freely? A Study on the Impact of Format Restrictions on Performance of Large Language Modelscited by 90
- 2023Sequential Monte Carlo Steering of Large Language Models using Probabilistic Programscited by 79
- 2024SynCode: LLM Generation with Grammar Augmentationcited by 66
- 2020A Dataset for Statutory Reasoning in Tax Law Entailment and Question Answeringcited by 61
- 2025A Systematic Survey of Automatic Prompt Optimization Techniquescited by 61
- 2024Automata-based constraints for language model decodingcited by 49
- 2025Flexible and Efficient Grammar-Constrained Decodingcited by 42
- 2025CRANE: Reasoning with constrained LLM generationcited by 38
- 2022Validating Large Language Models with ReLMcited by 33
- 2024Symbolic Prompt Program Search: A Structure-Aware Approach to Efficient Compile-Time Prompt Optimizationcited by 29
- 2024IterGen: Iterative Semantic-aware Structured LLM Generation with Backtrackingcited by 28
- 2025From Prompts to Templates: A Systematic Prompt Template Analysis for Real-world LLMappscited by 19
- 2025Solving a Million-Step LLM Task with Zero Errorscited by 18
- 2025DINGO: Constrained Inference for Diffusion LLMscited by 15
- 2024PDL: A Declarative Prompt Programming Languagecited by 14
- 2025PromptPex: Automatic Test Generation for Language Model Promptscited by 9
- 2024APPL: A Prompt Programming Language for Harmonious Integration of Programs and Large Language Model Promptscited by 8
- 2024Opportunistically Parallel Lambda Calculuscited by 5
- 2025RefineStat: Efficient Exploration for Probabilistic Program Synthesiscited by 5
Built on by
Not cited yet.