Multi-agent empathic reasoning tutoring system and method based on thought chain

By employing a multi-agent empathic reasoning method based on thought chains, the problem of mutual cancellation when merging cognitive and emotional features in a multi-agent tutoring system is solved, achieving lossless bearing of cognitive sharpness and emotional support, and outputting efficient tutoring responses.

CN123180367APending Publication Date: 2026-11-27HEFEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611449010.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-17
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

When existing multi-agent tutoring systems fuse features from the cognitive and emotional dimensions, feature components with opposing directions cancel each other out, resulting in a significant decrease in the strength of the fused features and an inability to effectively output tutoring responses that provide cognitive intervention and emotional support.

Method used

A multi-agent empathic reasoning method based on thought chain is adopted. By weighted fusion of cognitive and emotional feature vectors, orthogonalization is performed, feature collapse decay rate and sharpness carrying capacity are calculated, and orthogonal carrying direction vectors are synthesized. Compensation modulus is injected into the emotional orthogonal subspace to achieve lossless carrying capacity of cognitive sharpness and emotional support.

Benefits of technology

It effectively avoids the cancellation of cognitive sharpness by emotional factors, ensures that cognitive sharpness is stably output with emotional support, and achieves an effective combination of cognitive intervention and emotional support, outputting coaching responses that are both groundbreaking and actionable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180367A_ABST
    Figure CN123180367A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of natural language processing, in particular to a multi-agent empathy reasoning tutoring system and method based on thought chain, comprising: acquiring cognitive, emotional and behavioral feature vectors output by each agent, weighting and fusing the cognitive and emotional vectors and calculating feature collapse decay rate; obtaining orthogonal cognitive sharpness vector and orthogonal behavior form vector based on orthogonalization processing of the emotional vector, and calculating sharpness bearing rate; when the condition is met, synthesizing the orthogonal bearing direction vector, calculating the scalar compensation module length and injecting it into the fusion vector to obtain the candidate output feature vector; extracting empathy fidelity and sharpness reach degree for double-fidelity verification, if satisfied, generating a tutoring reply; otherwise, iteratively adjusting the scalar compensation module length, if still not satisfied after reaching the upper limit, generating a pure empathy reply. The problem of cognitive and emotional feature instability in the multi-agent tutoring process is solved, and the accuracy and safety of cognitive intervention are ensured while avoiding user emotional rebound.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of natural language processing technology, specifically to a multi-agent empathic reasoning tutoring system and method based on thought chain. Background Technology

[0002] With the rapid development of artificial intelligence and natural language processing technologies, multi-agent dialogue systems are widely used in fields such as psychological counseling, affective computing, and human-computer interaction. Existing multi-agent tutoring systems typically employ a distributed processing architecture. They extract user dialogue features by calling agent modules with different functional settings. Subsequently, they use network structures such as attention mechanisms, linear concatenation, or multilayer perceptrons to fuse and compute the extracted features from different dimensions. Finally, a language generation model decodes and outputs a tutoring response. This effectively integrates semantic information from multiple sources, enabling machines to possess basic contextual understanding and dialogue generation capabilities. In typical interaction scenarios, they can quickly output coherent text that combines logical responses with emotional reassurance, thereby achieving basic human-computer dialogue companionship and assisted guidance.

[0003] However, in counseling scenarios that require both cognitive intervention and emotional support, the features of the cognitive and emotional dimensions often carry contradictory semantic demands. When existing systems fuse these two features linearly within the same semantic space, the contradictory feature components cancel each other out, significantly weakening the strength of the fused features. Specifically, the cognitive sharpness carried by the cognitive dimension is weakened by the emotional dimension components, while the enveloping semantics carried by the emotional dimension are also counteracted. Because this feature cancellation occurs internally during the fusion process, and the fusion result is directly fed into the decoder, existing systems cannot detect whether this cancellation has occurred during the fusion process, nor can they constrain or repair the weakened feature strength. Ultimately, the fused features fed into the decoder lose both the disruptive power of cognitive intervention and the enveloping feeling of emotional support, only outputting a bland and ineffective neutral response. Summary of the Invention

[0004] To address the problems in related technologies, this invention provides a multi-agent empathic reasoning tutoring system and method based on thought chain, in order to overcome the aforementioned technical problems existing in the prior art.

[0005] According to one aspect of this application, a multi-agent empathic reasoning tutoring method based on thought chain is provided, comprising the following steps:

[0006] Obtain the cognitive feature vector, emotion feature vector, and behavior feature vector output by each agent in the system; weight and fuse the cognitive feature vector and emotion feature vector to obtain the fused feature vector, and calculate the feature collapse decay rate;

[0007] Based on the emotional feature vector, the cognitive feature vector and the behavioral feature vector are orthogonally processed to obtain an orthogonal cognitive sharpness vector and an orthogonal behavioral pattern vector.

[0008] The ratio of the magnitude of the orthogonal cognitive sharpness vector to the magnitude of the cognitive feature vector is calculated as the sharpness carrying capacity.

[0009] When the feature collapse attenuation rate, the sharpness carrying capacity, and the obtained emotion acceptance window meet the preset conditions, the orthogonal cognitive sharpness vector and the orthogonal behavioral morphology vector are used to synthesize an orthogonal carrying direction vector; the scalar compensation modulus is calculated using the feature collapse attenuation rate, the sharpness carrying capacity, and the emotion acceptance window, and injected into the fused feature vector along the orthogonal carrying direction vector to obtain a candidate output feature vector;

[0010] The empathy fidelity on the emotion baseline axis and the sharpness reach on the orthogonal cognition axis are extracted from the candidate output feature vector. When the empathy fidelity and the sharpness reach satisfy the preset double fidelity condition, the candidate output feature vector is sent to the decoder to generate a tutoring response; otherwise, the scalar compensation modulus is adjusted and re-injected, and iterated until the preset double fidelity condition is satisfied; if the preset double fidelity condition is still not satisfied when the iteration limit is reached, the emotion feature vector is sent to the decoder to generate a pure empathy response.

[0011] According to another aspect of this application, a multi-agent empathic reasoning tutoring system based on thought chain is provided, comprising:

[0012] The baseline fusion module is used to acquire the cognitive feature vector, emotion feature vector, and behavior feature vector output by each agent in the system; the cognitive feature vector and the emotion feature vector are weighted and fused to obtain the fused feature vector, and the feature collapse decay rate is calculated.

[0013] The orthogonal processing module is used to orthogonalize the cognitive feature vector and the behavioral feature vector based on the emotional feature vector to obtain an orthogonal cognitive sharpness vector and an orthogonal behavioral morphology vector.

[0014] The criterion calculation module is used to calculate the ratio of the magnitude of the orthogonal cognitive sharpness vector to the cognitive feature vector as the sharpness carrying capacity.

[0015] The compensation injection module is used to synthesize an orthogonal bearing direction vector from the orthogonal cognitive sharpness vector and the orthogonal behavioral morphology vector when the feature collapse attenuation rate, the sharpness carrying capacity rate, and the acquired emotion acceptance window meet preset conditions; calculate the scalar compensation modulus using the feature collapse attenuation rate, the sharpness carrying capacity rate, and the emotion acceptance window, and inject the fused feature vector along the orthogonal bearing direction vector to obtain a candidate output feature vector;

[0016] The dual-fidelity verification module is used to extract the empathy fidelity of the candidate output feature vector on the emotion baseline axis and the sharpness reach on the orthogonal cognition axis. When the empathy fidelity and the sharpness reach satisfy the preset dual-fidelity condition, the candidate output feature vector is sent to the decoder to generate a tutoring response; otherwise, the scalar compensation modulus is adjusted and re-injected, iterating until the preset dual-fidelity condition is satisfied; if the preset dual-fidelity condition is still not satisfied when the iteration limit is reached, the emotion feature vector is sent to the decoder to generate a pure empathy response.

[0017] According to another aspect of this application, a computer storage medium is provided that stores computer-executable instructions thereon, which, when executed by a processor, implement the steps of the method described above.

[0018] By employing the above technical solution, the present invention provides a multi-agent empathic reasoning tutoring system and method based on thought chain, which has at least the following beneficial effects:

[0019] 1. This invention calculates the feature collapse attenuation rate of the fused feature vector relative to the lossless reference modulus, and orthogonalsizes the cognitive feature vector based on the emotional feature vector. This redirects the cognitive sharpness carried by the cognitive features to a channel that is strictly orthogonal to the emotional feature vector, thus avoiding the destructive interference and feature collapse of soft fusion when the cognitive and emotional directions are contradictory. This prevents the cognitive sharpness from being canceled out by the positive and negative emotional components.

[0020] 2. This invention calculates the ratio of the magnitude of the orthogonal cognitive sharpness vector to the cognitive feature vector as the sharpness carrying capacity before vector injection. When the carrying capacity approaches zero, it degenerates into a pure empathic response and sends a rewrite instruction back to the cognitive reconstruction agent. This transforms the open-loop injection, which may diverge and become unstable when cognition is approximately parallel to emotion, into a controlled injection based on observable criteria, thus avoiding the divergence of compensation coefficients and injection instability.

[0021] 3. This invention synthesizes the carrying direction within a two-dimensional orthogonal emotional subspace spanned by orthogonal cognitive sharpness vectors and orthogonal behavioral form vectors. This not only fully preserves the carrying cognitive sharpness but also endows it with executable breakthrough action semantics through behavioral form. Furthermore, the entire carrying channel is strictly orthogonal to the emotional feature vector and does not cancel out with the emotion during injection. Thus, it simultaneously takes into account both breakthrough power and executableness within the same channel.

[0022] 4. This invention performs double-fidelity verification by backtesting the empathy fidelity and sharpness reach of candidate output feature vectors along the emotional baseline axis and the orthogonal cognitive axis, respectively. When the verification fails, it self-corrects within a bounded scalar compensation modulus range at a preset step size. This realizes the geometric orthogonality of the neural latent space as a semantic-level decoupled verification, so that empathy fidelity and sharpness reach can be measured and achieved simultaneously. It transforms the traditional open-loop feature injection, which lacks state feedback, into a closed-loop control mechanism with result verification and dynamic self-correction, thereby stably outputting an intervention response that both safeguards emotional safety and achieves effective cognitive breakthroughs. Attached Figure Description

[0023] The above and other objects, features, and advantages of this application will become more apparent from the more detailed description of the embodiments of this application in conjunction with the accompanying drawings. The drawings are provided to further illustrate the embodiments of this application and form part of the specification. They are used together with the embodiments of this application to explain this application and do not constitute a limitation thereof. In the drawings, the same reference numerals generally represent the same components or steps.

[0024] Figure 1 A flowchart illustrating the multi-agent empathic reasoning tutoring method based on thought chain provided by the present invention;

[0025] Figure 2 A logical framework diagram of the multi-agent empathic reasoning tutoring method based on thought chain provided by the present invention;

[0026] Figure 3 This is a schematic diagram of the modules of the multi-agent empathic reasoning tutoring system based on thought chain provided by the present invention. Detailed Implementation

[0027] 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.

[0028] Exemplary method:

[0029] To address the problem in existing multi-agent tutoring systems where the directions of cognitive and emotional feature vectors are contradictory, the linear superposition of attention-based soft fusion causes destructive interference, leading to the collapse of the fused feature modulus and the cancellation of cognitive sharpness by the emotional component. Ultimately, this results in the decoder only outputting neutral responses that lack both disruptive power and a sense of empathy. This embodiment proposes a multi-agent empathic reasoning tutoring method based on thought chains. Figures 1-2 As shown, the method includes the following steps:

[0030] To facilitate understanding, the following example uses an online text tutoring dialogue addressing academic frustration. Assume the user inputs, "I failed my exam again. No matter how hard I try, it's useless; I can't do anything right." The system deploys three types of thought chain agents in parallel: a cognitive restructuring agent, an emotional support agent, and a behavioral activation agent. The cognitive restructuring agent outputs a cognitive feature vector carrying the alternative rational belief that "failing an exam doesn't mean completely negating yourself; it's more like an opportunity to identify your weaknesses." The emotional support agent outputs an emotional feature vector carrying empathy verification, stating that "I can feel your current frustration and self-doubt." The behavioral activation agent outputs a behavioral feature vector carrying a small adaptive action instruction, "Should you pick the question you're most confident in from the incorrect answers and redo it?" The inter-chain coordination module obtains these three types of hidden layer outputs at step t and uses this dialogue scenario and the above three types of feature vectors to illustrate subsequent steps.

[0031] like Figure 1 As shown, in step S1, the cognitive feature vector, emotion feature vector, and behavior feature vector output by each agent in the system are obtained; the cognitive feature vector and the emotion feature vector are weighted and fused to obtain a fused feature vector, and the feature collapse decay rate is calculated.

[0032] Specifically, the cognitive feature vector, emotional feature vector, and behavioral feature vector are the hidden tensors output by the cognitive reconstruction agent, emotional support agent, and behavioral activation agent in the thought chain reasoning, respectively. The cognitive feature vector carries the sharp semantics of alternative rational beliefs and provides cognitive sharpness for the subsequent process. The emotional feature vector carries the enveloping semantics of empathy verification and serves as a reference axis that must be retained rather than an interference that should be eliminated. The behavioral feature vector carries the instruction semantics of small adaptive actions and provides an executable form for sharpness. The fusion feature vector is the initial carrier for subsequent injection compensation, and the feature collapse decay rate serves as a lightweight anomaly threshold for triggering orthogonal rerouting in the subsequent S4 triple gating.

[0033] Among them, cognitive feature vector Emotion feature vector With behavioral feature vector All three have the same dimensions and reside in the same hidden space, which can be obtained by reading the hidden tensors of the three types of intelligent agents at the t-th step of the thought chain reasoning.

[0034] The weighted fusion of the cognitive feature vector and the emotional feature vector yields a fused feature vector, including:

[0035] Obtain the first weight assigned to the cognitive feature vector and the second weight assigned to the emotion feature vector;

[0036] Multiply the cognitive feature vector by the first weight to obtain a weighted cognitive baseline vector, and multiply the emotional feature vector by the second weight to obtain a weighted emotional baseline vector.

[0037] Specifically, this step scales the cognitive and emotional feature vectors according to their respective weights into a standardized baseline vector, calculated as follows:

[0038] ;

[0039] in, As a weighted cognitive baseline vector, As a weighted sentiment baseline vector, , These are the first and second weights, respectively. The weighted average is... , As a unified standard for all subsequent measurements, its function is to distinguish from the source between two different situations: "features are not obvious due to insufficient weights" and "features cancel each other out due to conflicting directions"—the former manifests as... or Its own modulus length is relatively small, the latter being manifested as and If the directions are contradictory and they cancel each other out when added, the two will be confused if they are not first unified to a weighted caliber and are directly measured by the original feature vector.

[0040] The weighted cognitive baseline vector and the weighted emotional baseline vector are added together to obtain the fused feature vector; the calculation formula is as follows:

[0041] ;

[0042] in, This is the fusion feature vector. The fusion feature vector is the initial fusion vector obtained by existing soft fusion methods. and When their directions are opposite, their addition will cause destructive interference, making... The modulus relative to A collapse occurs, and the extent of this collapse will be quantified by the subsequent characteristic collapse decay rate.

[0043] The weighted fusion is based on an attention mechanism, where the first weight and the second weight are the attention weights assigned by the attention mechanism to the cognitive and emotional feature vectors.

[0044] Specifically, this sub-step defines the specific implementation method of the above weighted fusion, namely the first weight. With the second weight The attention mechanism dynamically allocates cognitive and emotional feature vectors based on the current dialogue context. The attention score can be calculated from the cognitive and emotional feature vectors using the self-attention mechanism and then normalized.

[0045] It should be noted that, in addition to the self-attention mechanism, other alternative methods such as weight allocation based on gating networks or rule-based weight allocation based on dialogue state can also be used to determine the weights. , Any approach that can assign a relative proportion to cognitive and emotional feature vectors based on context can be adopted.

[0046] The calculation of the characteristic collapse decay rate includes:

[0047] The magnitude of the weighted cognitive baseline vector is added to the magnitude of the weighted emotional baseline vector to obtain the lossless baseline magnitude.

[0048] Specifically, this step will The modulus and The undamaged reference modulus is obtained by adding the modulus lengths together. The non-destructive reference modulus length characterizes when... and The ideal magnitude that the fused vector should reach when the directions are completely consistent and no cancellation occurs is used as a reference benchmark to measure whether the actual fused vector has collapsed.

[0049] The feature collapse attenuation rate is obtained by subtracting the ratio of the magnitude of the fused feature vector to the magnitude of the lossless reference vector from the numerical value of 1. The calculation formula is as follows:

[0050] ;

[0051] in, The characteristic collapse decay rate, To fuse the magnitude of the feature vectors, This is the length of the non-destructive reference module. From the triangle inequality, we know... Therefore Values ​​are taken from ;when and When the directions are completely consistent and no cancellation occurs , ,when and When directions are contradictory and cancellation is more severe The smaller The closer it is to 1. Therefore, and , The cosine correlation of the included angle is a monotonic measure of the degree of destructive interference and feature collapse; a larger value indicates a more severe cancellation between cognitive and emotional features. In contrast, if this decay rate is not calculated first and the value is directly applied... If the data is sent to the decoder, the occurrence of feature collapse cannot be detected before the injection.

[0052] Using the previous example, the cognitive reconstruction agent and the emotion support agent respectively output... and Let the length of both be equal to the length of the modulus. The directions are opposite, making the cosine of their included angle equal to... Attention mechanism assigns first weight Second weight Then the magnitudes of the weighted cognitive baseline vector and the weighted emotional baseline vector are: fusion feature vector magnitude Substituting into the above formula, we obtain the characteristic collapse decay rate. This indicates that the fusion vector has experienced a magnitude collapse of approximately 55% due to the conflict between cognitive and emotional directions, with both cognitive sharpness and emotional envelopment being significantly canceled out.

[0053] return Figure 1 In step S2, the cognitive feature vector and the behavioral feature vector are orthogonalized based on the emotional feature vector to obtain an orthogonal cognitive sharpness vector and an orthogonal behavioral morphology vector.

[0054] Specifically, this step separates the components in the cognitive and behavioral feature vectors that overlap with the emotional feature vector and cancel out the emotion, retaining only the components that are strictly orthogonal to the emotional feature vector and do not cancel out the emotion. The emotional feature vector is used as the reference axis for orthogonalization because in this method, the emotional feature vector is an empathic reference that must be retained, rather than an interference that is eliminated.

[0055] The process of obtaining the orthogonal cognitive sharpness vector and the orthogonal behavioral morphology vector includes:

[0056] Calculate the projection component of the cognitive feature vector in the direction of the emotional feature vector, and subtract the projection component from the cognitive feature vector to obtain an orthogonal cognitive sharpness vector that is strictly orthogonal to the emotional feature vector;

[0057] Specifically, this step orthogonals the cognitive feature vectors by applying emotion, calculated using the following formula:

[0058] ;

[0059] in, This is an orthogonal cognitive sharpness vector. For cognitive feature vectors, For emotion feature vectors, It is the inner product of the cognitive feature vector and the emotional feature vector. The square of the magnitude of the emotion feature vector. This refers to the projection component of the cognitive feature vector onto the direction of the emotion feature vector. The orthogonal cognitive sharpness vector captures all cognitive sharpness in the cognitive features that does not cancel out with emotion, and it satisfies... That is, it is strictly orthogonal to the emotion feature vector.

[0060] It should be noted that this orthogonalization process is based on the Gram-Schmidt orthogonalization principle, which aims to achieve geometric decoupling between the cognitive feature vector and the emotional feature vector in the feature latent space by eliminating the components that are collinearly coupled with the emotional feature vector, thereby extracting pure and independent cognitive sharpness.

[0061] Calculate the projection component of the behavioral feature vector onto the direction of the emotional feature vector, and subtract the projection component from the behavioral feature vector to obtain an orthogonal behavioral morphology vector that is strictly orthogonal to the emotional feature vector.

[0062] Specifically, this step similarly performs emotion orthogonalization on the behavioral feature vectors, calculated using the following formula:

[0063] ;

[0064] in, These are orthogonal behavioral morphological vectors. This is the behavioral feature vector. The orthogonal behavioral form vector, while retaining the executable action semantics carried by the behavioral features, removes the components overlapping with emotions. It is also strictly orthogonal to the emotion feature vector, and is used in subsequent step S4 to assign executable breaking action forms to the carrying direction. Preserve all the sharpness that can be supported, by By assigning an executable action form, both of which are orthogonal to the emotional feature vector, this is the key premise for redirecting cognitive sharpness to the positive emotional pathway.

[0065] Continuing with the previous example, the cognitive feature vector is orthogonalized to emotion, and its projection coefficients along the direction of the emotion feature vector are: Therefore, the orthogonal cognitive sharpness vector Its mold length That is, approximately 1.6 of the cognitive sharpness in the cognitive features can be carried without loss and without canceling out emotions; similarly, orthogonalizing the behavioral feature vector with emotions yields orthogonal behavioral morphology vectors. This provides the sharpness with the action form of "redoing a question you are sure you got wrong".

[0066] return Figure 1In step S3, the ratio of the magnitude of the orthogonal cognitive sharpness vector to the cognitive feature vector is calculated as the sharpness carrying capacity.

[0067] Specifically, before vector injection, this step answers the question "how much cognitive sharpness can this positive emotional pathway actually support" with an observable criterion, thus providing a preliminary basis for the admission judgment in the subsequent step S4 and the prevention of instability and degradation in this step.

[0068] Specifically, the sharpness tolerance rate is... The calculation formula is as follows:

[0069] ;

[0070] in, Let the magnitude of the orthogonal cognitive sharpness vector be denoted as . The magnitude of the cognitive feature vector. To prevent extremely small positive numbers with a denominator of zero (e.g., taking...) Its value is much smaller than the typical magnitude of the vector magnitude, and is only used to ensure numerical stability without affecting the ratio. The sharpness carrying capacity represents the proportion of cognitive sharpness that can be carried without loss and does not cancel out with emotion: the more parallel the cognitive feature vector and the emotional feature vector, the better. The smaller The closer to zero, the less sharpness can be carried without loss; the more orthogonal the two are, The closer it is to 1, the more sharpness it can handle.

[0071] It should be noted that the sharpness carrying capacity rate is used to quantitatively assess the carrying capacity of the main traffic lane before vector injection, and serves as a pre-gating criterion for whether to perform feature injection. This effectively overcomes the uncontrollable defect in the prior art where the compensation parameter diverges due to the effective projection component approaching zero when cognitive features and emotional features are highly collinear. It transforms the injection instability that is prone to occur into a controlled process that can be intercepted and avoided in advance through pre-judgment criteria.

[0072] The method also includes a mechanism to prevent instability and degradation.

[0073] When the sharpness load-bearing rate is less than or equal to the preset load-bearing threshold, the step of synthesizing the orthogonal load-bearing direction vector is stopped.

[0074] Specifically, this step uses a preset load-bearing threshold to provide lower-limit protection for the sharpness load-bearing capacity. Let the preset load-bearing threshold be... ;when When the cognitive sharpness is almost entirely entangled with emotions, the sharpness that can be carried without loss tends to zero. If the carrying direction is still forcibly synthesized and injected at this time, the compensation coefficient will diverge and the injection will become unstable because the carrying direction is almost non-existent. Therefore, this step stops the subsequent steps of synthesizing orthogonal carrying direction vectors.

[0075] Among them, the preset bearing threshold The minimum allowable proportion required to allow detours is represented. The larger the value, the stricter the admission and the more inclined it is to degenerate into pure empathy. The smaller the value, the more lenient the admission. It can take a small positive value close to zero (e.g., 0.10 to 0.20) to trigger degeneration only when cognition and emotion are truly inseparable. Specifically, it can be calibrated in conjunction with the decoder's tolerance for the numerical stability of the carrying direction.

[0076] The cognitive feature vector is discarded, the emotional feature vector is fed into the decoder to generate a pure empathic response, and a rewrite instruction is sent to the cognitive reconstruction agent to trigger the cognitive reconstruction agent to regenerate a new cognitive feature vector.

[0077] Specifically, this step performs degradation after determining that cognition and emotion are inseparable: on the one hand, it discards the current cognitive feature vector and directly sends the emotional feature vector into the decoder to generate a pure empathic response, so as to ensure that at least emotional safety is maintained and no content that destroys empathy is output when cognitive sharpness cannot be safely injected; on the other hand, it sends a rewrite instruction back to the cognitive reconstruction agent, triggering it to regenerate a new cognitive feature vector that is less entangled with emotion, so as to regain the cognitive sharpness that can be carried upstream.

[0078] It should be noted that this anti-instability degradation mechanism uses the observable criterion of sharpness carrying capacity as the trigger condition. It corrects the silent failure and numerical divergence of the existing open-loop injection when the carrying capacity approaches zero into a controlled behavior that degrades before injection and is transmitted back to the upstream for rewriting. This avoids the divergence of compensation coefficients and injection instability, ensuring that the system does not experience injection instability under any cognitive and emotional configuration, and always maintains the bottom line of emotional safety.

[0079] Using the previous example, substituting into the sharpness bearing capacity formula, we get... This means that approximately 80% of cognitive sharpness can be retained without loss; a preset threshold for this retention is set. ,because In this example, no instability degradation is triggered, and subsequent steps continue. As a contrast, if the user's cognitive input is highly intertwined with emotions, causing... Reduced to 0.10 (less than) If the system discards the cognitive feature vector and generates a pure empathic response using only the emotional feature vector, it will request the cognitive reconstruction AI to rewrite the cognitive content.

[0080] return Figure 1In step S4, when the feature collapse attenuation rate, the sharpness carrying capacity, and the obtained emotion acceptance window meet preset conditions, an orthogonal carrying direction vector is synthesized from the orthogonal cognitive sharpness vector and the orthogonal behavioral morphology vector; a scalar compensation modulus is calculated using the feature collapse attenuation rate, the sharpness carrying capacity, and the emotion acceptance window, and injected into the fused feature vector along the orthogonal carrying direction vector to obtain a candidate output feature vector;

[0081] Specifically, this step first uses triple gating to determine whether the conditions for safe rerouting are met. Only when the three conditions of collapse have indeed occurred, the emotional state is acceptable for intervention, and the channel can bear the sharpness are met simultaneously, the bearing direction is synthesized in the emotional orthogonal subspace, the bounded compensation modulus is calculated, and the fusion feature vector is injected. In this way, the canceled cognitive sharpness is re-injected along a direction strictly orthogonal to the emotion, and the collapsed modulus is repaired.

[0082] Among them, the emotional acceptance window is denoted as , take values ​​from The state tracker outputs the emotion based on the user's current emotional state. Specifically, the state tracker can identify emotions by analyzing the user's historical dialogues and real-time interactive feedback, and then normalize and map the emotional valence or positivity score to the [0,1] interval to quantify the emotional acceptance window.

[0083] The preset conditions are: the feature collapse attenuation rate is greater than the preset attenuation threshold, the sharpness carrying capacity is greater than the preset carrying threshold, and the emotion acceptance window is greater than the preset safety threshold.

[0084] Specifically, the entry conditions for orthogonal lane changing are limited to the simultaneous fulfillment of the following three gating mechanisms:

[0085] ;

[0086] in, For characteristic collapse decay rate, To preset the attenuation threshold, For sharpness load capacity, To preset the load capacity threshold, For the window of emotional acceptance, To preset a safety threshold, For logical AND.

[0087] It should be noted that triple gating means: only when feature collapse has actually occurred ( (To avoid unnecessary intervention in normal fusion that has not collapsed), the channel does indeed have the sharpness to support ( This complements the anti-instability and degradation measures in step S3, excluding situations where cognition and emotion are inseparable, and the user's emotional state is indeed suitable for cognitive intervention. (To avoid forcibly injecting sharpness when emotions have not been fully accepted, thus triggering an emotional backlash) Only when all three conditions are met can an orthogonal change be initiated.

[0088] Wherein, the preset attenuation threshold The minimum degree of collapse required to trigger intervention is represented; a larger value indicates that intervention is only needed for severe collapse. The preset safety threshold... This represents the minimum level of emotional acceptance required to allow for cognitive intervention; a higher value indicates a greater tendency to intervene only after sufficient emotional acceptance. These thresholds can all be pre-defined based on a trade-off between the aggressiveness of the intervention and the safety margin, for example... Take 0.2, Set the value to 0.3. If any condition in the triple gating is not met, the orthogonal route will not be entered. Then proceed to step S3 to prevent instability and degradation.

[0089] The process of obtaining the candidate output feature vector includes:

[0090] The orthogonal behavior shape vector is multiplied by a preset behavior weight and then added to the orthogonal cognitive sharpness vector. After normalization, the orthogonal bearing direction vector is obtained.

[0091] Specifically, this step synthesizes and normalizes the carrying direction within the two-dimensional orthogonal subspace of emotion spanned by the orthogonal cognitive sharpness vector and the orthogonal behavioral morphology vector. The calculation formula is as follows:

[0092] ;

[0093] in, This is the synthesized bearing direction vector. This is the normalized orthogonal bearing direction vector. This is an orthogonal cognitive sharpness vector. These are orthogonal behavioral morphological vectors. Preset behavior weights. Because... and Both are strictly orthogonal to the emotion feature vector, and are linear combinations of the two. and its normalization results It is also strictly orthogonal to the emotion feature vector, that is, it satisfies... .

[0094] It should be noted that the carrying path is no longer compressed into a single behavioral direction or a single cognitive direction, but is synthesized within a two-dimensional orthogonal emotional subspace, thus being both... Completely preserve all the sharpness it can bear, and also... It is given executable action semantics to break the deadlock, while eliminating two types of failures: loss of sharpness in unidirectional projection and numerical divergence.

[0095] Among them, the preset behavior weight The proportion of the behavioral form in the carrying direction is represented. The larger the value, the more the carrying direction is biased towards the executable action form, and the smaller the value, the more it is biased towards pure cognitive sharpness. A positive value less than 1 (e.g., 0.2 to 0.4) can be taken to incorporate an appropriate amount of executable action semantics while maintaining the dominance of cognitive sharpness. Specifically, it can be calibrated according to the preference for disruptive power and feasibility.

[0096] Multiply the feature collapse decay rate, the emotion acceptance window, the sharpness carrying capacity, and the magnitude of the weighted cognitive baseline vector to obtain the bounded scalar compensation magnitude; the calculation formula is as follows:

[0097] ;

[0098] in, For scalar compensation modulus, The characteristic collapse decay rate, As a window for emotional acceptance, For sharpness bearing capacity, The magnitude of the weighted cognitive baseline vector.

[0099] It should be noted that the scalar compensation modulus has three values, all of which are within the range of... factors and The more severe the collapse, the more likely it is to be obtained by multiplication. The larger the value, the stronger the compensation and the more acceptable the emotions. The larger the value, the stronger the compensation and the greater the capacity of the channel. The larger the value, the stronger the compensation. Furthermore, since all three factors do not exceed 1, the scalar compensation modulus naturally satisfies... That is, the cognitive benchmark module is bounded;

[0100] It should be further explained that, unlike the existing open-loop injection which uses division to solve for the compensation coefficient and diverges when the bearing direction approaches zero, this step directly uses multiplication to calibrate the scalar magnitude of the injection, thus avoiding the risk of divergence from the calculation form. This ensures that the injection intensity is always bounded and adaptively modulated with the degree of collapse, the degree of emotional acceptance, and the bearing capacity.

[0101] Multiply the scalar compensation modulus by the orthogonal bearing direction vector scalar, and add the fused feature vector to obtain the compensated feature vector;

[0102] Specifically, this step involves injecting the fusion feature vector along the unit load direction using a scalar compensation modulus, calculated as follows:

[0103] ;

[0104] in, For the compensated feature vector, To fuse feature vectors, For scalar compensation modulus, The orthogonal carrying direction vector is used. The compensated feature vector retains the original emotional component of the fused feature vector while re-injecting the canceled cognitive sharpness along a direction strictly orthogonal to the emotion; since the injection direction is orthogonal to the emotion, this injection will not cancel out the emotional component.

[0105] The compensated feature vector is subjected to a scaling process, such that the scaled vector is equal to the sum of the scaled magnitudes of the weighted cognitive reference vector and the weighted emotional reference vector, and the scaled vector is used as a candidate output feature vector.

[0106] Specifically, this step shrinks the magnitude of the compensated feature vector back to the lossless baseline magnitude to repair the previous magnitude collapse and stabilize the decoding distribution. The calculation formula is as follows:

[0107] ;

[0108] in, For candidate output feature vectors, For the non-destructive reference modulus, To compensate for the magnitude of the feature vector, This is the compensated feature vector. After scaling. That is, the magnitude of the candidate output feature vector is restored to the ideal magnitude when the fusion is not collapsed, thereby achieving lossless coexistence of emotion support semantics and orthogonal cognitive sharpness in the feature direction, and repairing the numerical decay caused by feature cancellation in the vector magnitude, avoiding the language decoding model from degenerating into inefficient responses that lack substantial intervention meaning due to the collapse of the input feature magnitude.

[0109] Following the previous example, a triple gating judgment is first performed: an emotional acceptance window is set. Due to characteristic collapse decay rate Sharpness bearing capacity Emotional Acceptance Window When all three conditions are met, an orthogonal course change occurs; the preset behavior weights are then taken. The orthogonal bearing direction vector is obtained by synthesizing and normalizing the orthogonal cognitive sharpness vector and the orthogonal behavioral morphology vector. (It is strictly orthogonal to the emotion feature vector, and is dominated by orthogonal cognitive sharpness, with behavioral patterns endowing it with executable action semantics); Substituting into the scalar compensation modulus formula, we get ,satisfy .

[0110] For ease of explanation, each vector is represented on the sentiment baseline axis. Orthogonal cognitive axis Within Zhang Cheng's plane, the fused feature vector can be decomposed into: (Its component on the emotional baseline axis is only 0.4, far lower than the ideal value of 1.0 without interference, which is a manifestation of the cancellation of the emotional envelopment feeling by the back projection of the cognitive component.) The bearing direction is dominated by the orthogonal cognitive axis in this plane; after injecting the scalar compensation modulus, the compensated feature vector Its mold length ; Scaling to a non-destructive reference module length The scaling factor is , thus obtaining the candidate output feature vector Its modulus is restored to 2.0, and it has effective feature components in both the emotion and orthogonal cognition directions.

[0111] return Figure 1 In step S5, the empathy fidelity on the emotion baseline axis and the sharpness reach on the orthogonal cognition axis of the candidate output feature vector are extracted. When the empathy fidelity and the sharpness reach satisfy the preset double fidelity condition, the candidate output feature vector is sent to the decoder to generate a coaching response; otherwise, the scalar compensation modulus is adjusted and re-injected, and iterated until the preset double fidelity condition is satisfied; if the preset double fidelity condition is not satisfied when the iteration limit is reached, the emotion feature vector is sent to the decoder to generate a pure empathy response.

[0112] Specifically, this step performs closed-loop double-fidelity verification on the candidate output feature vectors: backtesting the candidate outputs along the emotional baseline axis and the orthogonal cognitive axis respectively, realizing the geometric orthogonality of the neural latent space as a semantic-level decoupling verification, and only allowing decoding when empathy fidelity and sharpness reach the same standard, otherwise it self-corrects within the bounded compensation budget until it reaches the standard or degenerates.

[0113] The step of extracting the empathy fidelity of the candidate output feature vector along the emotion baseline axis and the sharpness reach along the orthogonal cognitive axis includes:

[0114] The emotion feature vector is normalized to obtain the emotion baseline axis. The candidate output feature vector is then multiplied by the emotion baseline axis, and the result is divided by the magnitude of the weighted emotion baseline vector to obtain the empathy fidelity. The calculation formula is as follows:

[0115] ;

[0116] in, As the emotional baseline, For emotion feature vectors, To ensure the authenticity of empathy, For candidate output feature vectors, This is the projection of the candidate output feature vector onto the sentiment baseline axis. Let be the magnitude of the weighted emotion baseline vector. The empathy fidelity characterizes the degree to which the candidate output reaches the weighted emotion baseline in the emotion direction.

[0117] The orthogonal cognitive sharpness vector is normalized to obtain the orthogonal cognitive axis. The candidate output feature vector is then multiplied by the orthogonal cognitive axis, and the result is divided by the magnitude of the weighted cognitive baseline vector to obtain the sharpness reach. The calculation formula is as follows:

[0118] ;

[0119] in, As orthogonal cognitive axes, This is an orthogonal cognitive sharpness vector. For sharpness attainment, For candidate output feature vectors, This is the projection of the candidate output feature vector onto the orthogonal cognitive axes. The magnitude of the weighted cognitive reference vector is denoted by . The sharpness reachability characterizes the degree to which the candidate output reaches the weighted cognitive reference in orthogonal cognitive directions.

[0120] It should be noted that the emotional baseline axis Orthogonal cognitive axis They are strictly orthogonal to each other (because) Therefore, empathy fidelity and sharpness reach are on two mutually orthogonal axes, and can be high at the same time without hindering each other.

[0121] The preset double fidelity condition is: the empathy fidelity is greater than or equal to the preset lower threshold of empathy, and the sharpness reach is greater than or equal to the preset lower threshold of sharpness.

[0122] Specifically, the conditions for allowing decoding are limited to both empathy fidelity and sharpness reaching the required standards, and the preset lower threshold for empathy is denoted as... The preset sharpness lower limit threshold is That is, requirements and .

[0123] Among them, the preset empathy lower limit threshold The preset sharpness threshold represents the minimum empathic fidelity required to maintain emotional security. The minimum sharpness required to achieve an effective cognitive breakthrough is represented by the value of both. The higher the value of both, the higher the requirements for empathy and breakthrough in the response. They can be pre-calibrated according to the minimum requirements for response quality, for example, both can be set to 0.6.

[0124] The adjustment of the scalar compensation modulus and re-injection includes:

[0125] If the sharpness reaches a threshold value less than the preset sharpness lower limit within the preset modulus range, the scalar compensation modulus is increased by a preset step size, and the injection operation is re-executed to update the candidate output feature vector.

[0126] Specifically, let the preset step size be... The upper limit of the preset mold length range is When the sharpness reaches a certain degree Then, after increasing the scalar compensation modulus within the bounded range according to the following formula, re-execute the injection and scaling in step S4 to update the candidate output feature vector:

[0127] ;

[0128] in, For scalar compensation modulus, To preset the step size, The upper limit of the preset modulus range is the modulus of the weighted cognitive baseline vector. This is a minimum value calculation. The minimum value calculation ensures that the scalar compensation modulus after the increase in injection does not exceed [the specified value]. That is, it is always within the bounded compensation budget.

[0129] Wherein, the preset step size It represents the adjustment range of the scalar compensation modulus for each self-calibration. The larger the value, the faster the convergence, but the easier it is to exceed the target range. The smaller the value, the more precise the adjustment. It can be calibrated according to the trade-off between convergence speed and accuracy.

[0130] Within the preset modulus range, if the empathy fidelity is less than the preset empathy lower limit threshold, the scalar compensation modulus is reduced by the preset step size, and the injection operation is re-executed to update the candidate output feature vector.

[0131] Specifically, when empathy fidelity When this indicates that the injected cognitive sharpness has squeezed out the emotional wrapper, the scalar compensation modulus is reduced within a bounded range using the following formula, and then the injection and scaling are re-executed to update the candidate output feature vector:

[0132] ;

[0133] in, For scalar compensation modulus, To preset the step size, To perform the maximum value operation, the maximum value operation ensures that the scalar compensation modulus after the pullback is not less than 0.

[0134] It should be noted that the above self-calibrating loop dynamically adjusts the scalar compensation modulus based on the measured results of double-fidelity verification: if the sharpness reaches the standard (under-sharpness), the injection is increased; if the empathy fidelity does not reach the standard (damage), the injection is reversed, and the adjustment is always constrained to... Within the bounded compensation budget, an adaptive control loop is formed with double fidelity verification as feedback and scalar compensation modulus as control quantity.

[0135] It should be further noted that the system has been iterated at most... Second-rate( (As a preset iteration limit), candidate output feature vectors are only allowed and fed into the decoder to generate tutor responses when both empathy fidelity and sharpness reach the target; if the iteration limit is reached... If the target is not met simultaneously, the emotional feature vector is sent to the decoder to generate a pure empathetic response, so as to safeguard the bottom line of emotional safety when it is impossible to safely balance breaking the deadlock and empathy.

[0136] Wherein, the preset iteration upper limit The maximum number of self-calibrations allowed is represented. A larger value increases the chance of convergence to the target, but also increases the computational cost. It can be calibrated based on the trade-off between real-time performance and the target achievement rate.

[0137] Following the previous example, for the candidate output feature vector Perform double fidelity verification: The projection of the candidate output onto the emotion baseline axis is 0.678. Substituting this into the empathy fidelity formula yields... The projection of the candidate output onto the orthogonal cognitive axis is 1.881. Substituting this into the sharpness reach formula yields... Set a preset lower threshold for empathy. Preset sharpness lower limit threshold ,because and If the double fidelity condition is met, the candidate output feature vector is directly allowed and sent to the decoder to generate a tutor response. As a control, if the measured value after a certain injection... (Underlying) and the compensation budget is not fully met, then proceed. Increase the number of candidate outputs and recalculate them; if measured (Injury) then proceed. Revert and recalculate candidate outputs until both criteria are met or the iteration limit is reached. It regresses to a purely empathetic response.

[0138] Following the closed-loop control of steps S1 to S5, the final candidate output feature vectors are fed into the autoregressive decoder, whose output is determined by the empathy fidelity. With sharpness reach Backed by actual test data: The decoder will naturally and forcefully inject a specific and actionable action instruction along the orthogonal dimension of emotion into the empathetic and comforting sentences with effective module length and high coherence. For example, while fully embracing the user's "frustration and self-doubt", it will guide the user to "first pick the question they are most confident in from the wrong questions and redo it", thereby solving the problem of loss of cognitive sharpness caused by soft fusion of multiple agents when cognitive and emotional goals conflict, and ensuring the accuracy and safety of cognitive intervention while avoiding emotional rebound.

[0139] Exemplary system:

[0140] Please see Figure 3 A multi-agent empathic reasoning tutoring system based on thought chain includes:

[0141] The baseline fusion module is used to acquire the cognitive feature vector, emotion feature vector, and behavior feature vector output by each agent in the system; the cognitive feature vector and the emotion feature vector are weighted and fused to obtain the fused feature vector, and the feature collapse decay rate is calculated.

[0142] The orthogonal processing module is used to orthogonalize the cognitive feature vector and the behavioral feature vector based on the emotional feature vector to obtain an orthogonal cognitive sharpness vector and an orthogonal behavioral morphology vector.

[0143] The criterion calculation module is used to calculate the ratio of the magnitude of the orthogonal cognitive sharpness vector to the cognitive feature vector as the sharpness carrying capacity.

[0144] The compensation injection module is used to synthesize an orthogonal bearing direction vector from the orthogonal cognitive sharpness vector and the orthogonal behavioral morphology vector when the feature collapse attenuation rate, the sharpness carrying capacity rate, and the acquired emotion acceptance window meet preset conditions; calculate the scalar compensation modulus using the feature collapse attenuation rate, the sharpness carrying capacity rate, and the emotion acceptance window, and inject the fused feature vector along the orthogonal bearing direction vector to obtain a candidate output feature vector;

[0145] The dual-fidelity verification module is used to extract the empathy fidelity of the candidate output feature vector on the emotion baseline axis and the sharpness reach on the orthogonal cognition axis. When the empathy fidelity and the sharpness reach satisfy the preset dual-fidelity condition, the candidate output feature vector is sent to the decoder to generate a tutoring response; otherwise, the scalar compensation modulus is adjusted and re-injected, iterating until the preset dual-fidelity condition is satisfied; if the preset dual-fidelity condition is still not satisfied when the iteration limit is reached, the emotion feature vector is sent to the decoder to generate a pure empathy response.

[0146] Exemplary computer-readable medium:

[0147] Embodiments of this application may also be computer-readable storage media storing computer program instructions thereon, which, when executed by a processor, cause the processor to perform the steps described in the "Exemplary Methods" section above according to the various embodiments of this application.

[0148] Computer-readable storage media may take the form of any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may, for example, include, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0149] The basic principles of this application have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this application are merely examples and not limitations, and should not be considered as essential features of each embodiment of this application. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the application to the necessity of employing the aforementioned specific details for implementation.

[0150] The block diagrams of devices, apparatuses, devices, and systems involved in this application are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.

[0151] It should also be noted that in the apparatus, equipment, and methods of this application, the components or steps can be disassembled and / or recombined. These disassemblies and / or recombinations should be considered as equivalent solutions of this application.

[0152] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of this application. Therefore, this application is not intended to be limited to the aspects shown herein, but rather to be accorded the widest scope consistent with the principles and novel features disclosed herein.

[0153] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this application to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.

Claims

1. A multi-agent empathic reasoning tutoring method based on thought chain, characterized in that, Includes the following steps: Obtain the cognitive feature vector, emotion feature vector, and behavior feature vector output by each agent in the system; weight and fuse the cognitive feature vector and emotion feature vector to obtain the fused feature vector, and calculate the feature collapse decay rate; Based on the emotional feature vector, the cognitive feature vector and the behavioral feature vector are orthogonally processed to obtain an orthogonal cognitive sharpness vector and an orthogonal behavioral pattern vector. The ratio of the magnitude of the orthogonal cognitive sharpness vector to the magnitude of the cognitive feature vector is calculated as the sharpness carrying capacity. When the feature collapse attenuation rate, the sharpness carrying capacity, and the obtained emotion acceptance window meet the preset conditions, the orthogonal cognitive sharpness vector and the orthogonal behavioral morphology vector are used to synthesize an orthogonal carrying direction vector; the scalar compensation modulus is calculated using the feature collapse attenuation rate, the sharpness carrying capacity, and the emotion acceptance window, and injected into the fused feature vector along the orthogonal carrying direction vector to obtain a candidate output feature vector; The empathy fidelity on the emotion baseline axis and the sharpness reach on the orthogonal cognitive axis are extracted from the candidate output feature vector. When the empathy fidelity and the sharpness reach satisfy the preset double fidelity condition, the candidate output feature vector is sent to the decoder to generate a coaching response. Otherwise, adjust the scalar compensation modulus and re-inject, iterating until the preset double fidelity condition is met; If the preset double fidelity condition is not met when the iteration limit is reached, the emotion feature vector is sent to the decoder to generate a pure empathic response.

2. The multi-agent empathic reasoning tutoring method based on thought chain as described in claim 1, characterized in that, The weighted fusion of the cognitive feature vector and the emotional feature vector to obtain the fused feature vector includes: Obtain the first weight assigned to the cognitive feature vector and the second weight assigned to the emotion feature vector; Multiply the cognitive feature vector by the first weight to obtain a weighted cognitive baseline vector, and multiply the emotional feature vector by the second weight to obtain a weighted emotional baseline vector. The weighted cognitive baseline vector and the weighted emotional baseline vector are added together to obtain the fused feature vector; The weighted fusion is based on an attention mechanism, where the first weight and the second weight are the attention weights assigned by the attention mechanism to the cognitive and emotional feature vectors.

3. The multi-agent empathic reasoning tutoring method based on thought chain according to claim 2, characterized in that, The calculation of the characteristic collapse decay rate includes: The magnitude of the weighted cognitive baseline vector is added to the magnitude of the weighted emotional baseline vector to obtain the lossless baseline magnitude. The feature collapse attenuation rate is obtained by subtracting the ratio of the magnitude of the fused feature vector to the magnitude of the lossless reference vector from the numerical value of 1.

4. The multi-agent empathic reasoning tutoring method based on thought chain as described in claim 1, characterized in that, The process of obtaining the orthogonal cognitive sharpness vector and the orthogonal behavioral morphology vector includes: Calculate the projection component of the cognitive feature vector in the direction of the emotional feature vector, and subtract the projection component from the cognitive feature vector to obtain an orthogonal cognitive sharpness vector that is strictly orthogonal to the emotional feature vector; Calculate the projection component of the behavioral feature vector onto the direction of the emotional feature vector, and subtract the projection component from the behavioral feature vector to obtain an orthogonal behavioral morphology vector that is strictly orthogonal to the emotional feature vector.

5. The multi-agent empathic reasoning tutoring method based on thought chain according to claim 1, characterized in that, The method also includes a mechanism to prevent instability and degradation: When the sharpness load-bearing rate is less than or equal to the preset load-bearing threshold, the step of synthesizing the orthogonal load-bearing direction vector is stopped. The cognitive feature vector is discarded, the emotional feature vector is fed into the decoder to generate a pure empathic response, and a rewrite instruction is sent to the cognitive reconstruction agent to trigger the cognitive reconstruction agent to regenerate a new cognitive feature vector.

6. The multi-agent empathic reasoning tutoring method based on thought chain according to claim 2, characterized in that, The preset conditions are: the feature collapse attenuation rate is greater than the preset attenuation threshold, the sharpness bearability rate is greater than the preset bearing threshold, and the emotion acceptance window is greater than the preset safety threshold. The process of obtaining the candidate output feature vector includes: The orthogonal behavior shape vector is multiplied by a preset behavior weight and then added to the orthogonal cognitive sharpness vector. After normalization, the orthogonal bearing direction vector is obtained. Multiply the feature collapse decay rate, the emotion acceptance window, the sharpness carrying capacity, and the magnitude of the weighted cognitive benchmark vector to obtain a bounded scalar compensation magnitude. Multiply the scalar compensation modulus by the orthogonal bearing direction vector scalar, and add the fused feature vector to obtain the compensated feature vector; The compensated feature vector is subjected to a scaling process, such that the scaled vector is equal to the sum of the scaled magnitudes of the weighted cognitive reference vector and the weighted emotional reference vector, and the scaled vector is used as a candidate output feature vector.

7. The multi-agent empathic reasoning tutoring method based on thought chain according to claim 2, characterized in that, The extraction of the empathy fidelity of the candidate output feature vector along the emotion baseline axis and the sharpness reach along the orthogonal cognitive axis includes: The emotion feature vector is normalized to obtain the emotion reference axis. The candidate output feature vector is then multiplied by the emotion reference axis and divided by the magnitude of the weighted emotion reference vector to obtain the empathy fidelity. The orthogonal cognitive sharpness vector is normalized to obtain the orthogonal cognitive axis. The candidate output feature vector is then multiplied by the orthogonal cognitive axis and divided by the magnitude of the weighted cognitive reference vector to obtain the sharpness reach.

8. The multi-agent empathic reasoning tutoring method based on thought chain according to claim 1, characterized in that, The preset double fidelity condition is: the empathy fidelity is greater than or equal to the preset lower threshold of empathy, and the sharpness reach is greater than or equal to the preset lower threshold of sharpness. The adjustment of the scalar compensation modulus and re-injection includes: If the sharpness reaches a threshold value less than the preset sharpness lower limit within the preset modulus range, the scalar compensation modulus is increased by a preset step size, and the injection operation is re-executed to update the candidate output feature vector. Within the preset modulus range, if the empathy fidelity is less than the preset empathy lower limit threshold, the scalar compensation modulus is reduced by the preset step size, and the injection operation is re-executed to update the candidate output feature vector.

9. A multi-agent empathic reasoning tutoring system based on thought chain, characterized in that, include: The baseline fusion module is used to acquire the cognitive feature vector, emotion feature vector, and behavior feature vector output by each agent in the system; the cognitive feature vector and the emotion feature vector are weighted and fused to obtain the fused feature vector, and the feature collapse decay rate is calculated. The orthogonal processing module is used to orthogonalize the cognitive feature vector and the behavioral feature vector based on the emotional feature vector to obtain an orthogonal cognitive sharpness vector and an orthogonal behavioral morphology vector. The criterion calculation module is used to calculate the ratio of the magnitude of the orthogonal cognitive sharpness vector to the cognitive feature vector as the sharpness carrying capacity. The compensation injection module is used to synthesize an orthogonal bearing direction vector from the orthogonal cognitive sharpness vector and the orthogonal behavioral morphology vector when the feature collapse attenuation rate, the sharpness carrying capacity rate, and the acquired emotion acceptance window meet preset conditions; calculate the scalar compensation modulus using the feature collapse attenuation rate, the sharpness carrying capacity rate, and the emotion acceptance window, and inject the fused feature vector along the orthogonal bearing direction vector to obtain a candidate output feature vector; The dual-fidelity verification module is used to extract the empathy fidelity of the candidate output feature vector on the emotion baseline axis and the sharpness reach on the orthogonal cognitive axis. When the empathy fidelity and the sharpness reach satisfy the preset dual-fidelity conditions, the candidate output feature vector is sent to the decoder to generate a coaching response. Otherwise, adjust the scalar compensation modulus and re-inject, iterating until the preset double fidelity condition is met; If the preset double fidelity condition is not met when the iteration limit is reached, the emotion feature vector is sent to the decoder to generate a pure empathic response.

10. A computer-readable storage medium having computer-executable instructions stored thereon, characterized in that: When the computer-executable instructions are executed by a processor, they implement the steps of the method as described in any one of claims 1-8.