An intent routing intelligent processing system and method based on double model cooperation
By combining local discriminative small models with cloud-based generative large language models, the latency and reliability issues of intent routing in voice interaction systems are resolved, achieving efficient and reliable intent processing, which is suitable for voice-interactive navigation systems.
Patent Information
- Application Number
- CN202611546379.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-08
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, the intent routing schemes of voice interactive tour guide systems suffer from problems such as high latency due to cloud reliance, high cost, paralysis during network outages, and difficulty in cold-starting models that rely on labeled data for training.
A local discriminative small model is used for initial intent classification, and structured parameters are extracted through a local rule engine. These parameters are then combined with confidence and slot integrity for joint verification. The model is then backtracked to a cloud-based generative large language model to handle uncertainties, and the output of the cloud model is used for weakly supervised training to optimize the local model.
It enables local real-time processing of common intents, reduces cloud dependence, ensures that the overall accuracy is no lower than that of pure large language models, and continuously improves the accuracy of local models through data closed-loop optimization, ensuring that the system does not crash when the network is disconnected.
Smart Images

Figure CN123178573A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of voice interaction technology, specifically to an intention routing intelligent processing system and method based on dual-model collaboration. Background Technology
[0002] In a voice-interactive navigation system, after a user inputs natural language commands via voice, the system first needs to perform intent routing, that is, determine the intent category of the user's input, extract the structured parameters required for the intent, and then distribute it to the corresponding processing link for execution. For example, if a user says "How do I get to the restroom?", the system needs to recognize that its intent is navigation, extract the target location parameter as "restroom", and then distribute it to the navigation link.
[0003] Currently, there are two main types of mainstream intent routing schemes: The first approach involves calling a cloud-based generative large language model for intent routing with each user input. This leverages the large language model's tool-calling capabilities to determine the intent category and extract structured parameters. The drawbacks of this approach are: each routing call requires a round trip to the cloud, with actual latency ranging from approximately 200 to 640 milliseconds, directly adding to the user's initial sound waiting time; each call consumes lexical units, incurring continuous billing costs; and the entire routing process is paralyzed during network outages or cloud failures, making navigation impossible. The second approach involves using a local discriminative small model to classify user input intent, replacing the routing provided by a large language model. The drawbacks of this approach are: discriminative classification models can only output intent category labels and cannot simultaneously extract structured parameters; for unfamiliar expressions not covered by the training data, the model will forcibly classify them into a certain category, lacking a mechanism for "handling over to a stronger model when uncertain," resulting in no lower limit guarantee of accuracy; and model training relies on labeled data, making cold starts difficult. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to overcome the above-mentioned technical defects and provide an intention routing intelligent processing system and method based on dual-model collaboration that can combine the advantages of local discriminative small models and cloud-based generative large language models.
[0005] To address the aforementioned technical problems, the present invention provides the following technical solution: an intelligent intent routing processing system and method based on dual-model collaboration, comprising the following steps: S1: Adding a preset prefix to the user input text and then feeding it into a local discriminative classification model for intent classification, outputting intent labels and corresponding confidence scores; S2: Extracting structured parameters corresponding to the intent through a local rule engine based on the intent labels; S3: Jointly verifying the confidence scores, structured parameters, and model running status. When the verification fails, the user input text is redirected to a cloud-based generative large language model for intent routing; S4: Outputting the verified local routing results or the redirected cloud routing results to the downstream intent distribution module in a homogeneous data format; S5: Collecting historical routing outputs from the cloud-based generative large language model as weakly supervised training samples to iteratively optimize the local discriminative classification model.
[0006] Preferably, the joint verification in S3 includes: Confidence verification: If the confidence level is lower than the preset threshold, the verification is deemed to have failed. Slot integrity verification: If the structured parameter extraction fails or the key slot is empty, the verification is deemed to have failed. Anomaly Validation: If the local discriminative classification model is not deployed, the model file is missing, or an anomaly is thrown during inference, the validation will fail.
[0007] Preferably, the local discriminative classification model in S1 includes a sentence vector base and a classification head; The sentence vector base vectorizes the input text with a preset prefix, and the classification head outputs the probability distribution of each intent category based on the vector, taking the category with the highest probability as the intent label, and its probability value as the confidence level. The local discriminative classification model performs synchronous inference on the central processing unit and is executed in a thread pool.
[0008] Preferably, the extraction of structured parameters in S2 specifically involves: When the intent label is a visual question answering type, the input text is judged to contain the target pronoun based on the pronoun dictionary, and the parameters of the visual sensor are set according to the judgment result. When the intent tag is a wayfinding / navigation type, the target location is extracted by matching in descending order of alias length based on the facility alias dictionary, retaining gender prefix information, and superimposing the venue name set dynamically injected during operation to supplement the extraction by substring matching. When the intent tag is device control, control instructions are extracted by matching words in ascending order of word length based on the keyword list.
[0009] Preferably, the isomorphic data format in S4 includes an intent label field, a parameter dictionary field, a routing time field, and a routing source identifier field; The downstream intent distribution module parses homogeneous data formats without distinguishing between local routing results and cloud routing results.
[0010] Preferably, the iterative optimization in S5 includes: Weakly supervised sample pairs are formed by extracting user input text and corresponding intent labels from the historical successful routing logs of a cloud-based generative large language model using rules. Weakly supervised sample pairs are manually sampled and then incorporated into the training seed set; The local discriminative classification model is retrained based on the expanded training seed set. During training, a preset prefix is added to the input text, consistent with that used during inference, and the order of the category labels is saved to ensure that the category order is consistent at the inference end.
[0011] Preferably, the iteration optimization of S5 also includes shadow grayscale verification; The shadow grayscale verification includes the following steps: during the pre-launch verification phase, the routing results using a cloud-based generative large language model are output externally, while the local discriminative classification model is executed concurrently. Only the consistency logs between the local routing results and the cloud routing results are recorded to calculate the local consistency rate. Once the local consistency rate reaches the preset standard, switch to local priority routing mode.
[0012] Another aspect of this invention discloses an intention routing intelligent processing system based on dual-model collaboration, comprising: The local routing unit includes a local discriminative classification model and a rule-based slotting module. The local discriminative classification model adds a preset prefix to the user input text and then performs intent classification, outputting intent labels and corresponding confidence scores. The rule-based slotting module extracts structured parameters corresponding to the intent based on the intent labels. The gating decision module performs joint verification of confidence level, structured parameters, and model running status, and triggers a rollback command when the verification fails. The cloud-based routing unit, including a generative large language model, performs intent routing on the user's input text when a rollback instruction is received; The output homogeneous module outputs the local routing results and the cloud routing results in a homogeneous data format to the downstream intent distribution module. The distillation training module collects historical routing outputs from cloud-based routing units as weakly supervised training samples to iteratively optimize the local discriminative classification model.
[0013] The advantages of this invention compared to the prior art are: This invention employs a two-stage collaborative mechanism: a discriminative small model outputs intent labels, a local rule engine completes structured parameters, and a gating back-to-generative large language model based on three conditions: confidence, slot, and anomaly. This enables most common inputs to be processed locally in real time, without consuming cloud-based lexical units, and can be routed even when the network is offline. Meanwhile, in any uncertain situation, this invention automatically reverts to the large language model, ensuring that the lower limit of the overall accuracy is not lower than the pure large language model routing, thus achieving zero degradation. This invention uses the historical successful routing output of a large language model as weakly supervised sample distillation incremental training of a local small model, forming a data closed loop. The local hit rate continuously improves with use, while the rollback ratio continuously decreases. The local and cloud routing results are output in a homogeneous data format, and downstream intent distribution code can be connected without any modifications. Attached Figure Description
[0014] Figure 1 This is a schematic diagram of the structure of an intent routing intelligent processing system based on dual-model collaboration.
[0015] Figure 2 This is a flowchart illustrating an intelligent intent routing processing method based on dual-model collaboration. Detailed Implementation
[0016] The present invention will now be described in further detail with reference to the accompanying drawings.
[0017] Combined with appendix Figure 1-2 As shown, an intelligent intent routing processing method based on dual-model collaboration includes the following steps: S1: Add a preset prefix to the user input text and send it to the local discriminative classification model for intent classification, outputting intent labels and corresponding confidence scores; S2: Extract structured parameters corresponding to the intent through the local rule engine based on the intent labels; S3: Perform joint verification of confidence scores, structured parameters, and model running status. When the verification fails, the user input text is backed to the cloud-based generative large language model for intent routing; S4: Output the verified local routing results or the backed-up cloud routing results to the downstream intent distribution module in a homogeneous data format; S5: Collect the historical routing output of the cloud-based generative large language model as weakly supervised training samples to iteratively optimize the local discriminative classification model.
[0018] Another aspect of this invention discloses an intention routing intelligent processing system based on dual-model collaboration, comprising: The local routing unit includes a local discriminative classification model and a rule-based slotting module. The local discriminative classification model adds a preset prefix to the user input text and then classifies the intent, outputting an intent label and corresponding confidence level. The rule-based slotting module extracts structured parameters corresponding to the intent based on the intent label. The gating decision module performs joint verification of the confidence level, structured parameters, and model running status, and triggers a rollback command when the verification fails. The cloud routing unit includes a generative large language model, which performs intent routing on the user input text when a rollback command is received. The output isomorphism module outputs the local routing results and the cloud routing results in an isomorphic data format to the downstream intent distribution module. The distillation training module collects the historical routing output of the cloud routing unit as weakly supervised training samples to iteratively optimize the local discriminative classification model.
[0019] In specific implementation of the present invention, This invention is based on a two-stage collaborative approach: a discriminative small model outputting intent labels + local rule-based slotting + confidence / slot dual-gated backoff to a large language model + large language model output distillation of the small model. Figure 2 As shown.
[0020] Step S1: Classification Segment – Local Discriminative Small Model Outputs Labels and Confidence Scores: A lightweight classification head (such as logistic regression) is trained on a multilingual small sentence vector base (such as multilingual-e5-small, 384-dimensional) using a few-shot text classification framework (such as SetFit), and inference is performed locally on the central processing unit (CPU). During inference, a standardized prefix is added to the input text (e.g., "query:", which is strictly consistent with the training process; this is a convention for sentence vector bases). The small model outputs the probability of each intent category, takes the category with the highest probability as the intent label, and uses its probability value as the confidence level; Synchronous inference in the central processing unit is executed in a thread pool to avoid blocking the asynchronous event loop of the service; Step S2: Slotting segment – Local rule completion of structured parameters: The smaller model only outputs labels; this invention uses local rules to complete the parameters according to the intent category. Visual question answering: Determines whether the input contains pronouns ("this", "that", "it", "this", "this piece", "this picture", etc.) and sets the parameter "whether to call the camera" accordingly; Route navigation: Target locations are extracted using a facility alias dictionary. The dictionary matches aliases in descending order of length (to prevent the short alias "elevator" from being matched before the long alias "elevator entrance"), and retains gender prefixes ("men's restroom" / "women's restroom"), while also overlaying a dynamically injected set of venue / area names during operation (substrings are retrieved upon matching); Device control: Extract specific device commands (increase volume, pause, exit Q&A, etc.) using a keyword list (short words first, long words last); For other categories (inquiry about current location, venue information, small talk, and refusal to answer from outside the region): use the original sentence as the query parameter directly; Step S3: Dual-gate rewind: If any of the following conditions are met, discard the local results and fall back to the cloud-based large language model routing (existing technology 1): Confidence gating: If the confidence level of S1 is lower than a set threshold (e.g., 0.75), the small model is unsure. Slot gating: If a route cannot be drawn for a target location in a pathfinding category, or if a route cannot be drawn for a device control category (empty slot) – it is better to roll back than to allow a route that is missing parameters. Anomaly gating: Small model not installed, model file missing, or inference throws an anomaly – graceful degradation; Since any uncertain situation falls back to the large language model, the lower bound of the overall accuracy is equal to the routing of the pure large language model; when it can be handled reliably locally, one round trip to the cloud can be saved; Step S4: Output isomorphism: The result object produced by local routing is completely isomorphic to the result object of cloud-based large language model routing. Therefore, the downstream intent distribution code can switch between "pure large language model routing" and "local priority + fallback" without any modification. Step S5: Shadow Grayscale Mode: Provide a shadow running mode: the routing results of the large language model are still used externally, while a local small model is run concurrently once. Only logs are recorded to determine whether the two are consistent. This is used to count the consistency rate between the local small model and the large language model before going online. Once the target is met, switch to the "local priority" mode. Step S6: Distillation data closure: From the successful routing logs of the large language model in the cloud, extract the (user input, intent determined by the large language model) pairs using rules as weakly supervised "silver label" samples (i.e., use the output of the large language model as an approximate label). After manual sampling, the samples were incorporated into the training seed set; Retrain the local discriminative small model using the expanded seed set (add the specified prefix during training and save the class labels to ensure consistent order at the inference end). This creates an automatic data flywheel where "large language models teach small models," with local hit rates continuously increasing with use and the proportion of data falling back to the cloud continuously decreasing.
[0021] In one embodiment: Experimental data: After training with 345 seed samples (approximately 49 samples per class), the accuracy on the test set was 66 / 66 (1.000), the generalization of unseen new statements was 15 / 15, and the correct class confidence was above 0.90; When the sample size was reduced to 80, the accuracy was only 0.714, which proves that "sample size is the determining factor of accuracy".
[0022] Two-stage safety net verification: For example, "Why is the sound so soft?" is correctly judged as a greeting (rather than device control); "Can the sound be louder?" is judged correctly by the small model but the keyword is not matched → roll back to the large language model according to the design (it is better to roll back than to leave the slot empty).
[0023] The contents not described in detail in this specification are existing technologies known to those skilled in the art.
[0024] In practical use: Example 1: Intent routing for AR glasses navigation The device's schematic link is as follows: User voice → Voice recognition to obtain text → [Local discriminative small model classification (central processing unit)] → Confidence / slotting dual gating → [Pass: Local result] / [Fail: Back to cloud-based large language model] → Intent distribution (visual question answering / pathfinding / device control / ...).
[0025] Processing steps: User says "How do I get to the restroom?" → Text is prefixed and sent to the small model → Output "Road navigation", confidence 0.94 (>0.75) → Extract the target "restroom" from the local dictionary → Slot is not empty → Directly generate routing results (approximately 30 milliseconds, not connected to the network) → Distribute to the path navigation link.
[0026] If the user uses an obscure expression not covered in the training, set the confidence level to 0.6 (<0.75) and then revert to the cloud-based large language model.
[0027] Device parameters: sentence vector base multilingual-e5-small (384-dimensional); classification header logistic regression; query prefix "query:"; confidence threshold 0.75; offline loading (HF_HUB_OFFLINE=1); automatic degradation to pure large language model routing if no dependencies are installed.
[0028] Example 2: Shadow Gray Scale and Distillation Closed Loop In the initial stage of deployment, the system was run in shadow mode for two weeks. The consistency rate between the local small model and the cloud-based large language model was found to be up to standard. During this period, several hundred silver-labeled samples were successfully mined from the routing logs of the large language model. After manual sampling, these samples were incorporated into the seed set to retrain the small model. After the consistency rate was further improved, the system was switched to "local priority" mode.
[0029] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0030] The present invention and its embodiments have been described above. This description is not restrictive, and the accompanying drawings are only one embodiment of the present invention; the actual structure is not limited thereto. In conclusion, if those skilled in the art are inspired by this description and design similar structures and embodiments without departing from the spirit of the invention, such designs should fall within the protection scope of the present invention.
Claims
1. An intelligent intent routing processing method based on dual-model collaboration, characterized in that: Includes the following steps: S1: Add a preset prefix to the user input text and then feed it into the local discriminative classification model to classify intent, and output the intent label and the corresponding confidence score; S2: Based on the intent tag, extract the structured parameters corresponding to the intent through the local rule engine; S3: Jointly verify the confidence level, structured parameters, and model running status. If the verification fails, the user input text is pushed back to the cloud-based generative large language model for intent routing. S4: Output the verified local routing results or the rollback cloud routing results to the downstream intent distribution module in a homogeneous data format; S5: Collect historical routing outputs from cloud-based generative large language models as weakly supervised training samples to iteratively optimize local discriminative classification models.
2. The intention routing intelligent processing method based on dual-model collaboration according to claim 1, characterized in that: The joint verification in S3 includes: Confidence verification: If the confidence level is lower than the preset threshold, the verification is deemed to have failed. Slot integrity verification: If the structured parameter extraction fails or the key slot is empty, the verification is deemed to have failed. Anomaly Validation: If the local discriminative classification model is not deployed, the model file is missing, or an anomaly is thrown during inference, the validation will fail.
3. The intention routing intelligent processing method based on dual-model collaboration according to claim 1, characterized in that: The local discriminative classification model in S1 includes a sentence vector base and a classification head; The sentence vector base vectorizes the input text with a preset prefix, and the classification head outputs the probability distribution of each intent category based on the vector, taking the category with the highest probability as the intent label, and its probability value as the confidence level. The local discriminative classification model performs synchronous inference on the central processing unit and is executed in a thread pool.
4. The intention routing intelligent processing method based on dual-model collaboration according to claim 1, characterized in that: The extraction of structured parameters in S2 specifically involves: When the intent label is a visual question answering type, the input text is judged to contain the target pronoun based on the pronoun dictionary, and the parameters of the visual sensor are set according to the judgment result. When the intent tag is a wayfinding / navigation type, the target location is extracted by matching in descending order of alias length based on the facility alias dictionary, retaining gender prefix information, and superimposing the venue name set dynamically injected during operation to supplement the extraction by substring matching. When the intent tag is device control, control instructions are extracted by matching words in ascending order of word length based on the keyword list.
5. The intention routing intelligent processing method based on dual-model collaboration according to claim 1, characterized in that: The isomorphic data format in S4 includes an intent label field, a parameter dictionary field, a route time field, and a route source identifier field. The downstream intent distribution module parses homogeneous data formats without distinguishing between local routing results and cloud routing results.
6. The intention routing intelligent processing method based on dual-model collaboration according to claim 1, characterized in that: The iterative optimization in S5 includes: Weakly supervised sample pairs are formed by extracting user input text and corresponding intent labels from the historical successful routing logs of a cloud-based generative large language model using rules. Weakly supervised sample pairs are manually sampled and then incorporated into the training seed set; The local discriminative classification model is retrained based on the expanded training seed set. During training, a preset prefix is added to the input text, consistent with that used during inference, and the order of the category labels is saved to ensure that the order of categories is consistent at the inference end.
7. The intention routing intelligent processing method based on dual-model collaboration according to claim 6, characterized in that: The iteration optimization of S5 also includes shadow grayscale verification; The shadow grayscale verification includes the following steps: during the pre-launch verification phase, the routing results using a cloud-based generative large language model are output externally, while the local discriminative classification model is executed concurrently. Only the consistency logs between the local routing results and the cloud routing results are recorded to calculate the local consistency rate. Once the local consistency rate reaches the preset standard, switch to local priority routing mode.
8. A dual-model collaborative intent routing intelligent processing system, using the dual-model collaborative intent routing intelligent processing method as described in any one of claims 1-7, characterized in that: include: The local routing unit includes a local discriminative classification model and a rule-based slotting module. The local discriminative classification model adds a preset prefix to the user input text and then performs intent classification, outputting intent labels and corresponding confidence scores. The rule-based slotting module extracts structured parameters corresponding to the intent based on the intent labels. The gating decision module performs joint verification of confidence level, structured parameters, and model running status, and triggers a rollback command when the verification fails. The cloud-based routing unit, including a generative large language model, performs intent routing on the user's input text when a rollback instruction is received; The output homogeneous module outputs the local routing results and the cloud routing results to the downstream intent distribution module in a homogeneous data format. The distillation training module collects historical routing outputs from cloud-based routing units as weakly supervised training samples to iteratively optimize the local discriminative classification model.
