The increasing integration of artificial intelligence into software development demands new approaches to harnessing the power of large language models, and researchers are now exploring ways to automate the process of instructing these models. Jayanaka L. Dantanarayana, Savini Kashmira, and colleagues at the University of Michigan and Jaseci Labs demonstrate a significant step forward with their work on Meaning Typed Programming, or MTP, and a novel technique called Semantic Engineering. This method moves beyond relying on static code to understand developer intent, instead allowing developers to directly embed contextual information into their programs, enriching the semantics available to the language model. The team’s approach, which incorporates these ‘Semantic Context Annotations’ into the Jac programming language, substantially improves the accuracy of automatically generated prompts, achieving results comparable to traditional, manual prompt engineering but with far less developer effort.
Meaning Types for AI Integrated Programming
This research introduces MTP, a new programming paradigm and runtime stack designed to seamlessly integrate Large Language Models (LLMs) into software development. The core challenge addressed is the difficulty of directly using LLMs in traditional programming, as their probabilistic nature lacks the guarantees of deterministic code, hindering correctness, maintainability, and scalability. MTP addresses these challenges with meaning types, which represent the semantic meaning of data rather than just its structure, constraining LLM interactions and ensuring outputs conform to expected meanings. MTP also provides meaningful abstractions, allowing developers to define task intent rather than specifying every step, with the runtime using LLMs to realize that intent while respecting the constraints imposed by the meaning types.
A scalable runtime stack manages LLM calls, caching, and error handling, further enhancing efficiency. Key features of MTP include deterministic control through meaning types, scalability and efficiency via the runtime stack, and improved maintainability through meaningful abstractions. The system integrates with existing Python code and optimizes costs by caching results and streamlining LLM calls. This work extends existing Meaning Typed Programming techniques by incorporating Semantic Context Annotations (SemTexts), a language-level mechanism that allows developers to embed natural language context directly into program constructs, augmenting code semantics with human-understandable instructions. This innovative technique integrates directly into the Jac programming language, extending MTP to incorporate enriched semantics during prompt generation. The research demonstrates that Semantic Engineering substantially improves prompt fidelity, achieving performance comparable to traditional Prompt Engineering, but with significantly less developer effort. The core of this breakthrough lies in Semantic Context Annotations (SemTexts), a mechanism that allows developers to embed natural language directly into program code, enriching its semantic meaning. Experiments demonstrate that SemTexts substantially improve prompt fidelity, achieving performance comparable to meticulously crafted prompts created through prompt engineering, but with significantly less developer effort. Specifically, the team observed performance improvements ranging from 1.
3x to 3x on complex benchmarks when using SemTexts with Meaning Typed Programming (MTP). In multiple instances, SemTexts matched or surpassed the accuracy of prompt engineering, while reducing the time and effort required from developers by nearly 3. 8x. The researchers introduced a new suite of AI-integrated benchmark applications, designed to more closely resemble real-world systems than existing benchmarks. These benchmarks cover areas such as tool use, multi-agent coordination, planning, and context-dependent workflows. The team developed Semantic Context Annotations (SemTexts), a mechanism allowing developers to embed natural language context directly within code, extending existing Meaning Typed Programming techniques. Evaluation across a newly designed benchmark suite demonstrates that SemTexts significantly improve prompt fidelity, achieving performance comparable to traditional Prompt Engineering while requiring substantially less developer effort. These results indicate that Semantic Engineering offers a practical and scalable path towards building reliable AI-Integrated applications with code that clearly reflects developer intent.
👉 More information
🗞 Prompt Less, Smile More: MTP with Semantic Engineering in Lieu of Prompt Engineering
🧠 ArXiv: https://arxiv.org/abs/2511.19427
