How would you decide which interaction features to engineer when the space of candidate pairs is very large?

Quick Overview

Asks how to choose interaction features to build when there are far too many feature pairs to test one by one. Tests candidate generation from domain knowledge and tree models, cheap screening, cross-validated selection, and control of false discoveries.

How would you decide which interaction features to engineer when the space of candidate pairs is very large?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How would you decide which interaction features to engineer when the space of candidate pairs is very large? ```hint Cheap signals first Separate the signals you can compute for thousands of pairs from the tests you can only afford on a short list. ``` ```hint Many comparisons When you score a large number of candidates on the same data, some will look useful by chance. Plan where the final check happens. ``` ### What a Strong Answer Covers - Why exhaustive search fails, with the number of pairs involved - Where good candidates come from: domain hypotheses and interaction rankings from a fitted tree model - A staged process that goes from cheap screening scores to cross-validated selection - Models that learn interactions implicitly, and when they are the better choice - Protection against false discoveries, plus serving cost and interpretability ### Follow-up Questions - If the final model is a gradient boosted tree, which engineered interactions can still help it, and why? - How would you find interactions among three or more features without enumerating every triple? - How do you keep the selection step from biasing the score you report? - An interaction you added loses most of its importance a month after launch. How would you investigate?

Overview: Asks how to choose interaction features to build when there are far too many feature pairs to test one by one. Tests candidate generation from domain knowledge and tree models, cheap screening, cross-validated selection, and control of false discoveries.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How would you decide which interaction features to engineer when the space of candidate pairs is very large?

What a Strong Answer Covers Guidance

  • Why exhaustive search fails, with the number of pairs involved
  • Where good candidates come from: domain hypotheses and interaction rankings from a fitted tree model
  • A staged process that goes from cheap screening scores to cross-validated selection
  • Models that learn interactions implicitly, and when they are the better choice
  • Protection against false discoveries, plus serving cost and interpretability

Follow-up Questions Guidance

  • If the final model is a gradient boosted tree, which engineered interactions can still help it, and why?
  • How would you find interactions among three or more features without enumerating every triple?
  • How do you keep the selection step from biasing the score you report?
  • An interaction you added loses most of its importance a month after launch. How would you investigate?