Feature Crosses for User Segment and Ad Category Interactions

Last updated: November 29, 2026

Quick Overview

Explain why a linear click model for Instagram ads benefits from crossing user age bucket with ad category, how you would build the crosses, and how a deep model learns these interactions instead.

Meta
Machine Learning
Machine Learning Engineer
Meta
November 29, 2026
Machine Learning Engineer
Phone Screen
Machine Learning
Medium

0

0

0 solved


Explain why a linear click model for Instagram ads benefits from crossing user age bucket with ad category, how you would build the crosses, and how a deep model learns these interactions instead.

Meta's ads stack evolved from logistic regression with hand-built crosses to deep models that learn interactions, and interviewers like to probe whether you understand both. They check reasoning about expressiveness, sparsity and regularization of crosses.

What the Interviewer Expects
  • Explain that linear models cannot represent interactions without crosses
  • Build crosses by concatenating categorical values and hashing
  • Discuss sparsity and the need for regularization
  • Describe how factorization machines and DLRM dot products learn interactions
  • Pick which crosses to build using domain knowledge or data
Key Topics to Cover
Feature crosses
Logistic regression
Factorization machines
DLRM
Interaction effects
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • How many cross features would you create, and how would you prune them?
  • Why do factorization machines generalize to unseen pairs?
  • When would you still hand-build a cross in a deep model?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

I would ask how many age buckets and ad categories exist (say 7 and 500), the model family, and whether there is evidence of interactions, for example gaming ads performing much better for 18 to 24 ye...

Approach

A logistic regression adds effects: logit=wage+wcat+…\text{logit}=w_{age}+w_{cat}+\dots. It cannot say gaming ads are especially good for young users beyond what each effect implies. A cross creates a new feature fo...


Submit Your Answer
Markdown supported