Caching and routing joint optimization method for intelligent computing fusion network
By modeling caching and routing as a multi-agent Markov decision-making problem in the intelligent computing convergence network, and using C-MAAC and P-CCCP methods, the performance limitations of the multi-agent caching model and the high complexity of traditional route selection are solved. solve the problem, achieve the efficiency and flexibility of intelligent content deployment and routing and forwarding, and adapt to dynamic user needs.
Patent Information
- Application Number
- CN202411127108.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-10-11
AI Technical Summary
In intelligent computing convergence networks, the multi-agent caching model has limited performance due to the non-steady learning environment, and existing technologies cannot fully utilize cache resources and adapt to dynamic user needs in the core network. Traditional routing methods are highly complex. It is difficult to adapt to large-scale dynamic network environments.
The joint optimization of caching and routing in the intelligent computing convergence network is modeled as a multi-agent Markov decision-making problem, and the multi-agent deep reinforcement learning algorithm C-MAAC based on partial decentralization is used for collaborative caching decision-making, combined with the P-CCCP method The global optimization solution is derived under static user request distribution to achieve joint optimization of caching and routing.
Through multi-agent deep reinforcement learning, intelligent content deployment and flexible routing and forwarding in complex environments are achieved, reducing content transmission costs, improving cache resource utilization and network performance, adapting to dynamic user needs, and simplifying algorithm complexity.
Smart Images

Figure CN118764394A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent computing fusion network technology, and in particular to a cache and routing joint optimization method for an intelligent computing fusion network. Background Art
[0002] The advent of the big data era has led to an increase in the types of data, huge data volumes, and faster data generation and processing speeds, which has put forward more stringent performance requirements for data transmission in communication networks. In order to meet the growing demand for data access, in-network caching has become a promising solution. The basic idea of in-network caching is to store popular content in intermediate nodes close to users, so that user requests can be satisfied on these cache nodes nearby without having to obtain content from remote servers, thereby effectively reducing content acquisition latency and alleviating communication network congestion. The advantages of in-network caching are reflected in both core networks and edge networks. However, due to the limited cache resources of edge networks and the small coverage of base stations, popular content is deployed in intermediate cache nodes by introducing a layered network architecture and utilizing core network cache resources to facilitate end users to access through the associated base stations.
[0003] Related research points out that making caching decisions based on content popularity can better meet user needs. However, in a layered network architecture, the huge data traffic from multiple cells brings additional challenges to the design of core network caching strategies. Due to the different user groups in different base stations, user preferences may also change over time, so the content popularity of base stations and their associated core network nodes may show unknown spatiotemporal dynamics and local differences. In this case, popular content in the current time period may not necessarily attract the attention of users in the future. Therefore, in the case of limited cache capacity, it is crucial to formulate caching strategies in real time through adaptive algorithms based on current information about system characteristics. The intelligent computing fusion network uses artificial intelligence (AI) technology to intelligently integrate services and networks, laying the foundation for intelligent resource adaptation and fine traffic control.
[0004] In the intelligent computing fusion network, network nodes can use AI technology in a decentralized manner to independently learn the optimal caching strategy and maximize long-term performance by interacting with the environment. At the same time, network nodes can also learn independently in a multi-agent environment without knowing the decisions of other nodes in advance. However, since all nodes need to learn at the same time, each agent is in a non-steady-state environment, making it difficult to effectively learn local caching strategies. Therefore, if the impact of the non-steady-state learning environment is ignored when designing a multi-agent cache model, the performance of the multi-agent cache model will be limited. In addition, most of the current research work focuses on obtaining content from cache nodes using limited routing options (for example, a single routing option from bottom to top in a hierarchical network or a single-hop option in an edge network). However, this simplified routing scenario is not applicable to the core network, because in the core network, there may be multiple paths, or even multi-hop paths, between the user association request node and the cache node.
[0005] At present, a method and system for caching content in an integrated space-ground-air network in the prior art includes: effectively reducing user delay by storing content in different layers of the integrated space-ground-air network. Taking into account the dynamic spatiotemporal content popularity, the method uses deep reinforcement learning methods to make caching decisions in real time to meet the dynamic needs of users. Specifically, the following steps are included: S1, dividing the network model into three levels: space layer network, sky network and ground layer network; S2, deriving the wireless communication data transmission rate between the ground and the sky, as well as the data transmission rate between the drone and the geosynchronous satellite; S3: converting the drone local caching problem into an MDP problem; S4: based on step S3, using a deep Q network (Deep QNetwork, DQN) to update the local cache content.
[0006] The disadvantages of the above-mentioned air-ground integrated network content caching method and system in the prior art include: on the one hand, the method only optimizes the cache of a single node. Due to the limited cache resources of a single node, the method cannot fully tap the advantages of network cache resources, resulting in some popular content being cached redundantly, exacerbating the consumption of cache resources; on the other hand, the method considers the vertical collaboration between different layers, nodes on the same layer do not share content, and the cost of transmitting content between nodes on the same layer is much lower than the cost of obtaining content from nodes on the upper layer.
[0007] Another network optimization method for combining content and transmission routing in the prior art includes: with the goal of minimizing the overall transmission cost, mathematically modeling the cache and routing joint optimization problem, and using the primal-dual iteration method to solve the problem, and finally obtaining an approximately optimal cache and routing strategy. Specifically, the following steps are included: S1. Obtaining historical network data over a period of time. S2. Counting historical request data, extracting cache strategies and routing strategies. S3. Performing mathematical modeling with the goal of minimizing the total network overhead. S5. Using the primal-dual algorithm to iteratively update the content cache and routing strategy to obtain an approximately optimal content cache and routing strategy.
[0008] Another network optimization method that combines content and transmission routing in the prior art has the following disadvantages: on the one hand, this method estimates future cache and routing decisions based on historical experience data, but the user request distribution of core network nodes is locally uneven and the tidal effect is obvious; on the other hand, this method uses the original dual algorithm, which has high algorithm complexity and cannot adapt well to large-scale dynamic network environments. Summary of the invention
[0009] The embodiments of the present invention provide a cache and routing joint optimization method for an intelligent computing fusion network, so as to realize cache and routing joint optimization in the intelligent computing fusion network.
[0010] In order to achieve the above object, the present invention adopts the following technical scheme.
[0011] A cache and routing joint optimization method for an intelligent computing fusion network, comprising:
[0012] With the goal of maximizing the long-term cumulative cache reward in the lowest cost cache routing strategy RLC, the cache and routing joint optimization problem of the intelligent computing fusion network is modeled as a multi-agent Markov decision MDP problem;
[0013] Using the AC learning model, a collaborative caching algorithm C-MAAC based on partially decentralized multi-agent deep reinforcement learning is adopted to solve the multi-agent Markov decision problem;
[0014] Under the ideal assumption that user demands are static and known in advance, the P-CCCP method is used to derive the global optimization solution to the joint optimization problem of caching and routing in the intelligent computing fusion network.
[0015] Preferably, the goal of maximizing the long-term cumulative cache reward in the minimum cost cache routing strategy RLC is to model the cache and routing joint optimization problem of the intelligent computing fusion network as a multi-agent MDP problem, including:
[0016] With the goal of maximizing the long-term cumulative cache reward in RLC, the cache and routing joint optimization problem of the intelligent computing fusion network is modeled, and the cache decision problem is modeled as an MDP problem. The key elements of the MDP problem are defined as follows:
[0017] State: Assume that each node can only observe the requests of the users it serves, let the variable represents the set of users with service type s in node j. The local observation values obtained by node j are as follows:
[0018]
[0019] in The global observables collected in the controller are defined as:
[0020]
[0021] Action: At the end of each time slot t, all nodes need to make a cache decision. The action of node j in the current time slot is recorded as in Then the local action space of agent j is expressed as Define the joint action as
[0022] State transition probability: State transition probability Pr(s t+1 |s t , a t ) describes the execution of a joint action t After that, the system status s t Transfer to s t+1 The probability of satisfying the constraints
[0023] Reward: The reward is determined by the collaborative cache environment. Each user t Make content requests, and routing strategy y t For the RLC strategy, the variable represents a set of nodes, each of which has a pair f m All requests are served by node j, and the set The user in time slot t is responded to by node j about content f m The number of requests is expressed as From the perspective of the cache node, node j executes action a t The reward obtained is defined as the reduction in transmission cost, expressed as:
[0024]
[0025] The total system reward is calculated as:
[0026]
[0027] At this point, the collaborative caching problem is modeled as a sequential decision-making problem, whose goal is to maximize the cumulative discounted reward, expressed as:
[0028]
[0029] st(1).
[0030]
[0031] Where V π (s) represents the state value function. Then, the Bellman function is used to derive the optimal strategy π for problem (P0) * , as shown below:
[0032]
[0033] in When the state transition probability If it is completely known in advance, the collaborative caching decision problem is NP-complete.
[0034] Preferably, the AC learning model is used to solve the multi-agent Markov decision problem using a collaborative caching algorithm C-MAAC based on partially decentralized multi-agent deep reinforcement learning MADRL, including:
[0035] The value-based critic network and its target network of each agent are deployed in the population knowledge base of the mapping adaptation layer, and the selected actions of each actor network are evaluated through the global information in the information collection library; the policy-based actor network and its target network of each agent are deployed in the node knowledge base of each node in the fusion network layer, and the distributed cache decision-making of the fusion network layer is completed based on the local state information using the trained actor network; the independent and identically distributed random variables that obey the standard Gumbel distribution are introduced Get the GM sampler, that is, GM(μ j (s j )) to realize that the proposed C-MAAC algorithm can directly use the GM sampler to output actions during forward propagation; the Gumbel-softmax (GS) sampler is introduced to approximate the arg max in the GM sampler through a smoothing operation, as shown below:
[0036]
[0037] During offline training, Z experiences are randomly extracted from D to update the parameters of the actor network and the critic network; specifically, the critic network of each agent j calculates a Q value
[0038] And the parameters are updated by minimizing the timing difference error, that is:
[0039]
[0040] in Defined as the target Q value. Then, each agent j updates the actor network using the gradient:
[0041]
[0042] At the same time, each agent soft-updates its parameters by:
[0043]
[0044]
[0045] The step size τ>0 is a small value used to stabilize the training process;
[0046] By solving the Markov decision problem, the optimal cache strategy is obtained to maximize the cumulative discount reward.
[0047] Preferably, the method of using the P-CCCP method to derive a global optimization solution to the cache and routing joint optimization problem of the intelligent computing fusion network under a static and pre-known ideal assumption includes:
[0048] Convert the transmission cost minimization problem into a maximization problem:
[0049]
[0050] st(1),(8).
[0051]
[0052]
[0053] By introducing auxiliary variables Convert the objective function of (P1) into a concave function, and the cache reward of each time slot into the following equivalent form:
[0054]
[0055] in
[0056]
[0057] st
[0058] (1), (17), (21)
[0059] η t ≤1, (22)
[0060]
[0061]
[0062]
[0063] The variables in the above formula are Constraints (24) and (25) make the P-CCCP-based algorithm lose its optimality. A penalty term is introduced into the objective function to solve problem (P2). The solution process presents a double loop structure: 1) adjusting the penalty coefficient v in the outer loop, 2) optimizing the original variables in the inner loop. The detailed inner loop process is as follows:
[0064] Step 1: Optimize a variable by fixing other variables and and Only exists in the objective function, by finding the variable m t and The derivatives of , and their optimal values, are as follows:
[0065]
[0066] Step 2: By fixing the variables and For variables Optimization is performed, and problem (P2) is transformed into the following convex optimization problem:
[0067]
[0068] st(21),(22),(23),(24),(25)
[0069] The above problem is solved by using the convex optimization toolbox CVX to obtain the optimal caching strategy x(t) and routing strategy y(t).
[0070] It can be seen from the technical solutions provided by the above-mentioned embodiments of the present invention that the present invention proposes a joint optimization method of cache and routing for intelligent computing fusion networks. In view of the uneven distribution of node user preferences and differentiated user service needs in the fusion network, the traditional network resource management methods have the problems of low efficiency and limited cache performance. Multi-agent deep reinforcement learning is used to realize intelligent content deployment and flexible routing forwarding in large-scale complex environments.
[0071] Additional aspects and advantages of the present invention will be given in part in the following description, which will become obvious from the following description, or may be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0073] Figure 1 A processing flow chart of a cache and routing joint optimization method for an intelligent computing fusion network provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0074] The embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.
[0075] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or coupling. The term "and / or" used herein includes any unit and all combinations of one or more associated listed items.
[0076] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless defined as herein.
[0077] To facilitate understanding of the embodiments of the present invention, several specific embodiments will be further explained below with reference to the accompanying drawings, and each embodiment does not constitute a limitation on the embodiments of the present invention.
[0078] The present invention proposes a joint optimization mechanism of cache and routing based on Multi-Agent Deep Reinforcement Learning (MADRL). First, it is proved that the lowest cost cache routing strategy (Route-to-Least Cost-Cache, RLC) is optimal under the premise of a given cache strategy. On this basis, with the goal of maximizing the long-term cumulative cache reward, the collaborative caching problem is modeled as a multi-agent Markov decision process (MDP) problem. Subsequently, in order to balance the computational complexity and algorithm performance, a collaborative caching algorithm based on partially decentralized MADRL is proposed. By utilizing its centralized training and distributed execution characteristics, the problem of unstable training process caused by simultaneous decision-making of all agents is effectively solved. In addition, under the assumption that the user request distribution is statically known, the joint optimization problem of cache and routing is modeled as a non-convex problem, and an optimization method is designed to solve the problem, and its calculation result is the performance upper limit of the proposed MADRL algorithm.
[0079] The processing flow chart of a cache and routing joint optimization method for an intelligent computing fusion network provided by an embodiment of the present invention is as follows: Figure 1 As shown, the process includes the following steps:
[0080] Step S10: Prove that the lowest cost cache routing strategy RLC is optimal under the premise of a given cache strategy. On this basis, with the goal of maximizing the long-term cumulative cache reward in RLC, the cache and routing joint optimization problem of the intelligent computing fusion network is modeled as a multi-agent Markov decision problem.
[0081] Step S20: In order to achieve a good balance between computational complexity and performance, a collaborative caching algorithm C-MAAC based on partially decentralized MADRL is proposed to solve the above multi-agent Markov decision problem using the AC learning model.
[0082] Step S30: deploy each agent's value-based critic network and its target network in the population knowledge base of the mapping adaptation layer, evaluate the selected actions of each actor network through the global information in the information collection library, and guide the evolution of the corresponding actor network by generating policy gradients to complete the training of the AC model in the above C-MAAC algorithm.
[0083] Step S40: deploy each agent's policy-based actor network and its target network in the node knowledge base of each node in the fusion network layer, which uses the Gumbel-softmax (GS) sampler to approximate the generation of differentiable actions. Based on the local state information, the trained actor network is used to complete the distributed cache decision making of the fusion network layer.
[0084] Step S50: Under static and pre-known ideal assumptions, the P-CCCP method is used to derive a global optimal solution for the cache and routing joint optimization problem, which provides a performance upper limit for the above C-MAAC algorithm in terms of cache reward.
[0085] In the first aspect, the present invention considers a classic intelligent computing fusion network, which includes a core network layer and an edge network layer, and models the core network layer as a directed connected graph where N = {1, 2, ..., N} and Represents the node set and link set respectively. Each base station and node equipped with cache can store a certain amount of content. A group of users randomly distributed between base stations The content can be obtained directly from its associated base station, while user requests that are not responded to by the base station will be transmitted to the core network node. Representation Node The size of the user set served is
[0086] Since the cache capacity of a single node is limited, and the content library is very large, different nodes cache content through horizontal collaboration to concentrate the storage resources of the nodes, thereby increasing the number of times the nodes respond to requests. This invention only focuses on the core network layer cache and routing issues. Let the variable Represents the content library, Represents the content library The present invention assumes that the size of all the contents in the content library is the same, normalizes it to 1, and the cache content set in node i is composed of c i Indicates that the size is |ci|. For each content There is a fixed server node src(m)∈N that always caches f m .
[0087] Considering the differentiation of user services, the experience of VIP users has a much greater impact on network performance than that of ordinary users. The present invention defines a set of service types S, using the variable h s (u) represents user u's response to service type s, The experience weight of the user. Generate content f m The request for content f will be routed to the server node src(m) through the path in G. However, when the request for content f m The request arrives at cache f m The routing process will be terminated when any intermediate node of m The response data packet will be delivered to the user via the reverse path. It can be seen that the cost of obtaining the requested content depends on the content placement and routing forwarding. Therefore, it is important to make caching and routing decisions for all requests in order to minimize the total transmission cost.
[0088] The running time of the core network is divided into a set of time slots, denoted as Each time slot consists of three phases: 1) user request phase, 2) information exchange and content transmission phase, and 3) content caching phase. Requests are generated independently according to the Poisson process, with an average arrival rate of λ u In practical applications, each time slot may last for several hours or even a day, and each user u may request multiple contents in the same time slot. Therefore, the local node (i.e., the associated node) needs to satisfy multiple requests in one time slot. Each user requests content according to his or her preferences, using the variable Indicates that user u requests content f m , then within a time slot, user u has a probability of m The expected number of requests can be given by Calculated, where is an independent and identically distributed random variable, defined as the instantaneous demand of user u at time slot t. The present invention considers a more realistic scenario, that is, the node has a variable λ u and Unknown in advance.
[0089] In the information exchange phase, each node collects the user requirements and cache status observed locally and sends them to the controller, and updates the flow table according to the request forwarding path recalculated by the controller. During the content transmission phase, if the local node caches the content requested by the user, m , the local node will directly provide the service. Otherwise, the local node will forward the request to the cache node or the specified server node src(m) according to the flow table. Finally, it enters the content cache phase, and the node places the content according to the cache strategy to respond to the next time slot request. Define a binary cache configuration matrix of size M×N Represents the cache status of all nodes in the network at time slot t. Each node in the cache matrix The cache capacity constraint must be satisfied, expressed as:
[0090]
[0091] The present invention reduces the content transmission cost by jointly optimizing content caching and routing forwarding.
[0092] Request content There is a size A collection of paths This allows the user's request data packet to be routed to the server node src(m) along any path in the path set. When node j in returns the requested content of user u, a certain transmission cost (e.g., delay, energy consumption) will be incurred. By assigning a weight wl to it as the transmission cost, since the size of the response data packet is much larger than the request data packet, the present invention only considers the cost of transmitting the response data packet and ignores the cost of forwarding the request data packet.
[0093] According to the above analysis, the node request will be routed to the server node. The present invention considers using source routing technology for routing forwarding. Define the path p with a length of |p| = H as the node The sequence {p1, ..., p H}. For each h∈{1,...,H}, the link For each path For example, the starting node of path p is the local node of user u. That is, p1 = i. The last node of path p is content f m The server node, that is, p H =src(m). Therefore, requests forwarded through path p can always be satisfied, because in the worst case, the requested content can be responded to by the server node that owns the content. For each node n∈p, define v p (n) is the position of node n in p, that is, v p (n)∈{1, 2, ..., |p|}. The path set The other nodes except the server node are combined and recorded as
[0094] Node i can be selected from the path set The cache node in gets the content f m To formalize this operation, a routing variable is defined To represent the user Whether to select path p to obtain the requested content f m . Due to the content f m Only path collections can be selected If the transmission is carried out along one of the paths, And the routing decision of all users in time slot t is defined as At the same time, the total transmission cost expectation of time slot t is defined as the sum of the transmission costs of all user request contents with different service types, expressed as:
[0095]
[0096] From the above formula, we can see that given any cache strategy x t , optimal routing strategy y t Can be The time structure, where The obtained y t It is the RLC strategy.
[0097] It is worth noting that the optimal caching and routing strategies mainly depend on the accurate understanding of user needs, i.e. But user needs are usually unknown in advance and change over time in real applications.
[0098] Secondly, according to formula (2), the RLC routing strategy depends on the cache strategy x t Based on this, the present invention introduces the problem of dynamic collaborative caching. In collaborative caching, network nodes cache content in a horizontal collaborative manner, and the process can be achieved by optimizing discrete variables. The detailed process is summarized as follows.
[0099] Since the next time slot state including content placement and user demand depends only on the current time slot state and cache decision, the present invention models the state evolution process through Markov process and models the cache decision problem as an MDP problem. The key elements of MDP are defined as follows.
[0100] State: Assume that each node can only observe the requests of the users it serves. Let the variable represents the set of users with service type s in node j. Therefore, the local observation value obtained by node j is as follows:
[0101]
[0102] in at this time, The global observables collected in the controller are defined as:
[0103]
[0104] Action: At the end of each time slot t, all nodes need to make a cache decision. The action of node j in the current time slot is recorded as in Then the local action space of agent j is expressed as Finally, the joint action is defined as
[0105] State transition probability: State transition probability Pr(s t+1 |s t , a t ) describes the execution of a joint action t After that, the system state s t Transfer to s t+1 The probability of satisfying the constraints However, due to user demand It is unknown in advance, so the state transition probability cannot be expressed explicitly.
[0106] Reward: The reward can be determined by the collaborative caching environment to guide each agent to learn its optimal strategy. Each user t Make content requests, and routing strategy y t is the RLC strategy. represents a set of nodes, each of which has a pair f m All requests from node j are served by node j. Therefore, the set The user in time slot t is responded to by node j about content f m The number of requests is expressed as The present invention executes action a at node j from the perspective of cache node. t The reward obtained is defined as the reduction in transmission cost, expressed as:
[0107]
[0108] In formula (5), the variable Indicates that when the collection There is no node cache content in f m , user u follows the path Get content f from server node src(m) m The transmission cost of Represents the set of paths along which node j is The path with the lowest cost p i * Transmit the content f requested by user um The instantaneous reward of node j depends not only on the local cache decision but also on the node set The cache decision of other nodes in . At this time, the total system reward is calculated as:
[0109]
[0110] Therefore, the goal of this invention is to find an optimal strategy π*, which is used to make caching decisions (i.e., a=π(s)) under any given state s, so that the long-term total reward expectation is maximized. In order to achieve a trade-off between current rewards and future rewards, a discount factor γ∈[0,1) is used to adjust the impact of future rewards. Then, the collaborative caching problem is modeled as a continuous decision-making problem, whose goal is to maximize the cumulative discounted reward, expressed as:
[0111]
[0112] st(1).
[0113]
[0114] Where V π (s) represents the state value function. Then, the Bellman function is used to derive the optimal strategy π for problem (P0) * , as shown below:
[0115]
[0116] in When the state transition probability If it is completely known in advance, the collaborative caching decision problem (P0) is an NP-complete problem.
[0117] In the third aspect, the present invention uses the MADRL method to adaptively make intelligent content caching decisions, where RLC is the default routing strategy. The present invention proposes a partially decentralized MADRL model that supports the discrete action space of the problem raised by the present invention and details how to stabilize the model training process. The detailed process is summarized as follows:
[0118] In order to stabilize the training process of each agent and enhance the cooperation between nodes, this paper designs a collaborative caching algorithm C-MAAC based on partially decentralized MADRL, the core idea of which is centralized training and distributed execution. The centralized critic network adds additional information about the behavior of other agents to understand their impact on the environment, while the actor network relies on local information. j (s j) is applicable to the cache environment of the present invention, and the output space of the local actor network is defined as the cache probability of each content, with a dimension size of M, where An intuitive method is to use μ j (s j ) generates samples, but this leads to The gradient cannot be back-propagated. To solve this problem, the present invention uses the GS sampler to generate discrete actions, with the help of re-parameterization technology, the core elements of which are 1) the sampled actions are related to the actor network parameters is differentiable; 2) maintain the original probability distribution. To ensure feasibility, we first introduce independent and identically distributed random variables that obey the standard Gumbel distribution Its cumulative distribution function (CDF) is F(X)=exp(--exp(--x)).
[0119] The present invention utilizes the variable g that obeys the Gumbel distribution j , can be expressed with probability μ j (s j ) Get action sample a j , thus obtaining the Gumbel-max (GM) sampler, namely GM(μ j (s j )). Since this operation of selecting the maximum probability value has an effect on the parameter It is still not differentiable, which makes it impossible to use the gradient descent method to update the parameters. In order to solve this problem, the present invention introduces a GS sampler to approximate arg max through a smoothing operation (such as SoftMax function), as shown below:
[0120]
[0121] The coefficient τ0>0 in formula (10) controls the randomness of sampling. The smaller the value, the smoother the SoftMax function approaches arg max. Therefore, the present invention can use the GS sampler to obtain the classification distribution μ j (s j ) in the sampling action, namely GS(μ j (s j )). Although the GS variable obtained is differentiable, but it is still a continuous value rather than a discrete variable. Therefore, in actual operation, the algorithm proposed in this invention directly uses the GM sampler to output actions during forward propagation, but uses the GS sampler to estimate the gradient during the gradient update process. At each time slot t, in order to explore better cache decisions, the GM sampler is used to generate actions After executing the selected action, each agent can observe the new state And get feedback rewards Then historical experience t , a t , r t ,s t+1}Stored in the experience replay pool , used for training parameters in During offline training, The Z experiences are randomly selected from the dataset to update the parameters of the actor network and the critic network. Specifically, the critic network of each agent j calculates a Q value And the parameters are updated by minimizing the temporal difference error, that is:
[0122]
[0123] in Defined as the target Q value. Then, each agent j updates the actor network using the gradient:
[0124]
[0125] At the same time, in order to avoid rapid updates of the actor and critic network parameters, each agent soft updates its parameters in the following way:
[0126]
[0127]
[0128] The step size τ>0 is a small value used to stabilize the training process.
[0129] Fourthly, the present invention meets the needs of users Under the ideal assumption of static and pre-known, the P-CCCP method is used to derive the global optimal solution of the total transmission cost expectation minimization problem. Since user preferences are static, the present invention focuses on the sub-problems within a single time slot to simplify the target problem. First, the original problem is transformed into an equivalent and easy-to-handle problem, and an efficient algorithm based on P-CCCP is designed to solve the transformed problem. The detailed process is summarized as follows.
[0130] First, the transmission cost minimization problem is transformed into a maximization problem. Given a constant Defined as:
[0131]
[0132] The above formula represents the transmission cost of all requests to get responses from the server node when the cache space of all nodes is empty. Then the following maximization problem is solved:
[0133]
[0134] st(1), (8).
[0135]
[0136]
[0137] The P-CCCP method is applicable to non-convex objective functions under non-convex coupling constraints. It combines the ConcaveConvex Procedure (CCCP). Transform the objective function of (P1) into a concave function, and then the cache reward for each time slot can be transformed into the following equivalent form:
[0138]
[0139] in
[0140]
[0141] st(1),(17), (twenty one)
[0143] η t ≤1, (twenty two)
[0145]
[0146]
[0147]
[0148] The variables in the above formula are Constraints (24) and (25) will not make the P-CCCP-based algorithm lose its optimality, and are intended to improve the convergence speed of the penalty term. The penalty term is introduced into the objective function to solve problem (P2), and its solution process presents a double loop structure: 1) adjusting the penalty coefficient v in the outer loop, 2) optimizing the original variables in the inner loop. The detailed inner loop process is as follows:
[0149] Step 1: Optimize a variable by fixing other variables and It is worth noting that and Only exists in the objective function. Here, by finding the variable and The derivatives of , their optimal values can be easily obtained as follows:
[0150]
[0151] Step 2: By fixing the variables and For variables Here, problem (P2) can be transformed into the following convex optimization problem:
[0152]
[0153] st(21),(22),(23),(24),(25)
[0154] The above problem can be solved using the convex optimization toolbox CVX.
[0155] Figure 1 The lower part shows the offline training process of C-MAAC in the intelligent computing fusion network. During the training process, each agent j is trained based on the value-based critic network. and its target network Deployed in the group knowledge base of the mapping adaptation layer, the global state information s in the information collection library is t and global action a t For selected actions The policy gradient is generated to guide the evolution of the corresponding actor network. Since all agents explore the cache strategy at the same time in time slot t, the policy-based actor network and its target network Deployed in the node j knowledge base of the fusion network layer, it is based on the local state Make caching decisions independently.
[0156] The lower part shows the online execution process of C-MAAC in the intelligent computing fusion network. In steps 1-7 of the execution process, the trained actor network in each node knowledge base makes the optimal decision independently without referring to the status and actions of other intelligent agents, thereby reducing communication overhead. After executing the cache strategy, the information collection library can obtain the cache status of all nodes, and then in steps 8-9, the group knowledge base derives the complete routing path for each request based on the RLC strategy. Finally, in step 10, the controller cluster configures flow tables to the nodes on these paths to guide the nodes to forward user requests.
[0157] In summary, the embodiment of the present invention jointly optimizes the cache and routing strategies based on the uncertainty and dynamism of user needs in a complex hierarchical network environment with the goal of minimizing transmission costs. Under the premise of the default RLC routing strategy, the cache optimization problem is modeled as a multi-agent decision problem based on MDP, and a collaborative cache algorithm C-MAAC based on partially decentralized MADRL is proposed. The cache resources are managed in a distributed manner according to local state information to meet the differentiated service needs of users in a dynamic environment. In order to provide the performance upper limit of the MADRL algorithm, an optimal solution based on P-CCCP is proposed under the assumption that the content popularity is known in advance. However, since the user's preferences are usually unknown in advance and change dynamically, this performance upper limit cannot be achieved in practice. Compared with the fully decentralized MADRL algorithm, the C-MAAC algorithm maintains multiple centralized critic networks and provides feedback on the actions selected by the nodes in the entire network according to global information, thereby stabilizing the model training environment. The C-MAAC algorithm realizes that the output dimension of each actor network increases linearly with the amount of content, so the algorithm has good scalability.
[0158] With the diversified development of network technology, the existing network shows a trend of heterogeneous coexistence and integrated development. The integration of edge networks such as device-to-device communication (D2D) networks and Internet of Vehicles (IoV) makes the network structure complex and huge. Due to the heterogeneity of large-scale integrated network architecture, the heterogeneity of network resources and the differences in user needs, the adaptation process of user needs and cache resources in the network is challenged. In addition, the cache strategy and routing strategy are closely coupled and influence each other. How to play the role of cache in the network through appropriate routing strategies is also a key challenge to ensure user service quality. In the present invention, a distributed content deployment architecture supporting differentiated services is constructed based on the characteristics of advanced intelligence and heterogeneous integration of intelligent computing fusion network, and a joint optimization mechanism of cache and routing based on MADRL is designed. Specifically, it is first proved that under the premise of given cache strategy, the RLC strategy is the optimal routing strategy in the joint optimization problem of cache and routing. At the same time, the collaborative caching problem is modeled as a multi-agent MDP problem, aiming to maximize the long-term cumulative cache reward. Subsequently, in order to achieve a good balance between computational complexity and performance, a collaborative caching algorithm C-MAAC based on partially decentralized MADRL is proposed using the AC (Actor-Critic) learning model to make caching decisions in dynamic environments. C-MAAC has the key features of centralized training and distributed execution, so it can effectively deal with the problem of unstable training process due to simultaneous decision-making of all agents. In addition, when it is assumed that the distribution of user requests is static and known in advance, an optimization algorithm based on Penalty Concave Convex Procedure (P-CCCP) is proposed, and its calculation result is the performance upper limit of the C-MAAC algorithm.
[0159] Those skilled in the art can understand that the accompanying drawings are only schematic diagrams of an embodiment, and the modules or processes in the accompanying drawings are not necessarily required to implement the present invention.
[0160] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.
[0161] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0162] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A cache and routing joint optimization method for intelligent computing fusion network, characterized in that: include: With the goal of maximizing the long-term cumulative cache reward in the lowest cost cache routing strategy RLC, the cache and routing joint optimization problem of the intelligent computing fusion network is modeled as a multi-agent Markov decision MDP problem; Using the AC learning model, a collaborative caching algorithm C-MAAC based on partially decentralized multi-agent deep reinforcement learning is adopted to solve the multi-agent Markov decision problem; Under the ideal assumption that user demands are static and known in advance, the P-CCCP method is used to derive the global optimization solution to the joint optimization problem of caching and routing in the intelligent computing fusion network.
2. The method according to claim 1, characterized in that The goal of maximizing the long-term cumulative cache reward in the minimum cost cache routing strategy RLC is to model the cache and routing joint optimization problem of the intelligent computing fusion network as a multi-agent MDP problem, including: With the goal of maximizing the long-term cumulative cache reward in RLC, the cache and routing joint optimization problem of the intelligent computing fusion network is modeled, and the cache decision problem is modeled as an MDP problem. The key elements of the MDP problem are defined as follows: State: Assume that each node can only observe the requests of the users it serves, let the variable represents the set of users with service type s in node j. The local observation values obtained by node j are as follows: in The global observables collected in the controller are defined as: Action: At the end of each time slot t, all nodes need to make a cache decision. The action of node j in the current time slot is recorded as in Then the local action space of agent j is expressed as Define the joint action as State transition probability: State transition probability Pr(s t+1 |s t , a t ) describes the execution of a joint action t After that, the system state s t Transfer to s t+1 The probability of satisfying the constraints Reward: The reward is determined by the collaborative cache environment. Each user t Make content requests, and routing strategy y t For the RLC strategy, the variable represents a set of nodes, each of which has a pair f m All requests are served by node j, and the set The user in time slot t is responded to by node j about content f m The number of requests is expressed as From the perspective of the cache node, node j executes action a t The reward obtained is defined as the reduction in transmission cost, expressed as: The total system reward is calculated as: At this point, the collaborative caching problem is modeled as a sequential decision-making problem, whose goal is to maximize the cumulative discounted reward, expressed as: st(1). Where V π (s) represents the state value function. Then, the Bellman function is used to derive the optimal strategy π for problem (P0) * , as shown below: in When the state transition probability If it is completely known in advance, the collaborative caching decision problem is NP-complete.
3. The method according to claim 2, characterized in that The AC learning model is used to solve the multi-agent Markov decision problem by using a collaborative caching algorithm C-MAAC based on partially decentralized multi-agent deep reinforcement learning MADRL, including: The value-based critic network and its target network of each agent are deployed in the population knowledge base of the mapping adaptation layer, and the selected actions of each actor network are evaluated through the global information in the information collection library; the policy-based actor network and its target network of each agent are deployed in the node knowledge base of each node in the fusion network layer, and the distributed cache decision-making of the fusion network layer is completed based on the local state information using the trained actor network; the independent and identically distributed random variables that obey the standard Gumbel distribution are introduced Get the GM sampler, that is, GM(μ j (s j )) to realize that the proposed C-MAAC algorithm can directly use the GM sampler to output actions during forward propagation; the Gumbel-softmax (GS) sampler is introduced to approximate the arg max in the GM sampler through a smoothing operation, as shown below: During offline training, Z experiences are randomly extracted from the dataset to update the parameters of the actor network and the critic network; specifically, the critic network of each agent j calculates a Q value And the parameters are updated by minimizing the timing difference error, that is: in Defined as a goal Then, each agent j updates the actor network using the gradient: At the same time, each agent soft-updates its parameters by: The step size τ>0 is a small value used to stabilize the training process; By solving the Markov decision problem, the optimal cache strategy is obtained to maximize the cumulative discount reward.
4. The method according to claim 3, characterized in that The P-CCCP method is used to derive the global optimization solution of the cache and routing joint optimization problem of the intelligent computing fusion network under the static and pre-known ideal assumption, including: Convert the transmission cost minimization problem into a maximization problem: st(1),(8). By introducing auxiliary variables Convert the objective function of (P1) into a concave function, and the cache reward of each time slot into the following equivalent form: in st (1),(17), (21) or t ≤1, (22) The variables in the above formula are Constraints (24) and (25) make the P-CCCP-based algorithm lose its optimality. A penalty term is introduced into the objective function to solve problem (P2). The solution process presents a double loop structure: 1) adjusting the penalty coefficient v in the outer loop, 2) optimizing the original variables in the inner loop. The detailed inner loop process is as follows: Step 1: Optimize a variable by fixing other variables and and Only exists in the objective function, by finding the variable and The derivatives of , and their optimal values, are as follows: Step 2: By fixing the variables and For variables Optimization is performed, and problem (P2) is transformed into the following convex optimization problem: st(21),(22),(23),(24),(25) The above problem is solved by using the convex optimization toolbox CVX to obtain the optimal caching strategy x(t) and routing strategy y(t).
