arXiv:2611.01328cs.LGOct 2026

Manuscript Offprint

arXiv:2611.01328

Same Function, Different Mechanism: Implementation-Local Geometry Beyond Accuracy

Miroslav Lžičař

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Two models can make exactly the same predictions yet respond differently when their implementations are perturbed. A lookup table can change one case independently; a shared rule couples changes across cases. We compare these mechanisms through an implementation chart: a specified local family of logit perturbations around a fixed predictive distribution. Our main result counts the independent prediction changes allowed by exact finite-group sharing: the active dimension is the number of input-output orbits minus the number of input orbits. For softened modular addition, lookup and shared cyclic charts therefore have ranks p2(p−1)p^2(p-1) and p−1p-1 despite identical predictions. The classical Fisher pullback connects these dimensions to local KL curvature; mechanism-preserving reparameterizations leave the rank unchanged. We also bound the spectral tail under approximate sharing and separate quadratic rank from higher-order learning coefficients. Trained modular-addition models verify that chart rank is measurable, while controlled compiled transformers distinguish compiler-supported intermediate charts from matched alternatives. Negative controls show where this discrimination fails. The framework evaluates specified mechanism hypotheses; it does not infer a unique mechanism from predictions or predict training dynamics.

1 Introduction

Suppose two systems answer every modular-addition question correctly, with exactly the same confidence. One stores a separate answer for each input pair. The other reuses one cyclic rule. Their predictions cannot distinguish them, but an intervention can: changing one stored answer need not affect another, whereas changing the shared rule affects many inputs together. This paper asks how to measure that difference while holding the predictive distribution fixed.

The key quantity is the number of independent local changes to predictions that a specified mechanism permits. We call this its active dimension. To define it, we need more than the model's outputs: we must say which parts of the implementation can change and which constraints remain in place. An implementation chart records that choice. For example, perturbing a convolutional kernel while preserving weight tying defines a different chart from independently perturbing its copies at every position. Both charts can pass through the same predictive distribution.

A running example. Let a,b,y∈Zpa, b, y \in \mathbb{Z}_p. Think of the output logits as a cyclic array indexed by yy. A shared implementation reads one kernel at the shifted position y−a−by - a - b; an unrestricted lookup implementation stores a separate array for each (a,b)(a, b). Adding the same constant to all logits does not change softmax probabilities, so each array has p−1p-1 meaningful directions. Lookup permits p2(p−1)p^2(p-1) independent changes; sharing permits only p−1p-1. Sections 2–6 formalize this example and explain why the gap survives coordinate changes and redundant parameters.

Preprint.

Main contributions.

  • An orbit-count formula for shared mechanisms. Theorem 5.2 computes active dimension from group orbits, without a coordinate-level Hessian calculation. Modular addition gives an unbounded factor-p2p^2 gap at the same predictive distribution.

  • A precise comparison of local mechanism hypotheses. Charts with the same tangent image represent the same first-order perturbation family. Reparameterization, dead coordinates, and duplication preserve its rank (Proposition 4.2); changing the allowed family changes the question. The Fisher pullback used to measure rank is classical background (Lemma 3.1).

  • An operational test and its boundaries. We compute chart ranks on trained networks and compare intervention-defined charts in compiled transformers (Section 7). A spectral-tail bound handles approximate sharing, and explicit higher-order examples show why rank alone is not a general learning-coefficient estimator.

Why local geometry? Singular learning theory (SLT) associates Bayesian complexity with a local statistical model, not just its predictions [Watanabe, 2009, 2013, 2018]. Work on neural local learning coefficients (LLCs) and program singularities motivates comparing implementations at a common predictive distribution [Wei et al., 2023, Lau et al., 2025, Hoogland et al., 2024, Wang et al., 2024, Murfet and Troiani, 2025]. We isolate the part visible to second-order geometry and state where higher-order terms matter. Neither an unrestricted Hessian nor the results below determine which algorithm a network learned, or predict grokking and other training transitions [Power et al., 2022, Nanda et al., 2023]. Chart specification requires architectural, compiler, or intervention evidence.

References (47)