arXiv Science⌕ Search

arXiv subjects

Pranav Venkata Konda

Publications and source records attributed to Pranav Venkata Konda.

4 recordsLinked to original sources

Identifiability of LLaMA-style decoders

We prove that a LLaMA-style decoder, with pre-norm RMSNorm, skip connections, rotary positions, grouped-query attention, a causal mask, SwiGLU feed-forward layers and a tied or untied unembedding, is determined by the function it computes on soft tokens, up to an explicit gauge group, for all parameters outside a proper algebraic subset. The group consists of one orthogonal change of frame of the residual stream, a torus and a general linear group for each key-value group, a scaling for each neuron, and permutations. For Mistral-7B its orbits have dimension $1.3\cdot10^{7}$, which is 0.18% of the parameters. For $\varepsilon>0$ and contexts longer than three times the head dimension, the function also determines each of the 2D sublayers at non-generic parameters and against wider networks, whenever every block has a head whose attention pattern occurs in no other block. A tied unembedding fixes the frame of the residual stream up to signed permutations. The method treats exponentials of attention scores and gate pre-activations as coordinates on a torus, shows that the partition function of a head that sees three positions is prime, and isolates heads and neurons by residues of an expansion at large input norm. We then test what exact equality leaves open in practice. In six released checkpoints of up to $7.2\cdot10^{9}$ parameters, the assumptions of the long-context corollary hold, and random gauge transformations move the weights by more than their norm while changing the logits by at most $5\cdot10^{-13}$. On small decoders, all 580 students that converge to their teacher lie on its orbit, or agree with it sublayer by sublayer when they are wider. At the trained weights of small decoders the differential of the parameter map has rank equal to the number of parameters minus the dimension of the group, on soft tokens and on sequences of hard tokens in which every token occurs.

cs.LG↗

The Identifiability and Observability of Deep Normalized Attention

We study which parameters of deep, unmasked, single-head attention are determined by its input--output function. For known positive nonconstant real-analytic normalizers, the function generically determines the effective scores and combined value map up to the signs induced by even normalizers. This proves the real-analytic case of a conjecture of Henry--Marchetti--Kohn, including softmax. We then classify exceptional fibers under explicit normalizer conditions, identifying when collapse makes later scores unobservable, and establish sharp Taylor orders for local identification. Near simultaneous query/key collapse, we compute the complete native Jacobian decay spectrum on separating finite input banks. For common first nonconstant normalizer degree $k$, layer $i$ has contact order $2k3^{i-1}-1$, with exact multiplicities and kernel dimension. High-precision and automatic differentiation calculations illustrate the resulting loss of numerical sensitivity.

cs.LG↗

Transformers Learn the Mestre-Nagao Heuristic

We train a two-layer transformer encoder to classify rational elliptic curves $E/\mathbb{Q}$ of conductor $\leq 10000$ as either rank 0 or rank 1 from the first 128 normalized Frobenius traces. We achieve >99% accuracy on both classes, and accuracy is essentially unchanged on test curves with no isogeny or quadratic-twist relative in the training set. We then apply techniques from mechanistic interpretability such as attention analysis, linear probing, activation patching, logit attribution, and neuron-level circuit analysis to reverse-engineer the algorithm the (centroid in function space) model learned. We find that a sparse circuit of 20 out of 512 layer-1 MLP neurons is sufficient for rank prediction under a linear probe with an AUROC of 0.992 at plateau, implementing a push-pull detector architecture of rank-0 and rank-1 detectors with a one-sided readout. However, we notice that the model has sub-optimal readout problems indicating a mismatch in rank-order between the readout pathway and the discriminative circuit. Critically, the learned input weights of the top discriminating neuron match the Mestre-Nagao sum heuristic weights $\log(p)/(p\cdot \log{B})$ with a Spearman coefficient $r = 0.997$ and Pearson coefficient $r = 0.952$: the model has learnt a result from analytic number theory from the Frobenius trace data alone. We additionally find that all 50 independently trained models concentrate CLS attention on prime positions at 2-50$\times$ the rate of composite positions. The CLS embedding encodes $\log{L(E,1)}$ with $R^2 = 0.962\pm 0.011$ across the 50 models (after controlling for the conductor). Activation patching analysis reveals that attention weights are dissociated from causal information flow. Additionally, the 50 solutions from training are near-identical in function space (with pairwise agreement $>$98.8%) despite large weight space barriers.

cs.LG↗

Khovanov homology and quantum error-correcting codes

Error-correcting codes for quantum computing are crucial to address the fundamental problem of communication in the presence of noise and imperfections. Audoux used Khovanov homology to define families of quantum error-correcting codes with desirable properties. We explore Khovanov homology and some of its many extensions, namely reduced, annular, and $\mathfrak{sl}_3$ homology, to generate new families of quantum codes and to establish several properties about codes that arise in this way, such as behavior of distance under Reidemeister moves or connected sums.

cs.IT↗