TRACE-VLA code snapshot 2026-11-22 11:47 +07: 456 canonical files + SHA256 manifest + sync report
b4396f0 verified |
Download code/sera_v4/frontend_probe/RESEARCH.md from phammminhhieu/trace-vla-code: direct link, hf CLI and curl.
- Browser
- Download file 6.94 kB
-
https://huggingface.co/phammminhhieu/trace-vla-code/resolve/main/code/sera_v4/frontend_probe/RESEARCH.md
- Command line
-
hf download hf://phammminhhieu/trace-vla-code/code/sera_v4/frontend_probe/RESEARCH.md
-
curl -L -o RESEARCH.md https://huggingface.co/phammminhhieu/trace-vla-code/resolve/main/code/sera_v4/frontend_probe/RESEARCH.md
6.94 kB
| # Frontend probe — research notes (2026-11-18, coordinator 4) | |
| Question (Young, 00:43): does (i) unfreezing the last few TIPSv2 layers and | |
| (ii) actually exploiting TIPSv2's patch–text alignment make the policy | |
| better than the fully-frozen trunk? Wrong-object selection is v3's #1 | |
| closed-loop failure (40% of failures in the P3 diagnostics), and SERA | |
| currently uses TIPSv2 as a frozen feature extractor whose signature | |
| capability — dense patch–text alignment — is never touched. | |
| ## (a) Freeze vs unfreeze the last layers of a VL backbone | |
| - **MAPS (CVPR 2026), "freezing diagnosis" on OpenVLA** (DINOv2 + SigLIP | |
| vision, LLaMA language): freezing the vision encoders generally IMPROVES | |
| results (ID +7–17%, OOD +7–25% on SimplerEnv); freezing the entire | |
| language backbone is catastrophic (SimplerEnv near-zero, LIBERO up to | |
| −60%); tuning only the LATE language layers while freezing early ones | |
| improves OOD by +1–3%. Module importance ranking: DINOv2 > SigLIP > | |
| early language > late language. Their fix (proximity tethering decaying | |
| from vision to language) exists precisely because naive unfreezing | |
| destroys pretrained geometry. | |
| - **π₀.5 Knowledge Insulation (Physical Intelligence, NeurIPS 2025):** | |
| gradients from a randomly-initialised action expert degrade the VLM | |
| backbone; stop-gradient + FAST discrete-action supervision on the | |
| backbone trains faster and generalises better than joint training or a | |
| frozen backbone in their comparisons. | |
| - **Gradient-routing study (NVIDIA et al., arXiv:2611.05249)** disentangles | |
| the two: WITH action-token supervision, coupled (gradients flow into the | |
| VLM) ≈ insulated; WITHOUT it, coupling is substantially better | |
| (open-loop trajectory error −25%; closed-loop route progress +17% with | |
| supervision, +40% without; manipulation improves under both settings). | |
| SERA has NO action-token supervision and no VL co-training data in the | |
| probe — so this study predicts coupling (F1) ≥ insulation for us. | |
| - **SmolVLA (HF/LeRobot):** the VLM (SmolVLM-2) stays fully frozen, only | |
| the ~100M action expert trains — and it reaches 87.3% in Young's own | |
| LIBERO harness. Frozen is not a strawman; it is the recipe to beat (F0). | |
| - **LoRA fine-tuning study (real robot, SmolVLA-class):** unfrozen vision | |
| (LoRA) 76% vs frozen vision 74% success at 200 episodes — unfreezing | |
| helps slightly, at real compute/memory cost. | |
| - **NEO-VLA:** frozen native backbone 90.9% vs full fine-tune 95.3% on | |
| LIBERO — full FT helps when the backbone was pretrained natively for | |
| VL-action; a different regime from an encoder-only backbone like | |
| TIPSv2, cited for completeness, not as a prediction. | |
| Net read: the literature does NOT support "unfreeze = better" as a | |
| default. It supports: vision layers are the dangerous ones to move, | |
| late language layers are the safe ones, and the deciding factor is | |
| whether the action loss is the only signal reaching the backbone | |
| (SERA's case → coupling has the better prediction). This is exactly a | |
| probe-shaped question: F1 measures it paired, at fixed budget. | |
| ## (b) TIPSv2 specifics | |
| - TIPSv2 (Cao et al., CVPR 2026; HF `google/tipsv2-b14`, B/14 = 86M vision | |
| + 110M text, embed 768) is a CLIP+DINO hybrid whose headline capability | |
| is DENSE patch–text alignment. Its iBOT++ objective applies the | |
| patch-level self-distillation loss to ALL patches (masked and visible); | |
| ablation: iBOT++ alone gives +14.1 mIoU zero-shot segmentation on | |
| ADE150 (3.5 → 17.6). Distilled students surpass their teachers in | |
| patch–text alignment — the alignment lives in the patch tokens. | |
| - `Tipsv2Model` returns NORMALIZED `image_embeds` and `text_embeds`: | |
| patch↔text cosine scoring is meaningful with zero additional training | |
| (that is how its zero-shot segmentation works). | |
| - The model card gives NO robot/downstream fine-tuning recipe (it is an | |
| encoder release). Nothing in the paper evaluates TIPSv2 inside a policy. | |
| - SERA's usage today (from `~/workspace/user/files/v3.md` + code): images | |
| 256→448, shared frozen vision tower → 1,026 tokens/camera; vision | |
| projection 768→512; text tower → projection → ≤64 tokens at 512; | |
| vision and text meet only inside Fusion cross-attention. The patch–text | |
| score — the backbone's signature output — is computed NOWHERE. | |
| ## (c) Exploiting patch–text alignment — who has measured it? | |
| - **A³-VLA (NeurIPS 2026)** is the closest measured work: it diagnoses | |
| that the action-prediction objective "lacks fine-grained task-specific | |
| perceptual supervision, making it prone to relying on task-irrelevant | |
| visual shortcuts, leading attention away from target objects" — the | |
| same mechanism as v3's wrong-object failures — and fixes it with two | |
| losses: (i) an attention-allocation loss pushing language/state queries | |
| to put enough attention mass on target-object regions; (ii) a | |
| contrastive loss aligning target-region representations with the | |
| instruction while separating task-irrelevant regions. Regions come from | |
| interaction-induced visual changes refined by SAM2, offline. | |
| - Simpler label-free relatives: CLIP-style InfoNCE between pooled visual | |
| tokens and the instruction (image-level) is standard in VLM training | |
| but does not by itself sharpen WHICH patches match. | |
| - Multiple-instance-learning (MIL) pooling is the standard bridge: score | |
| an (image, text) pair by a soft top-k / logsumexp over per-patch | |
| cosines, then InfoNCE over the batch. It trains "some patches must | |
| light up for the true instruction and not for other instructions" | |
| using only (image, instruction) pairs — no boxes, no SAM, no extra | |
| labels. LIBERO instructions in a batch of 8 are almost always distinct | |
| tasks, so in-batch negatives are true negatives for object identity in | |
| most cases (same-task collisions are possible and act as label noise; | |
| noted in the spec). | |
| ## Conclusions carried into SPEC.md | |
| 1. F1 = unfreeze vision last 2 blocks + language last 1 layer (the v3 | |
| lineage's own stage-2 setting; MAPS-consistent: late language is the | |
| safe part, vision-last-2 is the measured risk). Same LR schedule as | |
| F0 for a clean paired comparison; trainable-parameter delta and step | |
| time measured and reported. | |
| 2. F2 = frozen backbone + auxiliary MIL-InfoNCE patch–text loss on | |
| SERA's projected 512-d tokens (λ=0.1). Gradient reaches the vision and | |
| text PROJECTIONS (the only trainable interface to the alignment | |
| space) — the trunk is forced to preserve and use alignment structure | |
| instead of washing it out. Architecture at inference is unchanged: | |
| the probe tests a training-signal hypothesis, cleanly attributable. | |
| 3. Routing metrics are secondary here; the decisive metric is the fixed | |
| closed-loop probe (7 weak tasks × 10 ep) with a right-object rate, | |
| because the claim being tested is about object selection, and val FM | |
| has repeatedly failed to predict closed-loop outcomes in this lineage. | |