The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: TypeError
Message: Couldn't cast array of type struct<ast_node: int64, callee_symbol: string> to null
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 544, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3052, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2559, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2584, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 558, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 440, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 361, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2381, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2315, in cast_table_to_schema
cast_array_to_feature(
~~~~~~~~~~~~~~~~~~~~~^
table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
feature,
^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1861, in wrapper
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2121, in cast_array_to_feature
casted_array_values = _c(array.values, feature.feature)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1863, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2155, in cast_array_to_feature
return array_cast(
array,
...<2 lines>...
allow_decimal_to_str=allow_decimal_to_str,
)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1863, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2016, in array_cast
raise TypeError(f"Couldn't cast array of type {_short_str(array.type)} to {_short_str(pa_type)}")
TypeError: Couldn't cast array of type struct<ast_node: int64, callee_symbol: string> to nullNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
VULNGUARD β Code, Results, and Manuscript
Private repository. This is the complete working mirror of the VULNGUARD project: an RL/GRPO study of whether reinforcement learning can teach an LLM to discriminate vulnerable vs. patched C/C++ functions. It contains all code, all run logs and results, the full decision/incident history, and the project's manuscript.
One-line summary of the science: this is a negative-result study. Every gold-reward GRPO configuration tried β across 5 backbones, multiple credit-assignment schemes, and two purpose-built collapse-prevention mechanisms (Campaign D5) β collapsed to a degenerate, near-single-verdict policy instead of learning real discrimination. The dominant mechanism is only partially understood; see below for what is and isn't resolved.
Start here
| If you want... | Read |
|---|---|
| The full story, in order, with every hypothesis/result/bad outcome/timing | docs/COMPREHENSIVE_REPORT.md |
| A shorter narrative version (original write-up, Campaign D5 only) | docs/FULL_PROJECT_REPORT.md |
| The academic manuscript (with figures, references, methods) | paper/manuscript.md + paper/figures/ |
| The current, PI-accepted scientific conclusion (most authoritative single statement) | docs/validation/CLAIM_MATRIX.md |
| The raw, timestamped, append-only decision log (ground truth for everything above) | docs/DECISIONS.md |
| Every logged error/deviation from the frozen pre-registration | docs/ERRATA.md |
| The frozen experimental design itself | docs/PREREGISTRATION.md |
| The verified citation list used by the manuscript | docs/LITERATURE.md |
| Campaign D5's spec (the two collapse-prevention interventions) | docs/CAMPAIGN_D5.md |
Repository layout
src/ training/eval/reward/queue library code (vdrl package)
scripts/ one-off and campaign-specific scripts (data prep, queue, D5 forensics, toy sims)
tests/ pytest suite (pre-registration rule: no GPU job may run while this is red)
configs/ frozen model/queue/base configs
data/ processed splits, audits, provenance manifests (NOT the raw corpora)
docs/ all narrative reports, the decision log, pre-registration, errata, literature
results/ every run's metrics.jsonl, gates, watchdog logs, scoring outputs
results/campaign_D5/ Campaign D5 forensics writeups (H3/H4/H5 scoring + mechanism analysis)
results/final_scientific_audit_20260927/ primary confirmatory result dossier
results/validation_20260926/, results/preservation_20260926/ human-validation scaffolding (packets only β no labels, no private data)
paper/ the manuscript (Markdown) and its 4 real-data figures
phase2/ a separate, authorized research branch (worktree)
What is NOT in this repository, by design
Human-rater blinding-key mapping files, the underlying private/blinding data for the never-completed human
validation study, and anything inside integrity-backups/ that carries that same content are deliberately
excluded from every backup of this project, including this one. This is a standing project rule, not an
oversight β see docs/DECISIONS.md entries tagged privacy-incident and preservation for the full reasoning.
Headline results (see docs/COMPREHENSIVE_REPORT.md for full detail and evidence paths)
- Primary confirmatory result: GOLD β PERMUTED discrimination Ξ = β1.04 pp [95% CI β1.52, β0.62] β gold-reward training did not produce more discrimination than a placebo reward. Not confirmatory: gated on human validation that was never completed (0 labels ever entered).
- Cross-backbone replication: the collapse reproduces on Llama-3.2-3B (step 8), Qwen3-8B (step 12), and Qwen3-4B-hybrid (step 14), in addition to the primary Qwen3-4B-Instruct-2507 backbone (step 18).
- Campaign D5 tested two mechanisms specifically designed to prevent collapse β a verdict-rate dual-ascent clamp and a pair-symmetric reward. Neither worked. The clamp collapsed to always-SAFE anyway (mechanism: its correction signal is a within-group-standardized quantity that is mathematically zero once a group has already collapsed, regardless of the penalty's magnitude); the pair-symmetric reward collapsed to the opposite corner (always-VULNERABLE) instead.
- A reusable judge-calibration finding: an LLM judge's false-positive rate, calibrated at 2% on a synthetic benchmark (NIST Juliet), was found to actually sit near 48% on real code from the same source projects.
- A positive control (a deliberately easy synthetic task run through the identical pipeline) reached 100% held-out accuracy, indicating the training infrastructure itself is not the bottleneck.
Citation
If referencing this work, please cite the manuscript in paper/manuscript.md (Das, D. J., When the Reward
Collapses: A Pre-Registered Study of Gold, Constrained, and Pair-Symmetric RL for LLM Vulnerability Detection).
- Downloads last month
- 6