Skip to main content

Pairwise video

Pairwise video comparison user interface

Modes​

The pairwise video experiment supports three modes which determine how the videos are arranged on the screen. In side-by-side mode, videos are presented next to each other.

Alternatively, raters can be asked to flip between conditions, in which case the two videos are placed on top of each other. This makes it easier for raters to spot differences between the two conditions being evaluated. Any reference is displayed separately next to the two conditions.

Finally, raters can be asked to flip between the reference and conditions, in which case all three videos are stacked on top of each other. This makes it easier for raters to spot differences between the conditions and the reference.

Response type​

You can control how users indicate their preferences by choosing a response type in the instructions section. If the response type is set to binary, raters are asked to choose which of two videos they prefer.

Alternatively, if the response type is continuous, raters are asked to indicate how much they prefer one video over the other using a slider.

If the response type is discrete, the slider is discretized and users can only give certain scores. By default, the scores are -2, -1, 0, 1, and 2. The scores and labels can be customized.

Multiple questions​

It is also possible to ask raters to compare videos along multiple dimensions. In the instructions section, choose "discrete" or "continuous" for the response type. You are then able configure multiple questions.

Pairwise video comparison with multiple questions

Attached surveys​

You can attach a further survey to each question. For example, to ask raters to justify their choice [1].

Pairwise video comparison with additional survey

This feature is only available via API. Example configuration:

'questions': [
{
'dimension': 'Visual quality',
'statement': 'Which video do you prefer?',
'survey': [
{
'choices': [
{
'label': 'Motion smoothness'
},
{
'label': 'Object/scene consistency'
},
{
'label': 'Pixel sharpness'
},
{
'label': 'Recognizable objects/scenes'
},
{
'label': 'Amount of motion'
}
],
'dimension': 'Justification',
'kind': 'checkbox',
'minSelect': 1,
'question': 'Which factors contributed towards making this choice?'
}
]
}
],

Options​

Video playback​

With parallel playback (the default), the videos are synchronized and play together, so raters can compare the same moment in each video. With sequential playback, each video has its own player and raters play the videos one after the other. When supplying a configuration via the API, set videoPlayer to parallel or sequential.

Show reference​

If disabled, no reference video is shown even if a reference is present in the dataset. If enabled, a reference video is shown when available in the dataset.

Hidden reference​

When enabled (the default for new experiments), the reference is included among the conditions being compared, so a pair may consist of a condition and the reference without the rater knowing which is which. This is independent of show reference, which controls whether a labeled reference is displayed alongside the pair.

Reference video scale​

Shrinks the reference video to a percentage (between 50% and 100%) of its default size, leaving more room for the two videos being compared.

Allow ties​

If enabled, an extra tie button is displayed, allowing raters to indicate that they find both videos equally preferable. This option only applies when the response type is set to binary and is ignored otherwise.

Scale to fit​

If enabled, the video is scaled to fit fully onto the screen. If this option is disabled, the video is displayed at full resolution (1 video pixel corresponds to 1 CSS pixel), but cropped.

Maximum crop size​

If the video is not scaled to fit, this option controls the crop size. The initial crop is chosen uniformly at random from all possible crops.

Allow crop refresh​

If enabled, raters can request a different random crop if they wish to see a different part of the video. Otherwise, they are shown a single random crop of the video.

Minimum play duration​

This option controls the minimum duration (in milliseconds) for which the videos must be played before raters can submit their response. With parallel playback, the videos play together, so any playback counts towards this duration. With sequential playback, each video must be played for at least this long.

Minimum display duration​

In flip-between modes, this option controls the minimum duration (in milliseconds) for which a video must be displayed before raters can switch to another video.

Mask duration​

In flip-between modes, this option allows you to briefly display a gray mask between video flips.

Audio​

Audio is enabled by default when creating an experiment in the web interface. If your videos have no audio track or you want them muted, disable this option. When supplying a configuration via the API, set hasAudio to True to enable audio.

Loop video​

If enabled, videos will automatically restart playing when they end. This can be helpful if videos are short and you want to give raters the opportunity to watch them multiple times.

Shuffle questions​

Shows the questions in a random order. Shuffling per session keeps the same order across every slate of a session, while shuffling per slate draws a new order for each slate. It only applies when multiple questions are configured. When supplying a configuration via the API, set shuffleQuestions to none, session, or slate.

Configuration via API​

Below is an example configuration to get you started when using our API to create a pairwise video experiment.

config = {
'pairwiseVideo': {
'mode': 'side-by-side',
'videoPlayer': 'parallel',
'responseType': 'discrete',
'showReference': False,
'hiddenReference': True,
'allowTie': False,
'scaleToFit': True,
'maxCropSize': 512,
'allowCropRefresh': False,
'minPlayDuration': 1000,
'minDisplayDuration': 200,
'maskDuration': 0,
'hasAudio': True,
'loopVideo': False,
'categories': [
{'score': -2, 'label': 'Strongly A'},
{'score': -1, 'label': 'Somewhat A'},
{'score': 0, 'label': 'No preference'},
{'score': 1, 'label': 'Somewhat B'},
{'score': 2, 'label': 'Strongly B'},
],
'questions': [
{
'dimension': 'Visual quality',
'statement': 'Which video has better visual quality?',
},
{
'dimension': 'Lip sync quality',
'statement': "Which avatar's mouth movements better match the spoken audio?",
},
],
'shuffleQuestions': 'session',
},
}

References​

[1] Girdhar et al. (2024). Emu Video: Factorizing Text-to-Video Generation by Explicit Image Conditioning.