﻿# Quora duplicate questions: separate symmetric pairs from directional search

Turn Quora question-pair labels into a clearly defined retrieval evaluation, preserving identity, candidate scope and the difference between symmetric equivalence and directional ranking.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/data-guide-quora-symmetric-pair-retrieval/
Language: en

## Preserve the equivalence target

Quora's [publisher dataset description](https://www.kaggle.com/quora/question-pairs-dataset/metadata) frames the task as deciding whether differently worded questions ask the same thing, using actual question-pair data with identifiers, text and a binary duplicate label. This is narrower than shared topic or lexical similarity. A proposed diagnostic would inspect differences in requested entity, scope and condition before treating a near match as equivalent. The release does not provide the question's substantive answer as the target.

## Separate pair decisions from ranked search

A pair classifier receives a specified candidate; a retriever must locate duplicates among many questions. High accuracy on supplied pairs does not establish effective first-stage retrieval or a suitable no-match threshold. Equivalence is conceptually symmetric, yet swapping query and candidate can change a model's prompt formatting or encoder behavior. An editorial symmetry check should compare the same pair in both orientations while retaining ranking evaluation as a separate experiment.

## Identify the adapted corpus and evaluation split

The [BEIR-maintained adaptation card](https://huggingface.co/datasets/BeIR/quora/blob/main/README.md) organizes a question corpus and query records with identifiers, title and text, and lists development and test evaluation resources. Its full query-file inventory is not itself a statement that all records belong to the selected test. Name the exact revision and qrels split. A different pair-classification adaptation can use different partitions and identifiers even when all derive from Quora; do not equate those artifacts by dataset name alone.

## Remove self-matches through the identifier contract

The [BEIR evaluator](https://raw.githubusercontent.com/beir-cellar/beir/main/beir/retrieval/evaluation.py) defaults to removing results whose document identifier equals their query identifier before computing retrieval metrics. Preserve a shared identity crosswalk when converting question records. Otherwise, reassigning corpus and query IDs independently can defeat self-match exclusion. Conversely, discarding every similar text can remove a genuinely distinct duplicate question. Keep the distinction between the same question identity and another question with equivalent meaning, following [provenance practices](/journal/document-markdown-json-provenance/).

## Avoid manufacturing extra gold relationships

An observed duplicate pair does not authorize automatically marking every pair in a loosely connected similarity cluster as a new gold positive. Label noise and differences in scope can propagate through such expansion. Preserve original edges separately from any proposed inferred equivalence groups. For training/evaluation splits, inspect repeated question identities across pairs rather than only duplicate pair rows. [Grouping guidance](/journal/document-level-data-split-leakage/) helps prevent a classifier from seeing the same question during development and evaluation while appearing to use disjoint pair records.
