Dense Text Retriever Training with Auto-Generated Queries

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for training dense retriever models in text retrieval tasks rely heavily on annotated data, which is costly, and many datasets lack associated queries, making unsupervised training necessary.

Innovation Solution

A query generation mechanism that automatically generates queries using training documents, employing methods like query extraction (QEXT) and transferred query generation (TQGEN), combined with a bi-encoder dense retriever model and contrastive learning, to create vector representations and update the model parameters.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If annotated data is used for training dense retriever models, then model accuracy is improved, but training cost increases significantly

Engineering Contradiction:
Improvemodel accuracyVSAvoidtraining cost
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The system generates its own training queries automatically using the training documents themselves, eliminating the need for external human annotators. The query generation mechanism extracts or generates queries from the documents, allowing the system to self-service its training data needs without incurring annotation costs.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

A query generation mechanism acts as an intermediary between the training documents and the dense retriever model. This intermediary automatically creates queries from documents using methods like QEXT (extracting text spans) or TQGEN (using language models), bridging the gap between unannotated documents and the model training process.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If human annotators generate queries for documents, then query quality is improved, but productivity decreases due to high cost and time consumption

Engineering Contradiction:
Improvequery qualityVSAvoidtraining efficiency
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent replaces the mechanical process of human annotation with automated computational methods. Instead of human annotators manually creating queries, the system uses algorithmic approaches (text span extraction, language model generation) to automatically produce queries, dramatically improving productivity while maintaining acceptable query quality.

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

Solution Approach 2:

The query generation mechanism performs preliminary actions by creating queries from documents before the actual model training process. This pre-processing step automates what would otherwise require human intervention, allowing the training pipeline to proceed efficiently with automatically generated query-document pairs.

Inventive Principle:
Principle #10Preliminary action

3Reliability

If large amounts of annotated data are collected, then model performance is improved, but loss of time increases due to annotation process

Engineering Contradiction:
Improvemodel performanceVSAvoidannotation time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system performs self-service by automatically generating queries from its own training documents without external human intervention. This eliminates the time-consuming annotation process entirely, allowing the system to scale to large datasets without proportional increases in annotation time.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The automated query generation enables continuous processing of training documents without interruption for human annotation. The system can continuously generate queries and train models on large datasets without the breaks and bottlenecks inherent in human annotation workflows, maintaining continuous productive action.

Inventive Principle:
Principle #20Continuity of useful action

Data Source

PatentUS12493795B2Systems and methods for unsupervised training in text retrieval tasks
Publication Date: 2025.12.09 SALESFORCE INC
  • US12493795B2 patent drawing
  • US12493795B2 patent drawing
  • US12493795B2 patent drawing

AI summary

Embodiments described herein provide systems and methods for training a text retrieval model. A system may generate queries associated with provided documents. The queries may be generated in one or more different manners. Examples of query generation may include extracting relevant spans of text from the documents, prompting a language model for a topic, title, abstractive summary, and/or extractive summary based on the documents. Metadata such as title or other HTML tags may be used as queries. Using the one or more queries, the text retrieval model may be trained using contrastive learning, using the generated query, and positive and negative sample documents. A fine-tuning training phase may be performed using domain-specific data which may also be done with generated query pairs, or may be done in a supervised fashion with provided queries. The text retrieval model may be used to locate documents given an input query.