Powering Job Search at Scale: LLM-Enhanced Query Understanding in Job Matching Systems

Ping Liu, Jianqiang Shen, Qianqi Shen, Chunnan Yao, Kevin Kao, Dan Xu, Rajat Arora, Baofen Zheng, Caleb Johnson, Liangjie Hong, Jingwei Wu, Wenjing Zhang · DOI · OpenReview

Abstract

Query understanding is essential in modern relevance systems, where user queries are often short, ambiguous, and highly context-dependent. Traditional approaches often rely on multiple task-specific Named Entity Recognition models to extract structured facets as seen in job search applications. However, this fragmented architecture is brittle, expensive to maintain, and slow to adapt to evolving taxonomies and language patterns. In this paper, we introduce a unified query understanding framework powered by a Large Language Model (LLM), designed to address these limitations. Our approach jointly models the user query and contextual signals such as profile attributes to generate structured interpretations that drive more accurate and personalized recommendations. The framework improves relevance quality in online A/B testing while significantly reducing system complexity and operational overhead. The results demonstrate that our solution provides a scalable and adaptable foundation for query understanding in dynamic web applications.

Introduction

Query understanding (QU) serves as the "brain" of search engines, transforming ambiguous user input—such as "software engineer Naples"—into structured intent. Historically, industrial systems like LinkedIn’s utilized a fragmented architecture composed of multiple specialized Named Entity Recognition (NER) models. This approach presented significant challenges: models operated in isolation, making it difficult to resolve contextual ambiguities (e.g., geographic disambiguation) or process self-referential queries like "jobs that match my profile." Furthermore, maintaining dozens of independent models created a massive operational bottleneck. To address these issues, we propose a unified framework that replaces these disparate components with a single, fine-tuned Large Language Model (LLM).

System Architecture

The core of our system is a fine-tuned Qwen2.5-1.5B model that integrates four primary functional components into a single serving pipeline.

Unified Query Understanding Architecture powered by a single LLM.
  1. Query Planner: Acts as an intelligent router, categorizing queries into standard searches, self-referential searches (utilizing profile data), non-job related queries, or trust policy violations.
  2. Query Tagger: Extracts structured facets (e.g., seniority, industry) in JSON format. Unlike static NER, the LLM leverages reasoning to adapt to dynamic terminology.
  3. Query Rewriter: Handles self-referential queries by incorporating user profile data (e.g., location) to rewrite the query into a format compatible with the search index.
  4. Facet Suggestion: Recommends relevant filters to assist users in refining their search results.

Methods and Training

The model was trained using Multi-task Instruction Tuning (SFT). A critical technical insight was the use of Homogeneous Batching, where mini-batches are constructed from a single task at a time. This approach provided a more stable gradient signal compared to heterogeneous mixing, preventing conflicting updates between disparate tasks like tagging and rewriting.

The training data consisted of 3,000 to 5,000 human-annotated samples per task, supplemented by synthetic data generated via GPT-4 and subsequently reviewed by humans. For industrial deployment, the 1.5B parameter size was identified as the "sweet spot," balancing the intelligence required for structured JSON output with the strict 600ms P95 latency requirements.

Results

The transition to a unified LLM-based system resulted in substantial improvements across all key metrics. Online A/B testing showed a 33% increase in Normalized Discounted Cumulative Gain (NDCG) and a 59% reduction in irrelevant results.

Comparison of Precision and Recall between Legacy NER and the Fine-tuned LLM.

As shown in the performance comparison, the fine-tuned LLM significantly outperformed legacy NER models. For instance, company tagging precision rose from 0.688 to 0.800, while recall improved from 0.710 to 0.910. Beyond accuracy, the consolidation of models reduced maintenance overhead by over 75%. The system achieved a median latency of 400ms on A100 GPUs, facilitated by a custom streaming JSON parser that allows downstream processes to begin before the LLM completes its generation.

Conclusion

By replacing a fragmented NER architecture with a single, unified LLM, we have demonstrated that it is possible to achieve superior search relevance while simplifying system maintenance. While smaller models still face occasional challenges with complex tool-calling hallucinations, the current framework provides a robust and scalable foundation. Future work will focus on enhancing agentic capabilities and further optimizing inference efficiency for multi-step career queries.

Summary updated

Abstract

Query understanding is essential in modern relevance systems, where user queries are often short, ambiguous, and highly context-dependent. Traditional approaches often rely on multiple task-specific Named Entity Recognition models to extract structured facets as seen in job search applications. However, this fragmented architecture is brittle, expensive to maintain, and slow to adapt to evolving taxonomies and language patterns. In this paper, we introduce a unified query understanding framework powered by a Large Language Model (LLM), designed to address these limitations. Our approach jointly models the user query and contextual signals such as profile attributes to generate structured interpretations that drive more accurate and personalized recommendations. The framework improves relevance quality in online A/B testing while significantly reducing system complexity and operational overhead. The results demonstrate that our solution provides a scalable and adaptable foundation for query understanding in dynamic web applications.
BibTeX
@inproceedings{liu2025powering,
  author = {Ping Liu and Jianqiang Shen and Qianqi Shen and Chunnan Yao and Kevin Kao and Dan Xu and Rajat Arora and Baofen Zheng and Caleb Johnson and Liangjie Hong and Jingwei Wu and Wenjing Zhang},
  title = {{Powering Job Search at Scale: LLM-Enhanced Query Understanding in Job Matching Systems}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2025},
  url = {https://openreview.net/forum?id=wtrKmtn50x},
}
Figure