Is a Linear Probe Evidence of a Linear Representation?

ML NNGTB DML CV Backbone
线性表征假说认为,预训练的视觉模型会将生成性因子编码为特征空间中可线性解码的方向,并附带一套标准检验方法:训练一个线性探针(linear probe),若其分类准确率较高,即判定该因子已被表征。我们指出,这一检验标准过于宽松。理论上,任何足够丰富的特征映射(包括完全随机的特征映射)在渐近意义上均存在某种线性读出机制;因此,高探针准确率可能对应两种截然不同的几何结构:其一是真实的线性世界模型(linear world model),即潜变量对齐的子空间主导了整个表征;其二是核机器式结构(kernel machine),即潜变量虽在线性意义上嵌入于高维弯曲流形之中,但该流形的整体结构远比探针所利用的线性方向复杂得多。这一区分至关重要,因为与探针正交的弯曲结构成分,恰恰关系到模型在分布外(out-of-distribution)场景下的泛化能力、鲁棒性以及组合式迁移能力。为此,我们提出了三种非对称诊断指标以区分上述两种情形:反向可预测性(reverse predictivity)、谱集中度(spectral concentration)以及分布外泛化能力(out-of-distribution generalization)。我们在一个完全可观测的仿真环境中对这些指标进行了验证,其中真实潜变量结构已知。进一步地,我们将这些诊断方法应用于六个在SVG-World(一个具有配对视觉风格的确定性生成式基准数据集)上预训练的视觉Transformer模型,并对其中两个模型额外测试了CelebA数据集。结果表明:预训练确实产生了超越随机核结构的有意义表征,但距离理想的线性世界模型仍有显著差距。此外,在dSprites、3D Shapes和MPI3D三个数据集上,前向可解码性(forward decodability)与潜变量对齐方差(latent-aligned variance)出现了解耦现象。换言之,仅凭前向解码性能优异,并不能说明被探针识别出的因子真正与表征空间的主导几何结构对齐。综上所述,本研究警示学界:线性探针的成功并不等价于模型内部形成了真正线性且低维的表征;我们不应将探针性能简单等同于表征本身的线性本质。
The linear representation hypothesis holds that pretrained vision models encode generative factors as linearly decodable directions in feature space, and comes with a standard methodology: train a linear probe, declare a factor represented if accuracy is high. We show this test is too permissive. Asymptotically, any sufficiently rich feature map, including a random one, admits a linear readout, so high probe accuracy is consistent with two very different geometries: a true linear world model, where the latent-aligned subspace dominates the representation, or a kernel machine, where the latents lie linearly inside a much larger curved manifold. This distinction matters because the curved structure orthogonal to the probe is relevant for out-of-distribution generalization, robustness, and compositional transfer. We propose three asymmetric diagnostics that distinguish the two cases: reverse predictivity, spectral concentration, and out-of-distribution generalization. We validate them in a fully observed simulation where ground truth is known. Applied to six pretrained vision transformers on SVG-World, our deterministic generative benchmark with paired visual styles, and to two of them on CelebA, they show pretraining produces structure beyond a random kernel but well short of a linear world model. On dSprites, 3D Shapes and MPI3D, forward decodability and latent-aligned variance dissociate. Thus, forward decoding alone does not show that the probed factors align with the dominant geometry of the representation. In summary, our work cautions about the success of linear probes as opposed to truly linear and low dimensional representations.
许愿