Datasets:
Add data and README
Browse filesFiles changed (8)
57 unmodified lines58596057 unmodified lines# Video files - compressed*.mp4 filter=lfs diff=lfs merge=lfs -text*.webm filter=lfs diff=lfs merge=lfs -text57 unmodified lines585960616263646557 unmodified lines# Video files - compressed*.mp4 filter=lfs diff=lfs merge=lfs -text*.webm filter=lfs diff=lfs merge=lfs -textopenvocab_train_v3_qwen.jsonl filter=lfs diff=lfs merge=lfs -textopenvocab_train_v3_medgemma.jsonl filter=lfs diff=lfs merge=lfs -textopenvocab_train_v4_qwen.jsonl filter=lfs diff=lfs merge=lfs -textopenvocab_train_v4_rejected.jsonl filter=lfs diff=lfs merge=lfs -textopenvocab_train_v4_all.jsonl filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667---license: otherlanguage: [en]tags: [ner, chain-of-thought, distillation, sft, open-vocabulary]pretty_name: UniversalMedNER – open-vocabulary SFT data---
# UniversalMedNER – open-vocabulary SFT data
Training sets for fine-tuning Qwen3 (thinking mode) on **open-vocabulary NER**:the entity types to extract are given in the prompt, and the target is theoriginal Pile-NER annotation. Built from Pile-NER rows that have a teacherChain-of-Thought (Qwen3-32B, open-schema), filtered by a jury of three LLMjudges (see `universalmedner/jury`).
## Format
One JSON object per line: `{"id", "messages", "meta"}`.
- **system + user**: exactly the prompt the baseline receives at evaluation time (same text as `universalmedner/bioner-eval-subset`), with the list of `ENTITY TYPES` to extract.- **assistant**: `<think>\n{teacher reasoning}\n</think>\n\n{JSON}`, where the JSON has one key per requested type and the Pile-NER gold spans (de-duplicated per type) as values; absent types are answered with `[]`.- **meta**: agreement between the teacher reasoning and the gold that now follows it (`n_gold_spans`, `gold_in_teacher_entities`, `gold_rejected_by_teacher`, `gold_mentioned_in_reasoning`, `teacher_entities_not_in_gold`, `reasoning_mentions_old_format`, `reasoning_source`).
The teacher reasoning was generated for the *open-schema* task, so it does notalways agree with the gold: on the 6,895 jury-accepted rows, the teacherexplicitly rejects a gold entity in 41.5% of the examples and 30.4% of thetraces discuss the old output format.
## Files (one change at a time)
| File | Rows | What changes ||---|---|---|| `openvocab_train_v3_qwen.jsonl` | 3,131 | Jury-accepted rows; removes examples whose reasoning rejects a gold entity or discusses the old output format; each prompt adds 2 absent "distractor" types (answered `[]`); a few examples request no present type. || `openvocab_train_v3_medgemma.jsonl` | 3,131 | Same examples as v3, in MedGemma's reasoning format (`<unused94>thought … <unused95>`). || `openvocab_train_v4_qwen.jsonl` | 3,131 | v3, but each example requests only a random non-empty **subset** of the types present (with v3 the model put every entity it found under whatever type was requested, e.g. genes as `DISEASE` on NCBI). || `openvocab_train_v4_labelonly.jsonl` | 3,131 | Identical to v4 with an **empty** `<think>` block: the control that isolates the effect of the reasoning. || `openvocab_train_v4_rejected.jsonl` | 3,131 | v4 recipe applied to CoTs **rejected** by the jury (same size as v4). || `openvocab_train_v4_all.jsonl` | 10,901 | v4 recipe on **all** usable CoTs, without the jury (3,131 accepted + 7,770 rejected). |
No file contains rows of the in-domain test set `universalmedner/pilener-eval-subset`.
## Main results (F1 type-agnostic, mean over the 9 biomedical benchmarks / Pile-NER test)
| Model | Biomedical | Pile-NER ||---|---|---|| Qwen3-4B base (thinking) | **0.602** | 0.573 || Qwen3-4B SFT v4 | 0.535 | 0.608 || Qwen3-4B SFT v4 label-only | 0.500 | **0.645** || Qwen3-1.7B base (thinking) | **0.557** | 0.492 || Qwen3-1.7B SFT v4 | 0.487 | 0.567 || Qwen3-1.7B SFT v4, 1 epoch | 0.510 | 0.550 || Qwen3-1.7B SFT v4 rejected | 0.446 | 0.598 || Qwen3-1.7B SFT v4 all | 0.484 | **0.621** |
Training: LoRA r=16, alpha=32, lr 1e-4, 2 epochs (unless noted), loss on theassistant turn only.
Derived from [Pile-NER](https://huggingface.co/datasets/Universal-NER/Pile-NER-type):check its license before reuse beyond this project.123version https://git-lfs.github.com/spec/v1oid sha256:559fd0c2c6d8dce18a998414007a58d570445d432c8619e066b8375e9a9e1e67size 13949394123version https://git-lfs.github.com/spec/v1oid sha256:f9f923440a93382034d974abd2fafad64ecafd00d1ab356058bb0ebe35f4c68dsize 13930608123version https://git-lfs.github.com/spec/v1oid sha256:eaae0cf82ba04c37e4592e10234757ed4e443a25d1bbaae5bbfb9e625ae27ebasize 47494883123version https://git-lfs.github.com/spec/v1oid sha256:23d810ff2d434a93047459a3c9d70a37213bf1effc9fc8ee7a3034b9277d93e7size 13696642123version https://git-lfs.github.com/spec/v1oid sha256:98e55e9ecd922dc8cf07057dec25471a40b72ef8bd0c08c8562998d949d000ffsize 13674769.gitattributes+5
README.mdAdded+67
openvocab_train_v3_medgemma.jsonlAdded+3
openvocab_train_v3_qwen.jsonlAdded+3
openvocab_train_v4_all.jsonlAdded+3
openvocab_train_v4_labelonly.jsonlAdded
openvocab_train_v4_qwen.jsonlAdded+3
openvocab_train_v4_rejected.jsonlAdded+3