Qwen2.5-7B-Instruct compares numbers through causal rank-one number directions summed in a shared two-dimensional residual plane
measured in 1 paperHindupur et al. study the max-of-two-numbers task in Qwen2.5-7B-Instruct (single model, two-digit operands, one-shot prompt) and find rank-one directions in the residual stream (u at layer 13 at the first number, v1 from head L14.H14, v2 the top PC at the second number) whose component rises with the number's value (log-linear fit) [hindupur-etal-2026] Patching u alone by interchange intervention changes which operand the model names as the maximum (e.g. clean (99, 61) with corrupted (12, 61) gives answer 12); a retrained u has |cos| = 0.99 with the first and the same held-out interchange accuracy 0.94 for two-digit operands [hindupur-etal-2026] The two number directions are nearly orthogonal (cos(v1, v2) = -0.08) and span a two-dimensional plane in the 3,584-dimensional pre-MLP layer-14 residual; patching the two rank-one directions together roughly matches patching the rank-two plane, and the comparison y1 > y2 is linearly decodable on it [hindupur-etal-2026] The same linear-direction scheme is reported for three numbers (a three-dimensional span of v1, v2, v3 and a one-dimensional flag direction in the layer-15 residual), while the paper notes number representations also lie on a curved manifold (PC1-PC3 view) that the comparison does not need; interchange accuracies are given in figures only [hindupur-etal-2026]