From Unstructured to Structured: LLM-Guided Attribute Graphs for Entity Search and Ranking

Yilun Zhu, Nikhita Vedula, Shervin Malmasi

Here is a concise, engaging summary of the paper "From Unstructured to Structured: LLM-Guided Attribute Graphs for Entity Search and Ranking".

TL;DR

This paper introduces a hybrid two-stage framework for e-commerce entity search that decouples offline knowledge graph construction from online ranking. By using a Large Language Model (LLM) to extract structured attribute-value pairs offline, the system allows the online LLM ranker to reason over clean, structured subgraphs instead of raw product text. This approach improves ranking precision by over 5% in zero-shot settings while slashing per-product token usage by 57% and accelerating inference.

What Problem Does This Paper Address?

In e-commerce, finding similar or substitute products (entity search) is highly context-dependent. Traditional dense embedding models and Graph Neural Networks (GNNs) excel at broad semantic retrieval but often miss nuanced, category-specific attribute differences (e.g., matching the exact number of pieces in a home security kit).

While LLMs can act as powerful zero-shot rankers to fix this, feeding them raw, unstructured product descriptions at scale is incredibly impractical. It leads to high financial costs, severe latency bottlenecks, large key-value (KV) cache memory requirements, and an inability to strictly enforce hard attribute constraints.

Methods

The authors propose the Attribute-based Graph Ranker, which splits the workload into two distinct phases:

The framework of our Graph Ranker System.
  1. Stage 1: Offline Attribute Graph Construction
  2. Attribute Definition: An LLM (Claude 3.5 Sonnet v2) defines hierarchical, category-aware schemas (e.g., "Screen Size" for TVs vs. "Material" for clothing) across 61 super-categories and 4,940 sub-categories.
  3. Attribute Value Extraction: The LLM extracts product details from raw text into structured JSON attribute-value pairs, building a massive bipartite graph where products connect to attribute nodes via value-labeled edges.
  4. Stage 2: Online Graph-Aware LLM Ranking
  5. Candidate Generation: A standard dense retriever (bge-m3 + FAISS) pulls the top 50–80 candidate products.
  6. Graph-Aware LLM Ranking: Instead of reading full text descriptions, the online LLM receives only the structured local subgraph of attribute-value pairs for the query and candidates. It performs zero-shot, list-wise reasoning to score similarity on a fine-grained 0–100 scale.

Datasets

The framework was evaluated using the Amazon Shopping Queries Dataset, a large-scale real-world benchmark containing 469,898 unique products under the US locale. The authors repurposed the dataset for entity-to-entity search by treating products as query entities and sampling a diverse subset of 8.7K queries across various super-categories.

Key Insights and Ideas

  • Decoupling is Key: Separating the unstructured-to-structured extraction (offline) from the actual ranking (online) bypasses the context-length bottleneck of LLMs.
  • Structured Data = Less Noise: Feeding an LLM a clean list of attributes rather than a messy, marketing-heavy product description forces the model to focus on factual alignment. This drastically reduces prompt sensitivity and eliminates hallucination risks.
  • Massive Efficiency Gains: Moving from raw text (~700 tokens per product) to structured attributes (~300 tokens per product) yields a 57% token reduction. For a list of 50 candidates, this saves roughly 20,400 input tokens, translating directly to a 250 ms speedup per request.

Key Results

The proposed method (DR + graph-ranker) was tested via both human experts and an independent LLM judge (Nova Pro) against strong baselines, including a raw text LLM ranker (DR + raw-ranker).

Extracted table from page 3 of From Unstructured to Structured: LLM-Guided Attribute Graphs for Entity Search and Ranking
  • Human Evaluation: The graph ranker significantly boosted Precision@5 from 39.52% (raw-ranker) to 47.14%, and Mean Average Precision (mAP) from 57.99% to 60.42%.
  • Automated Evaluation: Across strict similarity thresholds (Eval Threshold $\ge$ 80), the graph ranker dominated all metrics, demonstrating that structured reasoning excels at identifying high-fidelity product substitutes.
Extracted table from page 4 of From Unstructured to Structured: LLM-Guided Attribute Graphs for Entity Search and Ranking

Limitations and Future Work

  • Domain Specificity: For highly specialized domains (e.g., medical supplies or complex industrial parts), the zero-shot schema generation might falter, requiring domain-specific fine-tuning or expert-curated taxonomies.
  • Inference Overhead: While much faster than raw-text LLM ranking, online LLM reasoning still introduces higher latency and cost overhead compared to pure embedding-based retrieval. The authors note it is best suited for high-value search scenarios where precision directly impacts conversion rates.

Summary updated

BibTeX
@inproceedings{zhu2026from,
  author = {Yilun Zhu and Nikhita Vedula and Shervin Malmasi},
  title = {{From Unstructured to Structured: LLM-Guided Attribute Graphs for Entity Search and Ranking}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2026},
  doi = {10.1145/3805712.3808501},
}

Loading related content...

Figure