Hyukkyu commited on
Commit
3b18974
·
verified ·
1 Parent(s): a5c0900

Jev false-negative judgments (judgments config)

Browse files

{
"judgments": {
"rows_in_run": 1654765,
"rows_dropped": 0,
"queries_removed": 0,
"queries_trimmed": 0,
"rows": 1654765,
"queries": 59994,
"positives": 59994,
"candidates_per_query": 26.6,
"top_up_rows": 1019886,
"judge": "typesafe/jev-1.13.0"
}
}

README.md CHANGED
@@ -22,6 +22,10 @@ configs:
22
  data_files:
23
  - split: train
24
  path: hard-negatives/train-*.parquet
 
 
 
 
25
  - config_name: qrels
26
  data_files:
27
  - split: train
@@ -48,9 +52,10 @@ A seeded sample of [`nomic-ai/cornstack-python-v1`](https://huggingface.co/datas
48
  | Qrels per query | min 1 · mean 1.0 · max 1 |
49
  | Score values | 2 ×59,994 (2: the first positive, 1: any other) |
50
  | Layout | `queries` · `corpus` · `qrels` · `hard-negatives` · `teacher-scores`, split `train` |
51
- | Splits | `corpus`: train · `hard-negatives`: train · `qrels`: train · `queries`: train · `teacher-scores`: train |
52
  | Hard negatives | sources: `dataset`, `dense` · 6,407,253 rows |
53
  | Teacher scores | `jinaai/jina-reranker-v3.5` · 6,388,624 rows (positives included) |
 
54
  | Ids | `sha1(text)[:20]`; identical texts collapse to one document / query |
55
  | License | `apache-2.0` |
56
 
@@ -63,6 +68,7 @@ A seeded sample of [`nomic-ai/cornstack-python-v1`](https://huggingface.co/datas
63
  | `qrels` | `query-id: string`, `corpus-id: string`, `score: int32` | referential integrity to both tables; no duplicate pairs; no floats |
64
  | `hard-negatives` | `query-id: string`, `corpus-id: string`, `rank: int32`, `source: string` | one row per negative; `(query-id, corpus-id, source)` unique; never a labelled positive of the same query |
65
  | `teacher-scores` | `query-id: string`, `corpus-id: string`, `teacher: string`, `score: float32` | one row per scored pair (positives included); a row *means* scored — never a placeholder |
 
66
 
67
  Files are Parquet, sorted by id, zstd-compressed, sharded at 500 MB. Every rule above is checked before publishing; `provenance.json` records the source revision, what changed, and the output file hashes.
68
 
@@ -101,6 +107,18 @@ negatives = load_dataset("Hyukkyu/train-cornstack-python", "hard-negatives", spl
101
  scores = load_dataset("Hyukkyu/train-cornstack-python", "teacher-scores", split="train")
102
  ```
103
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  ## Load it
105
 
106
  ```python
@@ -110,6 +128,7 @@ corpus = load_dataset("Hyukkyu/train-cornstack-python", "corpus", split="trai
110
  qrels = load_dataset("Hyukkyu/train-cornstack-python", "qrels", split="train")
111
  negatives = load_dataset("Hyukkyu/train-cornstack-python", "hard-negatives", split="train")
112
  scores = load_dataset("Hyukkyu/train-cornstack-python", "teacher-scores", split="train")
 
113
  ```
114
 
115
  ## License and attribution
 
22
  data_files:
23
  - split: train
24
  path: hard-negatives/train-*.parquet
25
+ - config_name: judgments
26
+ data_files:
27
+ - split: train
28
+ path: judgments/train-*.parquet
29
  - config_name: qrels
30
  data_files:
31
  - split: train
 
52
  | Qrels per query | min 1 · mean 1.0 · max 1 |
53
  | Score values | 2 ×59,994 (2: the first positive, 1: any other) |
54
  | Layout | `queries` · `corpus` · `qrels` · `hard-negatives` · `teacher-scores`, split `train` |
55
+ | Splits | `corpus`: train · `hard-negatives`: train · `judgments`: train · `qrels`: train · `queries`: train · `teacher-scores`: train |
56
  | Hard negatives | sources: `dataset`, `dense` · 6,407,253 rows |
57
  | Teacher scores | `jinaai/jina-reranker-v3.5` · 6,388,624 rows (positives included) |
58
+ | Judgments | `judgments`: `typesafe/jev-1.13.0` · 1,654,765 rows |
59
  | Ids | `sha1(text)[:20]`; identical texts collapse to one document / query |
60
  | License | `apache-2.0` |
61
 
 
68
  | `qrels` | `query-id: string`, `corpus-id: string`, `score: int32` | referential integrity to both tables; no duplicate pairs; no floats |
69
  | `hard-negatives` | `query-id: string`, `corpus-id: string`, `rank: int32`, `source: string` | one row per negative; `(query-id, corpus-id, source)` unique; never a labelled positive of the same query |
70
  | `teacher-scores` | `query-id: string`, `corpus-id: string`, `teacher: string`, `score: float32` | one row per scored pair (positives included); a row *means* scored — never a placeholder |
71
+ | `judgments` | `query-id: string`, `corpus-id: string`, `judge: string`, `role: string`, `p_yes: float64`, `round: int32` | one row per judged pair; `role` is `positive` (the training positive) or `candidate` (a mined candidate, never a labelled positive or a labelled negative); `p_yes` in [0, 1]; `round` 0 the first request, 1.. the top-ups |
72
 
73
  Files are Parquet, sorted by id, zstd-compressed, sharded at 500 MB. Every rule above is checked before publishing; `provenance.json` records the source revision, what changed, and the output file hashes.
74
 
 
107
  scores = load_dataset("Hyukkyu/train-cornstack-python", "teacher-scores", split="train")
108
  ```
109
 
110
+ ## Jev judgments
111
+
112
+ `judgments` holds, for every query of the training sample (the queries with teacher scores), whether [TypeSafe](https://typesafe.ai)'s Jev (`jev-1.13.0`) judged its training positive and its mined candidates relevant: `p_yes` is Jev's P(yes) for the source's question (e.g. *does the passage answer the query?*). They locate the false negatives among the mined candidates and the mislabelled positives.
113
+
114
+ - **Requests.** One request per query (`round` 0): its training positive, its candidates whose teacher score taken as (cos + 1) / 2 is at least 0.85 × the positive's (at most 12, the highest scores) and 4 random candidates below that, shuffled under neutral ids, one yes/no question per passage. Queries left with fewer than 10 candidates under their source's cutoff got their next hardest unjudged candidates in rounds 1–8 (8 per request), those still under 10 in rounds 9–10 (24 per request). The dataset's own labelled negatives were never sent. Texts were cut to 512 (query) and 512 (passage) tokens of the `jina-embeddings-v5` small tokenizer. Jev answers a request's passages in one context, so P(yes) is calibrated to these groups: the thresholds below apply to this table, not to single-pair calls.
115
+ - **Accuracy** (an audit of 1237 pairs from the pilot's first requests (100 queries per source; the five long-query sources re-piloted at 512-token queries), labelled blind by an LLM (Claude), at the pilot's fixed thresholds 0.35 and 0.15): a candidate at P(yes) ≥ 0.35 was relevant 67% of the time inside the band (n = 350) and 45% below it (n = 87); one under 0.35 was relevant 6% (band, n = 387) and 1% (below the band, n = 210) of the time. A positive under 0.15 was mislabelled 100% of the time (n = 20) in the sources that keep the check; in dom-casehold, dom-clerc, dom-cornstack-py, dom-finqa10k, dom-gerlayqa, dom-investopedia, dom-lawse, dom-magicoder, dom-medmcqa, dom-pubmedqa, dom-s2orc, dom-tatqa, Jev's flags were right less often (0%–57% in this audit), under the 70% the check needs, so their positives are not checked.
116
+ - **Use** (the SPARSE loader, `annotation.filter.judge`): a candidate at P(yes) ≥ its source's cutoff (below; fitted on 1,521 labelled pairs) is never a negative; a positive under 0.15 is replaced by the candidate Jev scores highest if that is ≥ 0.8, else the query is dropped; no candidate becomes an extra positive here (promotion is off for this source). Compare `p_yes` as a float64 (it is stored as one).
117
+
118
+ | config | queries | rows | candidates per query | top-up rows | candidate cutoff | positive check |
119
+ |---|---:|---:|---:|---:|---:|---|
120
+ | `judgments` | 59,994 | 1,654,765 | 26.6 | 1,019,886 | 0.15 | skipped |
121
+
122
  ## Load it
123
 
124
  ```python
 
128
  qrels = load_dataset("Hyukkyu/train-cornstack-python", "qrels", split="train")
129
  negatives = load_dataset("Hyukkyu/train-cornstack-python", "hard-negatives", split="train")
130
  scores = load_dataset("Hyukkyu/train-cornstack-python", "teacher-scores", split="train")
131
+ judgments = load_dataset("Hyukkyu/train-cornstack-python", "judgments", split="train")
132
  ```
133
 
134
  ## License and attribution
judgments/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e86c924c35f37f91328fd43f0c4a70ad96ff8f6f038627fa87a96ed800fb6e15
3
+ size 20945480