Devices and methods for implementing a machine learning model in a mobile network

By tracking and storing prompt-response pairs with unique fingerprints and model seeds, the solution addresses the lack of integrity and traceability in mobile networks, ensuring reliable and accountable AI model deployment and performance monitoring.

WO2026243311A1PCT designated stage Publication Date: 2026-11-26HUAWEI TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/EP2025/063884
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Current mobile networks lack mechanisms for tracking and maintaining the integrity and traceability of machine learning models, particularly in dynamic environments, and do not adequately support model fingerprinting, logging, and integrity verification, which affects the trustworthiness and reliability of deployed AI models.

Method used

Implementing a network entity and repository entity that track and store prompt-response pairs, along with unique fingerprints and model seeds, to ensure the reliability and reproducibility of machine learning models, enabling continuous performance monitoring and troubleshooting.

Benefits of technology

Enhances the trustworthiness and reliability of machine learning models by ensuring proper functionality, accountability, and efficient troubleshooting, allowing for ongoing improvements based on real-world usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2025063884_26112026_PF_FP_ABST
    Figure EP2025063884_26112026_PF_FP_ABST
Patent Text Reader

Abstract

A network entity (110) implementing a machine learning, ML, model in a mobile network (100) and a network repository entity (130) for storing data associated with the ML model are disclosed. The network entity (110) receives model inputs from a further network entity (120) of the mobile network (100) and provides model outputs generated by the ML model based on the model inputs to the further network entity (120), the ML model being implemented by the network entity (110) based on model parameters. In response to receiving a result indicative of a quality measure of the model outputs from the further network entity (120), the network entity (110) provides the model inputs, the model outputs, the model parameters and the result to the network repository entity (130) for storing the model inputs, the model outputs, the model parameters and the result in the network repository entity (130).
Need to check novelty before this filing date? Find Prior Art

Description

[0001] DEVICES AND METHODS FOR IMPLEMENTING A MACHINE LEARNING MODEL IN A MOBILE NETWORK

[0002] TECHNICAL FIELD

[0003] The present disclosure relates to wireless communications and machine learning technology. More specifically, the present disclosure relates to devices and methods for implementing a machine learning model in a mobile network, in particular a 3GPP network.

[0004] BACKGROUND

[0005] Artificial intelligence (Al) is envisioned to be incorporated deeply into mobile networks in the future. For instance, an Al model may be implemented in a core network of a wireless communication system and connected to the service-based architecture (SBA) or any other similar service-based bus, so that any network functions (NF) can interact with the Al model seamlessly. When a network function needs assistance or support from the Al model, the network function may send a request or prompt containing clear instructions and relevant data. In response, the Al model may process the input and return an appropriate answer to fulfill the request. To achieve various functionalities, such as network optimization, anomaly detection and resource planning, different standard prompts are available for retrieving correct data from the Al model.

[0006] However, implementation of an Al model into mobile networks faces several challenges. First of all, when an operator deploys a new Al model in a mobile network, a key challenge is determining the trustworthiness and reliability of the model’s outputs. The operator must ensure that the Al model functions properly and does not introduce errors or unexpected behavior into the network. One possible approach to achieve this without immediate risks is to initially run the Al model in isolation. This approach is commonly known as sandboxing. By running the Al model in a controlled test environment, the operator can assess its behavior over time. During this test phase, prompt-response pairs should be stored together to analyze and evaluate the model’s consistency and accuracy. Once testing is complete, the Al model may be deployed into a live network. After deployment, it is essential for the operator to continuously track the performance and effectiveness of the deployed Al model, in order to ensure proper functionality of the Al model and to support ongoing improvements of the Al model based on its real- world usage.

[0007] However, current mobile networks lack mechanisms for such tracking. In particular, conventional 5G network systems do not adequately handle or store prompt-response pairs for Al models. They also offer limited capabilities for storing and retrieving this type of data.

[0008] Another critical challenge for Al-driven networks is how to track and maintain the integrity and traceability of the Al models once they have been deployed. In dynamic network environments, Al models may evolve due to updates, optimizations, or unforeseen changes. Currently, most systems rely on a model ID for tracking, but this approach lacks detailed visibility into what changes have occurred within the model itself. One important aspect of this technical challenge is that an Al model can be so large that the management system may be unable to detect if a part of the model has been changed. Furthermore, an Al model can be composed of smaller models or layers, and using a single model ID does not adequately represent the underlying structure of the model. Currently, there are no effective mechanisms to achieve this in mobile networks. In particular, conventional 5G networks do not properly support model tracing or integrity verification. Moreover, such networks lack support for direct tracking of different models and potential model changes over time. This limitation may impact the ability to track and maintain trustworthiness of the Al models deployed in mobile networks.SUMMARY

[0009] It is an objective of the present disclosure to provide improved devices and methods for implementing a machine learning model in a mobile network.

[0010] The foregoing and other objectives are achieved by the subject matter of the independent claims. Further implementation forms are apparent from the dependent claims, the description and the figures. In the following one or more of the following acronyms and abbreviations may be used:

[0011] AI Artificial intelligence

[0012] UE User equipment

[0013] SMF Session management function

[0014] NF Network function

[0015] NRF Network repository function

[0016] NWDAF Network data analytics function

[0017] LLM Large language model

[0018] ADRF Analytics data repository function

[0019] OAM Operations, administration and maintenance

[0020] Conventional network systems rely on mechanisms that do not track specific Al model logs in the network. Furthermore, in current 5G network systems the Al model logging is not considered yet. The issue of model tracking will become increasingly critical with the massive development of Al models and their integration into a communication network in the future. In addition, current mobile system mechanisms primarily rely on logging key performance indicators (KPIs) related to model execution, such as execution time, accuracy and other performance-related parameters at the OAM level.

[0021] In contrast to the prior art, the present disclosure enables enhanced integration of Al models into the core network, particularly within future wireless communication systems. The present disclosure provides novel mechanisms for logging of the inputs and outputs in the context of Al performance and effectiveness in the core network. In the context of LLM-based Al models, outputs are text-based and can differ even when generated from the same input, which conflicts with conventional OAM logging procedures. These new challenges are addressed by the present disclosure.

[0022] Most of the current network systems focus on defining procedures for Al model provision and how it can be used. Moreover, the services provided by the network data analytics function (NWDAF) of a network system mainly focuses on analytics collection from other network functions and how to trigger event subscription, analytics information, data management, model provisioning and etc. Therefore, there exists no mechanism for model fingerprinting and tracking as well as no model tracking and logging for the purpose of running an Al model in a sandbox or in a real network and logging its input-output pairs.

[0023] The main disadvantage of the current network systems is that there are no mechanisms to track and control running of Al models in the network. In current NWDAF inference procedures, the model inputs and outputs are discarded. It is worth mentioning that the NWDAF in the current network systems does track the model accuracy. However, this is irrelevant to the solution provided by the present disclosure which specifies how to provision an Al model and track its usage by different network functions.The present disclosure provides mechanisms to calculate layer- wise fingerprint as well as to track the seed used and the model ID, such that different outputs generated from the same input can be tracked. It should be noted that for large Al models and LLMs the accuracy does not provide much information, as it results from a probability distribution with highest probability tokens chosen. Instead, it is more critical to track output of the models and check if this output has yielded correct results. This is the difference between tracking model accuracy at the semantic versus effectiveness level. In summary, the present disclosure allows tracking if an Al model achieves what it is supposed to do using feedback from the request NF consumer while the prior art systems track the model prediction accuracy in regard to some ground truth.

[0024] More specifically, according to a first aspect a network entity for implementing a machine learning, ML, model in a mobile network is provided. The network entity is configured to receive one or more ML model inputs from a further network entity of the mobile network and to provide one or more ML model outputs generated by the ML model based on the one or more ML model inputs to the further network entity. The ML model is implemented by the network entity based on one or more ML model parameters. In response to receiving a result indicative of a quality measure of the one or more ML model outputs from the further network entity, the network entity is configured to provide the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result to a network repository entity for storing the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result in the network repository entity.

[0025] The network entity according to the first aspect enables the tracking and storage of prompt-response pairs generated by the ML model, i.e. by storing the one or more ML model inputs and the one or more ML model outputs in the network repository entity. The stored ML model inputs (i.e. prompt) and outputs (i.e. response) can be used for evaluating the model’s consistency and accuracy. Continuously tracking the performance and effectiveness of the deployed ML model ensures proper functionality of the ML model and supports ongoing improvements of the Al model based on its usage. The ML model can operate within defined parameters while maintaining efficiency and reliability. This allows enhanced integration of a ML model into a mobile network, in particular within future wireless communication systems.

[0026] In a further possible implementation form, for implementing the ML model, the network entity is configured to receive the ML model from a network management entity together with a unique fingerprint of the ML model, and the network entity is configured to provide the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result together with the unique fingerprint of the ML model to the network repository entity for storing the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result together with the unique fingerprint of the ML model in the network repository entity. The unique fingerprint of the ML model ensures unique identification of the ML-generated outputs. This allows tracking usage of the ML model in the mobile network for the purpose of troubleshooting, general information tracking and / or billing, thus ensuring trustworthiness of the model and hindering tampering and intrusion.

[0027] In a further possible implementation form, the ML model comprises a plurality of processing layers including a plurality of weights, and the unique fingerprint of the ML model is based on a plurality of hash values. Each hash value is based on one of the plurality of processing layers. This allows tracking usage of the ML model deployed in the mobile network efficiently and enables ongoing improvements of the Al model based on its real- world usage.

[0028] In a further possible implementation form, the network entity is configured to determine a further unique fingerprint of the ML model based on the ML model and to compare the unique fingerprint of the ML model provided by the networkmanagement entity with the further unique fingerprint of the ML model for verifying the ML model implemented by the network entity. This ensures the trustworthiness of the implemented ML model.

[0029] In a further possible implementation form, the network entity is configured to receive the one or more ML model inputs from the further network entity together with a request ID, a further network entity ID, an ML model ID, and / or an ML model seed value. The network entity is configured to provide the one or more ML model inputs and the one or more ML model outputs together with the request ID, the further network entity ID, the ML model ID, and / or the ML model seed value to the network repository entity for storing the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result together with the request ID, the further network entity ID, the ML model ID, and / or the ML model seed value in the network repository entity. The model seed tracking allows for reproducibility and traceability of model behavior over time. This allows troubleshooting and fine tuning the ML model on real network usage, which enables traceability of the ML model outputs (i.e. responses) and how the outputs were generated. The network entity may use the stored seed and ML model inputs to reproduce the exact ML model response when needed.

[0030] In a further possible implementation form, the network entity is configured to receive the ML model ID from a network management entity. This allows tracking usage of the ML model deployed in the mobile network efficiently and enables ongoing improvements of the Al model based on its real- world usage.

[0031] In a further possible implementation form, the network entity is a network data analytics function, NWDAF, of the mobile network, the further network entity is a network function of the mobile network, and / or the network repository entity is an analytics data repository function, ADRF. This allows enhanced integration of a ML model into a mobile network, in particular a 5G network. However, the ML model can also be implemented into a mobile network within a future wireless communication system.

[0032] In a further possible implementation form, the ML model comprises a Large Language Model, LLM. This allows the ML model to process complex requests and / or multiple requests efficiently and improves the trustworthiness and reliability of the model’s outputs.

[0033] According to a second aspect, a method of operating a network entity for implementing a machine learning, ML, model in a mobile network is provided. The method comprises the steps of:

[0034] receiving one or more ML model inputs from a further network entity of the mobile network;

[0035] providing one or more ML model outputs generated by the ML model based on the one or more ML model inputs to the further network entity, wherein the ML model is implemented by the network entity based on one or more ML model parameters; and

[0036] in response to receiving a result indicative of a quality measure of the one or more ML model outputs from the further network entity, providing the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result to a network repository entity for storing the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result in the network repository entity.

[0037] The method according to the second aspect of the present disclosure can be performed by the network entity according to the first aspect of the present disclosure. Thus, further features of the method according to the second aspect of the present disclosure result directly from the functionality of the network entity according to the first aspect of the present disclosure as well as its different implementation forms and embodiments described above and below.According to a third aspect, a network repository entity for storing data associated with a machine learning, ML, model in a mobile network is provided. The network repository entity is configured to receive from a network entity implementing an ML model based on one or more ML model parameters, one or more ML model inputs provided by a further network entity of the mobile network, one or more ML model outputs generated by the ML model based on the one or more ML model inputs, the one or more ML model parameters and a result indicative of a quality measure of the one or more ML model outputs; and store the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result.

[0038] The repository network entity according to the third aspect enables the tracking and storage of prompt-response pairs generated by the ML model, i.e. by storing the one or more ML model inputs and the one or more ML model outputs. The stored ML model inputs (i.e. prompt) and outputs (i.e. response) can be used for evaluating the model’s consistency and accuracy. Continuously tracking the performance and effectiveness of the deployed ML model ensures proper functionality of the ML model and supports ongoing improvements of the Al model based on its usage. This allows enhanced integration of a ML model into a mobile network, in particular within a future wireless communication system.

[0039] In a further possible implementation form, the network repository entity is configured to receive the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result together with a unique fingerprint of the ML model and to store the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result together with the unique fingerprint of the ML model. The unique fingerprint of the ML model ensures unique identification of the ML-generated outputs. This allows tracking usage of the ML model in the mobile network for the purpose of troubleshooting, general information tracking and / or billing, thus ensuring trustworthiness of the model and hindering tampering and intrusion.

[0040] In a further possible implementation form, the ML model comprises a plurality of processing layers including a plurality of weights and the unique fingerprint of the ML model is based on a plurality of hash values and each hash value is based on one of the plurality of processing layers. This allows tracking usage of the ML model deployed in the mobile network efficiently and enables ongoing improvements of the Al model based on its real- world usage.

[0041] In a further possible implementation form, the ML model comprises a Large Language Model, LLM. This allows the ML model to process complex requests and / or multiple requests efficiently and improves the trustworthiness and reliability of the model’s outputs.

[0042] In a further possible implementation form, the network repository entity is configured to receive the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result together with a request ID, a further network entity ID, an ML model ID, and / or an ML model seed value and to store the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result together with the request ID, the further network entity ID, the ML model ID, and / or the ML model seed value. The model seed tracking allows for reproducibility and traceability of model behavior over time. This allows troubleshooting and fine tuning the ML model on real network usage, which enables traceability of the ML model outputs (i.e. responses) and how the outputs were generated. The network entity may use the stored seed and ML model input to reproduce the exact ML model response when needed.

[0043] In a further possible implementation form, the network entity is a network data analytics function, NWDAF, of the mobile network and / or the network repository entity is an Analytics Data Repository Function, ADRF, of the mobile network. Thisallows enhanced integration of a ML model into a mobile network, in particular a 5G network. However, the ML model can also be implemented into a mobile network within a future wireless communication system.

[0044] In a further possible implementation form, in response to a request from a network management entity, the network repository entity is configured to provide the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and / or the result to the network management entity. This allows troubleshooting the ML model or further processing to analyze the root cause of any issue and tracking the performance and effectiveness of the ML model.

[0045] In a further possible implementation form, the network repository entity is configured to provide the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and / or the result to the network entity for fine tuning the ML model implemented by the network entity. This allows fine tuning the ML model on real network usage, which enables traceability of the ML model outputs and how these outputs were generated.

[0046] According to a fourth aspect, a method is provided for operating a network repository entity for storing data associated with a machine learning, ML, model in a mobile network. The method comprises the steps of:

[0047] receiving from a network entity implementing an ML model based on one or more ML model parameters, one or more ML model inputs provided by a further network entity of the mobile network, one or more ML model outputs generated by the ML model based on the one or more ML model inputs, the one or more ML model parameters and a result indicative of a quality measure of the one or more ML model outputs; and

[0048] storing the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result.

[0049] The method according to the fourth aspect of the present disclosure can be performed by the network repository entity according to the third aspect of the present disclosure. Thus, further features of the method according to the fourth aspect of the present disclosure result directly from the functionality of the network repository entity according to the third aspect of the present disclosure as well as its different implementation forms and embodiments described above and below.

[0050] According to a fifth aspect, a computer program product comprising a computer-readable storage medium is provided for storing program code which causes a computer or a processor to perform the method according to the second aspect, when the program code is executed by the computer or the processor.

[0051] According to a sixth aspect, a computer program product comprising a computer-readable storage medium is provided for storing program code which causes a computer or a processor to perform the method according to the fourth aspect, when the program code is executed by the computer or the processor.

[0052] Details of one or more embodiments are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description, drawings, and claims.

[0053] BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In the following, embodiments of the present disclosure are described in more detail with reference to the attached figures and drawings, in which:Figure 1 shows a schematic diagram illustrating a network entity and a network repository entity according to an example for implementing a machine learning model in a mobile network;

[0055] Figure 2 shows a schematic diagram illustrating a future mobile network implemented with an Al model according to an example;

[0056] Figure 3 shows a schematic diagram illustrating a process for generating fingerprint of a ML model according to an example;

[0057] Figure 4 shows an exemplary table structure for storing data related to an ML model in a network repository entity according to an example;

[0058] Figure 5 shows a schematic diagram illustrating implementation of an ML model within a mobile network according to an example;

[0059] Figure 6 shows a schematic diagram illustrating a process of enhancing model provisioning information for implementing a ML model in a mobile network according to an example;

[0060] Figure 7 shows a schematic diagram illustrating a process of logging the data associated with an ML model implemented in a mobile network according to an example;

[0061] Figure 8 shows a flow diagram illustrating a method of operating a network entity according to an example for implementing a machine learning model in a mobile network;

[0062] Figure 9 shows a flow diagram illustrating a method according to an example for operating a network repository entity; and

[0063] Figure 10 shows a schematic diagram illustrating a computing system comprising a computer-readable storage medium in connection with a computer or a processor.

[0064] In the following, identical reference signs refer to identical or at least functionally equivalent features.

[0065] DETAILED DESCRIPTION OF THE EMBODIMENTS

[0066] In the following description, reference is made to the accompanying figures, which form part of the disclosure, and which show, by way of illustration, specific aspects of embodiments of the present disclosure or specific aspects in which embodiments of the present disclosure may be used. It is understood that embodiments of the present disclosure may be used in other aspects and comprise structural or logical changes not depicted in the figures. The following detailed description, therefore, is not to be taken in a limiting sense, and the scope of the present disclosure is defined by the appended claims.

[0067] For instance, it is to be understood that a disclosure in connection with a described method may also hold true for a corresponding device or system configured to perform the method and vice versa. For example, if one or a plurality of specific method steps are described, a corresponding device may include one or a plurality of units, e.g. functional units, to perform the described one or plurality of method steps (e.g. one unit performing the one or plurality of steps, or a plurality of units each performing one or more of the plurality of steps), even if such one or more units are not explicitly described or illustrated in the figures. On the other hand, for example, if a specific apparatus is described based on one or a plurality ofunits, e.g. functional units, a corresponding method may include one step to perform the functionality of the one or plurality of units (e.g. one step performing the functionality of the one or plurality of units, or a plurality of steps each performing the functionality of one or more of the plurality of units), even if such one or plurality of steps are not explicitly described or illustrated in the figures. Further, it is understood that the features of the various exemplary embodiments and / or aspects described herein may be combined with each other, unless specifically noted otherwise.

[0068] Figure 1 shows a mobile network system 100 comprising a network entity 110 according to an example in communication with a further network entity 120 and a network repository entity 130 according to an example. In a further example, the network entity 110 may be a network data analytics function (NWDAF) of the mobile network, the further network entity 120 may be a network function of the mobile network, and / or the network repository entity 130 may be an analytics data repository function (ADRF) of the mobile network.

[0069] The network entity 110 is configured to receive one or more ML model inputs from the further network entity 120 and to provide one or more ML model outputs generated by the ML model based on the one or more ML model inputs to the further network entity 120. In response to receiving a result indicative of a quality measure of the one or more ML model outputs from the further network entity 120, the network entity 110 is configured to provide the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result to the network repository entity 130 for storing the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result in the network repository entity 130.

[0070] In one embodiment, the one or more ML model inputs and outputs function as prompt-response pairs, as shown in figure 2, which illustrates a future mobile network system 200 deployed with an ML model. As depicted in figure 2, the network functions 120, NF1 and NF2, may send prompts, i.e. ML model inputs, to the network entity 110 that implements the ML model. The network entity 110 is configured to provide responses, i.e. ML model outputs, generated by the ML model based on the received prompts to the network functions 120, NF1 and NF2, respectively.

[0071] According to a further embodiment, the network entity 110 is configured to receive the one or more ML model inputs from the further network entity 120 together with a request ID, a further network entity ID, an ML model ID, and / or an ML model seed value. The network entity 110 is configured to provide the one or more ML model inputs and the one or more ML model outputs together with the request ID, the further network entity ID, the ML model ID, and / or the ML model seed value to the network repository entity 130 for storing the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result together with the request ID, the further network entity ID, the ML model ID, and / or the ML model seed value in the network repository entity 130.

[0072] As illustrated in figure 1, the mobile network system 100 further comprises a network management entity 140 and a model repository 150. The network management entity 140 may be responsible for operations, administration, and maintenance (OAM) of the mobile network. According to an example, the network management entity 140 is configured to retrieve the ML model with a unique fingerprint by sending a request to the model repository 150, which will be described in more detail in the following figure 3. For implementing the ML model, the network entity 110 is configured to receive the ML model from the network management entity 140 together with a unique fingerprint of the ML model, and the network entity 110 is configured to provide the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result together with the unique fingerprint of the ML model to the network repository entity 130 for storing the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result together with the unique fingerprint of the ML model in the network repository entity 130.In an example, the network entity 110 is configured to determine a further unique fingerprint of the ML model based on the ML model and to compare the unique fingerprint of the ML model provided by the network management entity 140 with the further unique fingerprint of the ML model for verifying the ML model implemented by the network entity 110. In a further example, the management entity 140 or the network entity 110 is configured to recalculate the hash for each layer of the deployed ML model in order to validate its integrity. If any change of the ML model is detected, the ML model will be immediately removed. This ensures the trustworthiness of the deployed ML model.

[0073] In an example, in response to a request from the network management entity 140, the network repository entity 130 is configured to provide the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and / or the result to the network management entity 140. In a further example, the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and / or the result can be used for fine tuning the ML model implemented by the network entity 110.

[0074] In a further example, the ML model may comprise a Large Language Model (LLM) and is implemented by the network entity 110 based on one or more ML model parameters. In a further example, the ML model comprises a plurality of processing layers including a plurality of weights, and the unique fingerprint of the ML model is based on a plurality of hash values. Each hash value is based on one of the plurality of processing layers.

[0075] As will be described in more detail below, implementation of the ML model in the mobile network 100 may consist of three distinct phases according to an example. Firstly, “an initialization phase” involves setting up the ML model, defining control parameters, and configuring the core network to track the ML model. Secondly, during “a usage phase”, the ML model operates within the mobile network, generating prompt-response pairs and a result indicative of a quality measure of the response that are continuously tracked and stored in the network repository entity 130, e.g. an analytics data repository function (ADRF). The prompt comprises one or more ML model inputs and the response comprises one or more ML model outputs. Thirdly, during “a replay / retrieval phase”, stored data related to the ML model can be accessed and analyzed for verification, debugging and / or optimization purposes as well as for fine-tuning the ML model.

[0076] To effectively track the prompt-response pairs of the ML model in the mobile network, specific techniques such as fingerprinting and model seed tracking are implemented according to an embodiment. Fingerprinting ensures unique identification of ML-generated outputs, while model seed tracking allows for reproducibility and traceability of model behavior over time. By implementing these techniques, a structured and controlled approach is realized to deploy the ML model in the mobile network, ensuring accountability, reliability, and enhanced performance monitoring of the ML model.

[0077] In the context of 5G networks, ML models can be deployed in the so-called network data analytics function (NWDAF). However, any other location for deployment of the ML models within a mobile network may be possible. Especially in a communication network in the future, a new network function may be deployed to host ML models.

[0078] In the following, the aforementioned three phases for implementation of an ML model in the mobile network 100 will be described in more detail.

[0079] According to an example, the following steps are performed during the “initialization phase” to retrieve the ML model with a specific, unique fingerprint and to deploy the ML model into the network entity 110 (e.g. NWDAF) within the mobile network 100: First of all, the ML model is retrieved using its unique model fingerprint. This fingerprint ensures that themodel type and function are accurately tracked. Secondly, the ML model along with its fingerprint is deployed into the NWDAF. This step guarantees that the correct model is used for the intended function. Finally, a confirmation of the deployment is performed to verify that the ML model has been successfully integrated into the NWDAF. This confirmation ensures that the ML model is properly registered and ready for use.

[0080] Figure 3 shows a schematic diagram illustrating a process 300 for generating the fingerprint of a ML model according to an example. The ML model may be a Large Language Model (LLM). According to this example, the network management entity 140 is first configured to retrieve the ML model with a unique fingerprint by sending a request to the model repository 150 for the ML model with a unique fingerprint. The network management entity 140 may be the operations, administration, and maintenance (OAM) in the mobile network 100.

[0081] Upon receipt of the request from the network management entity 140, the model repository 150 is configured to perform the following steps:

[0082] 1 ) retrieving the model;

[0083] 2) extracting information related to the model, such as the type, name and purpose of the model;

[0084] 3) extracting layer information, e.g. weights and biases for each layer;

[0085] 4) calculating statistical information about each layer, e.g. standard deviation, mean;

[0086] 5) combining both information into one dictionary;

[0087] 6) calculating a hash for each layer;

[0088] 7) getting a list of hashes per layer;

[0089] 8) combining the hashes;

[0090] 9) calculating a final hash for all layer hashes; and

[0091] 10) sending the model along with the fingerprint, i.e. the final hash, to the network management entity 140.

[0092] It is noted that the above steps 3) to 6) are performed by the model repository 150 in a loop for each layer of the ML model. It is further noted that use of a layer-based mechanism allows tracking large, complex ML models that may be made of smaller parts or sublayers. The unique fingerprint of a ML model will be the base for identifying the ML model and tracking the usage of the ML model in the mobile network.

[0093] In an embodiment, the network management entity 140 and / or the network entity 110 (e.g., NWDAF) are configured to recalculate the hash for each layer of the deployed ML model in order to validate its integrity. If any change of the ML model is detected, the ML model is immediately removed. This ensures the trustworthiness of the deployed ML model.

[0094] According to a further example, during the “usage phase” for implementation of the ML model, the network entity 110, e.g. NWDAF, is configured to store the ML model inputs and outputs with every usage of the ML model in the network repository entity 130 and associate the ML model inputs and outputs with critical information about the ML model, such as a request ID, a NF ID, a prompt, a hash, an ML model ID, an ML model seed and a result. When the further network entity 120 has a trigger to use the ML model, the further network entity 120 sends ML model inputs, e.g. a request comprising the prompt, hash, ML model ID, and ML model seed to the network entity 110. The ML model then processes ML model inputs and generates ML model outputs, e.g. a response. After generation of the ML model outputs, i.e. the response, the network entity 110 sends the response back to the further network entity 120. Subsequently, the further network entity 120 forwards a result to the network entity 110, indicating whether the intention or the request has been successfully achieved. Upon receiving the result, the network entity 110 stores the complete transaction — including the request ID, the NF ID, the prompt, the hash, the ML model ID, the ML model seed, and the result — into the network repository entity 130. Finally, the networkrepository entity 130 securely stores the ML model inputs and outputs, the metadata associated with the ML model request along with the result.

[0095] In an embodiment, the result sent by the further network entity 120 indicates a quality measure of the one or more ML model 5 outputs, i.e. the response, provided by the network entity 110. In this manner, the further network entity 120 is able to indicate whether the request from the further network entity 120 has been successfully achieved or not. Examples of the content of a result can be found in the following table. As shown in the table (referred to as “final result”), the result may comprise a message indicative of success (“OK”) or non-success (“Not OK”) and / or a quality measure value, such as 0.2, 0.6, 0.8 or 0.9 (in comparison with the maximum quality measure value being 1.0).

[0096] 0

[0097] In an example, the following table shows an exemplary database structure for storing the metadata associated with the ML model in the network repository entity 130, including the request ID, the NF ID, the prompt, the hash, the ML model ID, the ML fingerprint, the ML model seed and the result, as mentioned above.

[0098] 5

[0099] "

[0100] "

[0101] "

[0102] "

[0103] " "

[0104] " "

[0105] "

[0106] "

[0107] " " "

[0108] "

[0109] " " "

[0110] "

[0111] " "

[0112]

[0113] According to a further example, during the “reply / retrieval phase” for implementation of the ML model, an entity can request previous data about interactions with the ML model for troubleshooting or root cause analysis. For instance, a network function (NF) or the OAM can request a replay of past interactions by specifying some query information such as a request ID, a NF identifier, a prompt, a hash, an ML model ID and an ML model seed. This request may include one or multiple possible interactions. Upon receiving the request, the ADRF retrieves and returns the relevant query results. The network function or the OAM can then use the data for the purpose of troubleshooting or further data processing to analyze the root cause of any issues, track the performance and effectiveness of the ML model, and / or perform fine-tuning of the ML model.

[0114] Figure 4 shows an exemplary table structure 400 according to an embodiment for storing data related to the ML model, such as the model usage information and metadata in the network repository entity 130. The network repository entity 130 may be an analytics data repository function (ADRF).

[0115] In order to retrieve the stored data, e.g. the ML model usage information and metadata, from the analytics data repository function (ADRF), some database access schemes may be used. According to an example, structured query language (SQL) that is often employed in handling of structured data may be used for requesting various information from the ADRF. Some exemplary SQL queries for requesting various information from the ADRF are shown below:

[0116] SELECT prompt, final_result FROM ai_model_requests WHERE nf_instance = 'nl'-udp-01 O':

[0117] SELECT requested, nf_instance, prompt, final_result FROM ai_model_requests WHERE model_id = 'model-qos-v2' AND nf_instance = 'nf-qos-014':

[0118] SELECT requested, prompt, final_resultFROM ai_model_requestsWHERE prompt LIKE '%QoS flow%';

[0119] SELECT COUNT(*) AS total_requests FROM ai_model_requests WHERE nf_instance = 'nf-snr-003'.

[0120] As will be appreciated and described in more detail in the following, embodiments disclosed herein provide several novel interfaces within the mobile network 100. According to an embodiment, a novel interface between the network entity 110 and the further network entity 120, e.g. a network function (NF), enables the following information to be exchanged:

[0121] • seed: unique identifier of the NF request;

[0122] • model ID: specifying which ML model to use;

[0123] • input prompt: the NF query or request sent to the network entity 110;

[0124] • input hash: hash of the NF query for integrity verification.

[0125] According to a further embodiment, a novel interface between the network entity 110 and the network repository entity 130 enables the following information to be exchanged:

[0126] • seed: a seed value used for the request (input to the ML model);

[0127] • model ID: the identifier of the ML model used;

[0128] • input prompt: the original input prompt / request;

[0129] • response: the output generated by the ML model;

[0130] • system fingerprint: identifying the backend configuration of the ML model, e.g. the model ID and / or further configurations.

[0131] According to a further embodiment, for reproducing outputs a novel interface between the network entity 110 and the further network entity 120, e.g. a network function (NF) or the network management entity 140, e.g. the OAM allows the following information to be exchanged:

[0132] • seed: the specific seed value associated with the original request;• model ID: the ML model identifier;

[0133] • input prompt: the prompt to reproduce the original response;

[0134] • system fingerprint: ensuring that the same backend environment is used.

[0135] Figure 5 shows a schematic diagram illustrating implementation of an ML model within a mobile network, in particular a 5G network. There can be two options for implementing the ML model. According to the first option, the ML model may be collocated with the service-based architecture (SBA) bus of the mobile network according to an embodiment. According to the second option, the ML model may be deployed in a standalone network function that can be accessed by other network functions within the mobile network over the service-based bus.

[0136] According to an embodiment, a large language model (LLM) may be deployed within a mobile network. Given that LLMs can produce varying outputs based on the same input and are prone to hallucinations (i.e., generating nonsensical or inaccurate responses), it is crucial to track and log both model inputs and outputs, along with relevant metadata of the models, in order to ensure effective troubleshooting and control of the model. Below is a summary of the key procedures for implementing a large language model (LLM) in a mobile network:

[0137] During an initialization phase, the following steps may be performed:

[0138] retrieving the LLM along with its model fingerprint;

[0139] deploying the LLM using the retrieved model fingerprint;

[0140] confirming successful deployment of the LLM.

[0141] During a usage phase, the following steps may be performed:

[0142] triggering the LLM;

[0143] sending the prompt along with a hash, a model ID, and a model seed;

[0144] generating a response with the LLM;

[0145] logging the request by storing the metadata, including the request ID, the network function (NF) ID, the prompt, the hash, the model ID, and the model seed;

[0146] storing LLM request metadata;

[0147] sending the LLM-generated response.

[0148] During a replay / retrieval phase, the following steps may be performed:

[0149] requesting a replay by an NF or OAM for one or multiple request IDs, including associated metadata (prompt, hash, model ID, seed, etc.);

[0150] retrieving and returning the requested query results by the ADRF;

[0151] performing troubleshooting or further data processing by the NF as needed.

[0152] The structured approach described above for implementing a large language model (LLM) ensures reliable operation of the LLM within a mobile network while enhancing transparency, control, and troubleshooting efficiency.

[0153] The associated information that may exchanged during different phases in the context of LLM-based Al models are presented below:

[0154] During the initialization phase the following information may be exchanged:

[0155] • Model name / version: specifying which model to use• NWDAF instance ID: the ID of the NWDAF instance deployed

[0156] • Model fingerprint: model fingerprint for tracing

[0157] • Model source: the origin of the model

[0158] • Model provider ID: the ID of the model provider

[0159] • Model architecture: the type of architecture (e.g. transformer)

[0160] • Model constraints: specific use or specific locations that are allowed / disallowed

[0161] During the usage phase the following information may be exchanged:

[0162] • Model name / version: specifying which model to use

[0163] • Prompt: the text input provided to the model

[0164] • Max tokens: limiting the length of the generated response

[0165] • Temperature: controling response creativity; higher values lead to more randomness

[0166] • Top-p (Nucleus Sampling): limiting choices to the top percentage of probable tokens, influencing focus.

[0167] • Frequency penalty: reduceing the likelihood of repeated phrases

[0168] • Presence penalty: discouraging repeating topics already mentioned

[0169] • Stop sequences: defining where the model should stop generating text / output

[0170] • Logit Bias: adjusting the probability of specific words appearing

[0171] • NF ID: associating the request with a specific NF

[0172] • Echo: returning the prompt along with the generated response

[0173] • Best of: generating multiple completions and returning the best one

[0174] • Stream: streaming partial responses as they are generated

[0175] • Logprobs: providing the log probabilities of tokens in the response

[0176] • Seed: seting a fixed seed for reproducible outputs

[0177] • Prompt tokens: controling how much of the prompt influences the response

[0178] • Suffix: appending specific text after the generated output

[0179] • Sampling temperature: Fine-tuning randomness in token selection

[0180] • Pattern-based prompting: embedding patterns or constraints within the prompt for advanced tasks

[0181] During the replay / retrieval phase the following information may be exchanged:

[0182] • NF instance: the actual instance of the NF

[0183] • Prompt: the specific prompt if available

[0184] • Input prompt hash: the prompt hash if matches

[0185] • Model ID: the model ID of the searched queries

[0186] • Model fingerprint: the specific model fingerprint

[0187] • Request ID: a specific request ID

[0188] • Used seed: specific used seed

[0189] • Result : specific results (success or fail)

[0190] Figure 6 shows a schematic diagram illustrating a process 600 of enhancing model provisioning information for implementing a ML model in a mobile network according to an example. In order to enhance the model provisioning information, a NWDAF service consumer 601 is configured to send the following data related to the ML model to a NWDAF containing the model training logical function (MTLF) 603 that produces ML models based on the data collected by the NWDAF:• Model name / version: specifying which model to use

[0191] • NWDAF instance ID: the ID of the NWDAF instance deployed

[0192] • Model fingerprint: model fingerprint for tracing

[0193] • Model source: the origin of the model

[0194] • Model provider ID: the ID of the model provider

[0195] • Model architecture: the type of architecture (e.g. transformer)

[0196] • Model constraints: specific use or specific locations that are allowed / disallowed

[0197] Figure 7 shows a schematic diagram illustrating a process 700 of logging data associated with an ML model implemented in a mobile network according to an example. The data logging can be integrated into existing proceadures as disclosed in 3GPP TS 23.288 after inference is executed in the NWDAF. According to this example, the ML model inputs and outputs are stored into the analytics data repository function, ADRF. The stored ML model inputs and outputs can thus be used for evaluating the model’s consistency and accuracy. This allows continuously tracking the performance and effectiveness of the deployed ML model, ensuring proper functionality of the ML model and supporting ongoing improvements of the Al model based on its usage.

[0198] Figure 8 shows a flow diagram illustrating a method 800 of operating the network entity 110 for implementing a ML model in the mobile network 100. The method 800 comprises a step 801 of receiving one or more ML model inputs from the further network entity 120 of the mobile network 100. Moreover, the method 800 comprises a step 803 of providing one or more ML model outputs generated by the ML model based on the one or more ML model inputs to the further network entity 120, wherein the ML model is implemented by the network entity 110 based on one or more ML model parameters. In response to receiving a result indicative of a quality measure of the one or more ML model outputs from the further network entity 120, the method 800 further comprises a step 805 of providing the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result to the network repository entity 130 for storing the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result in the network repository entity 130.

[0199] As the method 800 can be implemented by the network entity 110, further features of the method 800 result directly from the functionality of the network entity 110 and its different embodiments and implementation forms described above.

[0200] Figure 9 shows a flow diagram illustrating a method 900 of operating the network repository entity 130 for storing data associated with a ML model in the mobile network 100. The method 900 comprises a step 901 of receiving from the network entity 110 implementing an ML model based on one or more ML model parameters, one or more ML model inputs provided by the further network entity (120) of the mobile network 100, one or more ML model outputs generated by the ML model based on the one or more ML model inputs, the one or more ML model parameters and a result indicative of a quality measure of the one or more ML model outputs. Moreover, the method 900 comprises a step 903 of storing the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result.

[0201] As the method 900 can be implemented by the network repository entity 130, further features of the method 900 result directly from the functionality of the network repository entity 130 and its different embodiments and implementation forms described above.

[0202] Figure 10 shows a diagram illustrating a computing system comprising a computer-readable storage medium 1001 in connection with a computer or a processor 1003. The computer-readable storage medium 1001 is configured to store programcode that causes the computer or the processor 1003 to perform the method 800 or the method 900 as mentioned above when the program code is executed by the computer or the processor 1003.

[0203] The person skilled in the art will understand that the "blocks" ("units") of the various figures (method and apparatus) represent or describe functionalities of embodiments of the present disclosure (rather than necessarily individual "units" in hardware or software) and thus describe equally functions or features of apparatus embodiments as well as method embodiments (unit = step).

[0204] In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described embodiment of an apparatus is merely exemplary. For example, the unit division is merely logical function division and may be another division in an actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.

[0205] The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.

[0206] In addition, functional units in the embodiments of the invention may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit.

Claims

CLAIMS1. A network entity (110) for implementing a machine learning, ML, model in a mobile network (100), wherein the network entity (110) is configured to:receive one or more ML model inputs from a further network entity (120) of the mobile network (100);provide one or more ML model outputs generated by the ML model based on the one or more ML model inputs to the further network entity (120), wherein the ML model is implemented by the network entity (110) based on one or more ML model parameters; andin response to receiving a result indicative of a quality measure of the one or more ML model outputs from the further network entity (120), provide the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters, and the result to a network repository entity (130) for storing the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result in the network repository entity (130).

2. The network entity (110) of claim 1, wherein for implementing the ML model the network entity (110) is configured to receive the ML model from a network management entity (140) together with a unique fingerprint of the ML model and wherein the network entity (110) is configured to provide the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result together with the unique fingerprint of the ML model to the network repository entity (130) for storing the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result together with the unique fingerprint of the ML model in the network repository entity (130).

3. The network entity (110) of claim 2, wherein the ML model comprises a plurality of processing layers including a plurality of weights and wherein the unique fingerprint of the ML model is based on a plurality of hash values and wherein each hash value is based on one of the plurality of processing layers.

4. The network entity (110) of claim 2 or 3, wherein the network entity (110) is configured (110) to determine a further unique fingerprint of the ML model based on the ML model and to compare the unique fingerprint of the ML model provided by the network management entity (140) with the further unique fingerprint of the ML model for verifying the ML model implemented by the network entity (110).

5. The network entity (110) of any one of the preceding claims, wherein the network entity (110) is configured to receive the one or more ML model inputs from the further network entity (120) together with a request ID, a further network entity ID, an ML model ID, and / or an ML model seed value and wherein the network entity (110) is configured to provide the one or more ML model inputs and the one or more ML model outputs together with the request ID, the further network entity ID, the ML model ID, and / or the ML model seed value to the network repository entity (130) for storing the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result together with the request ID, the further network entity ID, the ML model ID, and / or the ML model seed value in the network repository entity (130).

6. The network entity (110) of claim 4, wherein the network entity (110) is configured to receive the ML model ID from a network management entity (140).

7. The network entity (110) of any one of the preceding claims, wherein the network entity (110) is a network data analytics function, NWDAF, (110) of the mobile network (100) and / or wherein the further network entity (120) is a network function (120) of the mobile network (100).

8. The network entity (110) of any one of the preceding claims, wherein the network repository entity (130) is an analytics data repository function, ADRF, (130).

9. The network entity (110) of any one of the preceding claims, wherein the ML model comprises a Large Language Model, LLM.

10. A method (800) of operating a network entity (110) for implementing a machine learning, ML, model in a mobile network (100), wherein the method comprises:receiving (801) one or more ML model inputs from a further network entity (120) of the mobile network (100);providing (803) one or more ML model outputs generated by the ML model based on the one or more ML model inputs to the further network entity (120), wherein the ML model is implemented by the network entity (110) based on one or more ML model parameters; andin response to receiving a result indicative of a quality measure of the one or more ML model outputs from the further network entity (120), providing (805) the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result to a network repository entity (130) for storing the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result in the network repository entity (130).

11. A network repository entity (130) for storing data associated with a machine learning, ML, model in a mobile network (100), wherein the network repository entity (130) is configured to:receive from a network entity (110) implementing an ML model, based on one or more ML model parameters, one or more ML model inputs provided by a further network entity (120) of the mobile network (100), one or more ML model outputs generated by the ML model based on the one or more ML model inputs, the one or more ML model parameters and a result indicative of a quality measure of the one or more ML model outputs; andstore the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result.

12. The network repository entity (130) of claim 11, wherein the network repository entity (130) is configured to receive the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result together with a unique fingerprint of the ML model and to store the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result together with the unique fingerprint of the ML model.

13. The network repository entity ( 130) of claim 12, wherein the ML model comprises a plurality of processing layers including a plurality of weights and wherein the unique fingerprint of the ML model is based on a plurality of hash values and wherein each hash value is based on one of the plurality of processing layers.

14. The network repository entity (130) of any one of claims 11 to 13, wherein the network repository entity (130) is configured to receive the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result together with a request ID, a further network entity ID, an ML model ID, and / or an ML model seed value and to store the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result together with the request ID, the further network entity ID, the ML model ID, and / or the ML model seed value.

15. The network repository entity (130) of any one of claims 11 to 14, wherein the network entity (110) is a network data analytics function, NWDAF, (110) of the mobile network (100) and / or wherein the network repository entity (130) is an analytics data repository function, ADRF, of the mobile network (100).

16. The network repository entity (130) of any one of claims 11 to 15, wherein the ML model comprises a Large Language Model, LLM.

17. The network repository entity (130) of any one of claims 11 to 16, wherein, in response to a request from a network management entity (140), the network repository entity (130) is configured to provide the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and / or the result to the network management entity (140).

18. The network repository entity (130) of any one of claims 11 to 17, wherein the network repository entity (130) is configured to provide the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and / or the result to the network entity (110) for fine tuning the ML model implemented by the network entity (HO).

19. A method (900) for operating a network repository entity (130) for storing data associated with a machine learning, ML, model in a mobile network (100), wherein the method comprises:receiving (901) from a network entity (110) implementing an ML model, based on one or more ML model parameters, one or more ML model inputs provided by a further network entity (120) of the mobile network (100), one or more ML model outputs generated by the ML model based on the one or more ML model inputs, the one or more ML model parameters and a result indicative of a quality measure of the one or more ML model outputs; andstoring (903) the one or more ML model inputs, the one or more ML model outputs, the one or more ML model parameters and the result.

20. A computer program product comprising a computer-readable storage medium (1001) for storing program code which causes a computer or a processor (1003) to perform the method (800) of claim 10 when the program code is executed by the computer or the processor (1003).

21. A computer program product comprising a computer-readable storage medium ( 1001 ) for storing program code which causes a computer or a processor (1003) to perform the method (900) of claim 19, when the program code is executed by the computer or the processor (1003).19