Probability interview question

Probability & MathProbabilityFine-Tuningmedium

A bank fine-tunes a multilingual support assistant on a corpus that is 90% English and 10% Turkish by tokens. Following common multilingual practice, it samples training data from each language with probability pᵢ ∝ nᵢ^α, using α = 0.5, where nᵢ is the language's share of the corpus. What sampling mix results, and what does it do to the Turkish data?

  1. A75% English and 25% Turkish, since √0.9 : √0.1 = 3 : 1; Turkish is sampled 2.5 times as often as its natural share, so its examples repeat more often and can be overfitted.
  2. B50% English and 50% Turkish, since α = 0.5 gives each of the two languages half of the samples; Turkish is upsampled fivefold, so its examples repeat often and can be overfitted.
  3. C70% English and 30% Turkish, since α = 0.5 sits halfway between the natural 90/10 mix and a uniform 50/50 mix; Turkish is upsampled threefold relative to its natural share.
  4. D95% English and 5% Turkish, since raising shares to a power below 1 sharpens the distribution toward the larger source; Turkish is downsampled to protect English quality.
Show the answer and explanation

Correct answer: A, 75% English and 25% Turkish, since √0.9 : √0.1 = 3 : 1; Turkish is sampled 2.5 times as often as its natural share, so its examples repeat more often and can be overfitted.

Explanation Probability

Exponent (temperature) sampling reweights data sources by pᵢ = nᵢ^α / Σⱼ nⱼ^α. With α = 1 you sample in proportion to the data; with α = 0 every source is equally likely; values in between flatten the mix toward uniform without going all the way. (It is often written as a temperature T = 1/α.)

Here √0.9 ≈ 0.949 and √0.1 ≈ 0.316, a ratio of exactly 3 : 1, so the mix is 75% English / 25% Turkish. Turkish goes from 10% to 25% of the samples, an upsampling factor of 2.5, while English is sampled at 0.75 / 0.9 ≈ 0.83 times its natural rate.

αEnglishTurkish
1 (natural)90%10%
0.782%18%
0.575%25%
0.366%34%
0 (uniform)50%50%

Why the other answers fail: α = 0.5 is not "half each"; 50/50 only appears at α = 0. The exponent works on ratios, not by linear interpolation, so the mix is not the midpoint 70/30. And powers below 1 shrink the ratio between large and small shares (9 : 1 becomes 3 : 1), so they flatten the distribution rather than sharpen it.

The trade-off: the low-resource language gets more training signal, but for a fixed token budget its examples are repeated more often, which risks memorisation, while the large language is slightly undertrained. Multilingual pre-training runs such as XLM-R and mT5 used α ≈ 0.3.

Interview tip: describe α as a knob between natural and uniform mixing, and check per-language validation loss for overfitting on the upsampled sources.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Probability & Math questions

  1. A churn network maps four features x ∈ ℝ⁴ through a = W₁x + b₁ (W₁ is 3 × 4), h = ReLU(a) and z = W₂h + b₂ (W₂ is 2 × 3). Writing the Jacobian with entry (i,…
  2. Each week a loyalty-app user is either Engaged or Idle. An Engaged user becomes Idle the next week with probability 0.10, and an Idle user becomes Engaged…
  3. In RLHF you need the gradient of J(θ) = E[R(y)], where y is a token sequence sampled from the policy LLM π_θ and R is a reward model's score treated as a…
  4. What is the difference between independent events and mutually exclusive events?
  5. What is the dot product of the vectors [1, 2, 3] and [4, 5, 6]?