Query Matching Model Generalization via Cross Attention

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Traditional search engine techniques fail to satisfy users' demands for quick and precise information acquisition in the era of information explosion, as they lack the ability to generalize queries effectively, leading to suboptimal accuracy and recall rates in search and question-answering systems.

Innovation Solution

A method and apparatus for generalization processing using a pre-trained query matching model based on a cross attention model, which determines candidate queries through literal, semantic, and query rewriting matching to generate a generalized query, improving query matching accuracy and comprehensiveness.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional search engine techniques are used, then the system structure remains simple, but the accuracy and recall rate of information acquisition deteriorate

Engineering Contradiction:
Improveaccuracy of information acquisitionVSAvoidsystem structure complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent segments the query processing into multiple independent modules: query rewriting module, candidate query determination module (with literal matching, semantic matching, and query rewriting sub-modules), and query matching model. Each module handles a specific aspect of query generalization, improving accuracy while maintaining manageable system complexity through functional decomposition

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies preliminary action by pre-training the query matching model offline using large-scale query data before deployment. The model learns query representation and matching patterns in advance, enabling fast and accurate query generalization during online operation without requiring complex real-time processing

Inventive Principle:
Principle #10Preliminary action

2Quantity of substance

If traditional search techniques are used, then the system remains simple to operate, but the recall rate of search results deteriorates

Engineering Contradiction:
Improvecomprehensiveness of search resultsVSAvoidprocessing mechanism complexity
Core Design Contradiction:
Quantity of substanceVSDevice complexity

Solution Approach 1:

The patent merges multiple query matching approaches (literal matching, semantic matching, and query rewriting) into a unified processing framework. These different matching strategies work together to generate comprehensive candidate query sets, improving recall rate by capturing diverse query variations while presenting a unified interface to users

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The query matching model serves multiple functions: it performs literal matching, semantic matching, query rewriting, and candidate query selection within a single unified model. This multi-functionality increases the comprehensiveness of search results without requiring separate specialized systems for each function

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Measurement precision

If query generalization is not applied, then the system remains fast to execute, but the accuracy of query responses deteriorates

Engineering Contradiction:
Improveaccuracy of query responsesVSAvoidquery processing time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The query matching model is pre-trained offline on large-scale query data to learn optimal matching patterns and query representations. This preliminary training enables the model to perform accurate query generalization rapidly during online execution, achieving high response accuracy without sacrificing processing speed

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent replaces traditional rule-based query expansion mechanisms with a learned neural network model. The model automatically learns query transformation patterns from data, eliminating the need for manual rule engineering and enabling fast, accurate query generalization through differentiable optimization

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Data Source

PatentUS11704326B2Generalization processing method, apparatus, device and computer storage medium
Publication Date: 2023.07.18 BEIJING BAIDU NETCOM SCI & TECH CO LTD
  • US11704326B2 patent drawing
  • US11704326B2 patent drawing
  • US11704326B2 patent drawing

AI summary

The present disclosure provides a generalization processing method, apparatus, device and computer storage medium, and relates to technical field of artificial intelligence and specifically to a deep learning technique. A specific implementation solution is: determining a set of candidate queries in a query library that are similar to a requested query in at least one of a literal matching manner, a semantic matching manner and a query rewriting manner; determining a generalized query corresponding to the requested query from the set of candidate queries by using a pre-trained query matching model; wherein the query matching model is obtained by pre-training based on a cross attention model. The generalization for the requested query can be achieved according to the present disclosure.