Self-evolution artificial intelligence system evaluator reward erosion prevention method and device

By setting frozen anchor points and a cover rejection mechanism in the self-evolving artificial intelligence system, combined with parity leaveout cross-validation and epoch freezing, the problem of the evaluator masking the true performance degradation through lenient metrics is solved, and reliable protection against evaluator modification requests is achieved, reducing the false negative rate and risk.

CN123158641APending Publication Date: 2026-11-24BEIJING LANGKONG QUANTUM TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611366689.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-04
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies are insufficient to effectively prevent evaluators from masking real performance degradation by introducing lenient metrics in self-evolving artificial intelligence systems, and anchor point determination is easily bypassed, making it difficult to reliably prevent the risk of reward erosion.

Method used

By maintaining frozen anchor points and setting up coverage rejection and degradation judgment mechanisms, we can block time-series attacks on evaluator modification requests. Combined with parity leaveout cross-validation and epoch freezing, we can ensure the reliability of evaluator modification requests at the admission point and monitor the actual performance.

Benefits of technology

Effectively blocking time-series attacks that allow evaluators to manipulate scores by introducing lenient metrics reduces the false negative rate, ensures admission control for evaluator modification requests, and improves the reliability and security of the protection mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158641A_ABST
    Figure CN123158641A_ABST
Patent Text Reader

Abstract

A method and apparatus for protecting the reward erosion of an evaluator in a self-evolving artificial intelligence system belongs to the field of artificial intelligence security technology. The method includes: maintaining a set of frozen anchor points that cannot be overwritten or redefined; responding to evaluator modification requests, if the request has the same name as a frozen anchor point or intends to overwrite it, it is directly rejected; otherwise, before taking effect, an anchor point sample sequence is taken, and non-overlapping and isolated recent windows and baseline windows are defined, the global reduction is calculated, and the sample number is split into two folds according to parity, and the fold reduction is calculated separately; the request is allowed only if both the global reduction and the fold reduction do not exceed a preset threshold, otherwise it is rejected; allowed modification requests are queued until the next epoch boundary for unified activation, and the evaluation standard remains constant within the same epoch. This invention blocks attacks that first widen the evaluator and then boost the score by temporally coupling the anchor point degradation gate with epoch delayed activation, and reduces the single-window false negative rate by leaving folds for parity, reliably preventing reward erosion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of artificial intelligence security technology, and in particular relates to a method and device for protecting against erosion of rewards in an evaluator of a self-evolving artificial intelligence system. Background Technology

[0002] Self-improving or self-evolving intelligent agent systems, such as GödelMachine and DarwinGödelMachine-like systems, possess the ability to modify their own program structure, including modifying the evaluator used to assess their own performance. This evaluator can specifically manifest as a fitness function, reward function, or set of evaluation metrics. This self-modification capability endows the agent with the potential to continuously optimize its performance, representing an important research direction in the field of general artificial intelligence safety and alignment. However, when a system is allowed to autonomously evolve its evaluator, a sharp security risk arises: reward-hacking. Specifically, a system might introduce or modify a custom metric with relatively lenient self-evaluation criteria to meet its optimization goals. For example, setting a custom metric that always passes allows the system to show continuous performance improvement even when real performance does not improve or even declines. In extreme cases, the system's real performance continuously deteriorates, while the custom evaluator outputs positive evaluation results, causing the system to deviate continuously in the wrong direction, posing a serious threat to the safety and controllability of the artificial intelligence system.

[0003] To address the aforementioned reward erosion risk, existing technologies have proposed various solutions. One known approach is to inject an objective ground-truth anchor signal during the training or evaluation phase. This anchor signal constrains or aligns the reward function, thereby suppressing reward erosion. Representative works include anchor-guidance (arXiv:2605.11865), RL-from-Meta-Evaluation (arXiv:2601.21268), and US Patent US12,566,929. However, these solutions have the following shortcomings: First, they only apply the anchor to the reward or evaluation signal during the training or evaluation phase, and do not use the anchor determination for admission control of the discrete action of "evaluator self-modification itself." Therefore, they cannot intercept the path of reward erosion achieved by redefining or overriding evaluation metrics. Second, the anchor determination is only performed within a single time window, which may be bypassed by accidental fluctuations or targeted score-boosting strategies, resulting in insufficient reliability of the determination.

[0004] Another known approach is to set up unoverridable protected rules or trust roots, such as the immutable read-only semantic clusters in the Countermind system, the mechanism that governance files are immutable to the skill generator and generated skills cannot overwrite governance files, and the design of the Ouroboros core being irreversible or deprecated. The common mechanism of these approaches is to prohibit self-modifying subsystems from overwriting or redefining protected objects. However, the protected objects of these approaches are usually core system functional modules or governance rules, and do not specifically protect ground-truth signals in the evaluator. More importantly, these approaches lack mechanisms for quantitatively monitoring the numerical degradation of protected objects, and do not coordinate the prohibition of overwriting rules with degradation judgments and delayed activation of changes in the admission control of evaluator modification actions. Therefore, it is difficult to identify and intercept situations where the evaluator, although not overwriting the frozen anchor point, is allowed to proceed even though its actual performance has degraded due to the introduction of new lenient indicators.

[0005] Furthermore, controlled utility evolution or evaluator epoch freezing methods, such as RQGM (arXiv:2606.26294), fix the evaluator within an epoch to ensure effective before-and-after comparisons; this is a known technique. However, epoch freezing alone cannot solve the problem of allowing the evaluator to proceed even when the boundaries are loosened in the next epoch and actual performance has deteriorated, because epoch freezing itself lacks the ability to determine the health of the evaluator modifications and does not monitor the degradation trend of actual performance. ConstitutionalAI-type methods use a set of preset principles to constrain the model's output behavior, but these methods do not constrain the path of the evaluator being modified by the system itself, nor can they prevent reward erosion at the evaluator level. Agent-as-judge schemes using LLM as the reviewer suffer from systematic overestimation defects caused by self-evaluation or loose review, resulting in insufficient reliability of their judgment results.

[0006] Therefore, while techniques such as anchor point suppression of score manipulation, prohibition of overwriting protected items, and epoch freezing are all publicly available, existing technologies still have the following unresolved issues. First, existing anchor point techniques only apply to reward or review signals during the training or review phase, failing to apply anchor point determination to the admission control of discrete actions like evaluator definition changes. Therefore, they cannot intercept temporal attacks such as "first loosening the evaluator in a certain epoch, then manipulating scores according to the new loosening criteria in subsequent epochs." Second, anchor point determination within a single time window can still be bypassed by occasional fluctuations or targeted score manipulation strategies, leading to misjudgments or missed judgments, affecting the overall reliability of the protection mechanism. These problems make it difficult for existing technologies to reliably prevent reward erosion while allowing agents to autonomously evolve their evaluators. Summary of the Invention

[0007] The purpose of this invention is to provide a method and apparatus for protecting the reward erosion of an evaluator in a self-evolving artificial intelligence system, so as to block the temporal attack of first widening the evaluator and then boosting the score, and reduce the false negative rate caused by the degradation due to the mean of a single global window, thereby reliably preventing the evaluator from masking the real performance degradation through false indicators.

[0008] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is a method for protecting the reward erosion of an evaluator in a self-evolving artificial intelligence system, comprising:

[0009] Maintain a set of frozen anchor points, which are marked as prohibited from being overridden or redefined by custom indicators with the same name;

[0010] In response to the system's request to modify its own evaluator:

[0011] If the modification request is to introduce or adopt an indicator with the same name as any of the frozen anchors, or to cover or redefine any of the frozen anchors, then the modification request is rejected directly.

[0012] Otherwise, determine whether the number of available anchor point samples meets the preset data sufficiency prerequisite:

[0013] If the conditions are not met, allow the modification request and log the event.

[0014] If satisfied, before allowing the modification request to take effect, take the sample sequence of the frozen anchor points sorted by collection time, and define a recent window and a baseline window on the sample sequence. The recent window and the baseline window are mutually exclusive on the sample sequence, and a preset number of samples are skipped between them for isolation. Calculate the global drop of the frozen anchor points in the recent window relative to the baseline window, where the drop is defined as the difference between the mean of the baseline window anchor points and the mean of the recent window anchor points, denoted as drop = baseline − recent, which is a directed value. When the mean of the recent window anchor points is higher than the mean of the baseline window anchor points, its value is negative and not considered degenerate. Furthermore, the anchor point samples used to calculate the drop are split into two non-overlapping folds according to the parity of their sequence numbers, and the drop of each fold is calculated separately.

[0015] The modification request is approved only if the global reduction does not exceed a preset threshold and the reduction of both folds does not exceed the preset threshold; the modification request is rejected if the global reduction or the reduction of any fold exceeds the preset threshold.

[0016] For evaluator modification requests that have been approved, they are queued and activated uniformly at the next epoch boundary, and the evaluation criteria remain constant within the same epoch.

[0017] Furthermore, the sample sequence is sorted from newest to oldest according to the collection time, with the most recently collected sample corresponding to the first number in the sequence, and the splitting based on the parity of its number is performed according to the sample number under that sequence.

[0018] Furthermore, the preset threshold is an absolute difference between 0.05 and 0.15.

[0019] Furthermore, a preset number of samples are skipped between the recent window and the baseline window to isolate them. The preset number is denoted as gap_n samples. The interval is measured by the number of samples, rather than by the physical time span.

[0020] Furthermore, the sufficient data is provided that: the number of available anchor point samples is not less than recent_n + gap_n + older_n, where recent_n is the number of recent window samples, older_n is the number of baseline window samples, and gap_n is the preset number; and the number of samples in each fold after odd-even splitting is not less than the preset minimum number of samples in each fold.

[0021] Furthermore, the unified activation upon queuing to the next epoch boundary specifically means that within the same epoch, the recent window and baseline window on which the global reduction and two-fold reduction determination of the same evaluator modification request are based remain unchanged until the epoch boundary is reached, at which point the approved modification request is uniformly applied.

[0022] Furthermore, it also includes: conducting a second review of the modification request with a default rejection as the initial stance, wherein the decision of the second review can only increase the review level and cannot decrease the review level under any circumstances.

[0023] Furthermore, when the number of available anchor point samples is insufficient to perform the global reduction determination and the two-fold reduction determination, the modification request is allowed and the event is recorded.

[0024] Furthermore, the frozen anchor points include session satisfaction, tool call success rate, and self-repair success rate, wherein the tool call success rate and the self-repair success rate come from the system's own autonomous activities and do not depend on external user input.

[0025] An erosion protection device for a self-evolving artificial intelligence system evaluator using the above method includes:

[0026] The anchor point freezing module is used to maintain a set of frozen anchor points that are marked as prohibited from being overridden or redefined by custom indicators with the same name;

[0027] The override rejection module is used to directly reject modification requests that have the same name as the frozen anchor point or that are intended to override or redefine the frozen anchor point.

[0028] The degradation determination module, under the premise that the number of available anchor point samples meets the preset data sufficiency requirement, delineates a recent window and a baseline window on the anchor point sample sequence that are mutually exclusive and skip preset sample isolation, calculates the global reduction, where the global reduction is the directed difference between the mean of the anchor points in the baseline window and the mean of the anchor points in the recent window, drop = baseline − recent, and splits the samples into two folds according to their parity, calculating the fold reduction separately. Only when both the global reduction and the fold reduction do not exceed preset thresholds is the sample allowed to proceed; otherwise, it is rejected.

[0029] The epoch activation module is used to queue the modification requests approved by the degradation determination module and activate them uniformly at the next epoch boundary, and to keep the evaluation criteria constant within the same epoch.

[0030] The anchor freezing module, the coverage rejection module, the degradation determination module, and the epoch activation module work together. The degradation determination module implements rejection determination based on historically frozen anchor points at the admission point of the evaluator modification request. The epoch activation module delays the modification request allowed by the degradation determination module until the next epoch boundary to activate, so as to block the timing attack of first widening the evaluator and then boosting the score.

[0031] Compared with the prior art, the beneficial effects of the present invention include the following:

[0032] First, this invention effectively suppresses the risk of reward erosion in self-evolving artificial intelligence system evaluators. Specifically, by pre-setting a set of frozen anchors marked as prohibited from being overridden or redefined as ground-truth signals representing true performance, and by applying an anchor degradation gate to evaluator modification requests at the admission point, even if the evaluator can be modified by the system itself, it can still prevent the behavior of obtaining false scores by introducing lenient metrics or modifying evaluation standards when true performance degrades. Furthermore, by combining the anchor degradation gate with a timing mechanism that queues evaluator modification requests to the next epoch boundary for unified activation, even if an approved evaluator intends to adopt a completely new metric in a future epoch, historical frozen anchors can still deny the modification request at the admission point, thereby effectively blocking timing attacks such as "first lenientizing the evaluator in a certain epoch, and then using the new lenient metric to boost scores in subsequent epochs." This timing coupling mechanism is a significant improvement of this invention compared to existing technologies that only apply anchors to reward signals during the training or evaluation phases.

[0033] Second, this invention reduces the false negative rate of degradation judgment being bypassed through odd-even leave-out cross-validation. Specifically, the odd-even leave-out cross-validation splits the anchor point samples used to calculate the reduction into two disjoint folds according to the parity of their indices and judges them separately. The global reduction gate and the two leave-out fold gates constitute parallel rejection conditions. If either gate judges it as degradation, the modification request is rejected. Thus, when the actual performance degradation only exists in the sample subsequence that appears alternately in the indices, such that the global mean of the recent window masks the degradation, the reduction on the corresponding fold can still exceed the preset threshold and detect the degradation, thereby avoiding false negatives caused by judging based solely on the global window mean. It should be noted that this effect is limited to improving the detection capability of degradation masked by the global mean, and this invention does not claim anti-targeted score manipulation as an independent effect.

[0034] Third, the decisions at each stage of this invention are configured to only encourage a conservative review process without introducing any new relaxation pathways. Specifically, the decisions regarding coverage rejection, the global reduction decision in the anchor point degradation gate determination, the parity leave-out cross-validation, and the one-way adversarial review, as well as their combinations, can only maintain or improve the review level of the modification request, not lower it. When anchor point data is insufficient for determination, a fail-open but traceable approach is adopted to ensure that no additional security risks are introduced due to the intervention of any stage of this invention under any circumstances.

[0035] Fourth, the present invention is verifiable. Specifically, the core decision logic of the present invention can be reproduced and verified through a purely offline, deterministic, controlled benchmark. That is, a known answer sequence is injected into the anchor point degradation gate to verify the correctness of the decision result. This does not rely on a database, LLM, or network environment, thus ensuring the credibility and reproducibility of the technical solution. Attached Figure Description

[0036] To more clearly illustrate the technical solutions in the embodiments of the present 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 only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0037] Figure 1 This is a schematic diagram of the overall architecture of the treatment production line involved in this invention;

[0038] Figure 2 This is a flowchart illustrating the determination of anchor point degradation gate in this invention;

[0039] Figure 3 This is a schematic diagram of sample splitting for the parity-even leave-out cross-validation method of the present invention;

[0040] Figure 4 This is a block diagram of the module structure of the reward erosion protection device described in this invention. Detailed Implementation

[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0042] This embodiment provides a method for protecting the reward erosion of an evaluator in a self-evolving artificial intelligence system. Specifically, it is a governance method in a self-evolving intelligent agent system that allows self-modification, preventing it from meeting optimization goals by tampering with its own evaluation criteria rather than genuinely improving performance.

[0043] In some specific implementations, the method is deployed in the governance pipeline of a self-evolving artificial intelligence system. See also Figure 1 The governance pipeline sequentially includes a triggering phase, a rule-zero phase, a rate-limiting phase, a sandbox phase, an invariant phase, an arbitration phase, an execution phase, an observation phase, and a rollback phase. The governance pipeline receives self-modification proposals from the evolutionary subsystem. These proposals, after sequentially passing through the triggering phase, the rule-zero phase, the rate-limiting phase, the sandbox phase, and the invariant phase, enter the anchor point coverage rejection and degradation gate determination logic described in this invention before the arbitration phase. After being adjudicated by the anchor point coverage rejection and degradation gate determination logic, the modification proposal continues to flow through the execution phase, the observation phase, and the rollback phase to complete the entire governance process.

[0044] Example 1: Pre-protection based on double-layer detection before writing the root trust rule set

[0045] In this embodiment, the governance pipeline further incorporates a pre-write double-layer check of the immutable root of trust rule set at the rule-zero stage, serving as an upstream pre-processing step for the anchor point coverage rejection and degradation gate determination. Specifically, the system maintains a set of rules serving as the root of trust, i.e., rule-zero. For each self-modification proposal submitted by the evolutionary subsystem, before it enters the subsequent anchor point coverage or redefinition determination and degradation gate determination, a pre-write double-layer check is applied to the corresponding change diff. The pre-write double-layer check includes a first layer and a second layer.

[0046] The first layer is a deterministic string or pattern matching layer, used to perform deterministic string or pattern matching on the change diff corresponding to the proposal, and to intercept proposals whose explicit diffs touch the red lines defined in the rule set. The red lines are security constraint boundaries defined in the rule set; proposals that touch the red lines include, but are not limited to, proposals whose text contains diffs that modify security thresholds, or proposals that touch the rule set ontology identifier.

[0047] The second layer is the semantic layer of the language model. This layer is only triggered for proposals that have not been hit by the deterministic layer and whose change scale reaches a preset threshold. After triggering, the red line definition and the change diff of the proposal are injected into the prompt of the language model. The language model determines whether the proposal directly violates or indirectly bypasses any of the red lines by modifying the configuration loading logic or configuration path, thereby identifying proposals that circumvent the first layer with semantic variations such as roundabout wording, equivalent configuration items, or indirect weakening. The semantic layer determines the net effect of the proposal on the security configuration item: those that do not contain sensitive words but actually weaken, close, or bypass the security gate are blocked, while those that contain sensitive words but whose net effect is tightening are allowed. The distinction between weakening and tightening is inferred by the language model based on the overall semantic compliance inference of the injected red line definition.

[0048] Furthermore, the semantic layer adopts a hierarchical detection architecture: the local lightweight language model performs an initial screening of proposals that meet the triggering conditions, and only proposals with a risk level of L3 or above are further subjected to in-depth semantic verification by the cloud-based large language model. This constitutes a hierarchical detection system consisting of a deterministic layer, a local lightweight model, and a cloud-based large model for in-depth verification of L3 and above.

[0049] Proposals approved after the pre-writing double-layer detection are further classified into six risk levels, L0 to L5, for approval. L0 to L3 are automatically approved, L4 requires mandatory manual approval, and L5 requires mandatory rejection. Proposals that expand or modify evaluation indicators are classified as L4. These proposals, after passing the pre-detection in the zero-rule stage, proceed to the anchor coverage rejection and degradation gate determination process described in this invention.

[0050] In this embodiment, the rule set is stored in a location where the evolutionary subsystem has no write path, ensuring that any proposal generated by the evolutionary subsystem whose change diff touches the rule set ontology identifier is intercepted before being written and not persisted to disk. Any changes to the rule set ontology are only completed through out-of-band privileged paths independent of the evolutionary subsystem; the evolutionary subsystem does not have the ability to change the rule set ontology through self-modification paths. These out-of-band privileged paths include out-of-band authorization credentials, multi-party approval, or operation and maintenance interfaces with permission isolation, such as human approval through a preset number of shielded QR code scans. Write path blocking is used here instead of read isolation. Although the rule set ontology runs in the same process as the business configuration and the semantic layer actively reads the rule text to complete the judgment, the evolutionary subsystem has no write path to the rule set ontology. In production implementation, the absence of a write path is ensured by deterministic interception of whether the change diff of the proposal touches the rule set ontology identifier before writing.

[0051] Therefore, the double-layer detection before writing the trust root rule set in the zero rule step and the anchor point coverage rejection and degradation gate judgment described in this invention constitute two gates that are connected one after the other in the same self-evolutionary governance pipeline: the pre-gate intercepts proposals that tamper with or semantically circumvent the constraint rule set itself before writing, and the core gate intercepts proposals that tamper with the evaluator to gain points before arbitration. The two gates have different targets and timings and are complementary and do not overlap.

[0052] Example 2: Frozen Anchor Point Set

[0053] In this embodiment, a set of objective, real-world signals are pre-defined as ground-truth anchors. These ground-truth anchors characterize the system's true performance level. Specifically, the ground-truth anchors include, but are not limited to, session satisfaction, tool invocation success rate, and autonomous repair success rate. At least one of these ground-truth anchors originates from the system's own autonomous activities; that is, both the tool invocation success rate and the autonomous repair success rate are derived from the system's own autonomous tool invocation and automatic repair activities, accumulating anchor sample data without relying on external user input. The ground-truth anchors are marked as preventing them from being overridden or redefined by custom indicators with the same name.

[0054] Example 3: Prohibition of Overlaying and Redefining of Freezing Anchor Points

[0055] In this embodiment, when a modification request from the evolutionary subsystem introduces or adopts an indicator with the same name as a frozen anchor point, or intends to cover or redefine that frozen anchor point, the modification request is directly rejected. This "coverage-rejection" branch intercepts hack paths that redefine or cover the evaluation indicator itself. It should be noted that the anchor point degradation gate, which determines whether to reject a modification request by comparing the decrease in anchor point values, cannot capture the aforementioned situation of covering or redefining frozen anchor points. Therefore, the "coverage-rejection" branch and the anchor point degradation gate are two parallel and complementary independent rejection branches, both acting at the admission point of the evaluator's modification request, respectively intercepting different types of reward erosion behavior.

[0056] Example 4: Anchor point degradation gate determination

[0057] In this embodiment, for non-coverage modification requests, including the introduction of new metrics, modification of existing metrics, or adoption of a new evaluator, an anchor degradation gate determination is performed before allowing the modification request to take effect. See also Figure 2 The anchor point degradation gate determination process includes: calculating the global reduction of the recent window relative to the baseline window; splitting the sample into odd and even segments and calculating the reduction of each segment separately; allowing passage only when the global reduction and the reduction of each segment do not exceed a preset threshold; otherwise, rejection. Furthermore, Figure 2 The remaining processes connected with the anchor point degradation gate determination are also shown, including the preceding frozen anchor point coverage or redefinition determination branch, the sufficiency premise determination of anchor point sample data and the failure safety release trace handling when data is insufficient, and the subsequent processing of queuing the release modification request to the next epoch boundary for unified activation. For the specific content of these processes, please refer to the description in Embodiment 3, the following paragraphs of this embodiment and Embodiment 5.

[0058] The execution of the anchor point degradation gate determination requires sufficient data. Specifically, the number of recent window samples is defined as `recent_n`, the number of baseline window samples as `older_n`, and the number of samples skipped between the recent window and the baseline window as `gap_n`. The global reduction determination and two-fold reduction determination are only executed when the number of available anchor point samples at least covers the sum of the number of recent window samples, the number of interval samples, and the number of baseline window samples (i.e., at least `recent_n + gap_n + older_n` samples are required), and each fold, after parity splitting, has at least a preset minimum number of samples per fold. For example, if `recent_n` is 6, `older_n` is 6, and `gap_n` is 2, then at least 14 available anchor point samples are required; the minimum number of samples per fold is guaranteed to be at least 2 samples per fold using `max(2,n / / 2)`. When the sufficient data condition is not met, failure-safe semantics are applied, i.e., the modification request is allowed but the event is recorded.

[0059] Under the premise of sufficient data, the sample sequence after the frozen anchor points are sorted by collection time is taken, and a recent window and a baseline window are defined on the sample sequence. The sample sequence is sorted by collection time using the newest-first order, that is, the latest collected sample number comes first (sorted from newest to oldest collection time, the latest collected sample corresponds to the first number in the sort). The recent window and the baseline window do not intersect on the sample sequence, and a preset number (denoted as gap_n samples) is skipped between them to isolate the two windows and prevent sample leakage and cross-contamination. For example, the gap_n value is 2. The interval is measured by the number of samples, not by the physical time span. For example, the sampling time span window_hours is 24×14, that is, 14 days.

[0060] After defining the recent window and the baseline window, the global drop of the frozen anchor point relative to the baseline window within the recent window is calculated. The drop is defined as the absolute difference between the mean of the baseline window anchor points and the mean of the recent window anchor points, denoted as drop = baseline − recent. That is, the absolute amount by which the recent mean is lower than the baseline mean, not a relative percentage. When the mean of the recent window anchor points is higher than the mean of the baseline window anchor points, the value is negative and not considered degradation. The drop uses a one-way criterion: degradation is only considered when the mean of the recent window anchor points is lower than the mean of the baseline window anchor points by a preset threshold; otherwise, it is not considered degradation. When the absolute difference exceeds the preset threshold, the modification request is rejected. For example, the preset threshold min_drop is set to 0.08, with a reasonable range being the absolute difference between 0.05 and 0.15. A smaller threshold is more conservative and should be selected based on the anchor point noise level to prevent false triggering of normal fluctuations.

[0061] Furthermore, while calculating the global reduction, the anchor point samples used to calculate the reduction are split into two disjoint folds according to the parity of their indices, and the reduction of each fold is calculated separately. This is the parity-neutral fold cross-validation. See also Figure 3 The sample sequence is divided into two folds based on parity, and the reduction rate is determined for each fold. The modification request is approved only if the global reduction rate does not exceed the preset threshold, and the reduction rates of both folds do not exceed the preset threshold; otherwise, the modification request is rejected. Correspondingly, the rejection condition consists of two parallel rejection criteria: the global gate and the reserved fold gate. Rejection is granted if either criterion indicates degradation. The reserved fold gate detects degradation that is masked by the recent window's global mean and exists only in sample subsequences that alternate in sequence number, thus avoiding missed detections caused by relying solely on a single global window mean. Figure 3 The anchor point sample sequence and its values, as well as the sample number values ​​of each window shown, are all exemplary values. For the specific values ​​of the example sequence and the corresponding global gate and reserved gate determination results, please refer to the description in Example 8.

[0062] It is worth noting that in this embodiment, the values ​​of parameters such as the preset threshold, the number of recent window samples, the number of baseline window samples, and the window interval can be configured according to the anchor noise level in the actual application scenario. Preferably, the preset threshold min_drop is 0.08, with a reasonable range of absolute difference between 0.05 and 0.15. The smaller the threshold, the more conservative it is, and the easier it is to reject modification requests. Therefore, it should be selected according to the anchor noise level to prevent normal fluctuations from triggering falsely. The example values ​​of the number of recent window samples recent_n and the number of baseline window samples older_n are both 6, so each window has no less than 6 samples. After each fold is split into odd and even, the number of samples is halved, and max(2,n / / 2) is used to ensure that each fold has at least 2 samples to maintain the statistical validity of the mean. The example value of the window interval gap_n is 2, and the larger the interval, the stronger the isolation. The example value of the sampling time span window_hours is 24×14, that is, 14 days.

[0063] Example 5: Evaluator epoch freezing and delayed activation

[0064] In this embodiment, evaluator modification requests approved by the anchor point degradation gate are not immediately effective, but are queued and activated uniformly at the next epoch boundary; the evaluation criteria remain constant within the same epoch. Specifically, within the same epoch, the recent window and baseline window used for the global reduction determination and the two-fold reduction determination of the same evaluator modification request remain unchanged until the epoch boundary is reached, at which point the approved modification requests are uniformly applied, thereby ensuring that the evaluation criteria remain constant within the same epoch and that the comparison before and after is effective. It should be noted that epoch freezing itself is a known technique and does not constitute an innovative point of this invention on its own; it only contributes to the overall effect when combined with the aforementioned anchor point freezing, cover-and-reject, anchor point degradation gate, and parity leave-out cross-validation.

[0065] Example 6: One-way adversarial review

[0066] In this embodiment, modification requests determined by the anchor point degradation gate are further reviewed a second time with a default rejection stance. The decision of the second review can only downgrade the original automatic approval to manual approval, and under no circumstances can the review level be lowered, that is, manual approval cannot be relaxed to automatic approval. The second review is unidirectional and irreversible in terms of review level.

[0067] Furthermore, when the global reduction or any partial reduction is within the range of the preset threshold (i.e., the reduction value is close to the preset threshold and is within the critical zone of uncertainty), the secondary review can only downgrade the request from automatic approval to manual approval, so as to bind the one-way irreversibility to the handling of the uncertainty of the degradation gate.

[0068] Example 7 Failure-Safe Semantics

[0069] In this embodiment, the decisions at each of the above stages are configured to only make the review more conservative, without introducing any new relaxation pathways. Specifically, the global reduction decision and parity leave cross-validation in the aforementioned coverage rejection, anchor point degradation gate decision, and one-way adversarial review, as well as their combined decisions, can only keep the review level of the modification request unchanged or increase it, but cannot reduce the review level.

[0070] When the anchor point sample data is insufficient to execute the anchor point degradation gate determination, that is, when the number of available anchor point samples is insufficient to cover the sum of the recent window sample number, the interval sample number, and the baseline window sample number, it is determined that the data is insufficient. For example, when the number of available anchor point samples is insufficient to cover recent_n + gap_n + older_n samples, it is determined that the data is insufficient. In this case, the modification request is allowed and the event is recorded, i.e., a fail-open but log-based handling method is adopted. In this embodiment, the specific quantitative determination condition for insufficient data is: the number of available anchor point samples does not meet the sum of the recent window sample number, the interval sample number, and the baseline window sample number, i.e., the number of available anchor point samples is less than recent_n + gap_n + older_n. For example, when recent_n is 6, older_n is 6, and gap_n is 2, if the number of available anchor point samples is less than 14, it is determined that the data is insufficient.

[0071] Example 8

[0072] The following example, a multi-tenant LLM assistant deployed on an instant messaging platform, illustrates the specific application of the method described in this invention.

[0073] In this implementation scenario, the system's evolutionary subsystem autonomously generates self-modification proposals during idle or diagnostic periods. One type of proposal is to expand or modify evaluation metrics, and the risk level of this type of proposal is set to L4.

[0074] The frozen anchor points are pre-defined as three metrics: session satisfaction, tool success rate, and repair success rate. The repair success rate and tool success rate are derived from the system's own autonomous activities, namely automatic repair and autonomous tool invocation, accumulating anchor point sample data without relying on real user traffic. The frozen anchor points are marked to prevent them from being overridden or redefined by custom metrics with the same name.

[0075] When an L4 proposal attempts to introduce a custom metric called "Session Satisfaction" to override frozen anchors, the proposal is flagged by `is_anchor_metric` and rejected outright. This is an example of override prohibition.

[0076] When a proposal attempts to adopt a new metric that always passes, and the recent true anchor point decreases relative to the baseline by 0.35 (e.g., the baseline mean is 0.90, the recent mean is 0.55, and the absolute difference is 0.35), exceeding the preset threshold of 0.08, the proposal is rejected by the global anchor point degraded_full gate. This is an example of a global degraded gate blocking the proposal.

[0077] For the critical case where interception is only achieved by leaveout folds, consider the anchor sample sequence [0.78,0.90,0.78,0.90,0.78,0.90,0.85,0.85,0.90,0.90,0.90,0.90,0.90,0.90,0.90]. This sequence is sorted using the newest-first method, where indices 0 to 5 represent the recent window, indices 6 to 7 represent the interval window, and indices 8 to 13 represent the baseline window. The following parameters are used for judgment: recent_n=6, older_n=6, gap_n=2, min_drop=0.08: the global recent mean is 0.840, the baseline mean is 0.900, and the global drop is 0.060, which is less than the preset threshold of 0.08, so the global gate is allowed (degraded_full=False); however, the even-numbered folds (i.e., samples sampled at indices 0, 2, 4...) have a recent mean of 0.780, a baseline mean of 0.900, and a drop of 0.120, which is greater than the preset threshold of 0.08, so the holdout fold is judged as degraded (degraded_holdout=True), and the reason for the decision is "degraded by cross-validation of the holdout fold". This example illustrates that the modification request is allowed only when both the global gate and the holdout fold gate are judged as healthy; if either gate is judged as degraded, the request is rejected.

[0078] When there is insufficient anchor sample data, for example, when the number of available anchor samples is insufficient to cover recent_n+gap_n+older_n samples, the modification request is allowed and the event is recorded according to fail-safe semantics.

[0079] To verify the effectiveness of the above anchor point degradation gate judgment logic, this implementation further employs a purely offline controlled benchmark for reproduction and verification. The controlled benchmark is implemented using the script `scripts / reward_hacking_benchmark.py`, which is independent of databases, LLMs, and networks, and can be reproduced with a single click. The benchmark defines five degradation judgment scenarios: stable and healthy scenario, recently improving healthy scenario, self-interested or degenerate scenario, global mean masking degradation (i.e., leaving room for further degradation), and insufficient data scenario. The judgment results for all five scenarios are correct. Furthermore, the `is_anchor_metric` assertion, which is independent of the above five degradation scenarios, is also verified to be true.

[0080] Example 9

[0081] In this embodiment, an evaluator reward erosion protection device for a self-evolving artificial intelligence system is also provided. This device is used to implement the methods described in embodiments 2 to 7 above. The device is deployed in the governance pipeline of the self-evolving artificial intelligence system, prior to the arbitration stage, and is used to perform admission control on evaluator modification requests submitted by the evolutionary subsystem.

[0082] See Figure 4 The device includes the following essential components that work together: an anchor point freezing module, an overlay rejection module, a degradation determination module, and an epoch activation module.

[0083] The anchor point freezing module is used to maintain a set of frozen anchor points marked as prohibited from being overridden or redefined by custom metrics with the same name. These frozen anchor points are ground-truth anchor points, used to characterize the system's true performance level, specifically including but not limited to session satisfaction, tool call success rate, and autonomous repair success rate. The tool call success rate and the autonomous repair success rate originate from the system's own autonomous activities and do not depend on external user input. This module corresponds to the frozen anchor point set maintenance function described in Embodiment 2 above.

[0084] The coverage rejection module is used to directly reject modification requests that have the same name as the frozen anchor point or that intend to cover or redefine the frozen anchor point. This module corresponds to the coverage rejection branch described in Embodiment 3 above, and it intercepts the hack path that redefines or covers the evaluation metric itself.

[0085] The degradation determination module is used to define non-overlapping recent windows and baseline windows on the anchor point sample sequence, skipping preset sample isolation, calculate the global reduction, and split the samples into two folds according to their parity to calculate the fold reduction separately. The request is only allowed if both the global reduction and the reduction of the two folds do not exceed a preset threshold; otherwise, it is rejected. Specifically, the degradation determination module executes the anchor point degradation gate determination process described in Embodiment 4 above: It takes the sample sequence of the frozen anchor points sorted by acquisition time (using the newest-first order), defines a recent window and a baseline window on the sample sequence, and skips a preset number (gap_n samples) between them for isolation; calculates the absolute difference between the mean of the anchor points in the baseline window and the mean of the anchor points in the recent window as the global reduction; simultaneously, it splits the anchor point samples used to calculate the reduction into two non-overlapping folds according to their parity, and calculates the reduction of each fold separately; the modification request is only allowed if the global reduction does not exceed a preset threshold, and the reduction of the two folds does not exceed the preset threshold; otherwise, it is rejected. The reduction rate uses a one-way criterion, meaning that degradation is only considered when the recent average of the window anchor points is lower than the baseline average of the window anchor points by a preset threshold.

[0086] The epoch activation module is used to queue modification requests approved by the degradation determination module and activate them uniformly at the next epoch boundary, while keeping the evaluation criteria constant within the same epoch. Specifically, within the same epoch, the recent / baseline window on which the global reduction and two-fold reduction determinations for the same evaluator modification request are based remains unchanged until the epoch boundary is reached, at which point the approved modifications are uniformly applied. This module corresponds to the evaluator epoch freezing and delayed activation function described in Embodiment 5 above.

[0087] The overall coordination of the above four modules is a necessary distinguishing component of the device, and no single sub-component is the core. Specifically, the temporal coupling between the epoch activation module and the degradation determination module is used to block temporal attacks that involve first widening the evaluator and then boosting scores: the degradation determination module implements a rejection determination using a historical freeze anchor at the admission point of the evaluator modification request, and the epoch activation module delays the activation of the approved modification until the boundary of the next epoch. The combination of these two mechanisms ensures that even if the approved evaluator intends to adopt a completely new metric in a future epoch, the historical freeze anchor can still implement a rejection at the admission point of the modification request, thereby effectively blocking temporal attacks that involve first widening the evaluator in a certain epoch and then boosting scores using the new widened metric in subsequent epochs.

[0088] Optionally, the device also includes a one-way review module for executing the one-way adversarial review function described in Embodiment 6: it performs a secondary review of the modification request from a default rejection standpoint, and its decision can only downgrade the original automatic approval to manual approval, not lower the review level. Furthermore, the device also executes the failsafe semantics described in Embodiment 7: when the anchor sample data is insufficient to execute the determination of the degradation judgment module, the modification request is allowed and the event is recorded.

[0089] Therefore, the device, through the overall synergy of the anchor freezing module, the cover rejection module, the degradation judgment module, and the epoch activation module, implements comprehensive governance at the time of the evaluator modification request admission of the self-evolving artificial intelligence system. It not only intercepts the behavior of covering or redefining the frozen anchor point, but also intercepts the behavior of introducing lenient indicators that lead to real performance degradation. It reduces the false judgment rate through parity leave-out cross-validation, and blocks timing attacks with epoch delayed activation, thereby reliably preventing the evaluator of the self-evolving system from being eroded by rewards.

[0090] The examples in this document may involve user data, data acquisition, and / or use. All of these aspects comply with relevant laws, regulations, and rules. In the examples, all data collection, acquisition, processing, manipulation, forwarding, and use are conducted with the user's knowledge and confirmation. Accordingly, when implementing each example, the type, scope of use, and usage scenarios of any data or information that may be involved should be communicated to the user and their authorization obtained through appropriate means, in accordance with relevant laws and regulations. The specific methods of notification and / or authorization can vary depending on the actual situation and application scenario; the scope of the solution is not limited in this regard.

[0091] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0092] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.

Claims

1. A method for protecting against reward erosion in a self-evolving artificial intelligence system evaluator, characterized in that, include: Maintain a set of frozen anchor points, which are marked as prohibited from being overridden or redefined by custom indicators with the same name; In response to the system's request to modify its own evaluator: If the modification request is to introduce or adopt an indicator with the same name as any of the frozen anchors, or to cover or redefine any of the frozen anchors, then the modification request is rejected directly. Otherwise, determine whether the number of available anchor point samples meets the preset data sufficiency prerequisite: If the conditions are not met, allow the modification request and log the event. If satisfied, before allowing the modification request to take effect, take the sample sequence of the frozen anchor points sorted by collection time, and define a recent window and a baseline window on the sample sequence. The recent window and the baseline window do not intersect on the sample sequence and a preset number of samples are skipped between them to isolate them. Calculate the global drop of the frozen anchor points in the recent window relative to the baseline window, where the drop is defined as the difference between the mean of the anchor points in the baseline window and the mean of the anchor points in the recent window, denoted as drop = baseline − recent, which is a directed value. When the mean of the anchor points in the recent window is higher than the mean of the anchor points in the baseline window, its value is negative and not considered as degradation. Furthermore, the anchor point samples used to calculate the drop are split into two disjoint folds according to the parity of their indices, and the drop of each fold is calculated separately. The modification request is approved only if the global reduction does not exceed a preset threshold and the reduction of both folds does not exceed the preset threshold; the modification request is rejected if the global reduction or the reduction of any fold exceeds the preset threshold. For evaluator modification requests that have been approved, they are queued and activated uniformly at the next epoch boundary, and the evaluation criteria remain constant within the same epoch.

2. The method for protecting the reward erosion of a self-evolving artificial intelligence system evaluator according to claim 1, characterized in that, The sample sequence is sorted from newest to oldest according to the collection time, with the most recently collected sample corresponding to the first number in the sequence. The splitting based on the parity of the number is performed according to the sample number under that sequence.

3. The method for protecting the reward erosion of a self-evolving artificial intelligence system evaluator according to claim 1, characterized in that, The preset threshold is the absolute difference between 0.05 and 0.

15.

4. The reward erosion protection method for an evaluator of a self-evolving artificial intelligence system according to claim 1, characterized in that, The recent window and the baseline window are separated by skipping a preset number of samples, the preset number being denoted as gap_n samples, and the interval is measured by the number of samples rather than by the physical time span.

5. The reward erosion protection method for a self-evolving artificial intelligence system evaluator according to claim 4, characterized in that, The premise that the data is sufficient is that the number of available anchor point samples is not less than recent_n + gap_n + older_n, where recent_n is the number of recent window samples, older_n is the number of baseline window samples, and gap_n is the preset number; and the number of samples in each fold after odd-even splitting is not less than the preset minimum number of samples in each fold.

6. The method for protecting the reward erosion of a self-evolving artificial intelligence system evaluator according to claim 1, characterized in that, The unified activation upon queuing to the next epoch boundary specifically means that within the same epoch, the recent window and baseline window on which the global reduction and two-fold reduction determination of the same evaluator modification request are based remain unchanged until the epoch boundary is reached, at which point the approved modification request is uniformly applied.

7. The method for protecting the reward erosion of a self-evolving artificial intelligence system evaluator according to claim 1, characterized in that, Also includes: The modification request will undergo a second review with an initial stance of default rejection. The decision of the second review can only increase the review level, and under no circumstances can it decrease the review level.

8. The method for protecting the reward erosion of a self-evolving artificial intelligence system evaluator according to claim 1, characterized in that, When the number of available anchor point samples is insufficient to perform the global reduction determination and the two-fold reduction determination, allow the modification request and record the event.

9. A method for protecting the reward erosion of a self-evolving artificial intelligence system evaluator according to claim 1, characterized in that, The frozen anchor points include session satisfaction, tool call success rate, and self-repair success rate, wherein the tool call success rate and the self-repair success rate come from the system's own autonomous activities and do not depend on external user input.

10. A reward erosion protection device for an evaluator of a self-evolving artificial intelligence system for implementing the method of claim 1, characterized in that, include: The anchor point freezing module is used to maintain a set of frozen anchor points that are marked as prohibited from being overridden or redefined by custom indicators with the same name; The override rejection module is used to directly reject modification requests that have the same name as the frozen anchor point or that are intended to override or redefine the frozen anchor point. The degradation determination module, under the premise that the number of available anchor point samples meets the preset data sufficiency requirement, delineates a recent window and a baseline window on the anchor point sample sequence that are mutually exclusive and skip preset sample isolation, calculates the global reduction, where the global reduction is the directed difference between the mean of the anchor points in the baseline window and the mean of the anchor points in the recent window, drop = baseline − recent, and splits the samples into two folds according to their parity, calculating the fold reduction separately. Only when both the global reduction and the fold reduction do not exceed preset thresholds is the sample allowed to proceed; otherwise, it is rejected. The epoch activation module is used to queue the modification requests approved by the degradation determination module and activate them uniformly at the next epoch boundary, and to keep the evaluation criteria constant within the same epoch. The anchor freezing module, the coverage rejection module, the degradation determination module, and the epoch activation module work together. The degradation determination module implements rejection determination based on historically frozen anchor points at the admission point of the evaluator modification request. The epoch activation module delays the modification request allowed by the degradation determination module until the next epoch boundary to activate, so as to block the timing attack of first widening the evaluator and then boosting the score.

Citation Information

Patent Citations

  • Combining data selection and reward functions for tuning large language models using reinforcement learning

    US12566929B2