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
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
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
| Stage and scope | Clicks / CTR | Ad spend / Relevance |
|---|---|---|
| Initial graph retrieval rollout · Overall search | Clicks **; CTR ** | Ad spend ** |
| Same experiment · Automated campaign traffic | Clicks **; CTR ** | Ad spend ** |
| Later relevance improvements · Overall search | Clicks **; CTR ** | Ad spend ** |
| Relevance improvements · Offline inverted-index candidates | Relevance ** in absolute terms | Same-category hard negatives and multi-stage filtering |
| Later GraphSAGE upgrade · Offline | Exploring representations through neighbor aggregation | Gains 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.