---
title: "Exploring Hierarchical Interest Representation For Meta Ads Deep Funnel Optimization"
description: "Hierarchical Interest Representation is an upstream representation layer for Meta Ads."
url: "https://swe.quest/articles/exploring-hierarchical-interest-representation-for-meta-ads-deep-funnel-10b90d80348c21a5"
canonical: "https://engineering.fb.com/2026/07/15/ai-research/exploring-hierarchical-interest-representation-for-meta-ads-deep-funnel-optimization/"
source: "Meta Engineering"
published: "2026-07-15"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 10
tags: ["recommendation-systems","ads","machine-learning","model-training"]
---

# Exploring Hierarchical Interest Representation For Meta Ads Deep Funnel Optimization

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2026-07-15, 10 min read, Deep dive. Original: [https://engineering.fb.com/2026/07/15/ai-research/exploring-hierarchical-interest-representation-for-meta-ads-deep-funnel-optimization/](https://engineering.fb.com/2026/07/15/ai-research/exploring-hierarchical-interest-representation-for-meta-ads-deep-funnel-optimization/)

## Summary

Hierarchical Interest Representation is an upstream representation layer for Meta Ads. It learns unified embeddings for users, ads, advertisers and products over a typed, time-decayed heterogeneous engagement graph spanning billions of interactions. A graph transformer injects structural signals such as node-type transitions and shortest-path distance as attention biases, computed on the fly with FlexAttention over packed block-masked subgraphs. It is trained with self-supervised teacher-student cross-view distillation using Sinkhorn-Knopp balancing plus a supervised engagement-prediction objective, with LLM-processed multimodal content enriching sparse nodes. Pipelined data loading from the online graph engine gave a 30x training speedup, strict temporal cutoffs prevent leakage, and embeddings are quantized into Bag-of-Meaning tokens for inverted-index retrieval and use in GEM, Andromeda and ranking models.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Recommendations & ranking](https://swe.quest/tags/recommendation-systems.md) (AI & ML)
- [Ads](https://swe.quest/tags/ads.md) (Domains)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)

## Prerequisites

- transformer attention
- graph neural networks ([easy posts on Machine learning](https://swe.quest/tags/machine-learning.md?difficulty=easy))
- self-supervised learning
- ads ranking pipelines ([easy posts on Recommendations & ranking](https://swe.quest/tags/recommendation-systems.md?difficulty=easy))

## Keywords

Hierarchical Interest Representation, FlexAttention, Sinkhorn-Knopp, Bag-of-Meaning tokens, GEM, Andromeda, deep hash embeddings

## Related posts

- [From User Sequences to Scaling Laws: A Multi-Stage Architecture for Meta’s Ads Ranking](https://swe.quest/articles/from-user-sequences-to-scaling-laws-a-multi-stage-architecture-for-meta-s-ads-3c689db90be36667.md): Meta Engineering · 2026-08-05 · Hard · 6 min read · Recommendations & ranking, Ads, Model training, Machine learning, Scaling
  Meta scales sequence learning for ads ranking by splitting it into two stages: an offline transformer user model processes thousands of user events asynchronously and caches user-level embeddings, and a lightweight online ranking model combines those embeddings with fresh signals and ad candidates under strict latency budgets.
- [Sequence learning: A paradigm shift for personalized ads recommendations](https://swe.quest/articles/sequence-learning-a-paradigm-shift-for-personalized-ads-recommendations-0f4eda06409ac7d5.md): Meta Engineering · 2024-11-19 · Hard · 7 min read · Recommendations & ranking, Ads, Machine learning, Inference & serving
  Meta replaced its DLRM ads ranking models, which depended on thousands of hand-engineered aggregated sparse features, with sequence learning over event-based features (EBFs).
- [Meta’s Generative Ads Model (GEM): The Central Brain Accelerating Ads Recommendation AI Innovation](https://swe.quest/articles/meta-s-generative-ads-model-gem-the-central-brain-accelerating-ads-5d5a24731a15c0eb.md): Meta Engineering · 2025-11-10 · Hard · 10 min read · Recommendations & ranking, Ads, Model training, ML platforms
  GEM is Meta's LLM-scale foundation model for ads recommendation, trained on thousands of GPUs and used as a teacher to improve hundreds of downstream vertical ranking models; it lifted ad conversions 5% on Instagram and 3% on Facebook Feed.
- [GenRecs Tokenization: Transforming Ads Recommendation at Meta with Stable Model Vocabulary](https://swe.quest/articles/genrecs-tokenization-transforming-ads-recommendation-at-meta-with-stable-model-e3f3b6ea2626a2c2.md): Meta Engineering · 2026-10-19 · Hard · 6 min read · Recommendations & ranking, Ads, LLMs, Machine learning
  Meta's ads recommender replaces per-item IDs with GenRecs Tokenization, a stable semantic vocabulary.
- [User foundation models for Grab](https://swe.quest/articles/user-foundation-models-for-grab-98db1323e8d3fa5a.md): Grab Engineering · 2025-09-26 · Hard · 18 min read · Recommendations & ranking, Model training, Machine learning, ML platforms
  Grab built a transformer-based user foundation model that jointly learns from tabular user attributes and time-series clickstream data to produce general-purpose user embeddings, replacing siloed hand-engineered features.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
