A cognitive service caching method and system for resource-consuming applications

By detecting the cache awareness index of users and tasks, combining the multi-arm bandit algorithm and UCB algorithm, optimizing the cache strategy and selecting the edge cloud with the minimum task cost, the problem of poor cache strategy in the existing technology is solved, and a lower cost is achieved. Delay and learning regret, improving resource utilization and cost-effectiveness.

CN113868153BInactive Publication Date: 2024-10-22HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111077343.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-14
Publication Date
2024-10-22
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology fails to comprehensively consider factors such as user mobility, device storage, and content popularity, resulting in poor caching strategies and inability to effectively optimize caching costs.

Method used

The cognitive service caching method for resource-consuming applications is adopted, by detecting the cache perception index of users and tasks, performing spatial decomposition after normalized fusion, and combining the combined multi-arm bandit algorithm and the adaptive combined change factor UCB algorithm to perform For online learning, select the edge cloud with the smallest task cost for caching and optimize the caching strategy.

Benefits of technology

It achieves lower latency and learning regret, improves resource utilization, and reduces network consumption costs, which is better than other caching methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113868153B_ABST
    Figure CN113868153B_ABST
Patent Text Reader

Abstract

The present invention discloses a cognitive service caching method and system for resource-consuming applications, and belongs to the field of supercomputing cloud environment. First, a service caching model with minimum delay is constructed, so that the delay required for users to obtain services is minimized under the premise of satisfying the task requests issued by users, that is, a minimum task cost problem is solved. The present invention solves this problem under the framework of multi-armed gambling (MAB), and converts the service caching problem into a combined multi-armed gambling machine problem. Using the improved combined multi-armed gambling machine algorithm for learning, an adaptive combined change factor UCB (CFUCB) algorithm is proposed. Each time a user issues a request, the algorithm can use the cache-aware index and the user request to learn to execute the optimal service caching decision. Compared with other caching methods, the cognitive service caching method in the present invention produces less delay and less learning regret, so the cognitive caching method proposed in the present invention is superior to other caching methods.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of supercomputing cloud environment, and more specifically, relates to a cognitive service caching method and system for resource-consuming applications. Background Art

[0002] As the foundation of computing research, supercomputing serves major national scientific research projects and also serves scientific research in application fields such as education, meteorology, oceanography, artificial intelligence, and bioinformatics. Most institutions such as universities and enterprises use supercomputing by building their own supercomputing clusters, but self-building requires a long process of research, selection, price comparison, procurement, construction, deployment, security, asset management, and operation and maintenance, and the cost investment is huge, and the input-output ratio is relatively low. With the development of "cloud computing", "supercomputing" and "cloud computing" are combined, and supercomputing cloud platforms have been born in the market. Supercomputing cloud platforms are Internet-based supercomputing services. Users can directly use the computing resources of large supercomputing centers and data centers on the Internet to conduct scientific research. Supercomputing cloud platforms can enable more users to use supercomputing resources better and more conveniently, and the cost is greatly reduced compared to the past.

[0003] For some resource-consuming applications, that is, applications that consume a lot of computing resources during use, such as meteorological service applications, a large amount of real-time meteorological data needs to be obtained and processed during use. Therefore, resource-consuming applications usually need to be processed on the super cloud platform, but due to the timeliness of resources, these resources will be released after use, resulting in one-time use of computing resources.

[0004] To solve this problem, edge caching has been proposed. Edge caching is to cache popular content in advance on base stations and mobile devices during low traffic periods. This can not only relieve the pressure on the backhaul link, but also reduce the transmission delay of the content. Therefore, edge caching has attracted widespread attention. Some edge cloud-based applications require specific data as support. The resources on the super cloud platform can be used for other computing and analysis. If we can learn the correlation between user and application needs, pre-cache in the super cloud environment, and delegate it to edge cloud users, users can more conveniently obtain the required computing resources, improve resource utilization, and reduce network consumption costs.

[0005] However, existing cache strategies all consider a certain index that affects the cache. However, in the actual cache process, the heterogeneity of devices, the dynamics of the user's environment, and the inherent properties of the file such as size and popularity will affect the cache cost. Therefore, it is necessary to study a new cache strategy that can simultaneously consider the impact of user mobility, storage of mobile devices, content popularity, etc. on the cache, and optimize the problem of minimizing the cache cost. Summary of the invention

[0006] In view of the defects of the related art, the purpose of the present invention is to provide a cognitive service caching method and system for resource-consuming applications, aiming to solve the problem that the prior art fails to comprehensively consider the cache influencing factors, resulting in poor caching strategy.

[0007] To achieve the above object, one aspect of the present invention provides a cognitive service caching method for resource-consuming applications, comprising the following steps:

[0008] S1. Detecting the user cache perception index and the task cache perception index;

[0009] S2. normalizing the user cache perception index and the task cache perception index, and then fusing them to obtain a joint cache perception index;

[0010] S3. decompose the joint cache-aware index space at different time points into corresponding hypercube spaces;

[0011] S4. Use the combined multi-armed bandit algorithm for online learning, taking users as players, the service provider edge cloud as arms in the combined multi-armed bandit problem, and placing the candidate arm sets at different time points in the hypercube space;

[0012] S5. Set a suitable offset sequence as the balance equation, obtain the super arm corresponding to the minimum task cost, and obtain the service cache strategy with the minimum delay, so as to select the edge cloud;

[0013] S6. Cache the task on the selected edge cloud, and the edge cloud completes the task requested by the user.

[0014] Furthermore, the adaptive combined change factor UCB algorithm is used to obtain the superarm corresponding to the minimum task cost;

[0015] The input of the adaptive combined variation factor UCB algorithm includes the weight of each arm, the number of times each arm has been selected before, the cache awareness index and the request of the task request user.

[0016] Furthermore, the user cache awareness index includes time, location and device status, and the task cache awareness index includes content size and content popularity.

[0017] Furthermore, the step S5 comprises:

[0018] Observe the cost of edge cloud provided by services in the candidate arm set;

[0019] Update the delay cost V(t,n) of the selected task requesting user;

[0020] Update the weight value of the delay provided by edge cloud n:

[0021] r t,n =1-V(t,n) / V max (t);

[0022] Where V max (t) is the maximum delay in all edge clouds at time t;

[0023] Record the edge clouds selected at different time points, and set the selected arm to 1, that is,

[0024] A t,n =1

[0025] Update the Bernoulli distribution function:

[0026]

[0027] Update the number of times edge cloud n provides services at time point t:

[0028] N n,h (t) = N n,h (t)+1.

[0029] Another aspect of the present invention further provides a cognitive service cache system for resource-consuming applications, comprising a learning unit and a selection unit;

[0030] The learning units include:

[0031] A detection module, used to detect a user cache perception index and a task cache perception index;

[0032] A fusion module, normalizing the user cache perception index and the task cache perception index, and then fusing them to obtain a joint cache perception index;

[0033] Decomposition module, decomposes the joint cache-aware index space at different time points into corresponding hypercube spaces;

[0034] The CFUCB module uses the combined multi-armed bandit algorithm for online learning. It takes users as players and the service-providing edge cloud as the arms in the combined multi-armed bandit problem. It places candidate arm sets at different time points in the hypercube space. It sets a suitable offset sequence as the equilibrium equation, obtains the hyperarm corresponding to the minimum task cost, and obtains the service caching strategy with the minimum delay, thereby selecting the edge cloud.

[0035] The selection unit is used to cache the task on the selected edge cloud, and the edge cloud completes the task requested by the user.

[0036] Furthermore, in the CFUCB module, an adaptive combined change factor UCB algorithm is used to obtain the super arm corresponding to the minimum task cost;

[0037] The input of the adaptive combined variation factor UCB algorithm includes the weight of each arm, the number of times each arm has been selected before, the cache awareness index and the request of the task request user.

[0038] Furthermore, the user cache awareness index includes time, location and device status, and the task cache awareness index includes content size and content popularity.

[0039] Furthermore, in the CFUCB module, a suitable offset sequence is set as a balance equation to obtain the super arm corresponding to the minimum task cost, and the service cache strategy with the minimum delay is obtained, including:

[0040] Observe the cost of edge cloud provided by services in the candidate arm set;

[0041] Update the delay cost V(t,n) of the selected task requesting user;

[0042] Update the weight value of the delay provided by edge cloud n:

[0043] r t,n =1-V(t,n) / V max (t);

[0044] Where V max (t) is the maximum delay in all edge clouds at time t;

[0045] Record the edge clouds selected at different time points, and set the selected arm to 1, that is,

[0046] A t,n =1

[0047] Update the Bernoulli distribution function:

[0048]

[0049] Update the number of times edge cloud n provides services at time point t:

[0050] N n,h (t) = N n,h (t)+1.

[0051] Through the above technical solutions conceived by the present invention, compared with the prior art, the cognitive caching method of the present invention comprehensively considers the cache perception index related to users and tasks, and takes it together with time as the input of the learning unit. Whenever the user initiates a new task request, a cache strategy is made through an adaptive UCB algorithm. Through simulation experiments, the results show that compared with other caching methods, the cognitive service caching method in the present invention produces less delay and less learning regret, so the cognitive caching method proposed by the present invention is superior to other caching methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is an overall schematic diagram of the method of the embodiment of the present invention;

[0053] Figure 2 is a comparison chart of average delay results of different caching methods in an embodiment of the present invention;

[0054] Figure 3 3 is a comparison chart of average learning regret value results of different caching methods in the embodiments of the present invention. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0056] To achieve the above object, an aspect of an embodiment of the present invention provides a cognitive service caching method for resource-consuming applications, comprising the following steps:

[0057] S1. Detecting the user cache perception index and the task cache perception index;

[0058] S2. normalizing the user cache perception index and the task cache perception index, and then fusing them to obtain a joint cache perception index;

[0059] The user cache awareness index includes time, location and device status, and the task cache awareness index includes content size and content popularity.

[0060] S3. decompose the joint cache-aware index space at different time points into corresponding hypercube spaces;

[0061] S4. Use the combined multi-armed bandit algorithm for online learning, taking users as players, the service provider edge cloud as arms in the combined multi-armed bandit problem, and placing the candidate arm sets at different time points in the hypercube space;

[0062] S5. Set a suitable offset sequence as the balance equation, use the adaptive combined change factor UCB algorithm to obtain the super arm corresponding to the minimum task cost, and obtain the service cache strategy with the minimum delay, so as to select the edge cloud;

[0063] The input of the adaptive combined change factor UCB algorithm includes the weight of each arm, the number of times each arm has been selected before, the cache awareness index, and the request of the task requesting user;

[0064] S6. Cache the task on the selected edge cloud, and the edge cloud completes the task requested by the user.

[0065] Furthermore, the step S5 comprises:

[0066] Observe the cost of edge cloud provided by services in the candidate arm set;

[0067] Update the delay cost V(t,n) of the selected task requesting user;

[0068] Update the weight value of the delay provided by edge cloud n:

[0069] r t,n =1-V(t,n) / V max (t);

[0070] Where V max (t) is the maximum delay in all edge clouds at time t;

[0071] Record the edge clouds selected at different time points, and set the selected arm to 1, that is,

[0072] A t,n =1

[0073] Update the Bernoulli distribution function:

[0074]

[0075] Update the number of times edge cloud n provides services at time point t:

[0076] N n,h (t) = N n,h (t)+1.

[0077] Another aspect of the embodiment of the present invention further provides a cognitive service cache system for resource-consuming applications, including a learning unit and a selection unit;

[0078] The learning units include:

[0079] A detection module, used to detect a user cache perception index and a task cache perception index;

[0080] A fusion module, normalizing the user cache perception index and the task cache perception index, and then fusing them to obtain a joint cache perception index;

[0081] Decomposition module, decomposes the joint cache-aware index space at different time points into corresponding hypercube spaces;

[0082] The CFUCB module uses the combined multi-armed bandit algorithm for online learning. It takes users as players and the service-providing edge cloud as the arms in the combined multi-armed bandit problem. It places candidate arm sets at different time points in the hypercube space. It sets a suitable offset sequence as the equilibrium equation, obtains the hyperarm corresponding to the minimum task cost, and obtains the service caching strategy with the minimum delay, thereby selecting the edge cloud.

[0083] The selection unit is used to cache the task on the selected edge cloud, and the edge cloud completes the task requested by the user.

[0084] The specific functions of each unit can be found in the introduction of the aforementioned method embodiment, which will not be repeated here.

[0085] The contents involved in the above embodiment are described below in conjunction with a preferred embodiment.

[0086] The system model includes cloud, edge cloud and users. The cloud includes K services. Each user randomly requests services from the edge cloud. It is assumed that the user's request pattern is unknown. Figure 1 ,To implement cognitive caching, a cache agent needs to be deployed, which includes a learning unit and a selection unit. The learning unit learns the cache awareness index of users and tasks. The selection unit makes cache decisions based on the learning module.

[0087] In the hyper-cloud environment, the terminals are divided into two categories: task requesting users (ReU) and service providing edge clouds (SeC). When ReU issues a task request:

[0088] First, check whether the edge cloud you are in can provide it. If yes, get it directly.

[0089] Secondly, we try to obtain it from other edge clouds in the super cloud network. Assume that the user set is N = {1, 2, ..., N}. Assume that the system runs in a discrete time period T = {1, 2, ..., T}, where T represents a limited time range.

[0090] Cache-aware exponential model:

[0091] When caching, the cache awareness index of the user and the cache awareness index of the task will affect the user's cache strategy and request strategy. Assume that the cache awareness index of user i is For X i Dimension, that is in Indicates indexes such as time and user's location. Normalized to the interval [0, 1], that is:

[0092] Assume that the cache-aware index of task f is Cf Dimension, that is in Indicates the size, type, etc. of the task. Normalized to the interval [0, 1], that is:

[0093] The two cache-aware indices are fused as the joint cache-aware index:

[0094]

[0095] Cache delay model:

[0096] The caching strategy should balance the average task latency and the number of task requests that can be saved. When caching tasks, the average latency is:

[0097]

[0098] Where D is the average task delay saved, and R is the number of task requests.

[0099] Next, the problem is solved based on the reinforcement learning algorithm.

[0100] The goal of the present invention is to minimize the delay required for ReU to obtain services while satisfying the task request issued by ReU, that is, a minimum task cost problem.

[0101] The minimum task cost problem is an online learning problem that can be solved under the multi-armed gambling (MAB) framework, which transforms the service caching problem into a combinatorial multi-armed bandit problem.

[0102] Specifically, ReU is the player, and SeC is equivalent to the arm in the MAB problem. The minimum task cost problem is an optimization solution obtained under the influence of the task and service cache awareness index, so the existing MAB algorithm is improved and extended, and an adaptive combined change factor UCB (CFUCB) algorithm is proposed. In addition to the weight of each arm and the number of times each arm has been selected before, the algorithm also adds the cache awareness index and ReU requests as the input of the algorithm to learn and execute the optimal service cache decision.

[0103] The decomposition module in the learning unit can be cache-aware index space Decomposed into size The hypercube H T , called H T is the decomposed hypercube space. At different time points, SeC is placed in the corresponding hypercube according to the cache perception index of users and services. In this way, the set of candidate SeCs will change with the change of time points. Where h is a hypercube, h∈H TIn addition, T, H T as input to the algorithm.

[0104] Then find the SeC superarm corresponding to the minimum task cost, and obtain the optimal SeC superarm by setting a suitable offset sequence as the balance equation, and update various parameters of the corresponding SeC at the same time:

[0105] ① The delay cost V(t,n) of the selected task requesting user;

[0106] ②The weight value of the delay provided by edge cloud n:

[0107] r t,n =1-V(t,n) / V max (t);

[0108] Where V max (t) is the maximum delay in all edge clouds at time t;

[0109] ③Record the edge cloud selected at different time points, and set the selected arm to 1, that is,

[0110] A t,n =1

[0111] ④Bernoulli distribution function:

[0112]

[0113] ⑤The number of times edge cloud n provides services at time point t:

[0114] N n,h (t) = N n,h (t)+1.

[0115] This way, the algorithm can achieve its learning goals as closely as possible over time.

[0116] Finally, the selection unit caches the task to the selected edge cloud based on the output of the learning unit, and the edge cloud then completes the user's task.

[0117] The present invention adopts an adaptive UCB algorithm and uses an improved combined multi-armed bandit to learn the resource-consuming application cache solution in the super cloud environment, and finds the best cognitive service cache method to achieve service cache with minimum delay. Since the cache index of supercomputing users and tasks cannot be known in advance in the super cloud computing environment, the multi-armed game theory is used to learn the cache index to achieve an exploration-utilization balance.

[0118] The present invention conducts simulation analysis on the proposed solution and makes a comparative experiment with other two service cache solutions. Figure 2The figure shows the change of average latency under different caching schemes. It can be seen that as the learning time increases, the average latency of the three schemes is constantly decreasing, and finally reaches stability after a certain period of time. The triangle line represents the average latency under the ideal state of known user request patterns. However, in the hyper-cloud computing environment, the user's request pattern is often unknown. But after 500 rounds of learning, the caching scheme proposed by the present invention can make the average latency reach the same level, which is significantly better than other caching schemes.

[0119] Figure 3 The changes in the average learning regret value under different caching schemes are shown. It can be seen that the regret values ​​under the three strategies are greatly reduced within 100 rounds of learning and reach stability within 200 rounds. The caching scheme proposed in this invention can also achieve very low learning regret, which is better than other caching schemes.

[0120] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A cognitive service caching method for resource-consuming applications, characterized in that: The following steps are involved: S1. Detecting the user cache perception index and the task cache perception index; S2. normalizing the user cache perception index and the task cache perception index, and then fusing them to obtain a joint cache perception index; S3. decompose the joint cache-aware index space at different time points into corresponding hypercube spaces; S4. Use the combined multi-armed bandit algorithm for online learning, taking users as players, the service provider edge cloud as arms in the combined multi-armed bandit problem, and placing the candidate arm sets at different time points in the hypercube space; S5. Set a suitable offset sequence as a balance equation, use an adaptive combined change factor UCB algorithm to obtain the super arm corresponding to the minimum task cost and update the parameters of the corresponding service provider edge cloud, obtain the service cache strategy with the minimum delay, and thus select the edge cloud; the input of the adaptive combined change factor UCB algorithm includes the weight of each arm, the number of times each arm has been selected before, the cache perception index, and the request of the task request user; The process of updating the parameters of the corresponding service providing edge cloud includes: Observe the cost of edge cloud provided by services in the candidate arm set; Update the delay cost V(t,n) of the selected task requesting user; Update the weight value of the delay provided by edge cloud n: r t,n =1-V(t,n) / V max (t); Where V max (t) is the maximum delay in all edge clouds at time t; Record the edge clouds selected at different time points, and set the selected arm to 1, that is, A t,n =1 Update the Bernoulli distribution function: Update the number of times edge cloud n provides services at time point t: N n,h (t)=N n,h (t)+1; S6. Cache the task on the selected edge cloud, and the edge cloud completes the task requested by the user.

2. The cognitive service caching method according to claim 1, characterized in that: The user cache awareness index includes time, location and device status, and the task cache awareness index includes content size and content popularity.

3. A cognitive service cache system for resource-consuming applications, characterized in that: Includes study units and optional units; The learning units include: A detection module, used to detect a user cache perception index and a task cache perception index; A fusion module, normalizing the user cache perception index and the task cache perception index, and then fusing them to obtain a joint cache perception index; Decomposition module, decomposes the joint cache-aware index space at different time points into corresponding hypercube spaces; The CFUCB module adopts the combined multi-armed bandit algorithm for online learning, takes the user as the player, takes the service providing edge cloud as the arm in the combined multi-armed bandit problem, and places the candidate arm sets at different time points in the hypercube space; sets a suitable offset sequence as the equilibrium equation, adopts the adaptive combined change factor UCB algorithm to obtain the super arm corresponding to the minimum task cost and updates the parameters of the corresponding service providing edge cloud, obtains the service cache strategy with the minimum delay, and thus selects the edge cloud; the input of the adaptive combined change factor UCB algorithm includes the weight of each arm, the number of times each arm has been selected before, the cache perception index and the request of the task requesting user; the process of updating the parameters of the corresponding service providing edge cloud includes: Observe the cost of edge cloud provided by services in the candidate arm set; Update the delay cost V(t,n) of the selected task requesting user; Update the weight value of the delay provided by edge cloud n: r t,n =1-V(t,n) / V max (t); Where V max (t) is the maximum delay in all edge clouds at time t; Record the edge clouds selected at different time points, and set the selected arm to 1, that is, A t,n =1 Update the Bernoulli distribution function: Update the number of times edge cloud n provides services at time point t: N n,h (t)=N n,h (t)+1 The selection unit is used to cache the task on the selected edge cloud, and the edge cloud completes the task requested by the user.

4. The cognitive service cache system according to claim 3, characterized in that: The user cache awareness index includes time, location and device status, and the task cache awareness index includes content size and content popularity.