Team Draft Interleaving Algorithm
THE TEAM DRAFT PROCESS
Team Draft constructs the blended result list through a round based selection process inspired by sports team drafts. In each round, both models propose their highest ranked item that has not yet been added to the blended list. A coin flip determines which model places its item first in that round. This random alternation eliminates systematic position bias.
HANDLING DUPLICATES
When both models propose the same item (which happens frequently since top results often overlap), the item is included once and marked as neutral. Neutral items receive no team credit because both models agreed on them. This focuses attribution on the items where models actually disagreed, increasing statistical power.
For example, if both models rank the same item as their #1, it goes into slot 1 as neutral. The next round, both propose their #2 ranked items, and the coin flip decides which goes to slot 2 versus slot 3.
ALGORITHM COMPLEXITY
The merge algorithm runs in O(K) time where K is the number of items in the result list (typically 10-50). It uses pointer operations rather than copying items, adding under 1 millisecond to request latency. The real computational cost is running both rankers, which can double inference time. This is mitigated by caching shared features like user embeddings and item metadata.
REQUIRED LOGGING
Every interleaved request must log: query ID, item ID, slot position, team assignment (A, B, or neutral), coin flip seed (for reproducibility), and all subsequent engagement signals (clicks, time spent, conversions). This data powers the statistical analysis that determines the winner.