A multi-modal implicit inference method based on tree thinking
By constructing a multi-path tree-like reasoning framework and a multi-granularity visual feedback mechanism, the problems of redundancy and insufficient robustness in the reasoning process of multimodal large models are solved, achieving efficient and accurate multi-path exploration and utilization of visual details, thus improving the overall performance of the model.
Patent Information
- Application Number
- CN202611169034.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-04
- Publication Date
- 2026-11-27
AI Technical Summary
Existing multimodal large models suffer from problems such as lengthy inference chains, high latency, large computational overhead, insufficient robustness, and omission of visual details during the inference process, especially in multi-path exploration and visual information representation.
We employ a multimodal implicit reasoning method based on tree-like thinking. By constructing a multi-path tree-like reasoning framework and a multi-granularity visual feedback mechanism, we dynamically insert supplementary visual information and combine it with a lightweight implicit thinking evaluator to achieve multi-path parallel exploration and dynamic utilization of visual information.
It improves the model's inference accuracy and robustness, alleviates visual illusions and details omissions, while maintaining low computational overhead and high efficiency.
Smart Images

Figure CN123180328A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of multimodal large-scale model reasoning and cross-modal interaction technology, specifically to a multimodal implicit reasoning method based on tree-like thinking. Background Technology
[0002] Existing large multimodal models typically employ explicit chain-like reasoning, generating the textual reasoning process before outputting the final answer. While this approach offers good interpretability, it suffers from lengthy reasoning chains, high inference latency, and significant computational overhead. To improve reasoning efficiency, some research has begun migrating the reasoning process to the model's implicit representation space. This involves using continuous hidden states within the model to replace discrete text terms for reasoning, thereby reducing text generation and increasing efficiency. However, existing implicit reasoning methods remain limited to linear reasoning with a single path, failing to explore multiple alternative hypotheses in the decision space. Furthermore, logical errors in earlier steps can irreversibly accumulate in subsequent steps, limiting the robustness of the reasoning. Additionally, existing implicit reasoning methods often extract a single, fixed visual feature at the input stage. As reasoning progresses, the model's focus and required visual details continuously change. A single, fixed visual representation cannot meet these dynamic demands, easily leading to visual illusions and the omission of local details. Summary of the Invention
[0003] To address the aforementioned problems, this invention provides a multimodal implicit reasoning method based on tree-like thinking. By constructing a multi-path tree-like reasoning framework, it solves the problems of insufficient solution space exploration and easy accumulation of reasoning logic errors in existing single-path reasoning methods, thereby enhancing the robustness of model reasoning. Furthermore, by dynamically utilizing multi-granularity visual information during reasoning, it alleviates the visual illusion problem that occurs in traditional methods due to the use of fixed visual information representation.
[0004] This invention discloses a multimodal implicit reasoning method based on tree-like thinking, comprising: The input image is processed in multiple resolutions to obtain low-resolution, medium-resolution, and high-resolution images. The coarse-grained initial visual feature sequence obtained by processing the low-resolution image with a visual encoder is concatenated with the text feature sequence of the input question text to form an initial input sequence. The initial input sequence is then fed into a multimodal large model to perform forward propagation and output the first implicit thought. In each subsequent implicit reasoning step, supplementary visual information is obtained by multi-granular visual feature feedback calculation guided by attention; a multi-path tree-like reasoning framework is constructed by regulating visual intervention to determine whether to insert branch paths with supplementary visual information during implicit reasoning; based on the first implicit reasoning step and whether or not supplementary visual information is inserted, the second implicit reasoning step is performed; based on the second implicit reasoning step and whether or not supplementary visual information is inserted, the third implicit reasoning step is performed. By regulating visual intervention to construct a multi-path tree-like reasoning framework, the principle for determining whether to insert supplementary visual information into branch paths during implicit reasoning is as follows: (a) When the number of the top few visual words with the highest attention scores in the input sequence of each implicit reasoning step is 0, no supplementary visual information is inserted, and reasoning is performed entirely based on the existing hidden state and coarse-grained visual context information. (b) When the number of the top few visual lexical units with the highest attention scores in the input sequence of each implicit inference step is not zero, a path for inserting supplementary visual information is established. By controlling the number of inserted visual information, the multi-path tree-like inference framework differentiates... A number of candidate parallel inference paths.
[0005] Optionally, the low-resolution image, medium-resolution image, and high-resolution image are sized at 280×280, 560×560, and 840×840, respectively.
[0006] Optionally, inserting supplementary visual information into the current input sequence specifically means inserting the supplementary visual information set at the end of the current input sequence.
[0007] Optionally, after reaching the preset maximum number of implicit reasoning steps, the insertion of supplementary visual information is stopped, and the implicit thinking with the highest score selected by the implicit thinking evaluator is input into the language decoder to autoregressively generate the final answer in text form.
[0008] Optionally, the implicit thinking evaluator is composed of a linear layer, a GELU activation layer and another linear layer stacked together. The implicit thinking evaluator takes the latent state corresponding to the implicit thinking as input and outputs a scalar score to quantify the reasoning potential of the implicit thinking.
[0009] Optionally, a three-stage training strategy may also be included, specifically: In the first stage, training data containing complete thought chain text is used for pre-warming supervision. Then, the text thought chain is removed and a self-distillation loss based on cosine similarity is introduced to enable the model to learn implicit reasoning. Finally, the distillation loss is removed and only the cross-entropy loss of the final answer part is retained. In the second stage, the tree branching mechanism is activated to generate multiple parallel paths, and the average cross-entropy loss of each path in the final answer part is calculated for backpropagation. In the third stage, pseudo-labels are constructed using the quality of answers generated by each path, the implicit thinking evaluator is trained to score each implicit thinking, and the answer loss of the optimal path is combined for final optimization.
[0010] Optionally, the self-distillation loss based on cosine similarity specifically involves: using the hidden state of the inference endpoint obtained by forward propagation of the input sequence containing the complete thought chain text as the teacher trajectory, using the hidden state of the inference endpoint obtained by implicit inference of the input sequence after removing the thought chain text as the student trajectory, constraining the student trajectory with the teacher trajectory, and the self-distillation loss equal to 1 minus the cosine similarity between the student trajectory and the teacher trajectory.
[0011] Optionally, the construction of pseudo-labels includes: for the final inference step, selecting the path index with the minimum loss based on the cross-entropy loss of each path in the answer part as the pseudo-label; for intermediate inference steps, taking the minimum answer loss of the intermediate branch among all the subsequent extended complete paths as the effective loss of that branch, and selecting the index of the best intermediate branch as the pseudo-label accordingly.
[0012] Optionally, in the third stage, the answer loss of the optimal path is the minimum of the cross-entropy loss of the final answer portion among all parallel paths.
[0013] Compared with the prior art, the present invention has at least the following beneficial effects: (1) The multi-granularity visual feedback mechanism proposed in this invention breaks the traditional paradigm of fixed visual encoding. Multi-granularity visual information is dynamically injected during the reasoning process, enabling the model to access local visual evidence of different granularities when needed, thus alleviating the problems of visual illusion and omission of details in long-chain reasoning.
[0014] (2) The multi-path tree-like reasoning framework designed in this invention constructs a tree-like exploration topology. By finely controlling whether to insert visual information and the amount of supplementary visual information, this invention enables the model to differentiate parallel reasoning paths with structural differences at key reasoning nodes. This mechanism allows the model to verify hypotheses from different perspectives, greatly expanding the scope of the understanding space exploration, effectively alleviating the problem of easily getting trapped in local optima and error accumulation in traditional single-path implicit reasoning, and improving the accuracy and robustness of the model on complex reasoning tasks.
[0015] (3) The implicit thinking evaluator introduced in this invention is a very lightweight module that can directly take dense implicit states as input and accurately evaluate the reasoning potential of different branch paths without text decoding, and score and screen each candidate implicit thinking. Combined with the three-stage progressive training strategy proposed in this invention, the model can smoothly acquire implicit tree-like reasoning ability, improving the overall reasoning efficiency and generalization ability of the model while maintaining low additional computational overhead.
[0016] (4) This invention constructs a multi-path tree-like reasoning framework, enabling the large model to generate multiple candidate implicit thought branches simultaneously at each reasoning step, thereby overcoming the limitations of single-path linear implicit reasoning. Furthermore, this invention designs a lightweight implicit thought evaluator to score and filter each candidate implicit thought. This invention also introduces a multi-granularity visual feedback mechanism to enhance the model's ability to utilize local details and key evidence. In addition, this invention designs a three-stage progressive training strategy, achieving a smooth transition from explicit reasoning to implicit multi-path exploration, significantly improving the model's reasoning accuracy while maintaining high computational efficiency. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings used in the embodiments will be briefly introduced below. The features and advantages of the present invention can be more clearly understood by referring to the accompanying drawings. The accompanying drawings are schematic and should not be construed as limiting the present invention in any way. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a schematic diagram of the multi-granularity visual feedback mechanism of the present invention.
[0019] Figure 2 This is a schematic diagram of the multi-path tree-like reasoning framework of the present invention.
[0020] Figure 3 This is a schematic diagram of the supervised training method based on self-distillation according to the present invention. Detailed Implementation
[0021] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments of the present invention and the features thereof can be combined with each other.
[0022] A specific embodiment of the present invention, such as Figure 1-3 As shown, a multimodal implicit reasoning method based on tree-like thinking is disclosed, which specifically includes the following steps: S1, Initial multimodal input and first step of implicit reasoning; First, a multimodal large-scale model architecture including a visual encoder and a language model is constructed. Then, the same input image is processed at multiple resolutions to generate low-resolution, medium-resolution, and high-resolution images (low-resolution being...). medium resolution High resolution is ).
[0023] Furthermore, in the input stage, the low-resolution image is processed by a visual encoder to obtain an image containing... A coarse-grained initial visual feature sequence of visual words ,in, Indicates the first The coarse-grained visual embedding vectors corresponding to each visual terminology; simultaneously, the input question text corresponding to the image is processed to obtain a length of... Text feature sequence ,in, Indicates the first The text embedding vectors corresponding to each text word are concatenated to form the initial input sequence. The data is fed into a multimodal large model architecture to perform a complete forward propagation, and the last hidden state is output as the first implicit thought. And concatenate it back to the initial input sequence. The first step input sequence is obtained. This is the first step of implicit reasoning.
[0024] S2. Supplementary visual information is obtained by multi-granular visual feature feedback calculation guided by attention; a multi-path tree-like reasoning framework is constructed by regulating visual intervention to determine whether to insert supplementary visual information in the branch path during implicit reasoning; the second implicit reasoning is performed based on the first implicit reasoning and the branch path of whether to insert supplementary visual information; the third implicit reasoning is performed based on the decision of the second implicit reasoning and whether to insert supplementary visual information.
[0025] Furthermore, by regulating visual intervention to construct a multi-path tree-like reasoning framework, the principle for determining whether to insert supplementary visual information into branch paths during implicit reasoning is as follows: (a) The number of visual lexical units in the input sequence for each implicit inference step When the value of is 0, no supplementary visual information is inserted, and reasoning relies entirely on the existing hidden state and coarse-grained visual context information (as shown in the appendix). Figure 2 (As shown in the topmost branch). (b) The number of visual lexical units in the input sequence for each implicit inference step When the value is not 0 (e.g. , Etc., such as Figure 2(As shown in the middle and bottom branches), the path for inserting supplementary visual information, by controlling the amount of inserted visual information, differentiates the multi-path tree-structured reasoning framework. The candidate parallel inference paths transform the inference process from a single linear path into a tree structure, enabling parallel exploration of the solution space.
[0026] Understandable The value represents the number of visual lexical units with the highest attention scores; by controlling visual intervention to construct a multi-path tree-like reasoning framework, the number of visual lexical units in the input sequence of each implicit reasoning step is determined when inserting supplementary visual information into the branch path during implicit reasoning. The value can be determined by the user when using it, depending on the situation.
[0027] Furthermore, for paths that insert supplementary visual information, the implicit reasoning steps are as follows: In acquiring the first step of implicit thinking Then, a multi-granularity visual feedback mechanism is activated. For the first step input sequence... The top few visual words with the highest attention scores are selected, and the overall attention score is obtained by averaging the attention weights of all layers in the model. The top words with the highest attention scores are then selected. Visual lexical units.
[0028] Using spatial two-dimensional coordinate mapping relationships, the location of the The visual word region corresponding to each word in a medium-resolution image.
[0029] Specifically, for Low-resolution visual lexical units (Taking the word in the upper right corner of a low-resolution image as an example, such as...) Figure 1 (As shown in the solid box at the bottom left), its position in the initial visual lexical sequence is uniquely determined. Therefore, through low-resolution visual lexical... In a low-resolution image, two-dimensional coordinates are used to accurately locate the corresponding spatial region and word unit in medium- and high-resolution images. For example... Figure 1 As shown, low-resolution visual lexical units The corresponding single word region A in the upper right corner can be found in the same semantic region in the medium-resolution image. However, due to the increased resolution of the medium-resolution image, this region is more finely divided into four adjacent visual words (e.g., Figure 1 As shown in the solid-line box B in the middle of the left side, the low-resolution visual word units can be obtained by performing average pooling on the embedding vectors of the four adjacent visual word units within the solid-line box B. Corresponding supplementary visual information In this way, the choice after the first implicit reasoning step is obtained. Supplementary visual information set corresponding to each visual word ,in, Indicates the first Supplementary visual information corresponding to each visual word element is inserted into the first step input sequence. The updated input sequence is obtained by the expression:
[0030] The updated input sequence is fed into the multimodal large model architecture to perform a complete forward propagation, and the last hidden state is output as the second implicit thought. And concatenate it back into the updated input sequence. The second input sequence is obtained. This is the second step of implicit reasoning.
[0031] Furthermore, the operation steps of the third implicit inference step are the same as those of the second implicit inference step, and will not be repeated here. The number of implicit inference steps is 3. After the third implicit inference step is completed and the corresponding supplementary visual information is inserted, the final input sequence is obtained. This final input sequence will then be directly input into the model for autoregressive output, and the model will start outputting text-based model responses without performing any more implicit inference.
[0032] S3. Perform three-stage training on the above multi-path tree inference framework to ensure stable convergence of the model.
[0033] S31. Single-path basic ability training. First, warm-up supervision is performed using thought chain data with complete textual logic. The expression is:
[0034] in, This represents the loss function used in the first sub-stage of the first training phase. This represents the cross-entropy loss calculated in the text portion of the thought chain; This represents the cross-entropy loss calculated on the final answer portion.
[0035] Subsequently, the textual thought chain is removed, and the model relies solely on implicit reasoning for inference. At this point, a self-distillation loss based on cosine similarity (e.g., ...) is introduced. Figure 3(As shown). Specifically, the teacher trajectory and student trajectory are constructed by controlling whether implicit reasoning is used (it should be noted that these two types of reasoning trajectories are obtained by forward propagation from the same model; for ease of explanation and understanding, these two types of reasoning trajectories are referred to as the teacher trajectory and student trajectory, respectively). The teacher trajectory is implemented by inputting an input sequence containing the complete thought chain text from the training dataset into the multimodal model, resulting in an explicit text reasoning path; the student trajectory is implemented by having the multimodal model receive an input sequence containing only the final answer and removing the entire thought chain text, and then the multimodal model performs implicit reasoning step by step, ultimately obtaining an implicit reasoning path.
[0036] During training, the teacher trajectory provides the hidden state of the inference endpoint (the last word output by the model before generating the final answer) as an alignment target, thereby constraining the inference endpoint of the student trajectory:
[0037]
[0038] in, and Let the hidden states of the student's trajectory and the teacher's trajectory be represented at the inference endpoint, respectively, and the function be represented by the function. This indicates the calculation of cosine similarity. This is a scaling factor used to adjust the degree of influence of distillation loss; Indicates measurement and The loss function for semantic similarity; This represents the loss function used in the second sub-stage of the first training phase.
[0039] Finally, remove the distillation, retaining only the cross-entropy loss of the final answer portion:
[0040] in, This represents the loss function used in the third sub-stage of the first training phase; This represents the cross-entropy loss calculated on the final answer portion.
[0041] Complete the basic implicit inference alignment.
[0042] S32, Multi-path Joint Training. Activate the tree-like branching mechanism to generate... There are 4 parallel paths. Each path calculates its own final answer loss, and then the average loss of all paths is used for backpropagation. The expression is:
[0043] in, This represents the loss function used in the second training phase; Indicates the first The cross-entropy loss calculated on the final answer portion for each path; This represents the total number of parallel paths obtained after the last implicit inference step.
[0044] S33: Path evaluation training and optimal path training.
[0045] This invention designs a corresponding loss function for training implicit thinking evaluators. This invention utilizes the supervision signals naturally generated during the training process of a multi-path tree-structured reasoning framework—namely, the quality of the final answers generated by each path—to construct a "pseudo-label," thereby transforming the training of the implicit thinking evaluator into a classification problem. However, since the tree-structured reasoning framework contains nodes at different reasoning depths, the quantification methods for the implicit thinking reasoning potential corresponding to these nodes also differ. Therefore, this invention defines separate path quality measurement standards for the final reasoning step and intermediate reasoning steps.
[0046] Specifically, for the third reasoning step, which is the last implicit reasoning step, the reasoning quality of each path can be directly and explicitly measured by outputting the final answer. Given The present invention first calculates the first candidate reasoning path. The cross-entropy loss of each path in the answer portion is denoted as . And select the best-performing path to obtain its corresponding index. :
[0047] in, The optimal path index essentially constitutes a pseudo-label used to reflect the current path. Among the candidate implicit reasoning paths, which one is truly the most promising and worth retaining?
[0048] For intermediate reasoning steps (first-step implicit reasoning and second-step implicit reasoning), the reasoning path at the intermediate nodes of the tree-like reasoning framework has not yet generated the final answer, but will further differentiate into multiple sub-branches. Therefore, evaluating the reasoning potential of an intermediate reasoning branch involves prospectively examining the future performance of all its derived paths. To this end, this invention designs a bottom-up loss assignment strategy. Assume the first... middle branch In the next reasoning step, it will expand into a set of sub-branches. So this intermediate branch Effective loss Defined as The minimum partial cross-entropy loss of the answer among all complete inference paths derived from all sub-branches. This definition gives intermediate inference branches a clear and uniform evaluation criterion: the inference potential of an intermediate inference branch depends on the best answer quality that can be achieved from it under ideal conditions. Then, based on the effective loss of each intermediate branch... You can then select the best-performing intermediate branch and obtain its corresponding index. The expression is:
[0049] in, As mentioned before They serve the same purpose and are essentially pseudo-labels used to train implicit thinking evaluators.
[0050] With these pseudo-labels, training an implicit thought evaluator is simplified to a classification problem. Taking the final reasoning step as an example, given... The implicit thought patterns corresponding to each path are taken as input, and the implicit thought evaluator needs to output the corresponding path patterns. The implicit thinking score makes the optimal path index The corresponding implicit thought will receive the highest score. Therefore, an implicit thought evaluator is used to obtain this... Fraction set of paths and with The cross-entropy loss is calculated using the following expression:
[0051] This loss function drives the implicit reasoning evaluator to learn and predict which reasoning path is more likely to produce the correct answer, thus accurately predicting the reasoning potential of different paths. The loss function for intermediate reasoning steps is calculated similarly, and will not be elaborated here.
[0052] Finally, the results obtained from all intermediate and final reasoning steps are... The sum is the final loss function. .
[0053] Finally, the combined optimal path answer loss is:
[0054] Perform final optimization:
[0055] To optimize the optimal path and improve the accuracy of the final decision. Among these... It is an adjustable scaling factor used for balancing And optimal path loss.
[0056] S4. Termination of visual insertion and autoregressive answer generation; When the preset maximum number of implicit inference steps is reached (e.g.) After this, implicit thinking matures, at which point the insertion of all multi-granular visual features ceases. The multimodal model utilizes the best implicit thinking representation with the highest score selected by the final implicit thinking evaluator to activate the language decoder, autoregressively generating the final text-based question-and-answer result (e.g., "So the answer is: A").
[0057] Furthermore, the present invention also includes an implicit thinking assessment and branch path selection module; Specifically, a parameter-lightweight implicit thought evaluator is constructed, consisting of a linear layer, a GELU activation layer, and another linear layer stacked together. In the... After the implicit reasoning step is completed and before supplementing visual information, no time-consuming text decoding is performed; instead, the first step is directly processed. The first step of implicit reasoning Implicit thinking in branch path generation Input the evaluator to obtain a quantifiable implicit thinking. scalar fraction of the potential to arrive at the correct answer The expression is:
[0058] in, , This is the weight matrix. , This is the bias vector.
[0059] In actual reasoning, the scalar fractions of each branch are compared. Only the implicit thinking branch with the highest score is retained for the next step of development and reasoning, while other low-scoring branches are discarded, thereby ensuring the efficiency of overall reasoning and calculation.
[0060] All of the above-mentioned optional technical solutions can be combined in any way to form optional embodiments of the present invention, and will not be described in detail here.
[0061] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be covered within the scope of the claims and specification of the present invention.
Claims
1. A multimodal implicit reasoning method based on tree-like thinking, characterized in that, include: The input image is processed in multiple resolutions to obtain low-resolution, medium-resolution, and high-resolution images. The coarse-grained initial visual feature sequence obtained by processing the low-resolution image with a visual encoder is concatenated with the text feature sequence of the input question text to form an initial input sequence. The initial input sequence is then fed into a multimodal large model to perform forward propagation and output the first implicit thought. In each subsequent implicit reasoning step, supplementary visual information is obtained by multi-granular visual feature feedback calculation guided by attention; a multi-path tree-like reasoning framework is constructed by regulating visual intervention to determine whether to insert branch paths with supplementary visual information during implicit reasoning. Based on the branch path of the first step implicit reasoning and whether or not to insert supplementary visual information, the second step implicit reasoning is performed; Based on the branch path of the second-step implicit reasoning and whether or not supplementary visual information is inserted, the third-step implicit reasoning is performed; By regulating visual intervention to construct a multi-path tree-like reasoning framework, the principle for determining whether to insert supplementary visual information into branch paths during implicit reasoning is as follows: (a) When the number of the top few visual words with the highest attention scores in the input sequence of each implicit reasoning step is 0, no supplementary visual information is inserted, and reasoning is performed entirely based on the existing hidden state and coarse-grained visual context information. (b) When the number of the top few visual lexical units with the highest attention scores in the input sequence of each implicit inference step is not zero, a path for inserting supplementary visual information is established. By controlling the number of inserted visual information, the multi-path tree-like inference framework differentiates into... A number of candidate parallel inference paths.
2. The method according to claim 1, characterized in that, The dimensions of the low-resolution image, medium-resolution image, and high-resolution image are 280×280, 560×560, and 840×840, respectively.
3. The method according to claim 1, characterized in that, The step of inserting supplementary visual information into the current input sequence specifically involves inserting the supplementary visual information set at the end of the current input sequence.
4. The method according to claim 1, characterized in that, Once the preset maximum number of implicit reasoning steps is reached, the insertion of supplementary visual information stops, and the implicit thinking with the highest score selected by the implicit thinking evaluator is input into the language decoder to autoregressively generate the final answer in text form.
5. The method according to claim 1, characterized in that, The implicit thinking evaluator consists of a linear layer, a GELU activation layer, and another linear layer stacked together. The implicit thinking evaluator takes the latent state corresponding to the implicit thinking as input and outputs a scalar score to quantify the reasoning potential of the implicit thinking.
6. The method according to claim 1, characterized in that, It also includes a three-stage training strategy, specifically: In the first stage, training data containing complete thought chain text is used for pre-warming supervision. Then, the text thought chain is removed and a self-distillation loss based on cosine similarity is introduced to enable the model to learn implicit reasoning. Finally, the distillation loss is removed and only the cross-entropy loss of the final answer part is retained. In the second stage, the tree branching mechanism is activated to generate multiple parallel paths, and the average cross-entropy loss of each path in the final answer part is calculated for backpropagation. In the third stage, pseudo-labels are constructed using the quality of answers generated by each path. The implicit thinking evaluator is then trained to score each implicit thinking and the answer loss of the optimal path is combined for final optimization.
7. The method according to claim 6, characterized in that, The self-distillation loss based on cosine similarity is specifically as follows: the hidden state of the inference endpoint obtained by forward propagation of the input sequence containing the complete thought chain text is taken as the teacher trajectory, and the hidden state of the inference endpoint obtained by implicit inference of the input sequence after removing the thought chain text is taken as the student trajectory. The student trajectory is constrained by the teacher trajectory, and the self-distillation loss is equal to 1 minus the cosine similarity between the student trajectory and the teacher trajectory.
8. The method according to claim 6, characterized in that, The construction of pseudo-labels includes: for the final inference step, selecting the path index with the minimum loss based on the cross-entropy loss of each path in the answer part as the pseudo-label; for intermediate inference steps, taking the minimum answer loss of the intermediate branch among all the complete paths subsequently expanded as the effective loss of that branch, and selecting the index of the best intermediate branch as the pseudo-label accordingly.
9. The method according to claim 6, characterized in that, In the third stage, the answer loss of the optimal path is the minimum cross-entropy loss of the final answer portion among all parallel paths.
