longarmd commited on
Commit
8c750b5
·
verified ·
1 Parent(s): f93579d

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +108 -0
README.md ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ pretty_name: CLIFT
5
+ size_categories:
6
+ - 5K<n<10K
7
+ task_categories:
8
+ - text-generation
9
+ tags:
10
+ - benchmark
11
+ - evaluation
12
+ - synthetic
13
+ - reasoning
14
+ - in-context-learning
15
+ - transfer-learning
16
+ - structured-output
17
+ ---
18
+
19
+ <div align="center">
20
+
21
+ # CLIFT
22
+
23
+ **Contextual Learning across Inference, Format, and Transfer**
24
+
25
+ A structured benchmark of **5,160** synthetic instances that stress-test whether models **learn latent rules from context**—then **apply** them under **format shifts**, **task families**, and **probe types** (forward, inverse, OOD, planning, and more).
26
+
27
+ [![GitHub](https://img.shields.io/badge/Code-GitHub-181717?style=flat-square&logo=github)](https://github.com/LongarMD/CLIFT)
28
+ [![Dataset](https://img.shields.io/badge/Records-5160-ffd21e?style=flat-square&logo=huggingface)](https://huggingface.co/datasets/longarmd/CLIFT)
29
+
30
+ </div>
31
+
32
+ ---
33
+
34
+ ## At a glance
35
+
36
+ | | |
37
+ | :--- | :--- |
38
+ | **Instances** | 5,160 |
39
+ | **Design** | Full factorial over **task × format × application × difficulty**, with **10** i.i.d. draws per cell |
40
+ | **Seed** | `42` (reproducible) |
41
+ | **Language** | English prompts and instructions |
42
+ | **Modality** | Text (completion-style `prompt` → string `target`) |
43
+
44
+ ### Load in Python
45
+
46
+ ```python
47
+ from datasets import load_dataset
48
+
49
+ ds = load_dataset("longarmd/CLIFT", split="train")
50
+ # Each row: prompt, target, task, format, application, difficulty, latent_structure, ...
51
+ ```
52
+
53
+ If the Hub loader is misconfigured, use the **Files** tab JSONL and stream with `json.loads` per line—the schema matches the table below.
54
+
55
+ ---
56
+
57
+ ## Why CLIFT?
58
+
59
+ Modern LMs are often evaluated on fixed formats or single-shot skills. **CLIFT** targets a narrower but critical capability: **contextual learning**—inferring a **hidden structure** from the prompt (examples, traces, or specs), then answering under **controlled variation** along three axes:
60
+
61
+ 1. **Inference** — *What* must be learned (lookup rules, algorithms, spatial transforms, small dynamical systems, …).
62
+ 2. **Format** — *How* that knowledge is presented (demonstrations, natural language, execution traces, formal specs).
63
+ 3. **Transfer / application** — *How* the model must use it (forward prediction, inverse reasoning, articulation, OOD probes, planning, structural probes—**task-dependent** subsets).
64
+
65
+ Together, these axes yield a **dense evaluation matrix** suited for diagnostics, ablations, and comparing training or prompting strategies—not a single leaderboard score in isolation.
66
+
67
+ ---
68
+
69
+ ## Task families
70
+
71
+ Instances are grouped into **four families** spanning **10** canonical tasks:
72
+
73
+ | Family | Tasks |
74
+ | :--- | :--- |
75
+ | **Functional mappings** | `lookup_table`, `arithmetic_rule`, `conditional_rule` |
76
+ | **Algorithmic** | `insertion_sort`, `max_subarray`, `binary_search`, `naive_string_matcher` |
77
+ | **Spatial** | `spatial_translation` |
78
+ | **Dynamic structures** | `affine_dynamics_2d`, `register_machine_2d` |
79
+
80
+ **Formats** (all tasks use this set where applicable): `demonstration`, `natural_language`, `trace`, `formal_spec`.
81
+
82
+ **Difficulty**: integer levels **1**, **2**, **3** (structure complexity scales with level).
83
+
84
+ **Application** varies by task (e.g. affine/register tasks use dedicated OOD-suffixed probes). The shipped matrix matches the open-source generator defaults in [`clift.common`](https://github.com/LongarMD/CLIFT/blob/main/src/clift/common.py).
85
+
86
+ ---
87
+
88
+ ## Dataset structure
89
+
90
+ Data are distributed as **JSONL**: one JSON object per line, Hugging Face–friendly and line-diffable. A companion **`manifest.json`** (in the source repo) records generator kwargs, expected row count, and a **SHA-256** over the canonical payload for integrity checks.
91
+
92
+ ### Fields (per instance)
93
+
94
+ | Field | Type | Description |
95
+ | :--- | :--- | :--- |
96
+ | `instance_id` | int | Stable index within the snapshot |
97
+ | `task` | string | One of the 10 canonical task names |
98
+ | `format` | string | Presentation format |
99
+ | `application` | string | Probe / application axis |
100
+ | `difficulty` | int | 1–3 |
101
+ | `prompt` | string | Model input (completion-style) |
102
+ | `target` | string | Reference answer (exact match is the primary check) |
103
+ | `latent_structure` | object | **Gold structure** for analysis & tooling (not shown to the model) |
104
+ | `instruct` | bool | Whether instruct/chat-style export was used |
105
+ | `messages` | array (optional) | OpenAI-style chat turns, when enabled at export |
106
+ | `metadata` | object (optional) | Extra fields when present |
107
+
108
+ > **Note:** `latent_structure` is intentionally included for **research and scoring pipelines**. Treat it as **held-out supervision** for training—do not condition generation on it unless your experimental design explicitly allows it.