yilunzhao commited on
Commit
dbdc22b
·
verified ·
1 Parent(s): 4f2fa15

Initial upload: 7 SE tasks × 3 configs (examples/aspects/documents) as parquet

Browse files
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Yale NLP
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - text-retrieval
7
+ tags:
8
+ - information-retrieval
9
+ - reasoning
10
+ - benchmark
11
+ - bright
12
+ size_categories:
13
+ - 100K<n<1M
14
+ pretty_name: Bright-Pro
15
+ configs:
16
+ - config_name: examples
17
+ data_files:
18
+ - split: biology
19
+ path: examples/biology.parquet
20
+ - split: earth_science
21
+ path: examples/earth_science.parquet
22
+ - split: economics
23
+ path: examples/economics.parquet
24
+ - split: psychology
25
+ path: examples/psychology.parquet
26
+ - split: robotics
27
+ path: examples/robotics.parquet
28
+ - split: stackoverflow
29
+ path: examples/stackoverflow.parquet
30
+ - split: sustainable_living
31
+ path: examples/sustainable_living.parquet
32
+ - config_name: aspects
33
+ data_files:
34
+ - split: biology
35
+ path: aspects/biology.parquet
36
+ - split: earth_science
37
+ path: aspects/earth_science.parquet
38
+ - split: economics
39
+ path: aspects/economics.parquet
40
+ - split: psychology
41
+ path: aspects/psychology.parquet
42
+ - split: robotics
43
+ path: aspects/robotics.parquet
44
+ - split: stackoverflow
45
+ path: aspects/stackoverflow.parquet
46
+ - split: sustainable_living
47
+ path: aspects/sustainable_living.parquet
48
+ - config_name: documents
49
+ data_files:
50
+ - split: biology
51
+ path: documents/biology.parquet
52
+ - split: earth_science
53
+ path: documents/earth_science.parquet
54
+ - split: economics
55
+ path: documents/economics.parquet
56
+ - split: psychology
57
+ path: documents/psychology.parquet
58
+ - split: robotics
59
+ path: documents/robotics.parquet
60
+ - split: stackoverflow
61
+ path: documents/stackoverflow.parquet
62
+ - split: sustainable_living
63
+ path: documents/sustainable_living.parquet
64
+ ---
65
+
66
+ # Bright-Pro
67
+
68
+ **Bright-Pro** is an expert-annotated extension of the [BRIGHT](https://huggingface.co/datasets/xlangai/BRIGHT) benchmark for *reasoning-intensive retrieval*. Each query is paired with a multi-aspect reasoning decomposition, weighted importance scores per aspect, and a curated set of gold passages organized by aspect — enabling fine-grained analysis of whether a retriever covers the **complementary reasoning aspects** required to answer a query, rather than just surfacing one relevant passage.
69
+
70
+ Bright-Pro builds on the seven StackExchange subsets of BRIGHT. Annotators (1) decomposed each query's information need into reasoning aspects, (2) assigned an importance weight (Likert 1–3) to each aspect, (3) re-audited and consolidated BRIGHT's original positives, (4) collected new aspect-grounded positives, and (5) had a second annotator from the same field re-examine the result.
71
+
72
+ ## Subsets and statistics
73
+
74
+ Bright-Pro covers **739 queries** across **7 StackExchange domains** with **2,763 reasoning aspects** and **5,272 gold passages** drawn from a unified corpus of **526,319 documents**.
75
+
76
+ | Task | Queries | Aspects | Gold docs | Corpus docs |
77
+ |---|---:|---:|---:|---:|
78
+ | biology | 103 | 406 | 804 | 59,513 |
79
+ | earth_science | 115 | 440 | 856 | 123,575 |
80
+ | economics | 99 | 367 | 773 | 52,240 |
81
+ | psychology | 100 | 384 | 707 | 54,741 |
82
+ | robotics | 101 | 375 | 623 | 63,920 |
83
+ | stackoverflow | 115 | 382 | 529 | 109,188 |
84
+ | sustainable_living | 106 | 409 | 980 | 63,142 |
85
+ | **Total** | **739** | **2,763** | **5,272** | **526,319** |
86
+
87
+ ## Configurations
88
+
89
+ Bright-Pro has three configurations. Each configuration has 7 splits, one per StackExchange domain.
90
+
91
+ ### `examples` — query-level annotations
92
+
93
+ | Field | Type | Description |
94
+ |---|---|---|
95
+ | `id` | int | Per-task query id |
96
+ | `query` | string | Natural-language query (verbatim from BRIGHT StackExchange) |
97
+ | `gold_ids` | list[string] | All positive document ids for this query (from any aspect) |
98
+ | `reference_answer` | string | Reference long-form answer synthesized from the aspects, with `[doc_N]` citations to gold docs |
99
+
100
+ ### `aspects` — reasoning-aspect annotations
101
+
102
+ | Field | Type | Description |
103
+ |---|---|---|
104
+ | `id` | string | Aspect id, of the form `{task}-{qid}-a{k}` |
105
+ | `content` | string | Natural-language description of the reasoning aspect |
106
+ | `weight` | int | **Raw Likert weight ∈ {1, 2, 3}** (1 = minor, 2 = important, 3 = critical). Normalize per query via `weight / Σ_a weight` to get probabilities summing to 1 |
107
+ | `supporting_docs` | list[string] | Document ids that support this aspect (the inverse of a doc → aspect map) |
108
+
109
+ ### `documents` — corpus
110
+
111
+ | Field | Type | Description |
112
+ |---|---|---|
113
+ | `id` | string | Document id, of the form `{task}-{qid}/extraction_{k}.txt` |
114
+ | `content` | string | Document text (cleaned and segmented) |
115
+
116
+ ## Quick start
117
+
118
+ ```python
119
+ from datasets import load_dataset
120
+
121
+ # Per-task loading (any of the 7 SE domains)
122
+ examples = load_dataset("yale-nlp/Bright-Pro", "examples", split="biology")
123
+ aspects = load_dataset("yale-nlp/Bright-Pro", "aspects", split="biology")
124
+ docs = load_dataset("yale-nlp/Bright-Pro", "documents", split="biology")
125
+
126
+ print(examples[0]["query"])
127
+ print(aspects[0]["content"], aspects[0]["weight"])
128
+ print(docs[0]["content"][:200])
129
+ ```
130
+
131
+ To recover the per-query aspect weights as probabilities (Σ = 1):
132
+
133
+ ```python
134
+ from collections import defaultdict
135
+
136
+ raw_sum = defaultdict(float)
137
+ for a in aspects:
138
+ qstem = a["id"].rsplit("-a", 1)[0] # e.g. "biology-0"
139
+ raw_sum[qstem] += a["weight"]
140
+
141
+ aspect_weight = {a["id"]: a["weight"] / raw_sum[a["id"].rsplit("-a", 1)[0]] for a in aspects}
142
+ ```
143
+
144
+ To build the inverse `doc_id → aspect_id` map for a task:
145
+
146
+ ```python
147
+ doc_to_aspect = {}
148
+ for a in aspects:
149
+ for d in a["supporting_docs"]:
150
+ doc_to_aspect[d] = a["id"]
151
+ ```
152
+
153
+ ## Evaluation
154
+
155
+ Bright-Pro supports two complementary evaluation regimes:
156
+
157
+ 1. **Static retrieval.** A retriever ranks the per-task corpus once. Primary metric: **α-nDCG@k** (with α = 0.5) over the aspect-weighted gold set, complemented by Aspect-Recall@k, NDCG@k, and Recall@k. The metric rewards covering complementary aspects rather than over-retrieving from a single one.
158
+
159
+ 2. **Agentic retrieval.** A retriever is plugged into an LLM agent that iteratively issues search queries and synthesizes a final answer. The agent loop is evaluated under two protocols:
160
+ - **Fixed-round** (R ∈ {1, 2, 3} rounds, top-5 per round) — measures retriever quality under matched interaction budgets via cumulative α-nDCG@5R, reasoning completeness, and overall answer quality.
161
+ - **Adaptive-round** — the agent decides when to stop. Measures both answer quality and interaction efficiency via the **Efficiency-Quality Reward (AER)** = OQ × exp(−γ (R−1)), with γ = 0.05.
162
+
163
+ Reasoning completeness and overall quality are rated by an LLM-as-Judge against a reference answer constructed from the annotated aspects and their supporting passages.
164
+
165
+ ## Differences from BRIGHT
166
+
167
+ Bright-Pro keeps BRIGHT's *queries* and *corpus URLs* but extends the gold-side annotation:
168
+
169
+ - **Aspects.** Each query is decomposed into 2–6 reasoning aspects with Likert importance weights (BRIGHT has no aspect annotation).
170
+ - **Aspect-grounded gold.** Original BRIGHT positives are re-audited (some discarded as topic-only), and new aspect-relevant passages are collected from the live web. Each gold passage is tied to exactly one aspect.
171
+ - **Reference answers.** Each query has a reference long-form answer with citations to gold docs, used to drive the LLM-as-Judge evaluation.
172
+ - **Scope.** Bright-Pro covers only the 7 StackExchange domains of BRIGHT — the Coding (LeetCode, Pony) and Theorem (AOPS, TheoremQA) subsets are excluded because they rely on syntactic or formal-logic matching rather than open-domain natural-language reasoning.
173
+
174
+ ## License
175
+
176
+ Released under the [MIT License](LICENSE). The underlying StackExchange queries and the BRIGHT corpus retain their original licenses; consult the [BRIGHT dataset card](https://huggingface.co/datasets/xlangai/BRIGHT) for upstream attribution.
aspects/biology.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b40522cb4842931282b9be23e2ec53d8632696f103c4261a9e8989e6855b371e
3
+ size 36340
aspects/earth_science.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d35d2194ae53aba158080f0f518e7315626c9f8eceb8cd4d7509eca07574d1a3
3
+ size 38972
aspects/economics.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:795552457c1e5ba7dc573f748ad0ce5ec52f3e54f35c6d2a53849fddb5a7ec34
3
+ size 32992
aspects/psychology.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ef6e8e38013ea73697153ad3aee1fc8ad7a90cebb2964daea2fa54939f55a2b
3
+ size 33718
aspects/robotics.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1f47cd5922b7a9c1938098e171b3abe1a53542bee0b0c4a2bbc682e9c32e7e1
3
+ size 30355
aspects/stackoverflow.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:345352a89387d8376c2d56177352b26ea0abd6bb744dd2631a87cf5c35789475
3
+ size 30732
aspects/sustainable_living.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ad531ea970597069007afe49166dfd5bcdab5e95592b859cbaf50e4668b8724
3
+ size 37406
documents/biology.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d532904d7bc2480ba5655f53f1a8427f7755992fb53e5c10e5a475f314764fd
3
+ size 11182439
documents/earth_science.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c38d5f6765595edf806c30f0f0d776bd26d96842b90d3ea648799bdadb65c666
3
+ size 19451064
documents/economics.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11c59064b305142f871f71a5d722209bce2c465f891c95b52c905f286db8f3af
3
+ size 11542562
documents/psychology.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e76eff1579c6a57c3439b7dc72280c4a9d5a097415be33de8f9c9b7ec9bd964
3
+ size 11806925
documents/robotics.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa6447c8d602054528432887d347ddd46660a2dea5cb62eba047a4db0612d25e
3
+ size 8675305
documents/stackoverflow.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:228d4e1ba911f3e6dece9d21998ecca64400f3654a9a9edd2ec226dbbd34a80d
3
+ size 25186370
documents/sustainable_living.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0650f317189c60fd514c90ca22bf5c76a3329ad387f7cbe0c4f31b5a0ddab05f
3
+ size 12540715
examples/biology.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8a091dd9d8ed1a777e3c58fc4718c7ea2317cced45581494ea53615f376960e
3
+ size 124390
examples/earth_science.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9cba0424295223a6e1b6cc4d8526bfd48a39c480fe53e3a52d21f768fb1d1301
3
+ size 134665
examples/economics.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b28147d184bf785501e64104618e7805f1ac1f2c2af4e68f87ef2942910373ef
3
+ size 139089
examples/psychology.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:548972c16d9f2b4bba2153a72e06abbe5adad157dbded7263a659c326592f295
3
+ size 138454
examples/robotics.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d430a438fae5b60d7b7d74764ac137f8cd109e51cb355b0514789d86e65c6a1
3
+ size 149169
examples/stackoverflow.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd6c1a2fdcd9fc24298f51fda9d3ff674954ebd5e4c73bf428895ed8a4eb1c2b
3
+ size 147842
examples/sustainable_living.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b046d5257e71f3783c7a137a3c5ee1ff82334359695421a8ffa87a046ef64b8e
3
+ size 154662