When is geometric averaging preferred over arithmetic averaging in an ensemble?

Quick Overview

Asks when an ensemble should combine predicted class probabilities with a geometric mean instead of the usual arithmetic mean. Tests understanding of log-space averaging, how a single dissenting model affects each rule, links to logit averaging and dropout, and how to choose between them.

When is geometric averaging preferred over arithmetic averaging in an ensemble?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

When is geometric averaging preferred over arithmetic averaging in an ensemble? Assume every model in the ensemble outputs a probability distribution over the same set of classes, and the outputs are combined per example. ```hint One model says almost zero Compare what each rule does to the ensemble's probability for a class when a single model assigns that class a probability near zero. ``` ```hint Move to log space Rewrite the geometric mean in terms of log-probabilities. What familiar operation on neural-network outputs does it turn into? ``` ### What a Strong Answer Covers - How each combination rule is computed, including the renormalization the geometric mean needs - How the two rules differ in sharpness and in how much one dissenting model can move the result - The situations that favor the geometric mean, and why - The situations that favor the arithmetic mean, and why - Practical details such as clipping before taking logs and choosing between the rules on validation data ### Follow-up Questions - Show that averaging logits before the softmax gives the same result as the normalized geometric mean of the softmax outputs. - How would you add per-model weights to each rule, and how would you fit them? - How does calibration interact with the choice? Would you calibrate the members before combining, or the ensemble after? - Why does scaling the weights at test time in dropout approximate a geometric mean over subnetworks?

Overview: Asks when an ensemble should combine predicted class probabilities with a geometric mean instead of the usual arithmetic mean. Tests understanding of log-space averaging, how a single dissenting model affects each rule, links to logit averaging and dropout, and how to choose between them.

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

When is geometric averaging preferred over arithmetic averaging in an ensemble?

Assume every model in the ensemble outputs a probability distribution over the same set of classes, and the outputs are combined per example.

What a Strong Answer Covers Guidance

  • How each combination rule is computed, including the renormalization the geometric mean needs
  • How the two rules differ in sharpness and in how much one dissenting model can move the result
  • The situations that favor the geometric mean, and why
  • The situations that favor the arithmetic mean, and why
  • Practical details such as clipping before taking logs and choosing between the rules on validation data

Follow-up Questions Guidance

  • Show that averaging logits before the softmax gives the same result as the normalized geometric mean of the softmax outputs.
  • How would you add per-model weights to each rule, and how would you fit them?
  • How does calibration interact with the choice? Would you calibrate the members before combining, or the ensemble after?
  • Why does scaling the weights at test time in dropout approximate a geometric mean over subnetworks?