﻿# Label Studio pairwise exports: map the selected display object back to the model candidate

Preserve Label Studio pairwise candidate identity, display orientation and rubric context when converting side-by-side reviews into preference-training pairs.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-label-studio-pairwise-candidate-orientation/
Language: en

## Identify the objects being compared

A team evaluates answers from different model revisions and swaps their display positions across tasks. The [Pairwise tag](https://labelstud.io/tags/pairwise.html) compares named objects rather than establishing a universal left position for a particular model. Keep a task-level mapping between display objects and candidate identities. A pipeline that translates every left selection into the same model winner will reverse preferences whenever presentation order changes.

## Preserve the prompt and comparison criterion

The [side-by-side LLM template](https://labelstud.io/templates/llm_side_by_side) shows a prompt and candidate response fields bound into the comparison interface. Save the actual prompt, candidate text and rubric version with the result. The same answer can win under concision and lose under completeness. A candidate identifier alone cannot explain a preference if its generated content or the evaluation question can be replaced independently after annotation.

## Control presentation without changing identity

If the evaluation design counterbalances candidate order, construct the task mapping before annotation and retain it through export. Do not use an array position in an unrelated model list as the source of truth. Review a pilot with unmistakably different candidates in both orientations. This is a check of the data-conversion logic, not a claim that a pairwise interface automatically removes every presentation effect or guarantees unbiased human judgments.

## Inspect the actual exported control result

The [export guide](https://labelstud.io/guide/export.html) explains annotation exports and their result structure. Parse the result for the intended control and resolve the selected object through the saved candidate mapping. Keep skipped, incomplete or otherwise unresolved outcomes distinguishable according to the project's rules. They should not silently become losses for whichever candidate occupied a default position. Validate the installed configuration rather than assuming every pairwise project uses identical surrounding controls.

## Build preference pairs from preserved evidence

For each accepted result, reconstruct the preferred and alternative response and confirm that they share the intended prompt and comparison scope. The guides on [DPO preference margins](/journal/dpo-preference-log-probability-margin/) and [RLHF scoring constraints](/journal/rlhf-reward-kl-reference/) explain downstream learning context. Preference preparation should preserve the human decision actually collected. An apparently balanced winner table cannot reveal reversed candidate mappings if the export conversion consistently assigned the wrong model identity to a display slot.
