Ternary Vision Encoders Without the Straight-Through Estimator: Toward Onboard Robot Perception
This research paper investigates the necessity of straight-through estimators (STE) and pretrained teachers for training ternary vision encoders. The authors demonstrate that an STE-free sigmoid relaxation method, termed NoSTE, achieves performance comparable to STE-based training on transformer encoders across ViT-7/CIFAR-10 and Swin-T/Tiny-ImageNet benchmarks. While a short-lived full-precision target is retained during training, no pretrained teacher is required. The study identifies that standard corrections for sigmoid saturation fail due to gradient scaling issues rather than the estimator itself, attributing results to the quantization schedule. Additionally, it reveals that patch-merging projections in Swin-T limit achievable compression to 8.2x, as ternarizing these components would allow up to 14.2x. The code and training configurations are slated for public release.
arXiv:2611.36328v1 Announce Type: cross Abstract: Ternary policies such as BitVLA quantize the language backbone to 1.58 bits, after which the vision encoder, roughly 0.6\,B parameters in OpenVLA, becomes a leading term in what onboard memory remains. Ternary weights $\{-1,0,+1\}$ pack into 2 bits, so a ternary linear layer is at most $16\times$ smaller than its FP32 counterpart. BitVLA reaches this operating point using a straight through estimator (STE) for the gradient and a pretrained full-precision teacher for the vision tower. We study whether either is necessary. Training three backbones from random initialization under one matched recipe, an STE-free sigmoid relaxation we call NoSTE matches STE-based training on both transformer encoders, within our seed standard deviation on ViT-7/CIFAR-10 and Swin-T/Tiny-ImageNet. Training does retain a short-lived full-precision target, a frozen copy of each stage discarded shortly after that stage is quantized, but no pretrained teacher. We then identify why the standard correction for this relaxation's known weakness, sigmoid saturation, fails: the floor required to keep it finite fixes the effective gradient at roughly $100\times$ that of STE across the saturated region, reducing the estimator to a badly scaled STE. An ablation attributes the result to the quantization schedule rather than to the gradient estimator. Finally, Swin-T's three patch-merging projections, 5.6% of parameters and left in full precision by standard recipes, are shown to occupy nearly half the packed model, bounding achievable compression at $8.2\times$ where ternarizing them would permit $14.2\times$.Code and training configurations will be released publicly soon.