A focused visual evidence acquisition method, system, device and storage medium for a multi-modal large model

By adopting a focused visual evidence acquisition method for multimodal large models, the order of visual target and evidence acquisition is explicitly established. By utilizing focused closed-word supervision and cross-modal consistency verification, the problem of coupling between visual target establishment and evidence acquisition in multimodal large models is solved, thereby improving the accuracy and efficiency of visual evidence acquisition.

CN123159544APending Publication Date: 2026-11-24DALIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing multimodal large models suffer from problems such as the coupling between visual target establishment and evidence acquisition, the possibility that language priors may precede visual focusing and dominate evidence generation, interference with model capabilities by full attention head equal weight supervision, and reliance on external localization modules during the visual target establishment and evidence acquisition process.

Method used

A focused visual evidence acquisition method is adopted. By explicitly focusing on the visual lexical sequence and the order of evidence acquisition, reinforcement optimization guided by focused closed lexical supervision and cross-modal consistency verification is used to selectively supervise attention heads with localization capabilities and establish visual targets inside the model to avoid dependence on external localization modules.

Benefits of technology

It achieves explicit boundaries for generating visual evidence before visual targets are established, reduces linguistic prior interference, enhances the correspondence between visual evidence and real target regions, reduces deployment overhead, and improves visual reasoning capabilities in high-resolution and complex visual tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159544A_ABST
    Figure CN123159544A_ABST
Patent Text Reader

Abstract

A focused visual evidence acquisition method, system, device, and storage medium for multimodal large models are disclosed. The method constructs a training trajectory including a focus initiation lexicon, a focus expression, a focus closure lexicon, a visual evidence description, and a task answer. Candidate attention distributions pointing to visual lexicons are extracted from the positions corresponding to the focus closure lexicons. Attention head gating weights are determined based on the target attention enrichment and normalized spatial entropy, forming a weighted focus distribution and applying target region alignment supervision. Group-based policy optimization is performed by combining answer correctness rewards and cross-modal focus consistency rewards. During inference, the model first generates the focus expression and outputs the focus closure lexicon, then acquires the corresponding visual evidence. If evidence is insufficient, the focusing and evidence acquisition steps are repeated until the task answer is generated. Target region annotation is only used during the training phase; no external locator or target box is required during the inference phase. This invention can improve the accuracy and visual focus consistency of multi-step visual reasoning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of artificial intelligence and computer vision technology, specifically relating to a focused visual evidence acquisition method, system, device and storage medium for multimodal large models. In particular, it relates to reinforcement optimization guided by focused closed-word supervision, attention head selection and gating and cross-modal consistency verification, enabling multimodal large models to complete visual question answering, graph understanding, high-resolution image understanding and multi-step visual reasoning in the order of first establishing visual targets and then acquiring local visual evidence. Background Technology

[0002] Multimodal large models typically encode images into visual lexical units, which, along with task instructions, are input into an autoregressive language model. The model then outputs the analysis process and task answer through lexical-by-lexical generation. This type of model demonstrates strong versatility in visual question answering, document understanding, graph analysis, and reasoning in complex scenarios; however, its visual target establishment and visual evidence acquisition processes often lack clear structural boundaries.

[0003] In existing chain-based reasoning methods, the model may begin generating visual attributes such as color, number, quantity, direction, or relationship before the target indicated by the task instruction has been reliably located. Since subsequent lexical generation depends on both the preceding linguistic context and visual features, the model is prone to continuing to generate seemingly reasonable but inconsistent evidence with the real visual region along the linguistic prior, especially in high-resolution images, dense targets, fine-grained attributes, and multi-step spatial relationship tasks.

[0004] Some existing methods improve localization capabilities through additional object detectors, region clipping modules, or external visual search tools during the inference phase. However, these methods increase deployment complexity and computational overhead, and rely on additional region annotation formats or external modules. Other methods directly apply the same region supervision to all attention heads, but different layers and different attention heads perform different functions. Equal-weighted supervision can easily interfere with language modeling or reinforce non-localization attention heads, leading to a decline in visual inference capabilities.

[0005] Therefore, a multimodal reasoning method is needed that does not rely on external locators during the reasoning stage, can explicitly establish the "focus first, then acquire" order within the model, and selectively supervise attention heads that truly have spatial localization capabilities. At the same time, it is also necessary to constrain the correctness of the answer and the consistency of visual focus during the reinforcement learning stage to prevent the model from obtaining high rewards solely through language patterns. Summary of the Invention

[0006] The purpose of this invention is to provide a focused visual evidence acquisition method and system for multimodal large models, in order to solve problems such as the coupling between visual target establishment and evidence acquisition in existing multimodal reasoning processes, the possibility that language priors may precede visual focus and dominate evidence generation, the interference of full attention head equal weight supervision on model capabilities, and reliance on external localization modules.

[0007] To achieve the above objectives, the present invention adopts the following technical solution: A focused visual evidence acquisition method for multimodal large models includes the following steps: S1, acquire multimodal training samples, the multimodal training samples include at least images, task instructions, standard answers and one or more target region annotations corresponding to the visual evidence to be acquired; divide the images into visual word sequences by a visual encoder, and map the one or more target region annotations to corresponding target image block masks according to the mapping relationship between the visual word grid and the original image; S2, based on the multimodal training samples obtained in step S1, construct a training dataset for target focusing and visual evidence acquisition. The training dataset includes multiple training trajectories. Each training trajectory includes one or more focusing and evidence acquisition steps and a task answer. Each focusing and evidence acquisition step sequentially includes a focus initiation word, a focus expression for specifying the current visual target, a focus closure word for representing the completion of target establishment, and a visual evidence description generated after the focus closure word. A correspondence is established between the target region annotation in step S1 and its corresponding target image patch mask. S3. Based on the training dataset obtained in step S2, supervised fine-tuning is performed on the multimodal large model to be optimized; wherein, the multimodal large model is a model capable of jointly modeling visual word sequences and linguistic word sequences and performing autoregressive text generation; during the supervised fine-tuning process, visual attention at the corresponding position of the focused closed word is used to supervise the model's visual focusing process.

[0008] For the training trajectory obtained in step S2, an autoregressive supervision method based on the reference training trajectory is adopted. That is, when predicting the current language word, the real language word in the training trajectory that is before the current prediction position is used as the condition input. On this basis, the position corresponding to the focused closed word is used as the visual query position of the current focusing and evidence acquisition step, and multiple candidate attention distributions of the visual word sequence are obtained at the position corresponding to each focused closed word. Attention head gating weights are determined based on the target attention enrichment and normalized spatial entropy of each candidate attention distribution relative to the target image patch mask, resulting in a weighted focus distribution. A focus alignment loss is constructed based on the difference between the weighted focus distribution and the target image patch mask. The multimodal large model is then fine-tuned under supervision using the language modeling loss and the focus alignment loss. S4, perform enhanced optimization guided by cross-modal consistency verification. Using the multimodal large model fine-tuned in step S3 as the initial strategy, sample multiple candidate responses for the same multimodal input consisting of an image and task instructions. Perform cross-modal consistency verification based on one or more target region annotations and corresponding target image patch masks obtained in step S1. For each focusing and evidence acquisition step in the candidate responses, obtain multiple normalized attention distributions pointing to the visual word sequence at the corresponding positions of the focusing closed word in step S3 according to the attention normalization method, and calculate the corresponding normalized spatial entropy. Calculate the target region attention quality of each candidate attention head for each target region based on the target image patch mask, and perform the injection... Attention head selection and gating are performed to obtain attention head gating weights; the attention quality of the target region is aggregated according to the attention head gating weights to obtain aggregated target attention quality; the aggregated target attention quality is calibrated according to the target region coverage to obtain a visual consistency score; a semantic consistency score is obtained according to the semantic matching score between the focus expression in the candidate response and each target region, and a cross-modal focus consistency reward is determined according to the visual consistency score and the semantic consistency score; an answer correctness reward is calculated according to the task answer of the candidate response, and the answer correctness reward and the cross-modal focus consistency reward are combined and updated through a group relative strategy optimization. S5. In the reasoning stage, the image to be processed and the task instructions are input into the multimodal large model that has been enhanced and optimized in step S4. The multimodal large model first generates a focused expression and outputs a focused closed word, then obtains the visual evidence of the visual target corresponding to the focused closed word and generates a visual evidence description, and outputs the task answer based on the visual evidence description.

[0009] Further, in step S1, the target image block mask is obtained by mapping the target bounding box, target segmentation mask, point annotation or region description to a visual lexical grid.

[0010] Furthermore, in step S2, the focus expression includes at least one of the following for uniquely or progressively determining the object category, spatial location, relative relationship, local structure, or contextual information of the current visual target, and the focus expression does not include the answer-carrying attributes to be acquired in the current focus and evidence acquisition steps; the answer-carrying attributes are generated in the visual evidence description after the focus closing lexicon, so that the target establishment and evidence acquisition form a clear boundary in the generation order.

[0011] For the The focusing and evidence acquisition steps involve generating a focusing expression after the focusing initiating lexical; inserting a focusing closing lexical at the end of the focusing expression, and recording its position in the language lexical sequence as... A visual evidence description is generated after the focused closing lexical unit.

[0012] Furthermore, in step S3, for the first... The first step in focusing on evidence acquisition Each candidate attention head directs the attention value of the corresponding position of the focused closed word to each visual word in the visual word set. After internal normalization, we get: in, For the first The first step in focusing on evidence acquisition Among the candidate attention heads, focus on the position corresponding to the closed word element. Pointing to visual lexical units The normalized attention value; For the first The first step in focusing on evidence acquisition Among the candidate attention heads, focus on the position corresponding to the closed word element. Pointing to visual lexical units Attention value; For the first The position of the focused closed lexical unit in the linguistic lexical sequence during the focusing and evidence acquisition steps; A set of visual lexical units; The set of visual lexical units traversed in the normalized denominator The summation index. According to the... Target image patch mask corresponding to each focusing and evidence acquisition step Calculate the target attention enrichment, and based on Calculate the normalized spatial entropy; the target attention enrichment and the normalized spatial entropy are respectively: in, For the first The first step in focusing on evidence acquisition The target attention enrichment of each candidate attention head is used to characterize the degree of enrichment of attention quality within the target region relative to the area of ​​the target region; For the first The first step in focusing on evidence acquisition The normalized spatial entropy of each candidate attention head is used to characterize the spatial concentration of the attention distribution. For the first The target image patch mask corresponding to each focusing and evidence acquisition step is in the visual word unit The value at; For visual lexical set The number of visual lexical units; It is a preset positive stability constant used to avoid zero denominators and zero values ​​in logarithmic operations; It is the natural logarithm function.

[0013] Based on target attention enrichment and normalized spatial entropy Determine the first The first step in focusing on evidence acquisition Attention head quality score for each candidate attention head Select the highest-scoring attention head based on the attention head quality score. There are 10 candidate attention heads, and the gating set consisting of the selected candidate attention heads is denoted as . ,in The preset number of candidate attention heads; for the gating set The candidate attention heads are gating weights determined by a temperature-scaled Softmax function. : in, This refers to the gate temperature parameter; The preset attention head gating weight smoothing coefficient, and 0 ≤ <1; The preset number of candidate attention heads; For the first Candidate attention head indexes in the focusing and evidence acquisition steps; For the first A set of gates corresponding to each focus and evidence acquisition step; For gating sets The candidate attention head summation index used for Softmax normalization; For the first The first step in focusing on evidence acquisition Attention head quality score for each candidate attention head; For the first Each focusing and evidence acquisition step is indexed by summation. The attention head quality score of the specified candidate attention head; exp is an exponential function. (The coefficients are used to express this value.) The Softmax weights are smoothly blended with the uniform weights within the gate set, and the gate set... The sum of the attention head gating weights of all candidate attention heads is 1, that is: Based on the attention head gating weight gating set Normalized attention distribution of each candidate attention head Weighted summation is performed to obtain the result with the first... Weighted focus distribution corresponding to each focused closed word element : The normalized target image block mask is obtained by using the first... Target image patch mask corresponding to each focusing and evidence acquisition step The value at each visual lexical unit divided by the set of visual lexical units The focus alignment loss is obtained by summing all mask values ​​within the range; the focus alignment loss includes cross-entropy loss, Kullback-Leibler divergence loss, Dice loss, or a combination thereof; the cross-entropy loss is the weighted focus distribution. Cross-entropy loss between the normalized target image block mask and the target image block mask; The total loss for supervised fine-tuning of a large multimodal model is: in, To monitor and fine-tune the total loss; For language modeling loss; To focus on alignment loss; To focus on alignment loss weights.

[0014] To ensure a stable step-specific visual query at the location corresponding to the focused closing lexical unit, a focused closing lexical unit context mask can be set at that location. This context mask allows the location to access the visual lexical sequence and the linguistic lexical units corresponding to the current focused expression, and masks historical linguistic lexical units irrelevant to the current objective, as needed for the task. The context mask only constrains the query context at the location, ensuring a step-specific visual query without altering the normal autoregressive generation of visual evidence descriptions and task answers.

[0015] Furthermore, in step S4, for the candidate response of the first... The focus and evidence acquisition steps and the first The target region is obtained according to the attention normalization method described in claim 4. The normalized attention distribution and normalized spatial entropy of the nth candidate attention head, and based on the normalized attention distribution and the nth... Calculate the attention quality of the target region using the target image patch mask corresponding to each target region: in, For the first The focus and evidence acquisition steps and the first The target area in the first The quality of attention to the target region on each candidate attention head; For focusing on the index of evidence acquisition steps; Index the target region; For candidate attention head index; A set of visual lexical units; For visual lexical index; For the first The first step in focusing on evidence acquisition Among the candidate attention heads, focus on the position corresponding to the closed word element. Pointing to visual lexical units The normalized attention value; For the first The target image patch mask corresponding to each target region is in the visual word. The value at that location. Based on the attention quality of the target region. and normalized spatial entropy Calculate the attention head quality score: in, For the first The focus and evidence acquisition steps and the first The target area in the first Attention head quality score of each candidate attention head; For the corresponding target area attention quality; For the first The first step in focusing on evidence acquisition Normalized spatial entropy of each candidate attention head; This is a preset non-negative normalized spatial entropy penalty coefficient. Based on the attention head quality score... Choose the highest-rated option from highest to lowest. A set of candidate attention heads forms a gating system. ,in The preset number of candidate attention heads; for the gating set The candidate attention heads are gating weights determined by a temperature-scaled Softmax function. : in, For the first The focus and evidence acquisition steps and the first The target area in the first Attention head gating weights for each candidate attention head; This refers to the gate temperature parameter; The preset attention head gating weight smoothing coefficient, and 0 ≤ <1; The preset number of candidate attention heads; For candidate attention head index; For the first The focus and evidence acquisition steps and the first The set of gates corresponding to each target region; For gating sets The candidate attention head summation index used for Softmax normalization; For the first The focus and evidence acquisition steps and the first The target area in the first Attention head quality score of each candidate attention head; For summation index The attention head quality score of the specified candidate attention head; exp is an exponential function. (The coefficients are used to express this value.) The Softmax weights are smoothly blended with the uniform weights within the gate set, and the gate set... The sum of the attention head gating weights of all candidate attention heads is 1, that is: Based on the attention head gating weight Attention quality for the target region Perform weighted aggregation to obtain the first... The focus and evidence acquisition steps and the first The aggregated target attention quality corresponding to each target region: in, For the first The focus and evidence acquisition steps and the first The aggregated target attention quality corresponding to each target region; For the corresponding set of gates; For the first Attention head gating weights for each candidate attention head; For the first The target region attention quality of each candidate attention head. The target region is in the visual word set The target area coverage rate satisfies: in, For the first The target region is in the visual word set Target area coverage; For visual lexical set The number of visual lexical units; For the first The target image patch mask corresponding to each target region is in the visual word. The value at that location. Based on the coverage rate of the target area. Attention quality of the aggregated target Calibration was performed to obtain a visual consistency score: in, For the first The focus and evidence acquisition steps and the first Visual consistency score among target regions; The sigmoid function is used; logit is the log-odds transformation function; log is the natural logarithm function. This is the input variable for the logit function, and ; The quality of the aggregated target attention; For the first Target area coverage rate for each target area; These are preset visual calibration bias parameters; The preset orthographic calibration scale parameters.

[0016] For the The first focused expression and the first The target area will be the first The focus expression and the first The target region description text associated with each target region is input into the semantic encoder to obtain L2-normalized semantic representations. and The target region description text includes the first... Each target region corresponds to at least one of the following: the annotation focus expression, the target name, and the indicator expression; The first focused expression and the first Semantic matching score between target regions Determined according to the following formula: in, For the first The first focused expression and the first Semantic matching scores between target regions; For the first A semantic representation vector is obtained by a semantic encoder and then L2 normalized from a focused expression; For the first The target region description text of each target region is obtained by the semantic encoder and then normalized by L2 to form a semantic representation vector; "·" represents the vector dot product; due to and All were L2 normalized. equal and The cosine similarity between them. Based on the semantic matching score. Obtain the semantic consistency score: in, For the first The first focused expression and the first Semantic consistency score among target regions; For the Sigmoid function; For the first The first focused expression and the first Semantic matching scores between target regions; These are the preset semantic calibration center parameters; The preset positive semantic calibration scale parameters are used to perform center and scale calibration on the semantic matching score. The semantic encoder is only used for training reward calculation in step S4; it is not called during the inference phase of step S5. The visual consistency score is then... semantic consistency score Multiply to get the first The focus and evidence acquisition steps and the first Correspondence score between target regions: in, For the first The focus and evidence acquisition steps and the first The score of the correspondence between target regions; The corresponding visual consistency score; The corresponding semantic consistency score is assigned. For candidate responses containing multiple focus and evidence acquisition steps and multiple target regions, a partial one-to-one matching with the highest weight is performed; this partial one-to-one matching allows focus and evidence acquisition steps or target regions to remain unmatched, and ensures that each focus and evidence acquisition step and each target region participates in at most one matching relationship. The optimal set of matching relationships satisfies: in, This represents the optimal set of partial one-to-one matching relationships; For a candidate set of partial one-to-one matching relationships; The set of candidate matching relationships that fully satisfy some one-to-one constraints; For the first The focus and evidence acquisition steps and the first The correspondence score between target regions; argmax represents the score of the candidate matching set. Select the set of matching relationships that maximizes the sum of scores for each matching relationship. In an implementation that calculates cross-modal focusing consistency rewards based on labeled target regions, the optimal set of matching relationships is selected. The correspondence scores in the data are normalized: in, Focus on consistent rewards across modalities; This is the optimal set of partial one-to-one matching relationships; For the optimal set of matching relationships The corresponding score in the; The number of focusing and evidence-gathering steps in a candidate response; The maximum value is the number of target regions corresponding to the current multimodal training samples; `max` is a function that takes the maximum value. For unmatched focused expressions whose semantic matching scores with all labeled target regions are lower than a preset threshold, an uncertainty reward constrained by an upper limit can be set and included in the cross-modal focused consistency reward to avoid forcibly matching unlabeled but reasonable focused expressions to labeled target regions; when the uncertainty reward is not enabled, the cross-modal focused consistency reward is determined according to the above normalization formula. The combined reward consisting of the cross-modal focused consistency reward and the answer correctness reward satisfies: in, For combined rewards; Rewards for correct answers; Focus on consistent rewards across modalities; The non-negative weight corresponding to the reward for the correct answer; The non-negative weights are assigned to the cross-modal focus consistency rewards.

[0017] The combined rewards within the same input group are standardized to obtain the relative group advantage of each candidate response, and a group-relative strategy is used to optimize and update the multimodal large model. Through the combined effect of the answer correctness reward and the cross-modal focus consistency reward, the model can obtain the correct task result while ensuring that the focus expression is consistent with the target region corresponding to the visual evidence to be acquired.

[0018] Furthermore, in step S5, when the acquired visual evidence is insufficient to form a task answer, the multimodal large model generates the next focusing expression based on the currently confirmed global evidence state, and repeats the generation of focusing closure lemmas and acquisition of visual evidence until the task answer generation conditions are met; wherein, the global evidence state is used to record the description of visual evidence obtained in the completed focusing and evidence acquisition steps and the confirmed information; during the inference stage, no target region annotation is input and no external target detector, visual locator or image cropping tool is called.

[0019] A focused visual evidence acquisition system for multimodal large models includes: a sample processing module for acquiring multimodal training samples and generating one or more target image patch masks; a trajectory construction module for constructing a training dataset based on the multimodal training samples, such that each training trajectory in the training dataset includes one or more focusing and evidence acquisition steps and a task answer, and establishing a correspondence between each focusing and evidence acquisition step and a target region annotation and its corresponding target image patch mask; a focus closure lexical supervision module for performing attention head selection and gating based on target attention enrichment and normalized spatial entropy, and calculating focus alignment loss based on weighted focus distribution; a reinforcement optimization module guided by cross-modal consistency verification for performing attention head selection and gating based on target region attention quality and normalized spatial entropy to obtain aggregated target attention quality, and determining cross-modal focus consistency reward based on target region coverage, visual consistency score, and semantic consistency score, and performing group relative policy optimization based on answer correctness reward and the cross-modal focus consistency reward; and an inference module for controlling the reinforcement-optimized multimodal large model to sequentially perform target focusing, visual evidence acquisition, and task answer generation.

[0020] An electronic device includes a processor and a memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the method described above.

[0021] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described method.

[0022] The present invention has the following beneficial effects: (1) By focusing on the initial word, the expression and the closing word to establish an explicit generation boundary, the model can complete the establishment of the visual target before the output answer carries the attribute, reducing the risk that the language prior will dominate the generation of visual evidence before it has been reliably focused.

[0023] (2) The position corresponding to the closed word is used as the local visual query of the step, and the attention head with positioning ability is selectively supervised based on the target attention enrichment degree and normalized spatial entropy, so as to avoid the interference of ability caused by applying regional constraints to all attention heads equally.

[0024] (3) By jointly implementing group relative strategy optimization through answer correctness rewards and cross-modal focus consistency rewards, the model can simultaneously optimize task results and internal visual focus consistency, thereby enhancing the correspondence between generated evidence and real target regions.

[0025] (4) The target region annotation is only used in the training phase. No external locator, target box or additional region clipping module is needed in the inference phase. It can be directly integrated into existing multimodal large models with low deployment overhead.

[0026] (5) The method is applicable to high-resolution visual question answering, fine-grained target attribute recognition, chart and document understanding, multi-target spatial relationship reasoning, and complex visual tasks that require multiple observations. Attached Figure Description

[0027] Figure 1 This is a schematic diagram of the overall training, deployment, and inference process of the focused visual evidence acquisition method for multimodal large models of the present invention.

[0028] Figure 2 This is a schematic diagram illustrating the focus on closed-word supervision, attention head selection, and gating of this invention. Detailed Implementation

[0029] The present invention will be further described below with reference to the accompanying drawings and embodiments. It should be understood that the following embodiments are only for illustrating the present invention and are not intended to limit the scope of protection of the present invention; those skilled in the art can make equivalent substitutions for the model structure, loss form, attention head selection method and reward calculation method without departing from the concept of the present invention.

[0030] Example 1: Overall training and reasoning process.

[0031] like Figure 1As shown, the sample processing module first acquires images, task instructions, standard answers, and one or more target region annotations, and maps these target region annotations to the visual lexical grid of the multimodal large model to obtain corresponding target image patch masks. The trajectory construction module constructs a training dataset based on the multimodal training samples and, according to the task decomposition, constructs one or more focusing and evidence acquisition steps in each training trajectory, establishing a correspondence between each focusing and evidence acquisition step and a target region annotation and its corresponding target image patch mask. Each focusing and evidence acquisition step consists of "focusing starting lexical—focusing expression—focusing closing lexical—visual evidence description".

[0032] In a training data implementation, each training sample record stores at least the task instruction, reference training trajectory, task answer, and one or more target region instances. Each target region instance records at least the target region annotation and the annotation focus expression associated with that target region, and may further record the target name or indicator expression. When loading training samples, the text between the focus initiation word and the focus closing word is parsed as the current focus expression. The current focus expression is preferentially matched with the annotation focus expression in the target region instance. If no match is found, further matching can be performed based on the target name to determine the target region annotation and target image patch mask corresponding to the current focus and the evidence acquisition step.

[0033] For example, when the task instruction is "What is the number on the warning sign on the left side of the image?", the focus expression can be generated as "Locate the warning sign on the left side of the image," followed by a focus closure term. The visual evidence description following the focus closure term is "The warning sign displays the number 15." The number "15" does not appear in advance in the focus expression, thus avoiding defining the target in reverse by the attribute of the answer to be obtained in the current focus and evidence acquisition step. For relational tasks, objects or attributes already confirmed in the previous focus and evidence acquisition step can be written into the global evidence state and used for target focus in the next focus and evidence acquisition step.

[0034] The module focuses on the supervision of closed lexical units through Figure 2 The method shown performs attention head selection and gating, as well as focus alignment supervision, at the position corresponding to the focused closed lexical unit. The reinforcement optimization module guided by cross-modal consistency verification uses the supervised fine-tuned multimodal large model as the initial strategy, and performs cross-modal consistency verification and group-relative strategy optimization on candidate responses to the same multimodal input to obtain the multimodal large model after reinforcement optimization in step S4. During deployment and inference, the multimodal large model after reinforcement optimization in step S4 sequentially performs input reception, focused expression generation and focused closed lexical unit generation, visual evidence acquisition, and task answer generation.

[0035] Example 2: Focusing on closed lexical units and attention head selection and gating.

[0036] like Figure 2 As shown, the image is encoded into a visual word sequence by a visual encoder, and the visual word sequence contains a visual word set 𝒱. The current focus expression and the optional focus closure word context mask jointly determine the language-side context of the position corresponding to the focus closure word. For several candidate layers and candidate attention heads of the model, the attention pointing to the visual word at the position corresponding to the focus closure word is read and normalized within the visual word set 𝒱.

[0037] This embodiment performs initial screening based on the target attention enrichment from high to low, and uses normalized spatial entropy to suppress candidate attention heads that are uniformly diffused across the entire image. The number of candidate attention heads K can be set from 4 to 64 depending on the model size; in an implementation model with approximately 4 billion parameters, K is set to 16, the gating temperature parameter T is set to 0.15, the attention head gating weight smoothing coefficient δ is set to 0.05, and no upper limit is set for the weight of a single head. For other model sizes, K, T, and δ can be adjusted based on the validation results; when it is necessary to limit the weight of a single candidate attention head, an upper limit can also be set for the weight of a single head.

[0038] The target image patch mask can be generated using a soft overlay method: when there is partial overlap between the visual image patch and the target region, the proportion of the overlap area between the visual image patch and the target region is used as the mask value of the corresponding visual word; alternatively, it can be generated using a binary method where the center point falls within the target region. For multi-target tasks, the union of multiple target regions can be taken, or focusing and evidence acquisition steps can be constructed separately for each target region.

[0039] In one training implementation, the language modeling loss is used to learn complete focus expressions, visual evidence descriptions, and task answers, while the focus alignment loss is applied only to the positions corresponding to focus-closing lexical units; thus, there is no need to output bounding boxes during the inference phase, nor is each lexical unit forced to assume a localization function.

[0040] During the supervised fine-tuning autoregressive training process, reference lexical units in the training trajectory are used to form the historical language context of each prediction position, and the language modeling loss is calculated only for the lexical units that need to be generated by the model; the focused closure unit supervision reads the attention of the visual lexical sequence at the corresponding position of the focused closure unit and calculates the focus alignment loss, so that the language generation supervision and the focused closure unit supervision are jointly executed on the same training trajectory.

[0041] Example 3: Enhanced optimization guided by cross-modal consistency verification.

[0042] exist Figure 1In the training process shown, for each training input, the multimodal large model after supervised fine-tuning in step S3 is used as the strategy model for the reinforcement optimization stage to sample multiple complete candidate responses, and the target region annotations and corresponding target image patch masks obtained in step S1 are used for cross-modal consistency verification. The parsing module identifies the focus start words, focus closing words, focus expressions, and task answers in each candidate response; the answer correctness reward can adopt exact matching, normalized string matching, numerical tolerance, multiple choice judgment, or task-specific scoring functions.

[0043] For each focusing and evidence acquisition step in the candidate response, following the calculation method of step S4, the attention pointing to the visual word at the position corresponding to the focusing closed word is normalized and the normalized spatial entropy is calculated. The target region attention quality of each candidate attention head for each target region is calculated. Attention head selection and gating are performed based on the target region attention quality and the normalized spatial entropy to obtain the attention head gating weight and aggregated target attention quality. Subsequently, the visual consistency score is obtained based on the target region coverage of each target region. In the semantic consistency branch, the focusing expression generated by the model and the target region description text of each target region are input into the sentence vector semantic encoder. In a specific implementation, the all-MiniLM-L6-v2 semantic encoder is used to generate L2 normalized sentence vectors, and the cosine semantic matching score is obtained by the dot product of the sentence vectors. If the semantic encoder is unavailable, the Jaccard similarity can be calculated based on the set of content words in the focusing expression and the target region description text as an alternative semantic matching score. The target region description text can be obtained by concatenating the labeled focusing expression, target name, and pointer expression corresponding to the target region instance.

[0044] For candidate responses containing multiple focusing and evidence acquisition steps and multiple target regions, partial one-to-one matching with the highest weight is performed based on the correspondence score. During the matching process, lower limits for the correspondence score and semantic matching score can be set to prevent low-confidence correspondences from being forcibly selected. In a specific implementation, the scores of matched correspondences are summed and normalized to the larger of the number of focusing and evidence acquisition steps and the number of target regions to obtain a cross-modal focusing consistency reward. For unmatched focusing expressions with low semantic similarity to all labeled target regions, a small uncertainty reward with an upper limit can be given. For an implementation model with approximately 4 billion parameters, a semantic calibration center parameter of 0.50, a semantic calibration scale parameter of 0.08, a lower limit for the correspondence score of 0.10, and a lower limit for the semantic matching score of labeled targets of 0.55 can be used. The combined weights of the cross-modal focusing consistency reward and the answer correctness reward can be set to 0.40 and 0.60, respectively. The above values ​​are only implementation examples and do not constitute a limitation on the scope of protection.

[0045] In group-relative policy optimization, multiple candidate responses to the same input are grouped together. The within-group mean and standard deviation are calculated based on the combined reward formed by the correctness reward and the cross-modal focus consistency reward, thus obtaining the standardized advantage. When updating model parameters, a Kullback-Leibler constraint between the model and the reference policy can be added simultaneously to limit policy shift.

[0046] Example 4: Autoregressive Focusing and Evidence Acquisition Reasoning.

[0047] exist Figure 1 In the deployment reasoning process shown, the multimodal large model, after enhancement and optimization in step S4, first maintains a global evidence state. This global evidence state records the visual evidence descriptions and confirmed information obtained from the completed focusing and evidence acquisition steps. When new local information needs to be acquired, a focusing start term is output, generating a focusing expression. After the focusing expression is completed, a focusing closing term is output. The visual evidence description is only generated after the focusing closing term. If the currently acquired visual evidence is insufficient to form a task answer, the visual evidence description and confirmed information obtained in the current focusing and evidence acquisition step are written into the global evidence state, and the process proceeds to the next focusing and evidence acquisition step; otherwise, a task answer is generated.

[0048] The focus start lexicon and focus closing lexicon can be special lexicons added to the vocabulary, or they can be implemented by predefined sequences of ordinary text lexicons. The multimodal large model can be a decoder-based visual language model, an encoder-decoder-based visual language model, or a language model containing a visual adapter; the visual encoder can be a visual Transformer, a convolutional neural network, or a combination of both.

[0049] Example 5: Training data and effect verification.

[0050] In one exemplary implementation, 18,541 candidate trajectories are constructed from multiple visual question answering, graph understanding, high-resolution image understanding, and multi-step visual inference data sources. After filtering based on target region availability, focus representation non-leaking, and answer consistency, 14,523 training trajectories are obtained. Supervised fine-tuning can be applied to large multimodal models with approximately 3 billion to 8 billion parameters, and can also be scaled to even larger models.

[0051] In the verification experiment, compared with the corresponding basic model, the present invention showed V Stable improvements were achieved on tasks such as visual search, high-resolution visual question answering, M3CoT multimodal chained inference, and ChartQA chart question answering; taking an implementation model with approximately 4 billion parameters as an example, in V... The accuracy on HRBench-4K, M3CoT, and ChartQA was improved by approximately 3.14, 5.75, 5.36, and 5.68 percentage points, respectively. These results are intended to illustrate that the present invention can improve fine-grained visual focusing and visual evidence acquisition capabilities, and do not constitute a limitation on model size, data source, or performance range.

[0052] In the attention head selection ablation experiment, applying focus supervision with equal weight to all candidate attention heads reduces the performance of high-resolution visual question answering. However, performing attention head selection and gating based on the target attention enrichment and normalized spatial entropy can achieve more balanced performance, indicating that different candidate attention heads have functional differences. Attention head selection and gating help maintain the original language and reasoning capabilities of the model.

[0053] The above description is merely a preferred embodiment of the present invention. Any equivalent changes or substitutions made in accordance with the claims of the present invention, such as changing the name of the special term, changing the method of generating the target image patch mask, changing the attention head scoring function, adopting other intra-group relative reinforcement learning algorithms, or replacing the cross-modal focus consistency reward with an equivalent consistency metric, shall fall within the protection scope of the present invention.

Claims

1. A focused visual evidence acquisition method for multimodal large models, characterized in that, Includes the following steps: S1, acquire multimodal training samples, the multimodal training samples include at least images, task instructions, standard answers and one or more target region annotations corresponding to the visual evidence to be acquired; divide the images into visual word sequences by a visual encoder, and map the one or more target region annotations to corresponding target image block masks according to the mapping relationship between the visual word grid and the original image; S2, based on the multimodal training samples obtained in step S1, construct a training dataset for target focusing and visual evidence acquisition. The training dataset includes multiple training trajectories. Each training trajectory includes one or more focusing and evidence acquisition steps and a task answer. Each focusing and evidence acquisition step sequentially includes a focus initiation word, a focus expression for specifying the current visual target, a focus closure word for representing the completion of target establishment, and a visual evidence description generated after the focus closure word. Establish a correspondence between each focusing and evidence acquisition step and a target region annotation and its corresponding target image patch mask in step S1. S3. Based on the training dataset obtained in step S2, supervised fine-tuning is performed on the multimodal large model to be optimized; wherein, the multimodal large model is a model capable of jointly modeling visual word sequences and linguistic word sequences and performing autoregressive text generation; during the supervised fine-tuning process, visual focusing process of the multimodal large model is supervised by using visual attention to focus on the corresponding position of closed word units; For the training trajectory described in step S2, an autoregressive supervision method based on the reference training trajectory is adopted. That is, when predicting the current language word, the real language word located before the current prediction position in the training trajectory is used as the condition input; the position corresponding to the focused closed word is used as the visual query position of the current focusing and evidence acquisition step, and multiple candidate attention distributions of the visual word sequence are obtained at the position corresponding to each focused closed word. Attention head gating weights are determined based on the target attention enrichment and normalized spatial entropy of each candidate attention distribution relative to the target image patch mask, resulting in a weighted focus distribution. A focus alignment loss is constructed based on the difference between the weighted focus distribution and the normalized target image patch mask. The multimodal large model is then fine-tuned under supervision using the language modeling loss and the focus alignment loss. S4, perform enhanced optimization guided by cross-modal consistency verification; using the multimodal large model after supervised fine-tuning in step S3 as the initial strategy, sample multiple candidate responses for the same multimodal input consisting of images and task instructions, and perform cross-modal consistency verification based on one or more target region annotations and corresponding target image patch masks obtained in step S1; for each focusing and evidence acquisition step in the candidate response, according to the attention calculation method in step S3, normalize the attention value of the visual word sequence corresponding to the position of the focusing closed word in the visual word set to obtain multiple candidate attention distributions, and calculate the corresponding normalized spatial entropy; calculate the target region attention quality of each candidate attention head for each target region based on the target image patch mask, and according to the... Attention head selection and gating are performed based on the attention quality of the target region and the normalized spatial entropy to obtain attention head gating weights. The attention quality of the target region is aggregated according to the attention head gating weights to obtain aggregated target attention quality. The aggregated target attention quality is calibrated according to the target region coverage to obtain a visual consistency score. A semantic consistency score is obtained based on the semantic matching score between the focus expression in the candidate response and each target region. A cross-modal focus consistency reward is determined based on the visual consistency score and the semantic consistency score. An answer correctness reward is calculated based on the task answer of the candidate response. The answer correctness reward and the cross-modal focus consistency reward are combined and then updated using a group-relative strategy. S5. In the reasoning stage, the image to be processed and the task instructions are input into the multimodal large model that has been enhanced and optimized in step S4. The multimodal large model first generates a focused expression and outputs a focused closed word, then obtains the visual evidence of the visual target corresponding to the focused closed word and generates a visual evidence description, and outputs the task answer based on the visual evidence description.

2. The method according to claim 1, characterized in that, In step S1, the target image block mask is obtained by mapping the target bounding box, target segmentation mask, point annotation or region description to a visual lexical grid.

3. The method according to claim 1, characterized in that, In step S2, the focus expression includes at least one of the following: object category, spatial location, relative relationship, local structure, or contextual information used to uniquely or progressively determine the current visual target. The focus expression does not include the answer-carrying attributes to be acquired in the current focus and evidence acquisition steps. The answer-carrying attributes are generated in the visual evidence description after the focus closing word, so that target establishment and evidence acquisition form a clear boundary in the generation order. For the The focusing and evidence acquisition steps involve generating a focusing expression after the focusing initiating lexical; inserting a focusing closing lexical at the end of the focusing expression, and recording the position of the focusing closing lexical in the language lexical sequence as... A visual evidence description is generated after the focused closing lexical unit.

4. The method according to claim 1, characterized in that, In step S3, for the first The first step in focusing on evidence acquisition Each candidate attention head directs the attention value of the corresponding position of the focused closed word to each visual word in the visual word set. After internal normalization, we get: in, For the first The first step in focusing on evidence acquisition Among the candidate attention heads, focus on the position corresponding to the closed word element. Pointing to visual lexical units The normalized attention value; For the first The first step in focusing on evidence acquisition Among the candidate attention heads, focus on the position corresponding to the closed word element. Pointing to visual lexical units Attention value; For the first The position of the focused closed lexical unit in the linguistic lexical sequence during the focusing and evidence acquisition steps; A set of visual lexical units; The set of visual lexical units traversed in the normalized denominator The summation index; according to the first Target image patch mask corresponding to each focusing and evidence acquisition step Calculate the target attention enrichment, and based on Calculate the normalized spatial entropy; the target attention enrichment and the normalized spatial entropy are respectively: in, For the first The first step in focusing on evidence acquisition The target attention enrichment of each candidate attention head is used to characterize the degree of enrichment of attention quality within the target region relative to the area of ​​the target region; For the first The first step in focusing on evidence acquisition The normalized spatial entropy of each candidate attention head is used to characterize the spatial concentration of the attention distribution. For the first The target image patch mask corresponding to each focusing and evidence acquisition step is in the visual word unit The value at; For visual lexical set The number of visual lexical units; It is a preset positive stability constant used to avoid zero denominators and zero values ​​in logarithmic operations; It is the natural logarithm function.

5. The method according to claim 4, characterized in that, In step S3, based on the target attention enrichment... and normalized spatial entropy Determine the first The first step in focusing on evidence acquisition Attention head quality score for each candidate attention head ; Select the highest score based on the attention quality score. There are 10 candidate attention heads, and the gating set consisting of the selected candidate attention heads is denoted as . ,in The preset number of candidate attention heads; for the gating set The candidate attention heads are gating weights determined by a temperature-scaled Softmax function. : in, This refers to the gated temperature parameter; The preset attention head gating weight smoothing coefficient, and 0 ≤ <1; The preset number of candidate attention heads; For the first Candidate attention head indexes in the focusing and evidence acquisition steps; For the first A set of gates corresponding to each focus and evidence acquisition step; For gating sets The candidate attention head summation index used for Softmax normalization; For the first The first step in focusing on evidence acquisition Attention head quality score for each candidate attention head; For the first The summation index is used in each focusing and evidence acquisition step. Attention head quality score for specified candidate attention heads; exp is an exponential function; through coefficients The Softmax weights are smoothly blended with the uniform weights within the gate set, and the gate set... The sum of the attention head gating weights of all candidate attention heads is 1, that is: Based on the attention head gating weight gating set Normalized attention distribution of each candidate attention head Weighted summation is performed to obtain the result with the first... Weighted focus distribution corresponding to each focused closed word element : The normalized target image block mask is obtained by using the first... Target image patch mask corresponding to each focusing and evidence acquisition step The value at each visual lexical unit divided by the set of visual lexical units The focus alignment loss is obtained by summing all mask values ​​within the range; the focus alignment loss includes cross-entropy loss, Kullback-Leibler divergence loss, Dice loss, or a combination thereof; the cross-entropy loss is the weighted focus distribution. Cross-entropy loss between the normalized target image block mask and the target image block mask; The total loss for supervised fine-tuning of a large multimodal model is: in, To monitor and fine-tune the total loss; For language modeling loss; To focus on alignment loss; To focus on alignment loss weights; To ensure a stable step-specific visual query is formed at the location corresponding to the focused closure lexicon, a focused closure lexicon context mask can be set at that location. This mask allows the location to access the visual lexicon sequence and the linguistic lexicon corresponding to the current focused expression, and masks historical linguistic lexicons irrelevant to the current objective as needed. The focused closure lexicon context mask only constrains the query context at the location, ensuring a step-specific visual query without altering the normal autoregressive generation of visual evidence descriptions and task answers.

6. The method according to claim 4, characterized in that, In step S4, for the candidate response of the first The focus and evidence acquisition steps and the first The target region is obtained according to the attention normalization method described in claim 4. Normalized attention distribution of candidate attention heads and normalized spatial entropy And according to the normalized attention distribution and the Target image patch mask corresponding to each target region Calculate the attention quality of the target region: in, For the first The focus and evidence acquisition steps and the first The target area in the first The quality of attention to the target region on each candidate attention head; For focusing on the index of evidence acquisition steps; Index the target region; For candidate attention head index; A set of visual lexical units; For visual lexical index; For the first The first step in focusing on evidence acquisition Among the candidate attention heads, focus on the position corresponding to the closed word element. Pointing to visual lexical units The normalized attention value; For the first The target image patch mask corresponding to each target region is in the visual word. The value at the specified location; based on the attention quality of the target region. and normalized spatial entropy Calculate the attention head quality score: in, For the first The focus and evidence acquisition steps and the first The target area in the first Attention head quality score of each candidate attention head; For the corresponding target area attention quality; For the first The first step in focusing on evidence acquisition Normalized spatial entropy of each candidate attention head; The pre-defined non-negative normalized spatial entropy penalty coefficient; based on the attention head quality score. Choose the highest-rated option from highest to lowest. A set of candidate attention heads forms a gating system. ,in The preset number of candidate attention heads; for the gating set The candidate attention heads are gating weights determined by a temperature-scaled Softmax function. : in, For the first The focus and evidence acquisition steps and the first The target area in the first Attention head gating weights on each candidate attention head; This refers to the gated temperature parameter; The preset attention head gating weight smoothing coefficient, and 0 ≤ <1; The preset number of candidate attention heads; For candidate attention head index; For the first The focus and evidence acquisition steps and the first The set of gates corresponding to each target region; For gating sets The candidate attention head summation index used for Softmax normalization; For the first The focus and evidence acquisition steps and the first The target area in the first Attention head quality score of each candidate attention head; For summation index Attention head quality score for specified candidate attention heads; exp is an exponential function; through coefficients The Softmax weights are smoothly blended with the uniform weights within the gate set, and the gate set... The sum of the attention head gating weights of all candidate attention heads is 1, that is: Based on the attention head gating weight Attention quality for the target region Perform weighted aggregation to obtain the first... The focus and evidence acquisition steps and the first The aggregated target attention quality corresponding to each target region: in, For the first The focus and evidence acquisition steps and the first The aggregated target attention quality corresponding to each target region; For the corresponding set of gates; For the first Attention head gating weights for each candidate attention head; For the first The target region attention quality of each candidate attention head; the first The target region is in the visual word set The target area coverage rate satisfies: in, For the first The target region is in the visual word set Target area coverage; For visual lexical set The number of visual lexical units; For the first The target image patch mask corresponding to each target region is in the visual word. The value at the specified location; based on the coverage rate of the target area. Attention quality of the aggregated target Calibration was performed to obtain a visual consistency score: in, For the first The focus and evidence acquisition steps and the first Visual consistency score among target regions; The sigmoid function is used; logit is the log-odds transformation function; log is the natural logarithm function. This is the input variable for the logit function, and ; The quality of the aggregated target attention; For the first Target area coverage rate for each target area; These are preset visual calibration bias parameters; The preset orthographic calibration scale parameters; For the The first focused expression and the first The target area will be the first The focus expression and the first The target region description text associated with each target region is input into the semantic encoder to obtain L2-normalized semantic representations. and The target region description text includes the first... Each target region corresponds to at least one of the following: the annotation focus expression, the target name, and the indicator expression; The first focused expression and the first Semantic matching score between target regions Determined according to the following formula: in, For the first The first focused expression and the first Semantic matching scores between target regions; For the first A semantic representation vector is obtained by a semantic encoder and then L2 normalized from a focused expression; For the first The target region description text of each target region is obtained by the semantic encoder and then normalized by L2 to form a semantic representation vector; "·" represents the vector dot product; due to and All were L2 normalized. equal and Cosine similarity between them; based on the semantic matching score Obtain the semantic consistency score: in, For the first The first focused expression and the first Semantic consistency score among target regions; For the Sigmoid function; For the first The first focused expression and the first Semantic matching scores between target regions; These are the preset semantic calibration center parameters; The preset positive semantic calibration scale parameters are used to perform center and scale calibration on the semantic matching score; the semantic encoder is only used for training reward calculation in step S4, and does not need to be called in the inference stage of step S5; the visual consistency score is... Semantic consistency score Multiply to get the first The focus and evidence acquisition steps and the first Correspondence score between target regions: in, For the first The focus and evidence acquisition steps and the first The score of the correspondence between target regions; The corresponding visual consistency score; The corresponding semantic consistency score is used; for candidate responses containing multiple focusing and evidence acquisition steps and multiple target regions, the score is determined based on the correspondence. Perform partial one-to-one matching with the highest weight; the partial one-to-one matching allows the focus and evidence acquisition steps or target regions to remain unmatched, and ensures that each focus and evidence acquisition step and each target region participates in at most one matching relationship; determine the cross-modal focus consistency reward based on the sum of the scores of the matched relationships, combined with the number of focus and evidence acquisition steps and the number of target regions in the candidate response, and normalize the results; the combined reward consisting of the cross-modal focus consistency reward and the answer correctness reward satisfies: in, For combined rewards; Rewards for correct answers; Focus on consistent rewards across modalities; The non-negative weight corresponding to the reward for the correct answer; The non-negative weights corresponding to the cross-modal focus consistency reward; The combined rewards within the same input group are standardized to obtain the relative group advantage of each candidate response, and the group relative strategy is used to optimize and update the multimodal large model. Through the combined effect of answer correctness reward and cross-modal focus consistency reward, the model can obtain the correct task result and keep the focus expression consistent with the target region corresponding to the visual evidence to be acquired.

7. The method according to claim 1, characterized in that, In step S5, when the acquired visual evidence is insufficient to form a task answer, the multimodal large model generates the next focusing expression based on the currently confirmed global evidence state, and repeats the generation of focusing closure lemmas and acquisition of visual evidence until the answer generation conditions are met; wherein, the global evidence state is used to record the description of visual evidence obtained in the completed focusing and evidence acquisition steps and the confirmed information; during the inference stage, no target region annotation is input and no external target detector, visual locator or image cropping tool is called.

8. A focused visual evidence acquisition system for multimodal large models, characterized in that, include: The sample processing module is used to acquire multimodal training samples and generate one or more target image patch masks; The trajectory construction module is used to construct a training dataset based on the multimodal training samples, such that each training trajectory in the training dataset includes one or more focusing and evidence acquisition steps and a task answer, and establishes a correspondence between each focusing and evidence acquisition step and a target region annotation and its corresponding target image patch mask. The module focuses on closed-word supervision, which performs attention head selection and gating based on the target attention enrichment and normalized spatial entropy, and calculates the focus alignment loss based on the weighted focus distribution. The reinforcement optimization module guided by cross-modal consistency verification is used to perform attention head selection and gating based on the attention quality of the target region and the normalized spatial entropy to obtain the aggregated target attention quality, and to determine the cross-modal focus consistency reward based on the target region coverage, visual consistency score and semantic consistency score, and to perform group relative strategy optimization according to the answer correctness reward and the cross-modal focus consistency reward. And the reasoning module, which controls the enhanced and optimized multimodal large model to sequentially perform target focusing, visual evidence acquisition and task answer generation.

9. An electronic device comprising a processor and a memory, characterized in that, The memory stores a computer program, which, when executed by the processor, causes the processor to perform the method described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1 to 7.