speediedan commited on
Commit
a1bb9ce
·
verified ·
1 Parent(s): d840a01

Add the chaining tasks of the Knowing-Using Gap paper, unchanged, with provenance

Browse files
Files changed (4) hide show
  1. .gitattributes +1 -0
  2. LICENSE +21 -0
  3. README.md +52 -0
  4. chaining_tasks.json +3 -0
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ chaining_tasks.json filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 The Mem2Gen Authors
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,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ pretty_name: Knowing-Using Gap chaining tasks (STaRK-Prime)
6
+ task_categories:
7
+ - question-answering
8
+ tags:
9
+ - knowledge-injection
10
+ - multi-hop
11
+ - biomedical
12
+ size_categories:
13
+ - 10K<n<100K
14
+ ---
15
+
16
+ # Knowing-Using Gap: chaining tasks
17
+
18
+ A durable copy of the two-hop chaining data from [Towards Mechanistically Understanding Why Memorized Knowledge Fails
19
+ to Generalize in Large Language Model Finetuning](https://www.alphaxiv.org/abs/2607.08393) (Dai et al.), published so
20
+ that reproductions do not depend on the paper's anonymous review mirror, which expires in March 2027. The file is the
21
+ authors' `data/multi_fact_data_template/chaining_tasks.json`, unchanged.
22
+
23
+ ## Contents
24
+
25
+ `chaining_tasks.json`: 11,997 items built from the STaRK-Prime biomedical knowledge base, 1,333 for each of 9 relation
26
+ paths (for example anatomy, expression present, gene or protein, target, drug). Each item holds:
27
+
28
+ - `facts`: two single-hop facts (`head`, `relation`, `tail`) whose composition is the item's question;
29
+ - `memorization_tasks`: one question and answer per fact, the text a model is fine-tuned on;
30
+ - `generalization_tasks`: the two-hop question that composes the two facts, and its answer;
31
+ - `task_type`: `chaining`.
32
+
33
+ ## Use
34
+
35
+ The paper injects 1,000 facts (500 items) and scores greedy exact match on the two-hop questions. Its sample is drawn
36
+ with Python's `random`: seed the generator (848 for Qwen models, 1340 for Llama models), shuffle the items with their
37
+ indices, then add items in that order to a randomized subset sum over their memorization-task counts until exactly
38
+ 1,000 tasks are reached. Drawn this way, the Qwen sample has 409 unique two-hop questions and the Llama sample 427.
39
+ Interpretune's `knowing_using` example implements the draw and reproduces the paper's LRSD result on Qwen2.5-1.5B.
40
+
41
+ ## Provenance and license
42
+
43
+ - Source: the paper's code and data release (MIT License, copyright 2026 The Mem2Gen Authors; `LICENSE` here is its
44
+ text), retrieved from `https://anonymous.4open.science/r/Mem2Gen-71FF`.
45
+ - `chaining_tasks.json` sha256: `7ea065e4e3ddaa0f6ee100695961ddf8f9a9581938e5b6127168858718598d5d`.
46
+ - The items derive from [STaRK](https://github.com/snap-stanford/stark) (MIT License), whose STaRK-Prime knowledge base
47
+ builds on [PrimeKG](https://github.com/mims-harvard/PrimeKG). As the paper's authors ask, please also respect the
48
+ terms of those upstream resources.
49
+
50
+ ## Citation
51
+
52
+ Cite the paper (Dai et al., arXiv 2607.08393), and STaRK and PrimeKG for the underlying knowledge base.
chaining_tasks.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ea065e4e3ddaa0f6ee100695961ddf8f9a9581938e5b6127168858718598d5d
3
+ size 14717753