Manuscript Offprint

arXiv:2609.04511

LentEx: Generalizable Latent Entity Extraction via Synthetic Data and Instruction-Tuned LLMs

Umesh Bodhwani, Yuan Ling, Cibi Chakravarthy Senthilkumar, Shujing Dong, Yarong Feng, Hongfei Li, Ayush Goyal

1st Umesh Bodhwani

Amazon

Seattle, WA, USA

bodhwani@amazon.com

2nd Yuan Ling

Amazon

Seattle, WA, USA

yualing@amazon.com

3rd Cibi Chakravarthy Senthilkumar

Amazon

Seattle, WA, USA

sentocb@amazon.com

4th Shujing Dong

Amazon

Seattle, WA, USA

shujdong@amazon.com

5th Yarong Feng

Amazon

Seattle, WA, USA

yarongf@amazon.com

6th Hongfei Li

Amazon

Seattle, WA, USA

lihongfe@amazon.com

7th Ayush Goyal

Amazon

Seattle, WA, USA

ayushg@amazon.com

Abstract—Latent entity extraction (LEE) tackles the challenge of identifying implicit, contextually inferred entities within free text—an area where traditional entity extraction methods fall short. In this paper, we introduce LentEx, a novel framework for latent entity extraction that leverages synthetic data generation and instruction fine-tuning to optimize smaller, efficient large language models (LLMs). Latent entities, which are often abstract and thematic, are crucial for applications such as retrieval-augmented generation (RAG), customer persona analysis, and knowledge graph enrichment. LentEx addresses the scarcity of labeled datasets by employing a template-based approach to generate diverse, contextually rich synthetic data, ensuring high variability and alignment with real-world distributions. To our knowledge, LentEx is the first to systematically approach LEE through the lens of LLMs. LentEx demonstrates significant performance improvements across multiple tasks, notably surpassing state-of-the-art models on the MTEB Clustering Benchmark. Furthermore, our methodology enables robust generalization to unseen domains, making LentEx highly applicable in real-world NLP tasks, including RAG and clustering, thereby establishing a new paradigm for latent entity understanding and extraction in natural language processing.

Index Terms—llm, retrieval augmented generation, entity extraction, fine-tuning, information retrieval, clustering, synthetic data generation

I. INTRODUCTION

Latent Entity Extraction (LEE) refers to identifying entities implicitly present in textual data, inferred from contextual nuances rather than explicitly mentioned. Unlike traditional Named Entity Recognition (NER), which focuses on overt entities such as names of organizations, locations, or persons, LEE aims to uncover abstract or thematic entities—such as the persona behind a conversation or an implied industry sector—deduced from context. For instance, while NER may quickly identify mentions of “Google” or “New York,” LEE endeavors to infer broader, latent concepts such as “technology company” or “urban environment” based solely on contextual cues.

Prior research on LEE has predominantly relied on classification or topic modeling. Classification methods are inherently constrained by their reliance on predefined labels, often requiring extensive retraining as new categories emerge [1], [2]. Topic modeling, although adept at identifying general themes, frequently produces clusters of keywords that lack interpretability and fail to provide actionable insights regarding specific latent entities [3]–[6]. These approaches generate high-level thematic summaries but often lack the granularity to infer nuanced, context-specific information. In retrieval-augmented generation (RAG) systems, LEE enhances document filtering by extracting latent entities from queries and documents. For instance, a query like What are the latest advancements in AI? can be enriched with latent entities such as deep learning techniques or natural language processing frameworks, enabling the RAG system to retrieve more relevant documents.

With the advent of large language models (LLMs), natural language processing has seen unprecedented success across a range of tasks, owing to the impressive capability of LLMs to generate human language [7]–[13]. Despite these advancements, the application of LLMs for LEE remains largely unexplored.

This paper introduces LentEx, a novel, supervised learning framework specifically designed to address the challenges of LEE. LentEx leverages synthetic data generation and self-instruction to fine-tune smaller, efficient LLMs, thereby offering a scalable solution to LEE. By generating diverse training datasets that mirror the complexity of real-world text, LentEx establishes a robust foundation for extracting latent entities across multiple domains. These extracted entities serve as structured representations that improve text organization (clustering) and relevance filtering (retrieval-augmented generation). Our approach ensures generalization to unseen domains, making it highly applicable in real-world scenarios such as knowledge discovery, content personalization, and beyond. This work shifts the paradigm toward a deeper understanding of the implicit dimensions of text with the following key contributions:

  1. Formalizing domain-agnostic latent entity extraction problem and developing a systematic approach to ad-

Figure

Fig. 1. Overview of the LentEx workflow in three steps: (1) Template-based domain generation using Claude-3 with few-shot examples, (2) Synthetic input-output instance generation with similarity filtering, and (3) Instruction fine-tuning using Mistral-7B-Instruct-v0.2

dress it.

  1. Developing a novel, template-based synthetic data generation process, producing diverse datasets without manually curated seed data.

  2. Demonstrating the effectiveness of fine-tuning a small LLM using this synthetic dataset, achieving superior performance over state-of-the-art embedding-based and generation-based methods on multiple downstream tasks.

References (37)