Datasets:
|
Download README.md from slava-research/greenvla-sae-patching: direct link, hf CLI and curl.
- Browser
- Download file 5.79 kB
-
https://huggingface.co/datasets/slava-research/greenvla-sae-patching/resolve/main/README.md
- Command line
-
hf download hf://datasets/slava-research/greenvla-sae-patching/README.md
-
curl -L -o README.md https://huggingface.co/datasets/slava-research/greenvla-sae-patching/resolve/main/README.md
5.79 kB
| language: | |
| - en | |
| - ru | |
| - zh | |
| tags: | |
| - robotics | |
| - sparse-autoencoder | |
| - activation-patching | |
| - vision-language-action | |
| pretty_name: GreenVLA SAE patching research artifacts | |
| # GreenVLA SAE patching | |
| Public research artifacts for SAE-mediated Russian→English activation patching | |
| of GreenVLA-R2-CALVIN. **Evaluation completed.** All five primary evaluations contain473 episodes; all five additional-scene evaluations contain84 episodes. One checkpoint/seed and14 held-out task types limit the conclusions. | |
| [Run 2026-11-25](runs/2026-11-25): independent SAE patches at embedding, | |
| VLM block16 output, effective K/V input of expert index4, and expert index4 | |
| residual. The backbone is frozen. Four own TopK SAEs (8192 features/k32), | |
| signed edits in 256 selected SAE coordinates, decoder-projected residual edits. | |
| ## Split and limitations | |
| 20 CALVIN task types train the SAEs/correctors. The other14 are excluded from | |
| all fitting, feature selection and checkpoint selection. After removing exact | |
| EN/RU train/dev overlap:143 train instruction pairs (A/B),40 dev pairs (C). | |
| Primary SR: one D scene/task, seed0,473 scene-axis episodes per method. | |
| Additional predeclared SR: D s4 (s5 for lift_red_block_table) on val14/RU6,84 episodes per method, same weights. | |
| Probes: frozen English task-held-out readouts, D s0–s3,1892 inputs per method. | |
| The patch gate is Cyrillic-only; English preservation is enforced by the gate. | |
| This is a small domain pilot, not evidence of universal activation translation. | |
| ## Files and reuse | |
| - `sae/<site>/patch.pt`: trained SAE, code corrector, scaling and exact hook. | |
| - `sae/<site>/manifest.json`: texts/observations,20/14 split and exclusions. | |
| - `activations/sae_training/<site>.pt`: raw extraction cache, **including train | |
| contexts excluded after exact RU deduplication**. Apply the exclusions in the | |
| manifest; `source/scripts/calvin/sae_patch/train.py` does so before fitting. | |
| - `activations/probes/<method>/`: float32/float16 NumPy banks plus row metadata | |
| and extraction configuration. Arrays are reusable without running GreenVLA. | |
| - `frozen_probes/`: English readout weights, folds and provenance. | |
| - `probe_results/`: readout outputs separately for train20/val14/all34. | |
| - `rollouts/`: incrementally updated JSONL. Seed, instructions and task IDs are | |
| recorded. Target success and negation compliance are separate fields. | |
| - `source/`, `repro/`: actual scripts, task metadata, model/dataset revisions | |
| and environment package versions. Original model weights are referenced by | |
| exact upstream revision, not duplicated. | |
| - `SHA256.json`: integrity manifest of uploaded payload files; excludes itself | |
| and this root card. Upload commits preserve earlier snapshots. | |
| The payload is for PyTorch/NumPy analysis, not a single tabular HF dataset. | |
| Only load `.pt` files from a source you trust. Full policy reconstruction needs | |
| the pinned upstream GreenVLA code/models and SLAVA CALVIN images. | |
| Probe banks are **pooled readouts**, not full per-token hidden-state dumps: | |
| `vlm.npy` is `[1892,37,2560]`, `kv.npy` is `[1892,9,2,1024]` (K/V), | |
| `exp.npy` is `[1892,9,3,1280]` (three denoising times), all float16. | |
| Use `meta.json` for the exact instruction/task/scene of each row and the | |
| extractor source for pooling. SAE training caches retain token/action-slot | |
| vectors at their own intervention site, with segmentation metadata. | |
| For a slow connection, download only the bank or checkpoint you need rather | |
| than cloning the repository. The final verified snapshot is tagged | |
| `pilot-20261125`. Example after completion: | |
| ```python | |
| from huggingface_hub import hf_hub_download | |
| import numpy as np | |
| p = hf_hub_download('slava-research/greenvla-sae-patching', | |
| 'runs/2026-11-25/activations/probes/baseline/vlm.npy', | |
| repo_type='dataset', revision='pilot-20261125') | |
| x = np.load(p, mmap_mode='r') | |
| ``` | |
| ## Results and report | |
| [Download the report ZIP (HTML + all figures)](runs/2026-11-25/report.zip) · [Report folder](runs/2026-11-25/report) · [Machine-readable results](runs/2026-11-25/report/summary.json) | |
|  | |
|  | |
| | Method | Primary val14 RU6 | Additional scene RU6 | | |
| | --- | --- | --- | | |
| | baseline | 33/84 | 42/84 | | |
| | emb | 45/84 | 44/84 | | |
| | vlm16 | 37/84 | 36/84 | | |
| | kv4 | 32/84 | 38/84 | | |
| | exp4 | 37/84 | 39/84 | | |
| All four SAE sites were specified before evaluation. The report includes paired task-cluster confidence intervals and multiple-comparison-adjusted tests. Dictionary FVE alone does not establish preservation of language-relevant directions. Source fitting/hook code is unchanged from the initial hashes; orchestration and reporting scripts were subsequently extended. SHA256.json identifies the exact current payload. | |
| ## Additional-hour results | |
| The original pilot remains pinned as `pilot-20261125`. The extended run is pinned as `extension-final-20261125`. This is an exploratory follow-up; all dictionary/checkpoint choices use dev20, not val14 success. | |
| [Extension report ZIP](runs/2026-11-25/extensions/report.zip) · [Extension data and checkpoints](runs/2026-11-25/extensions) | |
|  | |
| | Variant | Site | Success /168 | Delta vs75/168 | | |
| | --- | --- | --- | --- | | |
| | shuffle | emb | 58/168 | -10.1pp | | |
| | shuffle | vlm16 | 70/168 | -3.0pp | | |
| | shuffle | kv4 | 72/168 | -1.8pp | | |
| | shuffle | exp4 | 80/168 | +3.0pp | | |
| | corpus | emb | 89/168 | +8.3pp | | |
| | corpus | vlm16 | 75/168 | +0.0pp | | |
| | corpus | kv4 | 77/168 | +1.2pp | | |
| | gapaware | exp4 | 72/168 | -1.8pp | | |
| | seed1 | emb | 81/168 | +3.6pp | | |
| | seed1 | vlm16 | 73/168 | -1.2pp | | |
| | seed1 | kv4 | 82/168 | +4.2pp | | |
| | seed1 | exp4 | 67/168 | -4.8pp | | |
| | fullcode | vlm16 | 58/168 | -10.1pp | | |