sedweave-real-data / README.md
asterbraid's picture
Add verified 1.5B metrics and update the model recommendation
0d9b2e2 verified
|
Raw History Blame Contribute Delete
3.89 kB
metadata
license: cc-by-sa-4.0
language: en
pretty_name: Sedweave Real Data
size_categories:
  - n<1K
task_categories:
  - text-generation
tags:
  - sed
  - code-generation
  - text-to-code
  - execution-verified
  - stackoverflow
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train.jsonl
      - split: validation
        path: data/validation.jsonl
      - split: test
        path: data/test.jsonl

Sedweave Real Data

Natural-language-to-sed tasks derived from highly voted Stack Overflow questions and accepted answers, with disjoint training, development, and frozen-test questions. This dataset supports generalization-focused training and evaluation beyond Sedweave's synthetic task families.

Splits

Split Rows Purpose
Train 157 75 unique reviewed tasks, 4 input variations, and 78 guarded paraphrases
Validation 42 Initial real-question development benchmark; never used for training
Test 37 Frozen questions from disjoint lower-vote sources

The source questions are unique across all splits. There is zero input-text or request/command overlap between splits or with asterbraid/sedweave-data. The original 42-task asterbraid/sedweave-so-data benchmark is preserved separately and appears here as the validation split.

Every reference command was executed on two inputs with /usr/bin/sed (GNU sed) 4.9: 472 successful executions, 0 errors. Commands start with sed, read one stream on stdin, and avoid filenames, in-place edits, file commands, pipelines, and shell execution. Some authentic solutions use GNU sed extensions.

Source and attribution

Each row includes question_url, question_title, question_owner, answer_owner, and answer_id. ATTRIBUTION.md lists every source. Requests are self-contained instructions derived from questions and accepted answers; commands are executable solutions. Request-to-command intent was manually reviewed. Paraphrases and input variations were generated only for training rows and passed literal-preservation and execution checks.

from datasets import load_dataset

train = load_dataset("asterbraid/sedweave-real-data", split="train")
test = load_dataset("asterbraid/sedweave-real-data", split="test")

Model evaluation

Greedy generation, one prediction per row. Valid means the command executes; correct requires exact output on both inputs. Only trailing special tokens are removed.

Model Validation valid Validation correct Frozen-test valid Frozen-test correct
Original Sedweave 0.5B 71.4% (30/42) 23.8% (10/42) 89.2% (33/37) 18.9% (7/37)
Unselected generalization-tuned 0.5B candidate 76.2% (32/42) 23.8% (10/42) 83.8% (31/37) 18.9% (7/37)
Sedweave 1.5B 90.5% (38/42) 52.4% (22/42) 97.3% (36/37) 35.1% (13/37)

Full predictions and summaries are included under evaluation/.

The generalization-tuned 0.5B candidate was not released: frozen validity decreased and frozen correctness did not improve. Its training settings are in candidate_training_config.json.

Sedweave 1.5B is the recommended model because it improves both validity and correctness on the development and frozen real-question sets.

Limitations

This is a small, high-vote sample, not a representative benchmark of all sed use. Tasks were selected for compatibility with single-stream input and the safety guard. Exact outputs on two representative inputs do not prove correctness on every possible input. Some requests or commands may be ambiguous outside their original context.

License

Original Stack Overflow content and these derived rows are CC BY-SA 4.0. See SO_DATASET_LICENSE.txt and ATTRIBUTION.md. Included collection, conversion, review, expansion, and validation code is Apache-2.0.