FWeindel commited on
Commit
39a8df6
·
verified ·
1 Parent(s): 3283999

Rename Experiment 1 and state the broader rubric-filtering hypothesis

Browse files
calibforge_v1.1/README.md CHANGED
@@ -117,18 +117,18 @@ Available criteria, with explanations in the [rubric](https://github.com/MLI-lab
117
  - `VERIFIER-ACCEPTS-INCOMPLETE`
118
  - `VERIFIER-ACCEPTS-SHORTCUTS`
119
 
120
- ## Proposed RL experiment
121
 
122
  River’s `VERIFIER-TOO-WEAK` combined incomplete solutions, where the agent still does part of the work, with shortcuts that bypass it. We split these into `VERIFIER-ACCEPTS-INCOMPLETE` and `VERIFIER-ACCEPTS-SHORTCUTS`.
123
 
124
- **Hypothesis:** adding tasks that fail only `VERIFIER-ACCEPTS-INCOMPLETE` improves RL performance compared with clean-only training.
125
 
126
  **Setup:** generate three datasets for RL, clean, clean + incomplete-only, and clean + shortcuts-only.
127
 
128
  ```bash
129
  # Qwen: clean 1,546, clean + incomplete-only 2,094, clean + shortcuts-only 2,044
130
- python filter_tasks.py --judge qwen --experiment-2 --out experiment2/qwen
131
 
132
  # GLM: clean 1,276, clean + incomplete-only 1,784, clean + shortcuts-only 1,571
133
- python filter_tasks.py --judge glm --experiment-2 --out experiment2/glm
134
  ```
 
117
  - `VERIFIER-ACCEPTS-INCOMPLETE`
118
  - `VERIFIER-ACCEPTS-SHORTCUTS`
119
 
120
+ ## Experiment 1: rubric filtering and RL performance
121
 
122
  River’s `VERIFIER-TOO-WEAK` combined incomplete solutions, where the agent still does part of the work, with shortcuts that bypass it. We split these into `VERIFIER-ACCEPTS-INCOMPLETE` and `VERIFIER-ACCEPTS-SHORTCUTS`.
123
 
124
+ **Hypothesis:** rubric criteria may have different effects on RL performance, so filtering out every task with a failed criterion may not be best. In particular, adding incomplete-only tasks may improve performance compared with clean-only training.
125
 
126
  **Setup:** generate three datasets for RL, clean, clean + incomplete-only, and clean + shortcuts-only.
127
 
128
  ```bash
129
  # Qwen: clean 1,546, clean + incomplete-only 2,094, clean + shortcuts-only 2,044
130
+ python filter_tasks.py --judge qwen --experiment-1 --out experiment1/qwen
131
 
132
  # GLM: clean 1,276, clean + incomplete-only 1,784, clean + shortcuts-only 1,571
133
+ python filter_tasks.py --judge glm --experiment-1 --out experiment1/glm
134
  ```
calibforge_v1.1/filter_tasks.py CHANGED
@@ -1,6 +1,6 @@
1
  """Filter a task/results Parquet pair; usable standalone with only pyarrow installed.
2
 
3
- Example: python filter_tasks.py --judge qwen --experiment-2 --out experiment2/qwen
4
  No pass@k filter is applied. Warnings stay; missing/incomplete checks do not pass.
5
  """
6
  import argparse
@@ -146,7 +146,7 @@ def export(tasks, results, out, judge=None, allow_fail=(), experiment2=False,
146
  import pyarrow.parquet as pq
147
  tasks, results, out = Path(tasks), Path(results), Path(out)
148
  if experiment2 and (not judge or allow_fail):
149
- raise ValueError('--experiment-2 requires --judge and cannot use --allow-fail')
150
  if allow_fail and not judge:
151
  raise ValueError('--allow-fail requires --judge')
152
  table = pq.read_table(results)
@@ -230,7 +230,8 @@ def main():
230
  help='Allow this judge criterion to fail; all others must pass (repeatable)')
231
  parser.add_argument('--criteria', nargs='+', default=JUDGE_CRITERIA,
232
  help='Judge criteria to enforce; default = all eight adjusted-rubric criteria')
233
- parser.add_argument('--experiment-2', action='store_true', help='Export all three Experiment 2.1 groups')
 
234
  parser.add_argument('--out', type=Path, required=True)
235
  args = parser.parse_args()
236
  summary = export(args.tasks, args.results, args.out, args.judge, args.allow_fail, args.experiment_2, args.criteria)
 
1
  """Filter a task/results Parquet pair; usable standalone with only pyarrow installed.
2
 
3
+ Example: python filter_tasks.py --judge qwen --experiment-1 --out experiment1/qwen
4
  No pass@k filter is applied. Warnings stay; missing/incomplete checks do not pass.
5
  """
6
  import argparse
 
146
  import pyarrow.parquet as pq
147
  tasks, results, out = Path(tasks), Path(results), Path(out)
148
  if experiment2 and (not judge or allow_fail):
149
+ raise ValueError('--experiment-1 requires --judge and cannot use --allow-fail')
150
  if allow_fail and not judge:
151
  raise ValueError('--allow-fail requires --judge')
152
  table = pq.read_table(results)
 
230
  help='Allow this judge criterion to fail; all others must pass (repeatable)')
231
  parser.add_argument('--criteria', nargs='+', default=JUDGE_CRITERIA,
232
  help='Judge criteria to enforce; default = all eight adjusted-rubric criteria')
233
+ parser.add_argument('--experiment-1', '--experiment-2', dest='experiment_2', action='store_true',
234
+ help='Export all three Experiment 1 groups')
235
  parser.add_argument('--out', type=Path, required=True)
236
  args = parser.parse_args()
237
  summary = export(args.tasks, args.results, args.out, args.judge, args.allow_fail, args.experiment_2, args.criteria)