License: arXiv.org perpetual non-exclusive license
arXiv:2606.11113v1 [cs.DC] 09 Jun 2026

A Neurosymbolic Prolog Skill for LLM-Driven Service Placement

Jacopo Massa, Giuseppe Bisicchia, Patrizio Dazzi, Antonio Brogi Corresponding author: jacopo.massa@di.unipi.it.
Abstract

Service placement in the cloud-edge continuum requires assigning application components to heterogeneous resources under multiple constraints, including latency, locality, and policy requirements. Existing approaches rely on optimisation models or heuristics that require explicit modelling, while neural methods lack transparency and formal guarantees. This work proposes a neuro-symbolic alternative based on a Prolog skill, a reusable interface for schema-constrained fact generation and querying, for constraint-aware placement. The skill enables a language model to structure placement intent into symbolic facts, rules, and queries, while delegating validation and reasoning to Prolog. This design bridges high-level intent and formal constraint evaluation, enabling inspectable and policy-aware placement decisions in cloud-edge environments.

I Introduction

Service placement in cloud-edge environments requires assigning application components to heterogeneous resources while satisfying constraints related to latency, locality, resource availability, and policy compliance. The compute continuum extends cloud computing towards fog and edge resources, enabling distributed execution across nodes with different capabilities and operational conditions [18, 16, 1, 2]. In this context, the combinatorial nature of the problem and the diversity of constraints make placement decisions increasingly complex.

Existing approaches follow three main directions. Optimisation-based methods provide formal guarantees but require explicit modelling and specialised expertise, while heuristic and learning-based approaches improve scalability at the cost of interpretability and robustness [4, 11]. Logic-based systems, such as those based on Prolog, offer declarative modelling and explainability, but require manual construction of knowledge bases.

Recent advances in language models enable a new direction, where natural language descriptions can be translated into structured representations suitable for symbolic reasoning. However, fully neural approaches lack guarantees, while hybrid approaches often keep the solver separate, leaving unresolved the gap between high-level intent and formal modelling.

This work proposes a Prolog-centric perspective, where symbolic reasoning constitutes the core decision mechanism. In particular, the goal is not to develop a new Prolog-based reasoner, but to define a reusable skill111The complete format specification is available at: https://agentskills.io that enables language models to interact with symbolic reasoning systems for placement tasks. A language model is used to structure placement intent into a symbolic representation, while Prolog performs validation, constraint reasoning, and explanation. The goal is to bridge the gap between high-level intent and formal reasoning in a transparent and inspectable way.

This work proposes the following main contributions:

  • a Prolog-based skill to enable language models to structure, validate, and reason over placement constraints,

  • the integration of symbolic guardrails for validating generated knowledge bases, and

  • an approach to explainable service placement based on constraint reasoning.

II Background and Related Work

II-A Service Placement

Service placement in the cloud-edge continuum is typically formulated as a constrained optimisation problem, mapping application components to heterogeneous resources under capacity, latency, and policy constraints [11, 1]. Existing approaches rely on optimisation, heuristics, or graph-based strategies tailored to specific goals and assumptions.

Optimisation-based formulations, such as Mixed-Integer Linear Programming, provide formal guarantees but require explicit modelling and are difficult to adapt to dynamic or intent-driven scenarios. Learning-based approaches, including reinforcement learning and graph-based scheduling, improve scalability but often lack transparency and robustness.

Recent work has explored more advanced formulations, such as graph partitioning and availability-aware placement that explicitly model service dependencies and infrastructure structure [8]. While improving QoS and scalability, these approaches still depend on explicit modelling and do not support high-level intent specification.

Declarative approaches address this limitation by modelling placement through logic. Prolog-based frameworks such as FogTorch enable constraint-based reasoning for IoT and fog deployments [4], later extended to continuous reasoning in distributed environments [6, 3]. A data-aware declarative formulation of placement in the cloud-IoT continuum has been proposed in prior work, encoding infrastructure, application, and data constraints as logical facts and rules [13]. More recent approaches combine declarative reasoning with optimisation techniques to improve scalability [14].

These approaches show the effectiveness of Prolog in modelling placement constraints and enabling explainable reasoning, but still rely on manually defined knowledge bases and do not translate high-level intent into formal models.

II-B Neuro-Symbolic Reasoning

Neuro-symbolic AI combines neural models with symbolic reasoning to improve correctness and interpretability [19]. Examples range from logic-programming frameworks such as DeepProbLog [12] to systems translating natural language into formal representations processed by symbolic solvers [10, 15, 20].

Recent work explores this paradigm in system-level contexts. Approaches such as OptiGuide show that language models can generate optimisation models from high-level descriptions [9], while other works integrate SMT solvers and structured reasoning pipelines. These studies consistently show that language models are effective at structuring problems but unreliable as standalone reasoners.

Neuro-symbolic approaches have also been applied to cloud and edge environments. Modular architectures combining neural and symbolic components have been proposed for general reasoning tasks [21], while constraint-based approaches combining language models with SMT solvers have been explored for structured reasoning problems [7]. More recent work investigates neuro-symbolic methods for intent-based service management, where language models map high-level intents to structured representations for symbolic components [5].

At the same time, deploying large language models in edge environments raises concerns related to latency, cost, and resource constraints, motivating the use of smaller models and lightweight reasoning strategies [17].

II-C Positioning of this Work

Declarative placement offers inspectable reasoning but requires manually specified models, while neuro-symbolic systems often address general reasoning rather than placement-specific constraints. This work connects the two by exposing Prolog as a skill: the language model structures placement intent, and Prolog validates representations, solves constraints, and explains outcomes through a shared symbolic layer.

III Proposed Methodology

This work proposes a Prolog skill for constraint-aware service placement. The skill separates intent grounding from reasoning: the language model populates a schema-constrained knowledge base, while Prolog validates, queries, and explains it. The envisioned workflow consists of three stages:

  1. 1.

    Schema mapping. The meta-schema declares

          schema(node, [nodeId]).    schema(service, [serviceId]).    schema(capacity, [nodeId, resource, integer]).    schema(requires, [serviceId, resource, integer]).    schema(latency, [nodeId, nodeId, integer]).    schema(place, [serviceId, nodeId]).        generated(node(edge1)).    generated(capacity(edge1, cpu, 8)).    generated(service(videoAnalytics)).    generated(requires(videoAnalytics, cpu, 4)).      the predicates that the language model may instantiate for infrastructure, services, and requested placements, separating the skill interface from request-specific facts.

  2. 2.

    Guardrail validation. Guardrails are Prolog rules, so syntax and semantic consistency are checked inside the same symbolic model.

        1   validFact(Fact) :-  2    Fact =.. [Predicate — Arguments],  3    schema(Predicate, Types),  4    same˙length(Arguments, Types),  5    wellTyped(Arguments, Types).      6   violation(unknownNode(Node)) :-  7    generated(capacity(Node, Resource, Capacity)),  8  \+ generated(node(Node)).      9   violation(lowCapacity(Service, Node, Resource)) :-  10    generated(place(Service, Node)),  11    generated(requires(Service, Resource, Required)),  12    generated(capacity(Node, Resource, Available)),  13    Required ¿ Available.      14   safeKnowledgeBase :-  15  \+ (generated(Fact), \+ validFact(Fact)),  16  \+ violation(Reason).      

  3. 3.

    Placement reasoning. After validation, placement queries reuse the same facts and expose violated predicates as explanations.

        17   admissibleHost(Service, Node) :-  18    safeKnowledgeBase,  19    generated(service(Service)),  20    generated(node(Node)),  21  \+ (generated(requires(Service, Resource, Required)),  22  \+ hasCapacity(Node, Resource, Required)).      23   hasCapacity(Node, Resource, Required) :-  24    generated(capacity(Node, Resource, Available)),  25    Available ¿= Required.      26   explainFailure(Service, Node, Reason) :-  27    generated(place(Service, Node)),  28    violation(Reason).      

The meta-schema can also evolve under Prolog control: proposed predicates are accepted only with a valid signature and guardrail. Overall, the skill exposes a compact symbolic layer where validation, reasoning, schema evolution, and explanation share the same representation.

IV Research Questions and Evaluation Plan

This work is currently at an early stage and focuses on assessing the feasibility and usefulness of a Prolog-centric neuro-symbolic approach to service placement. The evaluation is guided by four research questions, each directly associated with a specific assessment strategy.

  1. RQ1)

    (Expressiveness) Which classes of placement constraints can the Prolog schema capture without extension? Assessed by its ability to represent infrastructure properties, service requirements, and constraint types across representative deployments.

  2. RQ2)

    (Faithfulness) How faithfully can a language model map placement intent to symbolic representations? Assessed by matching generated and reference knowledge bases to detect missing or inconsistent constraints.

  3. RQ3)

    (Explainability) Which satisfied and violated constraints can be traced to explicit predicates? Assessed by analysing Prolog reasoning traces and their ability to expose satisfied and violated constraints.

  4. RQ4)

    (Orchestration utility) Under which orchestration conditions are the resulting placements usable as decision support? Assessed by evaluating their usability as decision support in realistic deployment scenarios.

A prototype will be developed consisting of a Prolog-based placement knowledge base and a language-model interface for intent grounding. The goal is to assess whether a Prolog skill can act as an effective intermediate layer between high-level placement intent and constraint-based deployment reasoning.

V Discussion and Outlook

This work proposes a Prolog-centric neuro-symbolic approach for service placement in the compute continuum. Its core contribution is a schema-constrained Prolog skill that maps placement intent to validated symbolic facts and queries. The proposed approach exposes Prolog as a skill that can be invoked by a language model to perform structured reasoning tasks for service placement.

Using Prolog as a unified layer for validation, reasoning, and explanation enables a consistent treatment of placement constraints. A shared symbolic representation is used throughout the workflow, reducing semantic mismatches and improving transparency, as decisions can be traced back to explicit facts and rules. Symbolic guardrails further support validation by encoding domain invariants within the reasoning model, although their effectiveness depends on constraint completeness and may introduce search overhead at scale.

A key aspect of the design is the separation between intent grounding and reasoning. The language model does not perform placement reasoning directly, but orchestrates the Prolog skill by generating structured symbolic representations and queries. Constraint evaluation is fully delegated to Prolog. This improves reliability compared to end-to-end neural approaches, but introduces a dependency on the correctness of the generated knowledge base, where missing or incorrect constraints may lead to unintended outcomes unless rejected by symbolic guardrails.

The approach focuses on feasibility and explanation rather than optimisation, which supports interpretability but may limit applicability in large-scale scenarios without optimisation backends or controlled schema extensions. Overall, the design highlights a trade-off between expressiveness, interpretability, and scalability, emphasising skill-based interaction between language models and symbolic reasoning as an alternative to fully neural decision-making.

Future work will focus on improving translation robustness, extending symbolic validation mechanisms, integrating optimisation capabilities, and evaluating the approach on larger and more realistic deployment scenarios.

Acknowledgment

This work has been partially funded by the NOUS (A catalyst for EuropeaN ClOUd Services in the era of data spaces, high-performance and edge computing) HORIZON-CL4-2023-DATA-01-02 project, G.A. n. 101135927.

\AtNextBibliography

References

  • [1] G. Bisicchia, S. Forti, A. Colla, and A. Brogi (2023) Customisable fault and performance monitoring across multiple clouds. In Proceedings of the 13th International Conference on Cloud Computing and Services Science, CLOSER 2023, pp. 212–219. External Links: Document Cited by: §I, §II-A.
  • [2] G. Bisicchia, S. Forti, A. Colla, C. Pisa, A. Barchiesi, and A. Brogi (2024) A distributed tool for monitoring and benchmarking a national federated cloud. Vol. 1845 CCIS, pp. 92 – 112. External Links: Document Cited by: §I.
  • [3] G. Bisicchia, S. Forti, E. Pimentel, and A. Brogi (2024) Continuous qos-compliant orchestration in the cloud-edge continuum. SPE 54 (11), pp. 2191–2213. External Links: Document Cited by: §II-A.
  • [4] A. Brogi and S. Forti (2017-10) QoS-aware Deployment of IoT Applications Through the Fog. IEEE IoT-J 4 (5). External Links: Document Cited by: §I, §II-A.
  • [5] L. Colombi, S. Cavicchi, F. Poltronieri, M. Tortonesi, C. Stefanelli, and P. Varga (2025) Investigating Neurosymbolic AI for Intent-based Service Management. In CNSM, External Links: Document Cited by: §II-B.
  • [6] S. Forti, G. Bisicchia, and A. Brogi (2022) Declarative continuous reasoning in the cloud-iot continuum. Journal of Logic and Computation 32 (2), pp. 206–232. Cited by: §II-A.
  • [7] Y. Hsia, F. Yu, and J. R. Jiang (2026) Neuro-Symbolic Compliance: Integrating LLMs and SMT Solvers for Automated Financial Legal Analysis. External Links: 2601.06181 Cited by: §II-B.
  • [8] I. Lera, C. Guerrero, and C. Juiz (2019) Availability-Aware Service Placement Policy in Fog Computing Based on Graph Partitions. IEEE IoT-J 6 (2). External Links: Document Cited by: §II-A.
  • [9] B. Li, K. Mellou, B. Zhang, J. Pathuri, and I. Menache (2023) Large Language Models for Supply Chain Optimization. External Links: 2307.03875 Cited by: §II-B.
  • [10] B. Liu, Y. Jiang, X. Zhang, Q. Liu, S. Zhang, J. Biswas, and P. Stone (2023) LLM+P: Empowering Large Language Models with Optimal Planning Proficiency. External Links: 2304.11477 Cited by: §II-B.
  • [11] R. Mahmud, R. Kotagiri, and R. Buyya (2018) Fog Computing: A Taxonomy, Survey and Future Directions. In IoE: Algorithms, Methodologies, Technologies and Perspectives, External Links: Document Cited by: §I, §II-A.
  • [12] R. Manhaeve, S. Dumancic, A. Kimmig, T. Demeester, and L. D. Raedt (2018) DeepProbLog: Neural Probabilistic Logic Programming. External Links: 1805.10872 Cited by: §II-B.
  • [13] J. Massa, S. Forti, and A. Brogi (2022) Data-Aware Service Placement in the Cloud-IoT Continuum. In Service-Oriented Computing, External Links: Document Cited by: §II-A.
  • [14] J. Massa, S. Forti, P. Dazzi, and A. Brogi (2026) Combining declarative and linear programming for application management in the cloud-edge continuum. FGCS 176. External Links: Document Cited by: §II-A.
  • [15] L. Pan, A. Albalak, X. Wang, and W. Y. Wang (2023) Logic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical Reasoning. External Links: 2305.12295 Cited by: §II-B.
  • [16] M. Satyanarayanan (2017) The Emergence of Edge Computing. Computer 50 (1). External Links: Document Cited by: §I.
  • [17] S. O. Semerikov et al. (2025) Edge Intelligence Unleashed: A Survey on Deploying Large Language Models in Resource-Constrained Environments. JEC 4 (2). External Links: Document Cited by: §II-B.
  • [18] W. Shi, J. Cao, Q. Zhang, Y. Li, and L. Xu (2016) Edge Computing: Vision and Challenges. IEEE IoT-J 3 (5). External Links: Document Cited by: §I.
  • [19] L. D. Smet and L. D. Raedt (2025) Defining neurosymbolic AI. External Links: 2507.11127 Cited by: §II-B.
  • [20] P. Song, K. Yang, and A. Anandkumar (2025) Lean Copilot: Large Language Models as Copilots for Theorem Proving in Lean. External Links: 2404.12534 Cited by: §II-B.
  • [21] M. van Bekkum, M. de Boer, F. van Harmelen, A. Meyer-Vitali, and A. ten Teije (2021) Modular Design Patterns for Hybrid Learning and Reasoning Systems: a taxonomy, patterns and use cases. External Links: 2102.11965 Cited by: §II-B.