Graph retrieval for search advertising

How can we find more relevant products beyond direct matching?

In production · Multiple iterations

My role
Graph retrieval development
Business scope
JD search advertising
Work stage
2021—2023
Overall search clicks
**
Initial graph retrieval · Full rollout evaluation
Comparison: control in that online experiment · Relative change
Overall search CTR
**
Same experiment and scope as the click metric
Comparison: control in that online experiment · Relative change

Actual results are redacted as **.

Summary of deployment evaluations. The initial version and later upgrades were evaluated separately; gains from different rounds are not added together.

Where the problem began

Search advertising must first retrieve candidates from a large inventory. Direct matching misses some relevant products; expanding through clicks and co-clicks can confuse products often viewed together with products relevant to the current query. This project addressed both candidate expansion and relevance control.

My responsibilities

Independently built graph retrieval, addressing relevance and integration after candidate expansion.

Methods and trade-offs

Learn representations from clicks/co-clicks, then retrieve by category and filter; evaluate each deployment stage separately.

  • Built the Query–SKU heterogeneous graph, sampling and representation learning pipeline from scratch. Used category-specific Faiss retrieval to generate candidates and integrated them into search advertising retrieval.
  • Added same-category hard negatives and multi-stage relevance filtering to address incorrect matches after expansion. Following the initial LINE deployment, explored GraphSAGE neighbor aggregation and evaluated the new version separately.

Follow the task through implementation

Follow a query through the pipeline

Find relevant products through behavioral relationships.

Choose a query to see how behavioral relationships expand candidates and why a final filter is still needed.

Teaching example · Positions are for layout only

01 / 04

First establish what the user is looking for

The query defines the intent of this search. Historical clicks provide clues but cannot replace the current query.

Input
Query and target category
Output
The question this retrieval must answer

02 / 04

First find products with direct behavioral signals

Historical Query–product clicks provide the first candidates. Product co-clicks then help find products with no direct match.

Input
Query–product click relationships
Output
Candidates with direct behavioral signals

03 / 04

Use relationship information to retrieve candidates

Co-clicks expand candidates, bringing both relevant products and distractions. The production pipeline learns Query / SKU representations and retrieves within categories. The initial LINE version and later GraphSAGE version were evaluated separately. This example does not simulate vector distances.

Input
Relationship structure and node features
Output
Candidates entering the relevance check

04 / 04

After expanding, return to the query itself

This small example demonstrates filtering with category rules. The production system also checks brands, model-based relevance and retrieval coverage, rather than treating frequent co-viewing as relevance.

Input
Expanded candidates and current intent
Output
Candidates relevant to this query

Interactive illustration using teaching examples

Validation and delivery

I developed and evaluated graph retrieval and relevance improvements for deployment. Actual changes in clicks, CTR, advertising spend and relevance are shown as **. Results from separate experiment rounds are not added together.

Graph retrieval: expand candidates while preserving search intent
Query–product clicks and product co-clicks form the graph. Representation learning and category-specific retrieval expand candidates; a relevance model then filters incorrect matches. The headphones and phone case are illustrative examples.
First expand through behavioral relationships, then test relevance to the current query. The LINE deployment and later GraphSAGE upgrade were evaluated separately.

Two deployment rounds, each with its own control

Initial graph-retrieval deployment, overall search: advertising spend **

See the table below for the full comparison and definitions; scroll horizontally if needed.

Scroll horizontally to view the full table

Two deployment rounds, each with its own control
Stage and scopeClicks / CTRAd spend / Relevance
Initial graph retrieval rollout · Overall searchClicks **; CTR **Ad spend **
Same experiment · Automated campaign trafficClicks **; CTR **Ad spend **
Later relevance improvements · Overall searchClicks **; CTR **Ad spend **
Relevance improvements · Offline inverted-index candidatesRelevance ** in absolute termsSame-category hard negatives and multi-stage filtering
Later GraphSAGE upgrade · OfflineExploring representations through neighbor aggregationGains from the previous two deployment rounds do not apply

Except for the ** relevance gain, percentages use the relative-change definitions of their respective experiments. Automated campaign traffic is a subset of overall search and cannot be added to it. Ad spend is the amount spent on advertising, not profit.

Actual results are redacted as **.

Remaining questions

Continue testing applicability with new data and business feedback.

View this project in my experience ↗
Ask Max Ask about this site
Ask Max ↗

Opening the assistant…

Paper figure

Photo comments

LEAVE A NOTE

About this photograph

Connecting to the discussion board…

    Comments become public after moderation. You can delete your own comments from this browser.
    No email is required. Clearing cookies prevents this browser from claiming earlier comments.

    MAX WANG / INDEX

    Find something

    Enter a keyword, or explore the directory below.