1. Definition

  • Balanced Interleaving is an online evaluation method that compares two ranking algorithms (say, Algorithm A vs Algorithm B) by interleaving (mixing) their results into a single combined ranking list, then showing it to users.
  • As users interact (click, engage), their behavior provides feedback on which algorithm produced better results.

It’s designed to reduce bias and ensure each algorithm has a fair chance to contribute items to the final ranked list.


2. Why It’s Used

  • Traditional A/B testing splits traffic between algorithms (half see A, half see B). This requires large sample sizes and may take a long time.
  • Interleaving allows both algorithms to be tested within the same session, making comparisons faster and more sensitive.

3. How Balanced Interleaving Works

  1. Take the top-k ranked items from Algorithm A and Algorithm B.
  2. Build a new interleaved list by alternating contributions:
    • Pick first from A, then from B, then from A, etc.
  3. Ensure the interleaving is balanced: both algorithms contribute equally to the final list, and order doesn’t unfairly favor one.
  4. Show this combined list to the user.
  5. Attribute each click to the algorithm that contributed that item.
  6. Compare which algorithm receives more credited clicks → that algorithm is better.

4. Example

Suppose we have two ranking algorithms producing search results:

  • Algorithm A: [A1, A2, A3, A4]
  • Algorithm B: [B1, B2, B3, B4]

Balanced Interleaving result (alternating fairly):

  • Final list = [A1, B1, A2, B2, A3, B3, A4, B4]

User clicks on A1, B2, A3 → these clicks are attributed back to the respective algorithms.

  • Score: Algorithm A = 2 clicks, Algorithm B = 1 click → Algorithm A wins.

5. Advantages

  • Efficient: Detects differences with fewer user interactions than A/B tests.
  • Fair: Ensures equal representation of both algorithms in the ranking list.
  • Sensitive: Small performance differences can be spotted quickly.

6. Limitations

  • Works best when comparing two algorithms at a time (not scalable to many).
  • Assumes clicks are a good proxy for relevance (may be noisy).
  • Requires careful balancing to avoid order bias (position bias in rankings).

7. Related Methods

  • Team Draft Interleaving (TDI): Another interleaving method, uses a “draft pick” style assignment to balance fairness.
  • Probabilistic Interleaving: Assigns items probabilistically to reduce bias further.
  • A/B Testing: Simpler, but slower and less sensitive for ranking comparisons.

In short:
Balanced Interleaving is a method for comparing two ranking algorithms by fairly mixing their results into one list and attributing user interactions (like clicks) back to each algorithm. It’s faster and more sensitive than A/B testing for ranking tasks.