Deep and Cross Network v1 versus v2, and A/B testing it
I was asked this
No reports yet. Sign in to say where you were asked it.
An AI/ML design interview question asked in Apple's technical phone screen, last asked Mar 2026. It tests recommendation, feature crosses and ab testing.
You work on a ranking model for ads or recommendations that predicts click or conversion rates. Explain how the Deep and Cross Network (DCN) models feature interactions, what changed from v1 to v2 and why it matters in production. Then explain how you would A/B test a DCN v2 model against the current DCN v1 model.
Requirements
- Explain the cross network of v1: each layer computes
x_{l+1} = x_0 · (x_lᵀ w_l) + b_l + x_l, wherew_lis a vector, building explicit interactions of rising degree alongside a deep network. - Explain v2: the cross layer becomes
x_{l+1} = x_0 ⊙ (W_l x_l + b_l) + x_lwith a full weight matrix, the low-rank versionW = U Vᵀthat keeps it affordable, and the mixture of low-rank experts; also stacked versus parallel arrangements with the deep part. - Compare training and serving cost, parameter count and expressiveness.
- Design the online experiment: unit of randomization, metrics, sample size, duration, guardrails and the launch decision.
Clarifying questions
- What does the model predict (CTR, CVR, both), and which business metric is the launch decision based on?
- How large are the feature embeddings, and what is the serving latency budget?
- Has v2 already won offline, and by how much in log loss or AUC?
- Is there a calibration layer or auction downstream that depends on the predicted values?
What a strong answer covers
- Why v1's vector weight limits it (each layer's interaction is a rank-one scaling of
x_0), and what a full matrix captures that it cannot. - The cost trade-off of the full matrix, and why low rank or mixture of experts recovers most of the gain at a fraction of the compute.
- The offline gate first (log loss, AUC, calibration by segment), then the online test.
- The A/B test: randomize by user, pick a primary metric and guardrails (latency, revenue, calibration), size it from the baseline variance and minimum detectable effect, run full weekly cycles, watch for novelty effects and for interference through shared budgets or auctions.
- What to do when offline and online results disagree.
Follow-ups
- The online test shows higher CTR but lower revenue. What could cause it?
- The new model is miscalibrated in the treatment arm. How does that bias an ads experiment?
- How would you test several cross-layer variants at once?
Where it's asked
- Apple · Technical phone screen · Last asked Mar 2026
What it tests
recommendation · feature crosses · ab testing
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
