arXiv:2610.40161cs.AIOct 2026

Manuscript Offprint

arXiv:2610.40161

A Negotiation-Aware Hybrid LLM Framework for Intent Interpretation and Service Discovery

Wided Meflah, Hayet Brabra, Walid Gaaloul

Wided Meflah (⊗)^{(\otimes)}[0009-0007-9794-4356], Hayet Brabra [0000−0001−7484−2268]^{[0000-0001-7484-2268]}, and Walid Gaaloul [0000−0003−0451−532X]^{[0000-0003-0451-532X]}

SAMOVAR, Telecom SudParis, Institut Polytechnique de Paris, Palaiseau, France {wided.meflah, hayet.brabra, walid.gaaloul}@telecom-sudparis.eu

Abstract. Increasingly, users express their needs as natural-language intents rather than structured requests. These intents may be incomplete, high-level, or internally conflicting. A conflicting intent either violates fundamental properties of the cloud paradigm or states mutually inconsistent requirements. Classical composition approaches are designed for structured, low-level, and complete requests. They cannot interpret such intents, discover suitable services from provider catalogs, or negotiate conflicting requirements with users. To address this gap, we propose a negotiation-aware framework for intent interpretation and service discovery. The framework first refines the natural-language intent and dynamically detects conflicts. It then structures the intent into a provider-independent TOSCA template. For each specification, it retrieves candidate service offers through deterministic matching grounded in cloud provider offerings. Some conflicts arise during interpretation. Other requirements prove unsatisfiable during discovery. Both are resolved through iterative natural-language negotiation with the user. We evaluate the framework on 70 diverse intents against single-shot and enhanced-prompting baselines. It improves recall and F1 for both conflict detection and service discovery. It also eliminates hallucinated offers and resolves conflicts at a cost proportional to their number.

Keywords: Cloud Service Composition · Intent Interpretation · Service Discovery · Large Language Models · TOSCA.

1 Introduction

Modern cloud-native applications typically combine several autonomous services into a higher-value solution, a process known as service composition (SC) [1,2]. This process begins with request interpretation, which maps the user's request into a structured, provider-independent set of required services, followed by service discovery, which retrieves, from provider catalogs, the provider offers that fulfill the request, followed by service selection, which chooses the most appropriate offers among the discovered candidates, and finally code generation, which produces the composite service's executable code [3–5]. Classical SC approaches are designed for structured, low-level, and complete requests; however, non-expert users express their needs as free-form natural-language (NL) intents [3,6,7], which we refer to as NL requests throughout this paper. Such NL requests are typically high-level,

W. Meflah et al.

incomplete, and potentially conflicting. Consider an NL request asking to "store large volumes of data, and connect it locally to another component hosted in a different region." This request already exposes the difficulties of free-form requests. It is high-level: "store data" must be mapped to a service, e.g., a MySQL database. It is incomplete as it does not mention the compute resource (e.g., a virtual machine) needed to host that database. Finally, the request is conflicting. In the example, a local (L2) network connection between components located in different regions violates a fundamental limitation of the cloud paradigm, regardless of the provider chosen [8], since an L2 link needs a single broadcast domain while regions are interconnected only at L3 and cannot share one natively. We call this a cloud-paradigm conflict type. A different conflict type may arise as an inconsistency between two of the user's own requirements rather than a cloud-paradigm limitation, which we call a user-requirement conflict; for instance, when a component is required to scale automatically while also being pinned to a fixed IP address. Finally, even a request free of both conflict types may still prove unsatisfiable in practice, e.g., if no provider catalog actually offers the requested database engine in the specified region; we call this a discovery conflict, since it only surfaces during service discovery, once matching against real offerings is attempted. The abstraction, incompleteness, and conflicts that characterize such NL requests expose specific limitations in existing composition approaches. Methods based on NLP and supervised learning [9,10] rely on large labeled datasets, which restricts their applicability to free-form, previously unseen NL requests. LLM-based approaches [11,12] are typically prompted directly on the request; however, prior work [3] shows that this strategy is insufficient, as LLMs omit high-level and implicit requirements, and hallucinate non-existent services. Embedding the full catalog in the prompt [12] mitigates hallucination but does not scale, since the token cost grows with the size of the service catalog. Retrieval-augmented (RAG) approaches [13] bound this cost, yet they return services that are textually similar to the request rather than provably compliant with its exact requirement values, a limitation we confirm empirically in Sect. 7.

Overcoming these limitations requires two fundamentally different capabilities. Interpreting a high-level, incomplete, or conflicting request requires contextual reasoning, a generative task best suited to LLMs, which interpret the request into a structured, provider-independent request. Discovery, in contrast, requires an exact, binary decision over well-defined requirement values, and is therefore best suited to deterministic matching, which guarantees that returned offers are provably compliant and free of hallucination. When conflicts arise, rather than rejecting the request or returning the nearest approximate match, our solution proposes relaxations of the conflicting constraints and presents these options to the user, who selects the best fit through NL interaction. For the L2 connection above, for example, it might propose replacing it with an L3 connection or co-locating the two components in the same region. We therefore propose a negotiation-aware framework that combines three complementary mechanisms. First, an enhanced LLM refines the request, and a specialized LLM structures it as a TOSCA [14] template, a provider-independent standard for describing cloud applications, well suited to the interpretation step. Second, a deterministic algorithm performs discovery against the provider catalogs using this template. Third, a shared LLM-based mechanism resolves conflicts through negotiation with the user, both during interpretation and during discovery. Overall, we extend the two traditional SC steps, interpretation and discovery. We enrich interpretation with a refinement that reformulates high-level requests and completes incomplete ones, and we enrich both steps with conflict detection, which identifies unsatisfiable sets of constraints, conflict relaxation, which proposes minimal adjustments that restore satisfiability, and NL negotiation, through which the user chooses among these adjustments. Our contributions are as follows. (i) We extend request interpretation with refinement and dynamic detection of conflicts over both functional and non-functional requirements, covering cloud-paradigm and user-requirement conflict types, on a provider-independent structured representation. (ii) We address discovery with an algorithm that performs binary compliance checks against the actual catalogs, eliminating hallucinated offers and explicitly exposing unsatisfiable requirements. (iii) We design a single conflict relaxation and negotiation mechanism, reused across both the interpretation and discovery phases, that relaxes and negotiates every detected conflict or unsatisfiable requirement with the user. (iv) We evaluate the framework on 70 diverse NL requests against single-shot and enhanced-prompting baselines, showing improved recall and F1 for both conflict detection and discovery, zero hallucination, and relaxation at a cost proportional to the number of conflicts.

References (28)