Bit rate adaptive method based on attention mechanism and buffer area perception
By introducing the attention mechanism and multi-objective optimization into the actor-critic neural network, combined with deep reinforcement learning, and dynamically adjusting the bit rate and buffer size, the problem of difficult balance between user experience quality and buffer occupancy in the existing technology is solved. Implemented more efficient video playback smoothness and buffer management.
Patent Information
- Application Number
- CN202410716074.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-30
AI Technical Summary
It is difficult for the existing technology to minimize the buffer occupancy rate while maintaining the quality of user experience, resulting in the failure to effectively solve the problem of data waste.
Using the actor-critic neural network based on the attention mechanism and buffer awareness, through multi-objective optimization goals, maximize the user experience quality and minimize the buffer occupancy rate, combine with deep reinforcement learning to train the neural network, and dynamically adjust the bit rate and buffer size.
It achieves a significant reduction in buffer waste while maintaining the quality of user experience, improving the smoothness of video playback and the efficiency of buffer occupancy. The algorithm quickly responds to changes in complex network environments, improving the accuracy and accuracy of bit rate adaptation. stability.
Smart Images

Figure CN118573971A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of neural network technology, and in particular to a bit rate adaptation method based on attention mechanism and buffer perception. Background Art
[0002] In recent years, network bandwidth has increased significantly, while the improvement of video compression efficiency has enabled the transmission of videos at lower bit rates in HD and even UHD resolutions. Existing adaptive bitrate (ABR) algorithms usually download the next video chunk immediately after the previous chunk is downloaded, which may result in a large amount of data waste when users exit the video early. To solve the data waste problem, a buffer-aware ABR mechanism is proposed, which jointly controls the maximum buffer size and the bitrate of the next video chunk to avoid excessive buffer accumulation and data waste.
[0003] After searching, China Invention Patent Publication No. CN116320620A discloses a streaming media bit rate adaptive adjustment method based on personalized federated reinforcement learning, which includes the following steps:
[0004] (1) Establish a reinforcement learning model, in which the environment state includes: the network throughput measurement value of several past video blocks, the download time of several past video blocks, the size of the next video block under various bit rate conditions, the current buffer occupancy rate, the number of remaining blocks of the current video, and the bit rate of the last downloaded video block; the client's action is the bit rate selection of the next video block; the reward returned by the environment is the contribution of the currently selected video block to QoE; the purpose of the objective equation is to maximize the user's quality of experience, including video clarity, client rebuffering time, and video bit rate smoothness; (2) The client performs deep reinforcement learning locally, and the process is as follows: the client collects the current state, inputs the current state into the policy network of the reinforcement learning model, the policy network returns the selected action, and the obtained action interacts with the environment to obtain {state-action-reward} pairs, uses {state-action-reward} pairs to train the value function network, and uses the value network function to train the policy network, and then repeats the above operations until the model converges; (3) Federated learning is performed between the client and the central server; (4) The client state is input into the trained personalized model to obtain the bit rate that maximizes the user's QoE. The existing patent has the problem of not taking minimization of the buffer as an optimization goal.
[0005] How to achieve bit rate adaptation that simultaneously considers maximizing user QoE and minimizing buffer occupancy has become a technical problem that needs to be solved. Summary of the invention
[0006] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a bit rate adaptation method based on attention mechanism and buffer perception.
[0007] The purpose of the present invention can be achieved by the following technical solutions:
[0008] According to one aspect of the present invention, a bit rate adaptation method based on attention mechanism and buffer perception is provided, the method comprising the following steps:
[0009] Step S1, inputting feature data into an actor-critic neural network, wherein the actor-critic neural network includes buffer-aware adaptive bitrate modeling, and its optimization objectives include maximizing user experience quality and minimizing buffer occupancy;
[0010] Step S2, after the actor-critic neural network receives the input feature state, it first performs the first step of screening and extracts primary features through the first fully connected layer and convolutional layer, then passes the extracted primary features to the attention layer for further feature extraction and sends them to the second fully connected layer for processing;
[0011] Step S3, the trained neural network outputs actions, and then further optimizes the network parameters after evaluation by the critic network, where the output actions include selecting the bit rate of the next block and setting the maximum buffer size of the next block.
[0012] Preferably, the actor network and the critic network of the actor-critic neural network each include three layers, wherein the first layer includes three 1D convolutional layers and five first fully connected layers, the second layer adds an attention layer, and the third layer is a fully connected layer.
[0013] More preferably, in the actor-critic neural network, the actor network is used for feature extraction, output bit rate action and maximum buffer action, and the critic network is used for outputting the state and evaluation of the current environment.
[0014] Preferably, the attention layer further extracts features as follows: the attention layer obtains the attention weights of the elements at each position of each element by calculation, performs weighted summation on different parts of the input sequence according to the attention weights, obtains a single vector representing the entire input sequence, and then weights the single vector with the input feature value and passes it to the second fully connected layer.
[0015] Preferably, the second fully connected layer further optimizes the feature data obtained in step S2; specifically, the second fully connected layer downsamples the feature data after receiving the feature in step S2 to further extract the feature.
[0016] Preferably, the characteristic data includes video playback statistics, video content indicators and buffer preference indicators;
[0017] The video playback statistics include the bit rate selected in the past, the current buffer occupancy, the throughput measurement of the past k data blocks, the video quality of the last block, and the download time;
[0018] The video content indicators include average bit rates at different bit rate levels;
[0019] The buffer preference index includes a current maximum buffer occupancy and a buffer weight.
[0020] Preferably, the constraints of the actor-critic neural network optimization objective are specifically:
[0021]
[0022] Among them, u t+1 is the download time of the next block, u t is the download time of video chunk t, δu t It is composed of round-trip time, rendering time, and additional waiting time caused by adjusting the maximum cache threshold; C n is the real-time network throughput at time n, C t is the download speed of video chunk t, B t+1 is the updated buffer occupancy of the next block, R t is the selected video bit rate, d t (·) is the code rate R t The video chunk size when .
[0023] Preferably, the reward function of the actor-critic neural network is a weighted sum of maximizing the user experience quality and minimizing the buffer occupancy rate, so that the multi-objective optimization problem of the adaptive bitrate modeling is transformed into a single-objective optimization problem, namely:
[0024]
[0025] Among them, w is the weight, B t is the buffer occupancy, R N is the bit rate of the Nth video block.
[0026] Preferably, the actor-critic neural network is trained using a policy gradient algorithm;
[0027] The policy gradient algorithm includes two policy parameters, where the gradient calculation formula of the policy parameters θ1 and θ2 is as follows:
[0028]
[0029] in, is the advantage function, r t represents the reward value, γ t is the introduced regularization parameter, and represents the calculation of mathematical expectation, and Respectively represent the state S t Take action in t and b t probability.
[0030] Preferably, the actor network parameter update of the actor-critic neural network follows:
[0031]
[0032]
[0033] Among them, α is the learning rate, A() is the advantage function, and Respectively represent the state S t Take action in t and b t , H(·) is the entropy of the strategy at each time step, β is a hyperparameter, θ1 and θ2 are actor network parameters;
[0034] The critic network parameter θ of the actor-critic neural network is trained using the temporal difference method v :
[0035]
[0036] in, for The estimated value of is output by the critic network; α' is the learning rate of the critic network, r t For state S t The final reward obtained by taking action; t is the introduced regularization parameter.
[0037] Compared with the prior art, the present invention has the following beneficial effects:
[0038] 1) In the actor-critic network, the present invention designs multi-objective optimization and uses an attention mechanism to focus feature extraction on the features that the current task focuses on (buffer occupancy and user experience quality), so that the accuracy of the actor action output is higher and the cumulative expected reward is better. In a complex network environment, the network can quickly observe changes and quickly take actions based on the changes to select an adaptive bit rate, so that better user experience quality and lower buffer occupancy can be achieved at the same time, thereby making video playback smoother.
[0039] 2) The present invention uses a policy gradient algorithm to train a neural network and adds an entropy regularization term. Under the same external device conditions, the algorithm converges faster and the average reward is greater in the same round (epoch). BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a flowchart of a bit rate adaptation method based on attention mechanism and buffer perception in the present invention;
[0041] Figure 2 Schematic diagram of the actor-critic network structure in the present invention;
[0042] Figure 3 A schematic diagram of a network framework in which the bit rate adaptation method in the present invention is located;
[0043] In the figure, Past throughput: past network throughput; Past download time: past block download time; Buffer occupancy: buffer occupancy; Last chunk quality: video quality of the previous block; Remaining chunks: number of remaining video chunks; Video bitrate: video bitrate; Maximum buffer: maximum buffer size; Buffer weight: buffer weight; FC: fully connected layer; Conv-1D: 1D convolution layer; Flatten: unfolding; attention-layer: attention layer; merge: merge; softmax: output layer; Bitrate: bit rate; max-buffer size: maximum buffer size; value: estimated reward for the current state; actor: actor; critic: critic. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0045] The present invention avoids unnecessary buffer waste by jointly adjusting the maximum buffer size and the bit rate of the next fragment. The buffer-aware bitrate adjustment is modeled as a multi-objective optimization problem, considering maximizing QoE (quality of experience) and minimizing buffer occupancy. By using deep reinforcement learning (DRL) to train the neural network model, the DRL algorithm can simultaneously select the appropriate bit rate and set the maximum buffer. By designing a reasonable mechanism and using deep reinforcement learning for training, it is possible to significantly reduce buffer waste while maintaining QoE, providing an effective solution to the data waste problem of the current ABR algorithm.
[0046] This embodiment relates to a bit rate adaptation method based on attention mechanism and buffer perception, and the method comprises the following steps:
[0047] Step S1, from the input feature state S t In the process, data such as bit rate information, buffer information, and current network throughput are passed to the neural network;
[0048] Step S2: After the neural network receives the input data, it first performs the first step of screening through the fully connected layer and the convolutional layer to extract the primary features, and then passes the features to the attention layer of the next layer. The attention weight of each element is calculated in the attention layer, and the different parts of the input sequence are weighted and summed according to the attention weight to obtain a single vector representing the entire input sequence, which is then simply weighted with the input feature value and passed to the fully connected layer of the next layer;
[0049] Step S3, the fully connected layer of the next layer further optimizes the feature data obtained in step S2, specifically: the fully connected layer of the next layer receives the features of step S2 and then downsamples them to further obtain more detailed and better relevant features;
[0050] Step S4, train the neural network through the policy gradient algorithm, output the action (including bit rate and the maximum buffer size of the next block), and then further optimize the network parameters after evaluation by the critic network.
[0051] The neural network model used in this method is the actor-critic architecture, which extracts features through convolutional layers and fully connected layers and outputs actions. The main ones are:
[0052] 1. Input features: including video playback statistics (such as the bitrate selected in the past, the current buffer occupancy, the video quality of the previous block, etc.), video content indicators (such as the average bitrate of different bitrate levels), and buffer preference indicators (current maximum buffer occupancy and buffer weight);
[0053] 2. Output action: Output two actions at the same time, one is to select the bit rate of the next block, and the other is to set the maximum buffer size of the next block;
[0054] 3. Network structure: It includes actor network and critic network. The actor network is used for feature extraction, output bit rate action and maximum buffer action. The critic network mainly outputs the state and evaluation of the current environment.
[0055] The buffer-aware bitrate adaptation algorithm is formally modeled as follows: In a typical adaptive bitrate (ABR) video stream, the video is pre-divided into a series of blocks, each of which is divided into the same video time L seconds. Assume a bitrate R = {R1, R2, ..., R M} video has M bitrate levels. Let B t is the buffer occupancy at the beginning of downloading block t, R t is the selected video bit rate, C t is the average throughput measured, d t (·) is the code rate R t The video block size at the time. The buffer occupancy of the next block B t+1 It can be expressed as:
[0056]
[0057] in, is the maximum buffer occupancy.
[0058] The current buffer size has been reached or exceeded , the video player will wait for the buffer to be consumed to the level where the next chunk t+1 can be downloaded. By using this mechanism, the video player can "defer" downloading chunks for a period of time, and then actively select chunks at any time in the future. Such operations can avoid unnecessary waste of playback buffer.
[0059] Here, the buffer-aware bitrate adaptation problem is modeled as a multi-objective optimization problem, namely maximizing QoE (user quality of experience) and minimizing the buffer occupancy B. t .Right now:
[0060]
[0061] Constraints:
[0062]
[0063] In formula (2) to formula (5), u t+1 is the download time of the next block, u t is the download time of video chunk t, δu t It is composed of round-trip time (i.e. the time from the client requesting download to the server responding to download), rendering time, and additional waiting time caused by adjusting the maximum cache threshold; C n is the real-time network throughput at time n, C t represents the download speed of video chunk t, B t+1 is the updated buffer occupancy of the next block, R t is the selected video bit rate, d t (·) is the code rate R t The video chunk size when is the maximum buffer occupancy, R N is the bit rate of the Nth video block, d n It is the integral symbol in mathematics.
[0064] Since a multi-objective optimization problem has a set of solutions, it is impossible to optimize another by reducing the other. Using simple additive weighting, the multi-objective optimization is transformed into a single-objective optimization problem, namely:
[0065]
[0066] Among them, w is the weight, B t is the buffer occupancy rate.
[0067] For complex state inputs (such as network environment and buffer status), efficient feature extraction is required. An attention mechanism is added to the neural network to remove useless information and only extract features that are most relevant to the action output (such as bit rate level and buffer level). When the network environment is variable, the state of the neural network also has many different possibilities. How to enable the model to smoothly handle these changes is an urgent problem to be solved. According to the characteristics of reinforcement learning, the intelligent agent constantly interacts with the environment to make the best action selection. Consider adding an attention layer during feature extraction. In different environments, the key features in the current network can be quickly observed. For example, when the network bandwidth changes, the model can quickly observe the changes and quickly make action choices based on the changes, thereby reducing the decline in user experience quality caused by fluctuations in the network environment.
[0068] Attention Mechanism is a technique widely used in deep learning models to improve the model's ability to process information. The basic idea is to enable the model to focus on the most important parts of the input data instead of treating all the information in the data equally. This mechanism is very effective in various tasks, especially in the fields of natural language processing (NLP) and computer vision. The attention mechanism was originally proposed in the field of psychology to describe that humans pay more attention to certain information when processing information, so as to better understand and process this information. In the field of deep learning, the attention mechanism is used to simulate this phenomenon, so that the model can automatically learn which parts of the input data are most important for the current task. The basic component of the attention mechanism is an attention layer, which calculates the attention weights based on the query and key, and then weighted sums the values according to these weights to generate the attention output. Through the attention mechanism, the model can automatically identify and focus on the key features in the data, thereby improving the performance of the task. The attention mechanism is an effective method that enables deep learning models to process complex data more flexibly and intelligently. It has become an important part of many modern deep learning models and has achieved remarkable results in various tasks.
[0069] The neural network of the present invention is introduced below, including:
[0070] State representation: The current state S of the client and the playback buffer t Represented as {N t ,V t ,ω}, where N t Including video playback statistics, V t Contains video content indicators, ω represents the buffer preference indicator. For video playback statistics N t , four key indicators are used to describe the video playback status. Including the past bit rate selection q t , the current buffer occupancy B t At the same time, it also contains two sequences, namely the throughput measurement values C of the past k data blocks t and download time m t For video content indicator V t , directly taking the average bit rate of each bit rate level as the video information. In practical applications, users and content providers may have different requirements for balancing QoE and buffer. In order to express different application requirements, the current maximum buffer occupancy is and the buffer weight ω are brought into the state.
[0071] Action selection: In state S tThe next neural network model outputs two actions, namely selecting the bit rate a for the next block t and set the "relative" maximum buffer size b for the next chunk t . Maximum buffer occupancy Updated to:
[0072]
[0073] Neural network architecture: It adopts the actor-critic network structure. The actor network outputs the bitrate action probability and the maximum buffer action probability, and the critic network outputs the evaluation of the current environment.
[0074] Reward function: Use QoE maximization and buffer occupancy B t The reward function is a simple weighted sum that is minimized, and the formula is as follows:
[0075] MAX∑QoE-ωB t (8)
[0076] Attention layer: Calculation of query, key, and value. At each position, the attention layer calculates a query vector, key vector, and value vector. Explain the attention layer in the network in detail.
[0077] First, the input vector is converted into query, key, and value vectors through linear transformation. Matrix multiplication is performed between the weight matrix and the input vector.
[0078] Q=XW Q
[0079] K=XW K
[0080] V=XW V
[0081] Where X is the input data, W Q ,W K ,W V is a learnable weight matrix.
[0082] Second, we calculate the dot product between the query and the key to get the attention score: S = QK T . Where S is the attention score matrix.
[0083] Again, we scale the attention score. To prevent the gradient from disappearing or exploding due to excessive dot products in long sequences, we scale the attention score: Where S' is the scaled attention score matrix and d is the dimension of the attention head.
[0084] Then, the attention scores are converted into probability distributions through the softmax function: in, is the attention weight matrix, and each row of it adds up to 1. To calculate the weighted value, we multiply the attention weight by the value vector to get the weighted value. Among them, A is the output matrix, and each row of it is the weighted sum of the corresponding position in the input sequence. Each element in A is the attention weight of the element at each position. Through this weight, we can know the key information that the model pays attention to in the current task.
[0085] Policy gradient training: After receiving the state S t When , the agent selects actions based on the strategy, which is defined as the probability distribution of actions:
[0086] The gradient of the policy parameters θ1, θ2 can be calculated as:
[0087]
[0088] in, is the advantage function, r t represents the reward value, γ t is the introduced regularization parameter, and represents the calculation of mathematical expectation, and Respectively represent the state S t Take action in t and b t probability.
[0089] Each update of the actor network parameters θ follows:
[0090]
[0091] Among them, α is the learning rate, A() is the advantage function, and Respectively represent the state S t Take action in t and b t probability.
[0092] Use the time difference method to train the critic network parameters θ v :
[0093]
[0094] in, yes The estimated value of is output by the critic network; α' is the critic's learning rate, r t In state St The final reward obtained by taking action; t is the introduced regularization parameter.
[0095] We must ensure that the RL agent fully explores the action space during training to discover a good policy. We add an entropy regularization term to the update rule of the actor network to encourage exploration. This is crucial to help the agent converge to a good policy. The actor network parameters are then updated:
[0096]
[0097] Among them, α is the learning rate, A() is the advantage function, and Respectively represent the state S t Take action in t and b t , θ1 and θ2 are the actor network parameters, H(·) is the entropy of the policy at each time step (the probability distribution of actions), and the hyperparameter β is used to control the regularization term of the entropy and the gradient of the entire objective function including entropy. The hyperparameter β is set to a large value at the beginning of training (to encourage exploration) and decreases over time to emphasize improving rewards.
[0098] In general, this method is well designed. Through the careful design of input features, separation of output actions and optimization of training methods, it solves the challenges of deep reinforcement learning in the task of adaptive bitrate buffer control and achieves balanced control of buffer occupancy and user experience. However, this method also has some problems. First, when in a complex network environment, such as a 5G network, or when the network is unstable and the data transmission fluctuates greatly, it is impossible to focus the model on the changing network throughput by relying solely on simple feature extraction. The neural network cannot quickly observe network fluctuations, so the trained model cannot make a good bitrate selection, and the user experience quality will be relatively reduced. Similarly, when the bitrate changes due to network fluctuations, the maximum buffer size also needs to be changed quickly to balance the user experience quality. Therefore, a better feature extraction module is needed to quickly capture changes in the network environment and make corresponding action choices.
[0099] like Figure 1The flowchart first obtains input data from the server, including past network throughput, past block download time, video bit rate, buffer occupancy, remaining video blocks, maximum buffer, and buffer weight. Then, the data is input into the actor-critic neural network. After the actor network obtains the data, it will make an action selection based on the current state (state), and the state becomes state+1. According to the reward function, the reward is returned to the agent. At this time, the critic network will evaluate the entire current state, and the cycle will repeat until the optimal action is found. The buffer size and bit rate level of the next block are set according to the optimal result.
[0100] like Figure 2 The neural network structure diagram, state includes the past bit rate selection, current buffer occupancy, throughput measurement and download time of past blocks, current maximum buffer size and buffer weight. The first layer of the actor network and the critic network contains 3 1D convolutional layers and 5 fully connected layers. The attention layer is added to the second layer of the actor network and the critic network to better extract features and remove redundant information interference. The third layer is a fully connected layer. The features extracted by the attention layer are first merged and then output to the next layer using the fully connected layer. In practical problems, the choice of bit rate should be the top priority, so a separate fully connected layer is set in the actor network to downsample the bit rate action to obtain better bit rate action, while the buffer directly uses the softmax layer to output the action probability. After merging in the critic network, a fully connected layer is set, and then the result is output through a fully connected layer with only one neuron.
[0101] like Figure 3 The framework diagram is mainly to illustrate how the adaptive bit rate (ABR) algorithm implements bit rate control and its main general framework. The ABR algorithm here is an adaptive bit rate control algorithm output by a neural network.
[0102] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A bitrate adaptation method based on attention mechanism and buffer awareness, It is characterized in that The method comprises the following steps: Step S1, inputting feature data into an actor-critic neural network, wherein the actor-critic neural network includes buffer-aware adaptive bitrate modeling, and its optimization objectives include maximizing user experience quality and minimizing buffer occupancy; Step S2, after the actor-critic neural network receives the input feature state, it first performs the first step of screening and extracts primary features through the first fully connected layer and convolutional layer, then passes the extracted primary features to the attention layer for further feature extraction and sends them to the second fully connected layer for processing; Step S3, the trained neural network outputs actions, and then further optimizes the network parameters after evaluation by the critic network, where the output actions include selecting the bit rate of the next block and setting the maximum buffer size of the next block.
2. The bit rate adaptation method based on attention mechanism and buffer perception according to claim 1, It is characterized in that The actor network and the critic network of the actor-critic neural network both include three layers, wherein the first layer includes three 1D convolutional layers and five first fully connected layers, the second layer adds an attention layer, and the third layer is a fully connected layer.
3. The bit rate adaptation method based on attention mechanism and buffer perception according to claim 2, It is characterized in that In the actor-critic neural network, the actor network is used for feature extraction, outputting bit rate action and maximum buffer action, and the critic network is used for outputting the state and evaluation of the current environment.
4. The bit rate adaptation method based on attention mechanism and buffer perception according to claim 1, It is characterized in that The attention layer further extracts features as follows: the attention layer calculates the attention weights of the elements at each position of each element, performs weighted summation on different parts of the input sequence according to the attention weights, obtains a single vector representing the entire input sequence, and then weights the single vector with the input feature value and passes it to the second fully connected layer.
5. The bit rate adaptation method based on attention mechanism and buffer perception according to claim 1, It is characterized in that The second fully connected layer further optimizes the feature data obtained in step S2; specifically, the second fully connected layer downsamples after receiving the features in step S2 to further extract features.
6. The bit rate adaptation method based on attention mechanism and buffer perception according to claim 1, It is characterized in that The characteristic data includes video playback statistics, video content indicators and buffer preference indicators; The video playback statistics include the bit rate selected in the past, the current buffer occupancy, the throughput measurement of the past k data blocks, the video quality of the last block, and the download time; The video content indicators include average bit rates at different bit rate levels; The buffer preference index includes a current maximum buffer occupancy and a buffer weight.
7. The bit rate adaptation method based on attention mechanism and buffer perception according to claim 1, It is characterized in that The constraints of the actor-critic neural network optimization objective are specifically: Among them, u t+1 is the download time of the next block, u t is the download time of video chunk t, δu t It is composed of round-trip time, rendering time, and additional waiting time caused by adjusting the maximum cache threshold. n is the real-time network throughput at time n, C t is the download speed of video chunk t, B t+1 is the updated buffer occupancy of the next block, R t is the selected video bit rate, d t (·) is the code rate R t The video chunk size when .
8. The bit rate adaptation method based on attention mechanism and buffer perception according to claim 1, It is characterized in that The reward function of the actor-critic neural network is a weighted sum of maximizing the user experience quality and minimizing the buffer occupancy rate, so that the multi-objective optimization problem of the adaptive bitrate modeling is transformed into a single-objective optimization problem, namely: Among them, w is the weight, B t is the buffer occupancy, R N is the bit rate of the Nth video block.
9. The bit rate adaptation method based on attention mechanism and buffer perception according to claim 1, It is characterized in that The actor-critic neural network is trained using a policy gradient algorithm; The policy gradient algorithm includes two policy parameters, where the policy parameter θ 1 and θ 2 The gradient of is calculated as follows: in, is the advantage function, r t represents the reward value, γ t is the introduced regularization parameter, and represents the calculation of mathematical expectation, and Respectively represent the state S t Take action in t and b t probability.
10. The bit rate adaptation method based on attention mechanism and buffer awareness according to claim 1, It is characterized in that The actor network parameter update of the actor-critic neural network follows: Among them, α is the learning rate, A() is the advantage function, and Respectively represent the state S t Take action in t and b t The probability of H(·) is the entropy of the strategy at each time step, β is the hyperparameter, and θ 1 and θ 2 are the actor network parameters; The critic network parameter θ of the actor-critic neural network is trained using the temporal difference method v : in, for The estimated value of is output by the critic network; α' is the learning rate of the critic network, r t For state S t The final reward obtained by taking action; γ t is the introduced regularization parameter.
Citation Information
Cited By
VR video adaptive code rate control method based on multi-agent reinforcement learning
CN120151495A
