Strategy model training method and interaction method based on single sampling
By calculating the importance ratio of response trajectory samples and performing two-sided threshold masking, the training of single-sampling strategy models for large language models was optimized, solving the policy lag problem in asynchronous training and improving the stability of the model and the efficiency of task execution.
Patent Information
- Application Number
- CN202611412548.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-11
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies for large language models suffer from policy lag and limited stability during asynchronous training, especially in group-relative policy optimization algorithms. Improvements are needed in training methods for single-sampling policy models to enhance training efficiency and stability.
By obtaining the first and second log probabilities of the response trajectory samples in the training queue, calculating the importance ratio of the sample words, and performing masking based on the two-sided threshold, the target sample words are selected for iterative updates until the convergence condition is met. The target loss function and the value network loss function are then constructed to optimize the training process of the policy model.
It improves the stability and effectiveness of the policy model, reduces policy lag in asynchronous training, and enhances the model's performance in complex tasks, especially in mathematical reasoning and code generation tasks, where it outperforms traditional methods.
Smart Images

Figure CN123159448A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of artificial intelligence technology, and in particular to a strategy model training method and interaction method based on single-sampling. Background Technology
[0002] In recent years, large language models (LLMs) have demonstrated strong capabilities in complex tasks such as mathematical reasoning, code generation, and agent decision-making.
[0003] In related technologies, the mainstream Group Relative Policy Optimization (GRPO) algorithm is based on group sampling and relies on the relative advantage estimation of multiple response trajectories under the same prompt. Within a group, the slowest response trajectory must be completed before the entire group can begin training. This intra-group synchronization barrier significantly amplifies policy lag under asynchronous training, thus limiting the stability and effectiveness of asynchronous training in related technologies. Therefore, there is an urgent need to propose a policy model training method based on single-sampling, using the trained policy model as a large language model. Summary of the Invention
[0004] To address the problems in the existing technology, this invention provides a strategy model training method and interaction method based on single-sampling.
[0005] This invention provides a strategy model training method based on single-sampling, comprising the following steps.
[0006] For each response trajectory sample in the training queue, the first logarithmic probability of each sample word in the response trajectory sample is obtained, and the training queue includes a response trajectory sample corresponding to each prompt sample. The response trajectory samples are input into the policy model to be trained to obtain the second log probabilities of each sample word output by the policy model to be trained. For each of the sample words, the importance ratio of the sample word is determined based on the first log probability and the second log probability of the sample word. Mask the importance ratio of the sample word to obtain the mask value corresponding to the sample word; The sample words corresponding to the mask values located at both thresholds are determined as target sample words; The parameters of the policy model to be trained are iteratively updated based on the target sample lexical units until the convergence condition is met, thus obtaining the policy model.
[0007] According to a single-sampling-based strategy model training method provided by the present invention, determining the importance ratio of the sample word based on the first log probability and the second log probability of the sample word includes: Determine the difference between the first logarithmic probability and the second logarithmic probability of the sample word; Based on the difference, the importance ratio of the sample word is determined.
[0008] According to a single-sampling-based strategy model training method provided by the present invention, determining the importance ratio of the sample lexical units based on the difference includes: The importance ratio of the sample words is determined based on the following formula (1): (1) in, This represents the importance ratio of the t-th sample word in the response trajectory sample. The parameters of the policy model to be trained are represented. This represents the policy model to be trained. Indicates the current policy model. The response trajectory sample represents The t-th sample word in the sample, This represents all sample words preceding the t-th sample word in the response trajectory sample. This represents the first logarithmic probability of the t-th sample word. This represents the second logarithmic probability of the t-th sample word.
[0009] According to the present invention, a strategy model training method based on single-sampling is provided, wherein the parameters of the strategy model to be trained are iteratively updated based on the target sample lexical units until a convergence condition is reached to obtain the strategy model, comprising: The response trajectory samples are input into the initial value model to obtain the predicted value of each sample word output by the initial value model; The advantage estimate of the sample word is determined by using the generalized advantage estimation (GAE) based on the predictive value of the sample word. Based on the mask value corresponding to the target sample word, the second log probability of the target sample word, and the advantage estimate of the target sample word, the target loss function is determined; The parameters of the policy model to be trained are updated based on the target loss function until the convergence condition is met, thus obtaining the policy model.
[0010] According to a single-sampling-based strategy model training method provided by the present invention, the step of determining the target loss function based on the mask value corresponding to the target sample word, the second log probability of the target sample word, and the advantage estimate of the target sample word includes: The target loss function is determined based on the following formula (2): (2) in, Denotes the target loss function. Represents the mask function, Indicates the lower bound. Indicates the upper bound. This represents the advantage estimate of the t-th sample word. This represents the second logarithmic probability of the t-th sample word.
[0011] According to the present invention, a policy model training method based on single-sampling is provided, the method further includes: Based on the predicted value of the target sample word and the reward of the target sample word, a temporal difference TD target of the target sample word is constructed; Based on the difference between the TD target of the target sample word and the predicted value of the target sample word, the TD error corresponding to the target sample word is determined; Based on the TD error corresponding to each target sample word, the value network loss function is determined; During a single update of the parameters of the policy model to be trained based on the target loss function, the parameters of the initial value model are updated a preset number of times based on the value network loss function, where the preset number of times is greater than 1.
[0012] According to the present invention, a strategy model training method based on single-sampling is provided, wherein updating the parameters of the initial value model a preset number of times based on the value network loss function includes: Freeze the parameters of the attention module of the initial value model, and update the parameters of the hybrid expert layer and the feedforward layer of the initial value model a preset number of times based on the value network loss function.
[0013] According to a policy model training method based on single-sampling provided by the present invention, in a multi-round agent scenario, the response trajectory sample includes multi-round agent trajector ... The advantage estimate of the sample lexical units is determined based on the following formulas (3) and (4): (3) (4) in, Represents the sequence of the i-th sample word. The Middle The advantage estimation of n sample words, where N represents the sequence of n i sample words. The number of sample words in the middle Indicates TD error, Indicates the discount factor. Represents the (i+1)th sample word sequence The Middle Advantage estimation of individual sample words Indicates the first The reward for each sample word element, Represents the (i+1)th sample word sequence The Middle The predictive value of each sample word. Represents the sequence of the i-th sample word. The Middle The predictive value of each sample word.
[0014] According to the present invention, a policy model training method based on single-sampling is provided, the method further includes: Obtain a hint sample from the hint sample set; The prompt sample is input into the current strategy model to obtain a response trajectory sample corresponding to the prompt sample output by the current strategy model; Add a response trajectory sample corresponding to the prompt sample to the training queue.
[0015] The present invention also provides an interaction method based on a strategy model, comprising the following steps.
[0016] Get the prompt information; The prompt information is input into the strategy model to obtain the response trajectory output by the strategy model; The strategy model is trained based on any of the methods described above.
[0017] The present invention also provides a policy model training device based on single-sampling, comprising: The first acquisition unit is used to acquire the first logarithmic probability of each sample word in the response trajectory sample for each response trajectory sample in the training queue; The first prediction unit is used to input the response trajectory sample into the policy model to be trained, and obtain the second log probability of each sample word output by the policy model to be trained; The first determining unit is configured to determine the importance ratio of each sample word based on the first logarithmic probability and the second logarithmic probability of the sample word. A masking unit is used to mask the importance ratio of the sample word to obtain the mask value corresponding to the sample word. The second determining unit is used to determine the sample word corresponding to the mask value located at both thresholds as the target sample word; The training unit is used to iteratively update the parameters of the policy model to be trained based on the target sample lexical units until the convergence condition is met, thereby obtaining the policy model.
[0018] The present invention also provides an interaction device based on a strategy model, comprising: The second acquisition unit is used to acquire the prompt information; The second prediction unit is used to input the prompt information into the strategy model to obtain the response trajectory output by the strategy model; The strategy model is trained based on any of the methods described above.
[0019] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements either the single-sampling-based policy model training method described above, or the policy model-based interaction method described above.
[0020] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the policy model training method based on single sampling as described above, or implements the policy model-based interaction method as described above.
[0021] The present invention also provides a computer program product, comprising a computer program that, when executed by a processor, implements either the single-sampling-based policy model training method described above, or the policy model-based interaction method described above.
[0022] The present invention provides a policy model training method and interaction method based on single sampling. For each response trajectory sample in the training queue, the first logarithmic probability of each sample word in the response trajectory sample is obtained. The training queue includes one response trajectory sample corresponding to each prompt sample. The response trajectory samples are input into the policy model to be trained to obtain the second logarithmic probability of each sample word output by the policy model. For each sample word, the importance ratio of the sample word is determined based on the first and second logarithmic probabilities. The importance ratio of the sample word is masked to obtain the mask value corresponding to the sample word. The sample words corresponding to the mask values located at the two-sided threshold are determined as target sample words. Finally, the parameters of the policy model to be trained are iteratively updated based on the target sample words until the convergence condition is met, thus obtaining the policy model. It is known that the present invention generates only one response trajectory sample for each prompt sample, which can avoid the synchronization barrier within the group by sampling a single sample; in addition, it directly filters the mask value of importance ratio based on the two-sided threshold, and uses the sample word corresponding to the mask value located at the two-sided threshold as the word participating in training, thereby alleviating the policy lag in asynchronous training and improving the stability and effectiveness of the trained policy model. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0024] Figure 1 This is a flowchart illustrating the strategy model training method based on single-sampling provided in an embodiment of the present invention.
[0025] Figure 2 This is a schematic diagram of the overall process of the strategy model training method based on single-sampling provided in the embodiments of the present invention.
[0026] Figure 3 This is a schematic diagram comparing the single-sampling-based strategy model training method proposed in this invention with the GRPO paradigm.
[0027] Figure 4 This is a flowchart illustrating the interaction method based on a strategy model provided in an embodiment of the present invention.
[0028] Figure 5 This is a schematic diagram of the structure of the strategy model training device based on single-sampling provided in an embodiment of the present invention.
[0029] Figure 6 This is a schematic diagram of the structure of the strategy-based interactive device provided in an embodiment of the present invention.
[0030] Figure 7 This is a schematic diagram of the physical structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation
[0031] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0032] The following is combined with Figures 1 to 3 This invention describes a policy model training method based on single-sampling. The execution entity of this single-sampling-based policy model training method can be an electronic device such as a terminal, tablet computer, computer, or server, or it can be a policy model training device based on single-sampling installed in the electronic device. This policy model training device based on single-sampling can be implemented through software, hardware, or a combination of both.
[0033] Figure 1 This is a flowchart illustrating the strategy model training method based on single-sampling provided in an embodiment of the present invention, as shown below. Figure 1 As shown, the training method for the policy model based on single-sampling includes the following steps: Step 101: For each response trajectory sample in the training queue, obtain the first logarithmic probability of each sample word in the response trajectory sample. The training queue includes one response trajectory sample corresponding to each prompt sample.
[0034] The prompt sample can be any question, instruction, or interactive content that the user wants to input.
[0035] For example, the prompt sample is input into the latest current policy model in the rollout engine to obtain a response trajectory sample output by the current policy model for the prompt sample, and the first logarithmic probability of each token in the response trajectory sample is recorded. After generating response trajectory samples, without waiting, the response trajectory samples and the first logarithmic probabilities of the corresponding word tokens are immediately added to the training queue. Meanwhile, response trajectory samples for other prompt samples are generated based on the current policy model. During the process of generating response trajectory samples for other prompt samples by the current policy model, the training side performs the training process based on the already generated response trajectory samples; this is asynchronous training. On the training side, for each response trajectory sample in the training queue, the first logarithmic probability for each word token output by the current policy model is obtained.
[0036] It should be noted that the current strategy model can adopt... This means that, given a prompt sample, the process by which the current policy model attempts to complete the task and generates a response trajectory sample is called... .
[0037] Step 102: Input the response trajectory samples into the policy model to be trained to obtain the second logarithmic probability of each sample word output by the policy model to be trained.
[0038] For example, the response trajectory samples are input into the policy model to be trained. In the process, the policy model to be trained is obtained. The second log probability of each word in the output response trajectory sample .
[0039] Step 103: For each of the sample words, determine the importance ratio of the sample word based on the first logarithmic probability and the second logarithmic probability of the sample word.
[0040] Optionally, the difference between the first logarithmic probability and the second logarithmic probability of the sample word is determined; based on the difference, the importance ratio of the sample word is determined.
[0041] For example, the difference between the first log probability and the second log probability of a sample word is calculated, and this difference is used as the importance ratio of the sample word.
[0042] Furthermore, the importance ratio of the sample lexical units is determined based on the following formula (1): (1) in, This represents the importance ratio of the t-th sample word in the response trajectory sample. The parameters of the policy model to be trained are represented. This represents the policy model to be trained. Indicates the current policy model. The response trajectory sample represents The t-th sample word in the sample, This represents all sample words preceding the t-th sample word in the response trajectory sample. This represents the first logarithmic probability of the t-th sample word. This represents the second logarithmic probability of the t-th sample word.
[0043] For example, the source of policy lag in asynchronous reinforcement learning is that the lexical units of each response trajectory may be generated by multiple different versions of the policy model. Traditional decoupled proximal policy optimization (PPO) maintains three sets of policy models in LLM: the policy model to be trained, and the policy model to be trained. Latest and old strategies Current strategy model ,in Used for off-policy correction Used for training-Rollout mismatch correction. In asynchronous training, the policy may be updated multiple times during the Rollout process, requiring accurate tracking. A complete set of historical checkpoints needs to be maintained. N represents the number of historical checkpoints, which is costly in engineering. Therefore, this invention proposes lexical-level importance sampling: directly using... For behavioral proxy, omit For each sample word, the importance ratio is calculated directly using the first logarithmic probability and the second logarithmic probability of the sample word. Specifically, the importance ratio of the sample word can be obtained based on the above formula (1).
[0044] Step 104: Mask the importance ratio of the sample word to obtain the mask value corresponding to the sample word.
[0045] For example, when calculating the importance ratio of each sample word, the mask value corresponding to each sample word can be calculated based on the following formula (5): (5) in, Indicates a two-sided threshold. Represents the mask function, Indicates the lower bound. Indicates the upper bound. The mask value represents the importance ratio, which is the mask value corresponding to the sample word.
[0046] Step 105: Determine the sample words corresponding to the mask values located at both thresholds as target sample words.
[0047] For example, after calculating each mask value, each mask value is compared with the two-sided threshold to find all mask values located at the two-sided threshold. The sample words corresponding to all mask values located at the two-sided threshold are used as target sample words for gradient calculation. The gradients of sample words corresponding to mask values not located at the two-sided threshold are masked to avoid training instability caused by drastic policy shifts. The process from step 103 to step 105 can be called Direct Double-Sided Importance Sampling (DIS). The word-level pruning strategy of Direct Double-Sided Importance Sampling can avoid tracking historical policies and only rely on the response trajectory samples generated by the current policy model and the first log probability of each word sample. The engineering implementation is relatively simple.
[0048] Step 106: Iteratively update the parameters of the policy model to be trained based on the target sample lexical units until the convergence condition is met, and obtain the policy model.
[0049] For example, when all target sample words are selected, the target sample words are used in gradient calculation to iteratively update the parameters of the policy model to be trained until the convergence condition is met, and finally the trained policy model is obtained.
[0050] The present invention provides a policy model training method based on single-sampling. For each response trajectory sample in the training queue, the first logarithmic probability of each sample word in the response trajectory sample is obtained. The training queue includes one response trajectory sample corresponding to each prompt sample. The response trajectory samples are input into the policy model to be trained to obtain the second logarithmic probability of each sample word output by the policy model. For each sample word, the importance ratio of the sample word is determined based on the first and second logarithmic probabilities. The importance ratio of the sample word is masked to obtain the mask value corresponding to the sample word. The sample words corresponding to the mask values located at the two-sided threshold are determined as target sample words. Finally, the parameters of the policy model to be trained are iteratively updated based on the target sample words until the convergence condition is met, thus obtaining the policy model. It is known that the present invention generates only one response trajectory sample for each prompt sample, which can avoid the synchronization barrier within the group by sampling a single sample; in addition, it directly filters the mask value of importance ratio based on the two-sided threshold, and uses the sample word corresponding to the mask value located at the two-sided threshold as the word participating in training, thereby alleviating the policy lag in asynchronous training and improving the stability and effectiveness of the trained policy model.
[0051] In one embodiment, step 106 above iteratively updates the parameters of the policy model to be trained based on the target sample lexical units until the convergence condition is met, thereby obtaining the policy model. This can be implemented in the following way: The response trajectory samples are input into the initial value model to obtain the predicted value of each sample word output by the initial value model; the advantage estimate of the sample word is determined based on the predicted value of the sample word by generalized advantage estimation (GAE); the target loss function is determined based on the mask value corresponding to the target sample word, the second log probability of the target sample word, and the advantage estimate of the target sample word; the parameters of the policy model to be trained are updated based on the target loss function until the convergence condition is met, and the policy model is obtained.
[0052] For example, the response trajectory sample is input into the initial value model. In the initial value model This is used to provide a baseline for each response trajectory sample and output the predicted value of each sample word. Then, the generalized advantage estimation (GAE) is used to calculate the advantage estimate of the sample word based on the predicted value of the sample word and the temporal difference (TD) error corresponding to the sample word, so as to balance the bias and variance of the value estimation. Subsequently, based on the mask value corresponding to the target sample word, the second log probability of the target sample word, and the advantage estimate of the target sample word, a target loss function is constructed. Finally, based on the target loss function, the parameters of the policy model to be trained are iteratively updated through backpropagation until the convergence condition is reached, and the trained policy model is obtained.
[0053] In this embodiment, the target loss function for training the policy model is determined based on the mask value corresponding to the target sample word, the second log probability of the target sample word, and the advantage estimate of the target sample word. Sample words that are not located in the two-sided threshold are removed from the gradient, which is equivalent to tightening the actual effective two-sided threshold, thereby improving the stability of the trained policy model.
[0054] In one embodiment, the target loss function is determined based on the mask value corresponding to the target sample word, the second log probability of the target sample word, and the advantage estimate of the target sample word. This can be achieved in the following way: The target loss function is determined based on the following formula (2): (2) in, Denotes the target loss function. Represents the mask function, Indicates the lower bound. Indicates the upper bound. This represents the advantage estimate of the t-th sample word. This represents the second logarithmic probability of the t-th sample word.
[0055] For example, formula (2) can be used to remove sample lexical units that are not located at the two-sided threshold from the gradient.
[0056] It should be noted that, and The value can be set based on the specific task; for example, in mathematical reasoning tasks, The default value is set to In the code-based intelligent agent task, The default value is set to This invention does not limit the scope of the invention.
[0057] In this embodiment, the target loss function for training the policy model is determined based on the mask value corresponding to the target sample word, the second log probability of the target sample word, and the advantage estimate of the target sample word. Sample words that are not located in the two-sided threshold are removed from the gradient, which is equivalent to tightening the actual effective two-sided threshold, thereby improving the stability of the trained policy model.
[0058] In one embodiment, the single-sampling-based policy model training method further includes the following steps: Based on the predicted value and reward of the target sample word, a temporal difference (TD) target is constructed for the target sample word; based on the difference between the TD target and the predicted value of the target sample word, the TD error corresponding to the target sample word is determined; based on the TD error corresponding to each target sample word, a value network loss function is determined; during a single update of the parameters of the policy model to be trained based on the target loss function, the parameters of the initial value model are updated a preset number of times based on the value network loss function, where the preset number of times is greater than 1.
[0059] For example, a TD target for the target sample word is constructed based on the predicted value, reward, and discount factor of the target sample word. This involves calculating the bootstrap estimate of the current state value. The TD error is then determined by the difference between the TD target and the predicted value of the target sample word, thus quantifying the degree of deviation in value prediction. Subsequently, the TD errors corresponding to each target sample word are summed by squares or Huber loss is calculated to construct a value network loss function. During a single gradient update of the parameters of the policy model to be trained based on the target loss function, the parameters of the initial value model are iteratively updated K times (e.g., twice) based on the value network loss function. The motivation is that if the initial value model lags behind the policy model to be trained under a single sampling, the advantage estimation noise is large and may in turn affect the update of the policy model to be trained. Therefore, the parameters of the initial value model are iteratively updated a predetermined number of times based on the value network loss function to track the policy model to be trained more quickly.
[0060] In this embodiment, during the single update of the parameters of the policy model to be trained based on the target loss function, the parameters of the initial value model are updated a preset number of times based on the value network loss function to suppress the high variance under a single sample.
[0061] In one embodiment, updating the parameters of the initial value model based on the value network loss function a preset number of times can be achieved in the following way: Freeze the parameters of the attention module of the initial value model, and update the parameters of the hybrid expert layer and the feedforward layer of the initial value model a preset number of times based on the value network loss function.
[0062] For example, pilot experiments showed that the instability of the initial value model training mainly stemmed from the attention module (the gradient norm of the attention module was greater than that of the MoE layer). Therefore, the parameters of the attention module of the initial value model were frozen to characterize semantic alignment. The parameter updates were restricted to the Mixture of Experts (MoE) layer and the Feed-Forward Network (FFN) layer. A predetermined number of iterative updates were performed on the MoE layer and the FFN. Without significantly losing expressive power, the gradient norm of the initial value model could be reduced, thereby improving the stability of value learning.
[0063] It should be noted that the amount of pre-trained data for the initial value model is one of the bottlenecks in the cold start of asynchronous reinforcement learning. The scale of the value pre-training corpus can be expanded to provide better initialization for subsequent single sampling and accelerated updates. This invention does not limit this.
[0064] In this embodiment, the parameters of the hybrid expert layer and the feedforward layer of the initial value model are updated a preset number of times based on the value network loss function, so as to quickly track the policy model to be trained. Without significantly losing expressive power, the gradient norm of the initial value model can be reduced, thereby improving the stability of value learning.
[0065] In one embodiment, in a multi-turn agent scenario, the response trajectory sample includes multi-turn agent trajector ... The advantage estimate of the sample lexical units is determined based on the following formulas (3) and (4): (3) (4) in, Represents the sequence of the i-th sample word. The Middle The advantage estimation of n sample words, where N represents the sequence of n i sample words. The number of sample words in the middle Indicates TD error, Indicates the discount factor. Represents the (i+1)th sample word sequence The Middle Advantage estimation of individual sample words Indicates the first The reward for each sample word element, Represents the (i+1)th sample word sequence The Middle The predictive value of each sample word. Represents the sequence of the i-th sample word. The Middle The predictive value of each sample word.
[0066] For example, multi-round agent trajectories ,in, Generated from the current policy model, This represents the sequence of the i-th sample word in the multi-round agent trajectory. For environmental feedback word sequence, This represents the i-th environmental feedback term in the multi-turn agent trajectory. Standard term-level GAE will... The last word element and The difference in calculated value between them, but due to It is not generated by the current policy model. Predictive value In reality, this involves the initial value model predicting the external environment, which introduces additional noise. Therefore, this invention introduces Skip-Observation Token-level GAE, which bypasses environmental feedback tokens through the above formula (3) and selects the last token in the i-th sample token sequence. Advantage estimation and the (i+1)th sample word sequence The Middle The advantage estimation connection of each sample word is used to avoid the initial value model making invalid predictions for words generated by non-current strategy models.
[0067] In this embodiment, the advantage estimation is constrained to the sample words generated by the current policy model, thus filtering out the randomness brought about by environmental feedback.
[0068] In one embodiment, the single-sampling-based policy model training method further includes the following steps: Obtain a prompt sample from the prompt sample set; input the prompt sample into the current policy model to obtain a response trajectory sample corresponding to the prompt sample output by the current policy model; add the response trajectory sample corresponding to the prompt sample to the training queue.
[0069] For example, from the set of prompt samples The system obtains a prompt sample and inputs it into the current policy model loaded with the latest parameters. Through autoregressive decoding, it generates a response trajectory sample containing multiple words corresponding to the prompt sample output by the current policy model. Then, it adds the response trajectory sample to the training queue for asynchronous training, so that it can be called by the subsequent initial value model and the policy model to be trained.
[0070] In this embodiment, only one response trajectory sample is generated for each prompt sample, eliminating the need for a waiting strategy caused by waiting for the slowest response trajectory sample in the group. Moreover, this aligns with the real constraint that each prompt sample can only provide one feedback (response trajectory sample) in an online or dynamic environment, thereby supporting online learning.
[0071] Figure 2 This is a schematic diagram of the overall process of the strategy model training method based on single-sampling provided in the embodiments of the present invention, as follows: Figure 2 As shown, it includes a rollout (trajectory generation) end and a training end. On the rollout end, data is generated from the cue sample set. The system obtains a prompt sample, inputs the prompt sample into the current policy model, and obtains a response trajectory sample corresponding to the prompt sample output by the current policy model. It also records the first logarithmic probability of each word in the response trajectory sample. Once a response trajectory sample is generated, it is immediately added to the training queue without waiting within the group.
[0072] On the training side, response trajectory samples are retrieved from the training queue according to the training batch size (default value is 128). The importance ratio of each sample word in the response trajectory samples is calculated. The importance ratio of the sample words is masked to obtain the mask value corresponding to the sample word. The sample words corresponding to the mask values located at the bilateral thresholds are determined as target sample words. The dominance estimate of the target sample words is calculated through GAE or skip-observation word-level GAE. Based on the mask value corresponding to the target sample word, the second log probability of the target sample word, and the dominance estimate of the target sample word, the target loss function is determined. The parameters of the policy model to be trained are updated based on the target loss function. During the single update of the parameters of the policy model to be trained based on the target loss function, the parameters of the attention module of the initial value model are frozen. The parameters of the hybrid expert layer and the feedforward layer of the initial value model are updated a preset number of times based on the value network loss function. The updated parameters of the model to be trained are periodically synchronized to the current policy model on the rollout side. The training is performed a preset number of times until convergence. Finally, the trained policy model is used as the large language model for interaction.
[0073] This invention can adapt intelligent agents to multi-turn scenarios through skip-observation lexical-level GAE, maintain relative stability in training up to a thousand steps, and outperform GRPO and its improved variants on mathematical reasoning and code reasoning benchmarks.
[0074] Figure 3 This diagram compares the single-sampling-based policy model training method proposed in this invention with the GRPO paradigm. The top diagram shows GRPO, where one cue sample generates a set of response trajectories, and training can only begin after all response trajectories within the same set have been generated. The bottom diagram shows the single-sampling-based policy model training method proposed in this invention, which can be called the Single-rollout Asynchronous Optimization (SAO) training framework. One cue sample generates only one response trajectory sample, and each response trajectory sample is immediately sent to the training queue after generation. The right side shows the thresholds corresponding to GRPO and SAO. It can be seen that the thresholds based on GRPO only perform one-sided pruning, while SAO masks sample words that fall outside both thresholds, thus improving the stability of asynchronous training without maintaining a historical policy set.
[0075] The following two examples illustrate the single-sampling-based strategy model training method proposed in this invention: Example 1 (Mathematical Reasoning Task) Using Qwen3-30B-A3B-Thinking-2507 as the base model, we first fine-tuned the model for 3 epochs on the Tool-Integrated Reasoning (TIR) data generated by GPT-OSS-120B to initialize the policy model to be trained and the initial value model, followed by asynchronous reinforcement training. The batch size was set to 128, the number of samples per response trajectory was 1, and the maximum sequence length was 128k; the learning rate of the policy model to be trained was set to... , Using length-adaptive GAE, the smoothness coefficient of the policy model to be trained is defined as follows: The initial value learning rate of the value model is set to... The smoothing coefficient of the initial value model is defined as follows: Configure a 10-step learning rate warmup strategy and set... .
[0076] The single-sampling-based strategy model training method proposed in this invention was evaluated on four mathematical inference benchmarks: AIME2025, BeyondAIME, HMMT-Nov-2025, and IMOANswerBench. All evaluations used a kernel sampling threshold of top-p=1.0, a temperature coefficient of temperature=1.0, and a maximum generated word length of 128k words. For AIME2025, HMMT, and IMOANswerBench, the average Pass@1 (first pass rate) of 16 evaluations was used, and for BeyondAIME, the average Pass@1 of 4 evaluations was used. The specific average Pass@1 is shown in Table 1, where it is expressed as a percentage.
[0077] Table 1
[0078] As can be seen from Table 1, under the condition of an open-source base model of the same scale as Qwen3-30B-A3B, the present invention outperforms GRPO and its improved variants under the same conditions on all four mathematical inference benchmarks, and its overall performance is comparable to several larger-scale closed-source models.
[0079] Example 2 (Code Agent Task) Initializing directly with Qwen3-30B-A3B-Thinking-2507, using OpenHands as the agent's operating framework, setting the maximum number of interaction rounds to 300 and the maximum sequence length to 128k, with other hyperpartition TIR settings basically the same, only differing in... Adjusted to 0.8 The version has been adjusted to 3.0. Taking the SWE-Bench-Verified task as an example, the accuracy (%) of different models is shown in Table 2.
[0080] Table 2
[0081] As can be seen from Table 2, on the SWE-Bench-Verified task, this invention improves upon both the base model Qwen3-30B-A3B-Thinking-2507 and the GRPO baseline.
[0082] This invention did not experience performance collapse within approximately 1000 training steps; while Vanilla GRPO experienced performance collapse within approximately 160 steps; GRPO+DIS could complete training relatively stably, but the gap between it and this invention gradually became apparent after approximately 400 steps. Further analysis showed that: (a) accelerating the update of the initial value model corresponds to a higher explained variance; (b) freezing the training of the attention module reduced the gradient norm of the initial value model, resulting in a smoother curve; (c) DIS maintained the word-level clipping ratio at a low level, mitigating the collapse that occurred in other methods at approximately 90 steps and improving the stability of policy model training.
[0083] This invention validates the adaptability of single-sampling in a dynamic writing style online learning simulation task: the reward signal favors three styles: "cute," "chuunibyou," and "classical." Compared to the Running-Mean method, which uses the sliding window mean as a baseline, this invention shows faster reward recovery after each style switch and a relatively higher stable reward level, indicating that the value model-driven single-sampling advantage estimation has a certain adaptability in non-stationary environments. Group sampling methods (such as GRPO) are difficult to apply directly in such single-feedback scenarios due to structural limitations.
[0084] Figure 4 This is a flowchart illustrating the interaction method based on a strategy model provided in an embodiment of the present invention, as shown below. Figure 4 As shown, this strategy-based interaction method includes the following steps: Step 401: Obtain the prompt information.
[0085] For example, obtain prompts from user input, which can be any question, instruction, or interaction entered by the user.
[0086] Step 402: Input the prompt information into the strategy model to obtain the response trajectory output by the strategy model.
[0087] The strategy model is trained based on any of the methods described above.
[0088] For example, the prompt information is input into the trained policy model, and the response trajectory output by the policy model in response to the prompt information is obtained. The response trajectory is the reply content in response to the prompt information.
[0089] This invention provides an interaction method based on a policy model. The method acquires prompt information, inputs this information into a policy model, and obtains the response trajectory output by the policy model. During policy model training, this invention generates only one response trajectory sample for each prompt sample, thus avoiding intra-group synchronization barriers through single-track sampling. Furthermore, it directly filters based on the mask value of importance ratio using bilateral thresholds, selecting the sample words corresponding to the mask values at both bilateral thresholds as the words participating in training. This alleviates policy lag in asynchronous training, improves the stability and effectiveness of the trained policy model, and consequently improves the accuracy of the interaction.
[0090] The single-sampling-based policy model training device provided by the present invention will be described below. The single-sampling-based policy model training device described below can be referred to in correspondence with the single-sampling-based policy model training method described above.
[0091] Figure 5 This is a schematic diagram of the structure of the policy model training device based on single-sampling provided in an embodiment of the present invention, as shown below. Figure 5 As shown, the policy model training device 500 based on single-sampling includes a first acquisition unit 501, a first prediction unit 502, a first determination unit 503, a masking unit 504, a second determination unit 505, and a training unit 506; wherein: The first acquisition unit 501 is used to acquire the first logarithmic probability of each sample word in the response trajectory sample for each response trajectory sample in the training queue. The first prediction unit 502 is used to input the response trajectory sample into the policy model to be trained, and obtain the second log probability of each sample word output by the policy model to be trained; The first determining unit 503 is used to determine the importance ratio of each sample word based on the first log probability and the second log probability of the sample word. The masking unit 504 is used to mask the importance ratio of the sample word to obtain the mask value corresponding to the sample word. The second determining unit 505 is used to determine the sample word corresponding to the mask value located at the two-sided threshold as the target sample word; The training unit 506 is used to iteratively update the parameters of the policy model to be trained based on the target sample lexical units until the convergence condition is met, thereby obtaining the policy model.
[0092] The present invention provides a policy model training device based on single-sampling. For each response trajectory sample in the training queue, the device obtains the first logarithmic probability of each sample word in the response trajectory sample. The training queue includes one response trajectory sample corresponding to each prompt sample. The response trajectory sample is input into the policy model to be trained to obtain the second logarithmic probability of each sample word output by the policy model to be trained. For each sample word, the importance ratio of the sample word is determined based on the first and second logarithmic probabilities of the sample word. The importance ratio of the sample word is masked to obtain the mask value corresponding to the sample word. The sample word corresponding to the mask value located at the two-sided threshold is determined as the target sample word. Finally, the parameters of the policy model to be trained are iteratively updated based on the target sample word until the convergence condition is reached to obtain the policy model. It is known that the present invention generates only one response trajectory sample for each prompt sample, which can avoid the synchronization barrier within the group by sampling a single sample; in addition, it directly filters the mask value of importance ratio based on the two-sided threshold, and uses the sample word corresponding to the mask value located at the two-sided threshold as the word participating in training, thereby alleviating the policy lag in asynchronous training and improving the stability and effectiveness of the trained policy model.
[0093] Based on any of the above embodiments, the first determining unit 503 is specifically used for: Determine the difference between the first logarithmic probability and the second logarithmic probability of the sample word; Based on the difference, the importance ratio of the sample word is determined.
[0094] Based on any of the above embodiments, the first determining unit 503 is specifically used for: The importance ratio of the sample words is determined based on the following formula (1): (1) in, This represents the importance ratio of the t-th sample word in the response trajectory sample. The parameters of the policy model to be trained are represented. This represents the policy model to be trained. Indicates the current policy model. The response trajectory sample represents The t-th sample word in the sample, This represents all sample words preceding the t-th sample word in the response trajectory sample. This represents the first logarithmic probability of the t-th sample word. This represents the second logarithmic probability of the t-th sample word.
[0095] Based on any of the above embodiments, the training unit 506 is specifically used for: The response trajectory samples are input into the initial value model to obtain the predicted value of each sample word output by the initial value model; The advantage estimate of the sample word is determined by using the generalized advantage estimation (GAE) based on the predictive value of the sample word. Based on the mask value corresponding to the target sample word, the second log probability of the target sample word, and the advantage estimate of the target sample word, the target loss function is determined; The parameters of the policy model to be trained are updated based on the target loss function until the convergence condition is met, thus obtaining the policy model.
[0096] Based on any of the above embodiments, the training unit 506 is specifically used for: The target loss function is determined based on the following formula (2): (2) in, Denotes the target loss function. Represents the mask function, Indicates the lower bound. Indicates the upper bound. This represents the advantage estimate of the t-th sample word. This represents the second logarithmic probability of the t-th sample word.
[0097] Based on any of the above embodiments, the single-sampling-based policy model training device 500 further includes: A construction unit is used to construct a temporal difference (TD) target for the target sample word based on the predicted value of the target sample word and the reward of the target sample word. The third determining unit is used to determine the TD error corresponding to the target sample word based on the difference between the TD target of the target sample word and the predicted value of the target sample word. The fourth determining unit is used to determine the value network loss function based on the TD error corresponding to each target sample word; The update unit is used to update the parameters of the initial value model a preset number of times based on the value network loss function during a single update of the parameters of the policy model to be trained based on the target loss function, wherein the preset number of times is greater than 1.
[0098] Based on any of the above embodiments, the updating unit is specifically used for: Freeze the parameters of the attention module of the initial value model, and update the parameters of the hybrid expert layer and the feedforward layer of the initial value model a preset number of times based on the value network loss function.
[0099] Based on any of the above embodiments, in a multi-turn agent scenario, the response trajectory sample includes a multi-turn agent trajectory, which includes alternating sample word sequences and environmental feedback word sequences; the training unit 506 is specifically used for: The advantage estimate of the sample lexical units is determined based on the following formulas (3) and (4): (3) (4) in, Represents the sequence of the i-th sample word. The Middle The advantage estimation of n sample words, where N represents the sequence of n i sample words. The number of sample words in the middle Indicates TD error, Indicates the discount factor. Represents the (i+1)th sample word sequence The Middle Advantage estimation of individual sample words Indicates the first The reward for each sample word element, Represents the (i+1)th sample word sequence The Middle The predictive value of each sample word. Represents the sequence of the i-th sample word. The Middle The predictive value of each sample word.
[0100] Based on any of the above embodiments, the single-sampling-based policy model training device 500 further includes: The third acquisition unit is used to acquire a prompt sample from the prompt sample set; The third prediction unit is used to input the prompt sample into the current strategy model to obtain a response trajectory sample corresponding to the prompt sample output by the current strategy model; An adding unit is used to add a response trajectory sample corresponding to the prompt sample to the training queue.
[0101] Figure 6 This is a schematic diagram of the structure of the strategy-based interaction device provided in an embodiment of the present invention, as shown below. Figure 6 As shown, the strategy-based interactive device 600 includes a second acquisition unit 601 and a second prediction unit 602; wherein: The second acquisition unit 601 is used to acquire prompt information; The second prediction unit 602 is used to input the prompt information into the strategy model to obtain the response trajectory output by the strategy model; The strategy model is trained based on any of the methods described above.
[0102] The interactive device based on a policy model provided by this invention acquires prompt information, inputs the prompt information into the policy model, and obtains the response trajectory output by the policy model. During the training of the policy model, this invention generates only one response trajectory sample for each prompt sample, which can avoid intra-group synchronization barriers through single-line sampling. Furthermore, it directly filters based on the mask value of the importance ratio using bilateral thresholds, using the sample words corresponding to the mask values at both bilateral thresholds as the words participating in training. This alleviates policy lag in asynchronous training, improves the stability and effectiveness of the trained policy model, and thus improves the accuracy of the interaction.
[0103] Figure 7 This is a schematic diagram of the physical structure of the electronic device provided in the embodiments of the present invention, such as... Figure 7 As shown, the electronic device may include a processor 710, a communications interface 720, a memory 730, and a communication bus 740, wherein the processor 710, the communications interface 720, and the memory 730 communicate with each other via the communication bus 740. The processor 710 can call logical instructions in the memory 730 to execute a policy model training method based on a single sample. This method includes: for each response trajectory sample in the training queue, obtaining the first logarithmic probability of each sample word in the response trajectory sample; the training queue includes one response trajectory sample corresponding to each prompt sample. The response trajectory samples are input into the policy model to be trained to obtain the second log probabilities of each sample word output by the policy model to be trained. For each of the sample words, the importance ratio of the sample word is determined based on the first log probability and the second log probability of the sample word. Mask the importance ratio of the sample word to obtain the mask value corresponding to the sample word; The sample words corresponding to the mask values located at both thresholds are determined as target sample words; The parameters of the policy model to be trained are iteratively updated based on the target sample lexical units until the convergence condition is met, thus obtaining the policy model.
[0104] Alternatively, you can use the following method: Get the prompt information; The prompt information is input into the strategy model to obtain the response trajectory output by the strategy model; The strategy model is trained based on any of the methods described above.
[0105] Furthermore, the logical instructions in the aforementioned memory 730 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0106] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program, the computer program being able to be stored on a non-transitory computer-readable storage medium, the computer program being executed by a processor, the computer being able to execute the strategy model training method based on single sampling provided by the above methods, the method including: for each response trajectory sample in the training queue, obtaining the first log probability of each sample word in the response trajectory sample, the training queue including one response trajectory sample corresponding to each prompt sample; The response trajectory samples are input into the policy model to be trained to obtain the second log probabilities of each sample word output by the policy model to be trained. For each of the sample words, the importance ratio of the sample word is determined based on the first log probability and the second log probability of the sample word. Mask the importance ratio of the sample word to obtain the mask value corresponding to the sample word; The sample words corresponding to the mask values located at both thresholds are determined as target sample words; The parameters of the policy model to be trained are iteratively updated based on the target sample lexical units until the convergence condition is met, thus obtaining the policy model.
[0107] Alternatively, when the program instructions are executed by the computer, the computer can implement the following method: Get the prompt information; The prompt information is input into the strategy model to obtain the response trajectory output by the strategy model; The strategy model is trained based on any of the methods described above.
[0108] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a strategy model training method based on single sampling provided by the above methods, the method comprising: for each response trajectory sample in a training queue, obtaining the first logarithmic probability of each sample word in the response trajectory sample, wherein the training queue includes a response trajectory sample corresponding to each prompt sample; The response trajectory samples are input into the policy model to be trained to obtain the second log probabilities of each sample word output by the policy model to be trained. For each of the sample words, the importance ratio of the sample word is determined based on the first log probability and the second log probability of the sample word. Mask the importance ratio of the sample word to obtain the mask value corresponding to the sample word; The sample words corresponding to the mask values located at both thresholds are determined as target sample words; The parameters of the policy model to be trained are iteratively updated based on the target sample lexical units until the convergence condition is met, thus obtaining the policy model.
[0109] Alternatively, when the computer program is executed by the processor, it implements the following method: Get the prompt information; The prompt information is input into the strategy model to obtain the response trajectory output by the strategy model; The strategy model is trained based on any of the methods described above.
[0110] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0111] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for training a policy model based on single-sampling, characterized in that, include: For each response trajectory sample in the training queue, the first logarithmic probability of each sample word in the response trajectory sample is obtained, and the training queue includes a response trajectory sample corresponding to each prompt sample. The response trajectory samples are input into the policy model to be trained to obtain the second log probabilities of each sample word output by the policy model to be trained. For each of the sample words, the importance ratio of the sample word is determined based on the first log probability and the second log probability of the sample word. Mask the importance ratio of the sample word to obtain the mask value corresponding to the sample word; The sample words corresponding to the mask values located at both thresholds are determined as target sample words; The parameters of the policy model to be trained are iteratively updated based on the target sample lexical units until the convergence condition is met, thus obtaining the policy model.
2. The strategy model training method based on single-sampling according to claim 1, characterized in that, The determination of the importance ratio of the sample word based on the first logarithmic probability and the second logarithmic probability of the sample word includes: Determine the difference between the first logarithmic probability and the second logarithmic probability of the sample word; Based on the difference, the importance ratio of the sample word is determined.
3. The strategy model training method based on single-sampling according to claim 2, characterized in that, Determining the importance ratio of the sample lexical units based on the difference includes: The importance ratio of the sample words is determined based on the following formula (1): (1) in, This represents the importance ratio of the t-th sample word in the response trajectory sample. The parameters of the policy model to be trained are represented. This represents the policy model to be trained. Indicates the current policy model. The response trajectory sample represents The t-th sample word in the sample, This represents all sample words preceding the t-th sample word in the response trajectory sample. This represents the first logarithmic probability of the t-th sample word. This represents the second logarithmic probability of the t-th sample word.
4. The strategy model training method based on single-sampling according to claim 2, characterized in that, The step of iteratively updating the parameters of the policy model to be trained based on the target sample lexical units until the convergence condition is met to obtain the policy model includes: The response trajectory samples are input into the initial value model to obtain the predicted value of each sample word output by the initial value model; The advantage estimate of the sample word is determined by using the generalized advantage estimation (GAE) based on the predictive value of the sample word. Based on the mask value corresponding to the target sample word, the second log probability of the target sample word, and the advantage estimate of the target sample word, the target loss function is determined; The parameters of the policy model to be trained are updated based on the target loss function until the convergence condition is met, thus obtaining the policy model.
5. The strategy model training method based on single-sampling according to claim 4, characterized in that, The step of determining the target loss function based on the mask value corresponding to the target sample word, the second log probability of the target sample word, and the advantage estimate of the target sample word includes: The target loss function is determined based on the following formula (2): (2) in, Denotes the target loss function. Represents the mask function, Indicates the lower bound. Indicates the upper bound. This represents the advantage estimate of the t-th sample word. This represents the second logarithmic probability of the t-th sample word.
6. The strategy model training method based on single-sampling according to claim 4, characterized in that, The method further includes: Based on the predicted value of the target sample word and the reward of the target sample word, a temporal difference TD target of the target sample word is constructed; Based on the difference between the TD target of the target sample word and the predicted value of the target sample word, the TD error corresponding to the target sample word is determined; Based on the TD error corresponding to each target sample word, the value network loss function is determined; During a single update of the parameters of the policy model to be trained based on the target loss function, the parameters of the initial value model are updated a preset number of times based on the value network loss function, where the preset number of times is greater than 1.
7. The strategy model training method based on single-sampling according to claim 6, characterized in that, The step of updating the parameters of the initial value model a preset number of times based on the value network loss function includes: Freeze the parameters of the attention module of the initial value model, and update the parameters of the hybrid expert layer and the feedforward layer of the initial value model a preset number of times based on the value network loss function.
8. The strategy model training method based on single-sampling according to claim 4, characterized in that, In a multi-turn agent scenario, the response trajectory sample includes multi-turn agent trajector ... The advantage estimate of the sample lexical units is determined based on the following formulas (3) and (4): (3) (4) in, Represents the sequence of the i-th sample word. The Middle The advantage estimation of n sample words, where N represents the sequence of n i sample words. The number of sample words in the middle Indicates TD error, Indicates the discount factor. Represents the (i+1)th sample word sequence The Middle Advantage estimation of individual sample words Indicates the first The reward for each sample word element, Represents the (i+1)th sample word sequence The Middle The predictive value of each sample word. Represents the sequence of the i-th sample word. The Middle The predictive value of each sample word.
9. The method for training a strategy model based on single-sampling according to any one of claims 1-8, characterized in that, The method further includes: Obtain a hint sample from the hint sample set; The prompt sample is input into the current strategy model to obtain a response trajectory sample corresponding to the prompt sample output by the current strategy model; Add a response trajectory sample corresponding to the prompt sample to the training queue.
10. An interaction method based on a strategy model, characterized in that, include: Get the prompt information; The prompt information is input into the strategy model to obtain the response trajectory output by the strategy model; The strategy model is trained based on the method described in any one of claims 1-9.
