The interview problem
Explain input and target interpolation in mixup and when the interpolated examples may be inappropriate.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Choose two training examples and a mixing coefficient lambda, then interpolate both features and targets with the same coefficient. Train against the soft target using a compatible loss. Sample pairs only within a justified input representation; raw interpolation must preserve the assumptions of the task sufficiently to act as regularization. Keep validation and test examples out of augmentation generation.
2. Trace the design or derivation
Choose pair → sample coefficient → mix inputs and labels → compute soft-target loss
The convex-combination target makes the loss a corresponding weighted sum of the two class losses for ordinary cross-entropy. That algebra explains implementation without inventing a new loss function. It does not establish that every point between two examples belongs to a physically meaningful interpolated class.
3. Calculate the example
Mix feature vectors (2,0) and (0,4) with lambda=0.25 to obtain (0.5,3). If their one-hot labels are (1,0) and (0,1), the target is (0.25,0.75). Mixing features with 0.25 but labels with 0.75 would describe a different training example.
4. Failure cases and trade-offs
Interpolating categorical identifiers or incompatible modalities can produce meaningless inputs. The soft label is a training construction, not a measured population probability. Mixup can regularize boundaries but may obscure localized evidence; compare with task-appropriate augmentation at equal training budget.
5. Validation, follow-ups and self-review
Test endpoint coefficients and verify feature/target coefficient agreement. Follow-up: how does patch replacement differ from whole-input interpolation? Self-review: justify representation, pairing policy and target semantics.
Sources and related practice
Technical reference: arxiv.org — Convex interpolation of training inputs and targets.
Source publication/update: Submitted October 25, 2017; revised April 27, 2018. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Feature engineering and missing data; Calculate label-smoothed targets and their trade-offs.
Continue your preparation
Choose a connected learning path or browse more ML fundamentals questions. Read our editorial method and attribution policy.