Prompt Less, Smile More: MTP with Semantic Engineering in Lieu of Prompt Engineering

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Dantanarayana, Jayanaka L., Kashmira, Savini, Nathees, Thakee, Zhang, Zichen, Flautner, Krisztian, Tang, Lingjia, Mars, Jason
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866908672117964800
author Dantanarayana, Jayanaka L.
Kashmira, Savini
Nathees, Thakee
Zhang, Zichen
Flautner, Krisztian
Tang, Lingjia
Mars, Jason
author_facet Dantanarayana, Jayanaka L.
Kashmira, Savini
Nathees, Thakee
Zhang, Zichen
Flautner, Krisztian
Tang, Lingjia
Mars, Jason
contents AI-Integrated programming is emerging as a foundational paradigm for building intelligent systems with large language models (LLMs). Recent approaches such as Meaning Typed Programming (MTP) automate prompt generation by leveraging the semantics already present in code. However, many real-world applications depend on contextual cues, developer intent, and domain-specific reasoning that extend beyond what static code semantics alone can express. To address this limitation, we introduce Semantic Engineering, a lightweight method for enriching program semantics so that LLM-based systems can more accurately reflect developer intent without requiring full manual prompt design. We present Semantic Context Annotations (SemTexts), a language-level mechanism that allows developers to embed natural-language context directly into program constructs. Integrated into the Jac programming language, Semantic Engineering extends MTP to incorporate these enriched semantics during prompt generation. We further introduce a benchmark suite designed to reflect realistic AI-Integrated application scenarios. Our evaluation shows that Semantic Engineering substantially improves prompt fidelity, achieving performance comparable to Prompt Engineering while requiring significantly less developer effort.
format Preprint
id arxiv_https___arxiv_org_abs_2511_19427
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Prompt Less, Smile More: MTP with Semantic Engineering in Lieu of Prompt Engineering
Dantanarayana, Jayanaka L.
Kashmira, Savini
Nathees, Thakee
Zhang, Zichen
Flautner, Krisztian
Tang, Lingjia
Mars, Jason
Software Engineering
Artificial Intelligence
AI-Integrated programming is emerging as a foundational paradigm for building intelligent systems with large language models (LLMs). Recent approaches such as Meaning Typed Programming (MTP) automate prompt generation by leveraging the semantics already present in code. However, many real-world applications depend on contextual cues, developer intent, and domain-specific reasoning that extend beyond what static code semantics alone can express. To address this limitation, we introduce Semantic Engineering, a lightweight method for enriching program semantics so that LLM-based systems can more accurately reflect developer intent without requiring full manual prompt design. We present Semantic Context Annotations (SemTexts), a language-level mechanism that allows developers to embed natural-language context directly into program constructs. Integrated into the Jac programming language, Semantic Engineering extends MTP to incorporate these enriched semantics during prompt generation. We further introduce a benchmark suite designed to reflect realistic AI-Integrated application scenarios. Our evaluation shows that Semantic Engineering substantially improves prompt fidelity, achieving performance comparable to Prompt Engineering while requiring significantly less developer effort.
title Prompt Less, Smile More: MTP with Semantic Engineering in Lieu of Prompt Engineering
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2511.19427