[Paper Review] Fine-tuning Small Language Models as Efficient Enterprise Search Relevance Labelers
The paper presents a synthetic-data pipeline that fine-tunes a small language model (Phi-3.5 Mini Instruct) to label enterprise search relevance, achieving comparable or better agreement with human judgments than a teacher LLM while delivering large throughput and cost savings.
In enterprise search, building high-quality datasets at scale remains a central challenge due to the difficulty of acquiring labeled data. To resolve this challenge, we propose an efficient approach to fine-tune small language models (SLMs) for accurate relevance labeling, enabling high-throughput, domain-specific labeling comparable or even better in quality to that of state-of-the-art large language models (LLMs). To overcome the lack of high-quality and accessible datasets in the enterprise domain, our method leverages on synthetic data generation. Specifically, we employ an LLM to synthesize realistic enterprise queries from a seed document, apply BM25 to retrieve hard negatives, and use a teacher LLM to assign relevance scores. The resulting dataset is then distilled into an SLM, producing a compact relevance labeler. We evaluate our approach on a high-quality benchmark consisting of 923 enterprise query-document pairs annotated by trained human annotators, and show that the distilled SLM achieves agreement with human judgments on par with or better than the teacher LLM. Furthermore, our fine-tuned labeler substantially improves throughput, achieving 17 times increase while also being 19 times more cost-effective. This approach enables scalable and cost-effective relevance labeling for enterprise-scale retrieval applications, supporting rapid offline evaluation and iteration in real-world settings.
Motivation & Objective
- Address the lack of scalable, high-quality enterprise relevance datasets.
- Leverage synthetic data generation and distillation to train a compact relevance labeler.
- Achieve throughput and cost reductions relative to LLM-based labeling while preserving quality.
Proposed method
- Generate synthetic enterprise queries from seed documents using an LLM and BM25 negatives.
- Assign graded relevance to query–document pairs with an LLM-based labeling step.
- Fine-tune Phi-3.5 Mini Instruct on the synthetic triplets with multi-task tuning including INTERS, TREC-CAsT, and MS MARCO-derived data.
- Evaluate the distilled SLM against human annotations and a teacher LLM on a dedicated enterprise benchmark.
- Report throughput (RPM) and cost-effectiveness alongside agreement with human judgments.
Experimental results
Research questions
- RQ1Can a small language model fine-tuned on synthetic enterprise data achieve relevance labeling performance comparable to a teacher LLM?
- RQ2Does distilling knowledge from LLM-generated labels into an SLM yield higher throughput and lower cost for enterprise-scale labeling?
- RQ3How does incorporating multi-task tuning with public datasets affect generalization to enterprise-style queries?
Key findings
- The distilled SLM achieves agreement with human judgments on par with or better than the teacher LLM (GPT-4o).
- The approach yields a 17× increase in throughput (RPM) compared to the baseline labeling setup.
- Cost efficiency improves by about 19× relative to using the teacher LLM for labeling.
- Synthetic data generation with BM25 negatives and LLM labeling can produce high-quality training data for enterprise relevance labeling.
- Multi-task fine-tuning with INTERS, TREC-CAsT, and MS MARCO data enhances generalization to enterprise-style queries.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.