Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,28 +1,134 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
task_categories:
|
| 4 |
-
- question-answering
|
| 5 |
- text-retrieval
|
| 6 |
-
size_categories:
|
| 7 |
-
- 1K<n<10K
|
| 8 |
---
|
| 9 |
|
| 10 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
-
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
##
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
-
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: cc-by-sa-4.0
|
| 5 |
+
tags:
|
| 6 |
+
- retrieval
|
| 7 |
+
- text-retrieval
|
| 8 |
+
- beir
|
| 9 |
+
- physics
|
| 10 |
+
- stack-exchange
|
| 11 |
+
- duplicate-questions
|
| 12 |
+
- community-question-answering
|
| 13 |
+
- benchmark
|
| 14 |
+
pretty_name: BEIR CQADupStack Physics (retrieval)
|
| 15 |
+
size_categories: 1K<n<10K
|
| 16 |
task_categories:
|
|
|
|
| 17 |
- text-retrieval
|
|
|
|
|
|
|
| 18 |
---
|
| 19 |
|
| 20 |
+
# CQADupStack — Physics (BEIR)
|
| 21 |
+
|
| 22 |
+
## Dataset description
|
| 23 |
+
|
| 24 |
+
**CQADupStack** is a benchmark for **community question answering (cQA)** research built from multiple **Stack Exchange** forums. Each subforum is distributed as a separate “stack” with posts, metadata, and **duplicate-question** annotations. The **Physics** stack draws from **Physics Stack Exchange**—short to medium-length questions and answers about concepts, experiments, and problem solving in physics.
|
| 25 |
+
|
| 26 |
+
**BEIR** (*Benchmarking IR*) incorporated selected CQADupStack forums—including **physics**—into a unified **zero-shot** **information retrieval** benchmark. In the BEIR formulation, the task is **ad hoc retrieval**: given a **query** (a question post), a system must rank **corpus documents** (other question posts) so that posts marked as **duplicates** or **relevant** in the official judgments appear at the top.
|
| 27 |
+
|
| 28 |
+
This repository (`orgrctera/beir_cqadupstack_physics`) exposes the **BEIR CQADupStack / physics** split in **Parquet** form for retrieval evaluation pipelines (aligned with CTERA-style **query + qrels** rows). The Hub snapshot corresponds to the **test** retrieval setting: **1,039** query rows (one per evaluation query).
|
| 29 |
+
|
| 30 |
+
### Background: duplicate-question retrieval
|
| 31 |
+
|
| 32 |
+
The original CQADupStack resource was introduced to support research on **finding duplicate or near-duplicate questions** in large cQA archives—a core retrieval problem for forums that want to link users to existing threads. BEIR repurposes the annotated relationships as **qrels** (query–relevance labels) over a document collection of question posts, enabling standard IR metrics (nDCG, Recall@k, MRR, etc.) alongside other heterogeneous BEIR tasks.
|
| 33 |
+
|
| 34 |
+
### Scale (Physics subset, BEIR / standard mirrors)
|
| 35 |
+
|
| 36 |
+
Reported statistics for the **test** split of CQADupStack Physics in retrieval benchmarks are on the order of:
|
| 37 |
+
|
| 38 |
+
| Aspect | Approximate scale |
|
| 39 |
+
|--------|-------------------|
|
| 40 |
+
| **Queries** | ~1,039 (unique evaluation queries) |
|
| 41 |
+
| **Corpus documents** | ~38k question posts (document collection to index) |
|
| 42 |
+
| **Qrels** | ~1.9k judged relevant pairs total; ~1.86 relevant documents per query on average (min 1, max can be large for highly duplicated threads) |
|
| 43 |
+
|
| 44 |
+
Exact counts should be verified against the specific BEIR export you pair with this file (corpus + qrels version).
|
| 45 |
+
|
| 46 |
+
## Task: retrieval (CQADupStack Physics)
|
| 47 |
+
|
| 48 |
+
This dataset defines a **text retrieval** task for the **Physics** slice of CQADupStack under BEIR:
|
| 49 |
+
|
| 50 |
+
1. **Input:** a natural-language **question** (the query text).
|
| 51 |
+
2. **Output:** a ranked list of **document IDs** from the Physics corpus (or scores over the full collection), such that **relevant** IDs—per official **qrels**—receive high rank.
|
| 52 |
+
|
| 53 |
+
Evaluation uses standard **information retrieval** metrics. Full benchmarking also requires the **corpus** (passage or document text keyed by the same IDs as in BEIR).
|
| 54 |
+
|
| 55 |
+
> **Note:** Rows in this repository describe the **query + relevance judgments** side. Combine them with the **BEIR CQADupStack physics corpus** from the same release for end-to-end retrieval experiments.
|
| 56 |
+
|
| 57 |
+
## Data format (this repository)
|
| 58 |
+
|
| 59 |
+
Each record typically includes:
|
| 60 |
+
|
| 61 |
+
| Field | Description |
|
| 62 |
+
|--------|-------------|
|
| 63 |
+
| `id` | UUID for this example row. |
|
| 64 |
+
| `input` | The **query text** (Physics Stack Exchange–style question). |
|
| 65 |
+
| `expected_output` | JSON string: list of objects `{"id": "<corpus-doc-id>", "score": <relevance>}`. Scores follow BEIR qrels conventions (e.g., relevance grades as released upstream). |
|
| 66 |
+
| `metadata.query_id` | Original BEIR / CQADupStack query identifier (string). |
|
| 67 |
+
| `metadata.split` | Split name (here: **`test`** for the exported BEIR evaluation split). |
|
| 68 |
|
| 69 |
+
### Example 1
|
| 70 |
|
| 71 |
+
```json
|
| 72 |
+
{
|
| 73 |
+
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
| 74 |
+
"input": "Why does the sky appear blue during the day but red at sunset?",
|
| 75 |
+
"expected_output": "[{\"id\": \"12345\", \"score\": 1}, {\"id\": \"67890\", \"score\": 1}]",
|
| 76 |
+
"metadata.query_id": "42",
|
| 77 |
+
"metadata.split": "test"
|
| 78 |
+
}
|
| 79 |
+
```
|
| 80 |
|
| 81 |
+
### Example 2
|
| 82 |
|
| 83 |
+
```json
|
| 84 |
+
{
|
| 85 |
+
"id": "f0e1d2c3-b4a5-6978-9012-3456789abcde",
|
| 86 |
+
"input": "How is the Higgs boson related to the mechanism that gives mass to elementary particles?",
|
| 87 |
+
"expected_output": "[{\"id\": \"24680\", \"score\": 1}]",
|
| 88 |
+
"metadata.query_id": "108",
|
| 89 |
+
"metadata.split": "test"
|
| 90 |
+
}
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
*(Example IDs and query text are illustrative; real `query_id` and document IDs match the BEIR physics export.)*
|
| 94 |
+
|
| 95 |
+
## References
|
| 96 |
+
|
| 97 |
+
### CQADupStack (original dataset)
|
| 98 |
+
|
| 99 |
+
**Doris Hoogeveen, Karin M. Verspoor, Timothy Baldwin**
|
| 100 |
+
*CQADupStack: A Benchmark Data Set for Community Question-Answering Research*
|
| 101 |
+
Proceedings of the 20th Australasian Document Computing Symposium (**ADCS 2015**), Parramatta, Australia.
|
| 102 |
+
|
| 103 |
+
The paper presents CQADupStack as a multi-forum Stack Exchange resource with duplicate annotations and predefined splits, intended to make cQA and duplicate-detection experiments comparable across studies.
|
| 104 |
+
|
| 105 |
+
- DOI: [10.1145/2838931.2838934](https://doi.org/10.1145/2838931.2838934)
|
| 106 |
+
- Resource page (historical): [nlp.cis.unimelb.edu.au/resources/cqadupstack/](http://nlp.cis.unimelb.edu.au/resources/cqadupstack/)
|
| 107 |
+
|
| 108 |
+
### BEIR benchmark (CQADupStack as a retrieval task)
|
| 109 |
+
|
| 110 |
+
**Nandan Thakur, Nils Reimers, Andreas Rücklé, Abhishek Srivastava, Iryna Gurevych**
|
| 111 |
+
*BEIR: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models*
|
| 112 |
+
NeurIPS 2021 (Datasets and Benchmarks Track).
|
| 113 |
+
|
| 114 |
+
**Abstract (from arXiv):** *“Existing neural information retrieval (IR) models have often been studied in homogeneous and narrow settings, which has considerably limited insights into their out-of-distribution (OOD) generalization capabilities. To address this, and to facilitate researchers to broadly evaluate the effectiveness of their models, we introduce Benchmarking-IR (BEIR), a robust and heterogeneous evaluation benchmark for information retrieval. We leverage a careful selection of 18 publicly available datasets from diverse text retrieval tasks and domains and evaluate 10 state-of-the-art retrieval systems including lexical, sparse, dense, late-interaction and re-ranking architectures on the BEIR benchmark. Our results show BM25 is a robust baseline and re-ranking and late-interaction-based models on average achieve the best zero-shot performances, however, at high computational costs. In contrast, dense and sparse-retrieval models are computationally more efficient but often underperform other approaches, highlighting the considerable room for improvement in their generalization capabilities.”*
|
| 115 |
+
|
| 116 |
+
- Paper: [arXiv:2104.08663](https://arxiv.org/abs/2104.08663)
|
| 117 |
+
- OpenReview: [openreview.net/forum?id=wCu6T5xFjeJ](https://openreview.net/forum?id=wCu6T5xFjeJ)
|
| 118 |
+
- Code and data: [github.com/beir-cellar/beir](https://github.com/beir-cellar/beir)
|
| 119 |
+
|
| 120 |
+
### Related Hub resources
|
| 121 |
+
|
| 122 |
+
- Raw BEIR-style dataset layouts on Hugging Face (corpus / queries / qrels), e.g. community mirrors under **`BeIR/`** or **`irds/beir_*`** collections—search for CQADupStack physics in the dataset hub to match your tooling.
|
| 123 |
+
|
| 124 |
+
## Citation
|
| 125 |
+
|
| 126 |
+
If you use **CQADupStack**, cite the ADCS 2015 paper above. If you use the **BEIR** packaging and evaluation protocol, cite the BEIR NeurIPS 2021 paper. BibTeX for BEIR is available from the [official BEIR repository](https://github.com/beir-cellar/beir).
|
| 127 |
+
|
| 128 |
+
## License
|
| 129 |
+
|
| 130 |
+
Stack Exchange content is typically distributed under **Creative Commons** terms (commonly **CC BY-SA**). This card uses **`cc-by-sa-4.0`** as a conventional label for Stack Exchange–derived text; confirm against your exact data snapshot and [Stack Exchange’s content policy](https://stackoverflow.com/legal/terms-of-service) for compliance-sensitive deployments.
|
| 131 |
+
|
| 132 |
+
---
|
| 133 |
|
| 134 |
+
*Dataset card for `orgrctera/beir_cqadupstack_physics` — BEIR CQADupStack Physics retrieval split.*
|