Manuscript Offprint
arXiv:2610.39489Program Bindings Inside Code Models
PRATEEK KUMAR RAJPUT, University of Luxembourg, Luxembourg
YEWEI SONG, University of Luxembourg, Luxembourg
JACQUES KLEIN, University of Luxembourg, Luxembourg
TEGAWENDÉ F. BISSYANDÉ, University of Luxembourg, Luxembourg
Large language models are now used to complete, review, and repair code, tasks that until recently relied on tools built on program analysis. A refactoring engine, for example, resolves every use of a name to its definition before it renames anything, and the correctness of the rename depends on that information. A language model exposes no such structure. Its state is a hidden vector per token at each layer, and when it renames a variable in one place but not in another, a developer cannot inspect which definition the model associated with each use. In this paper, we test whether the hidden states of a code model can be described and edited using the information a compiler front end computes. For each token of a Python program, standard analyzers provide its position in the abstract syntax tree, its scope, its definition–use links, and its syntactic category. We fit a decomposition that expresses every hidden state of a frozen model as a sum of one term per token, each combining the token with this structural label, and we replace the model's own states with the decomposition at every layer while it predicts the output of a small program. If the model still answers correctly, the decomposition preserves the information the model uses. We apply this test to 14 open models, seven of them trained for code, and compare against a baseline decomposition of the same size built from token positions. The static-analysis decomposition preserves the model's answers better than the positional one in 10 of the 14 models, including six of the seven code models, and deleting the definition–use links from it removes most of that advantage on the two models tested. Editing the decomposition, for instance rebinding the argument of a call, makes StarCoder2-15B produce the answer of the edited program in 90 of 100 cases, compared with 19 for the positional baseline. The Qwen2.5 family is the exception on several measures. For most of the models tested, standard static analysis therefore provides both a description of what the hidden states encode about a program and a way to change it without retraining.
CCS Concepts: • Software and its engineering → Software notations and tools; Software testing and debugging; • Computing methodologies → Neural networks.
Additional Key Words and Phrases: code language models, tensor product representations, interpretability, static analysis, causal interventions, program structure
1 Introduction
Large language models (LLMs) are now part of everyday software development tools. They complete code in the editor, propose patches in code review, and generate candidate fixes in automated program repair [9]. Welsh has argued that programming itself is on its way to obsolescence, with software trained rather than written [54], and the observation that code is repetitive enough to be predicted like natural language [20] explains much of why these models work. Both are claims about what the models produce. What a model internally represents about the program it is predicting remains an open question. The tools that preceded these models rely on an explicit representation of the program. A compiler resolves every name to a definition before it generates code, a refactoring engine renames a variable only after it has found every use that the declaration binds, and a static analyzer reports a bug as a path through definitions and uses. The correctness of these tools depends on the representations they build. An LLM builds no representation that a developer can inspect. It has no symbol table and no scope resolver, only one hidden vector per token at each layer, from which the next token is predicted. A recent survey concludes that reliable
Authors' Contact Information: Prateek Kumar Rajput, University of Luxembourg, Luxembourg; Yewei Song, University of Luxembourg, Luxembourg; Jacques Klein, University of Luxembourg, Luxembourg; Tegawendé F. Bissyandé, University of Luxembourg, Luxembourg.
Prateek Kumar Rajput, Yewei Song, Jacques Klein, and Tegawendé F. Bissyandé
systems will have to combine LLMs with traditional program analyses [9], and such a combination requires knowing how what the model represents relates to what the analyses compute.
Figure 1(a) shows the kind of question we study. A developer who adds a configuration to this command builder needs the exact list the call returns in order to write the regression test, which means following the selected variable through the call and keeping the order of the arguments. Code models answer such output-prediction questions well [15, 27, 38], and StarCoder2-15B [29] is correct on 97.8% of the programs in our test set. When it is wrong, however, the developer cannot inspect which list the model associated with arguments, and when the model is asked to rename primary throughout the program, nothing shows whether its internal representation of the program changed accordingly. Studies that perturb the input show the consequences. Neural models of code change their predictions when variables are renamed [40, 58], and current code models track data flow and control flow poorly under counterfactual tests [21]. Whether a model's hidden state is organized by the same bindings a compiler tracks therefore determines how tools built on these models can be checked. If it is, program analysis can be used to inspect, test, and correct the model's internal state. If it is not, such tools can only be validated through their outputs.
Most of the available evidence comes from probing. A classifier is trained on frozen hidden states to predict syntactic or data-flow properties, and its accuracy is taken as a measure of what the model encodes [1, 3, 10, 25, 28, 30, 31, 37, 43, 50, 52, 53]. A probe shows that the information is present. It does not show that the model uses it, because part of the accuracy can come from the probe itself [19], and it offers no way to change what the model has encoded.
In this paper, we take a different approach, summarized in Figure 2. We label every token of a program with the information a standard Python analyzer computes for it, namely its position in the abstract syntax tree, its enclosing scope, its definition-use record, and its syntactic category, obtained from the CPython parser, LibCST, and Beniget with no parser written for the task. We then fit a decomposition that expresses each hidden state of a frozen model as a sum of terms, one per token, each combining the token with its structural label. Such a sum is a tensor product representation in the sense of Smolensky [45], in which the label is called the token's role, and we fit it with the DISCOVER procedure of McCoy et al. [33]. We call labels built from static analysis SE roles and the baseline labels, which record only token positions, positional roles. The test is behavioral. We substitute the decomposition for the model's own states at every layer while the model predicts a program's output, and we count how often the model still produces the correct answer. Because the labels describe program structure, the decomposition can also be edited in the same way a refactoring tool edits source code. We can rebind the argument of a call, or rename a variable, in the decomposition and check whether the model's answer changes accordingly.
We apply this test to 14 open models with 2B to 32B parameters. Seven are trained for code, and six of them are paired with a general-purpose model from the same family (Llama, Qwen2.5 at 3B and at 32B, Gemma, DeepSeek, and Yi). The seventh pair, StarCoder2-15B and Qwen2.5-14B, crosses families. The task is a set of small list-manipulation programs whose expected outputs are obtained by executing them, which allows us to withhold specific combinations of values and positions from the fit and to align edits token by token. The baseline is a decomposition of the same size built from positional roles. The study addresses four research questions.
RQ1 Does a decomposition built from SE roles preserve the model's answers better than one built from positional roles? If it does, the information computed by program analysis describes the model's internal state better than token positions do, which is a prerequisite for using program analysis to inspect such models.
RQ2 Does the fitted decomposition generalize to combinations of values and positions it was never fitted on, and which of its terms carry that generalization? A decomposition that only reproduces the combinations seen during fitting could not be applied to new programs. The ablation of unseen terms shows whether the roles themselves account for the generalization.
RQ3 Do edits made on the decomposition change the model's answer as the corresponding source edit would? This question is the most relevant one for tool support. If rebinding an argument or renaming a variable in the model's state changes the answer in the same way as the corresponding source edit, the state can be edited and tested as a refactoring engine edits source code.
RQ4 Is the effect stronger in models trained for code than in their general-purpose counterparts? A consistent difference within the pairs would indicate that the structure is related to training on code, with the caveat that the paired models differ in more than their training data.
The results are consistent across five model families and reversed in one. SE roles preserve the model's answers better than positional roles in ten of the 14 models, including six of the seven code models, by 5.2 to 38.3 percentage points. On StarCoder2-15B the decomposition preserves 79% of the correct answers, compared with 52% for positional roles, and removing the definition-use information from the labels costs 18.3 and 28.9 points on the two models tested. The decomposition generalizes to withheld combinations in two different ways, one for literal values and one for variable names. Rebinding an argument in the decomposition makes the model produce the new answer more often than the positional edit does in all nine non-Qwen models, and when a rename breaks the program so that its output changes, the model's answer changes accordingly more often under SE roles in all 14. Edits that change a literal value do not benefit from SE roles. In six of seven pairs the advantage is larger in the code model. The Qwen2.5 family is the exception on rebinding, on the variable-name generalization, and on preservation below 32B. In all 14 models the SE decomposition reconstructs the hidden states less accurately than the positional one, so selecting by reconstruction error alone would have favored the wrong decomposition.
This paper makes three contributions.
-
A role scheme for decompositions of hidden states built from standard static analyses, with no task-specific parser, and a positional baseline of equal size against which it is measured.
-
A study of 14 code and general-purpose models with the controls needed to interpret the result, namely removal of the definition-use field, an ablation that removes the terms absent from the training data, control edits whose expected output changes, and no-op and oracle-state checks.
-
A replication package with the code, the protocol and seeds, the frozen corpora, and the per-program predictions behind every table.
The study is limited to one synthetic task, one training seed per condition, and a capped training budget, and the result depends on the model family. The remainder of the paper is organized as follows. Section 2 presents the background and the running example, Section 3 the role scheme, Section 4 the study design, Section 5 the results, and Sections 6 to 8 the discussion, threats to validity, and related work.
2.1 Motivating Example
Figure 1(a) is the command builder of the introduction. To predict the output of the queried call, one has to resolve a sequence of bindings. The argument primary is bound to the parameter arguments of build_command, the function prepends "git" to that list, and the other function and the other list are not involved. The token text alone does not provide this information. The parameter arguments occurs in both functions with different scopes, each list name occurs once as a definition and at most once as a use, and the same call with secondary returns a different list. A
Prateek Kumar Rajput, Yewei Song, Jacques Klein, and Tegawendé F. Bissyandé
(a) A regression test for a command builder
def add_verbose(arguments): return arguments + ["--verbose"]
def build_command(arguments): return ["git"] + arguments
primary = ["status", "--short", "--branch"] secondary = ["diff", "--stat", "--cached"] build_command(primary)
['git', 'status', '--short', '--branch']
(b) Test record 1f9387. . . f6ab4f of our held-out set
def alter(sequence): return sequence + ["A"]
def change(sequence): return ["E"] + sequence
y = ["C", "G", "K"] x = ["P", "S", "X"] change(y)
['E', 'C', 'G', 'K']
Fig. 1. Two programs with the same binding structure. Program (a) is an application example whose regression test asserts the exact list the queried call returns. Program (b) is a measured test case of the generalization experiment (RQ2). Under the renaming git→E, status→C, --short→G, --branch→K, diff→P, --stat→S, --cached→X, --verbose→A, build_command→change, add_verbose→alter, primary→y, secondary→x, and arguments→sequence, the two abstract syntax trees are identical and both programs produce the corresponding output when executed.
compiler front end records, for each token, the AST node it belongs to, the scope in which it appears, the definitions a use may refer to, and its syntactic category. These four pieces of information form the labels we assign to tokens in Section 3.
Figure 1(b) is a test record from our generalization experiment (RQ2). Under the renaming given in the caption, its abstract syntax tree is identical to that of (a), so the two programs have the same binding structure. Record (b) is a held-out case because the letters C, G, K and P, S, X occupy list positions they never occupied in the programs used for fitting, although every letter and every position occurs separately in those programs. Generalization here means combining values and structural positions that were each seen during fitting but never together, which is also what the developer's new configuration requires. Program (a) illustrates the application scenario and was not used in the experiments. Record (b) is an actual test case.
2.2 Tensor Product Representations and Discover
A tensor product representation (TPR) encodes a symbolic structure as a set of role-filler bindings. Each content element (the filler) is paired with the structural position it occupies (the role), and the vector for the whole structure is the sum of the corresponding outer products [7, 45]. When the role vectors are linearly independent, the filler bound to any role can be recovered exactly [46]. TPRs are one approach to the binding problem, the question of how a distributed representation keeps track of which value goes with which variable, position, or syntactic slot [14, 22]. Whether transformers solve this problem with an implicit binding scheme is an open question [6, 23, 32, 42, 56].
Discover (DISsecting COMpositionality in VEctor Representations) tests whether a trained model implements a hypothesized set of bindings by checking the model's behavior [32, 33, 47]. The researcher specifies a role scheme, a function that assigns each token a structural role label. For each representation level , Discover learns filler embeddings, role embeddings, and a linear projection such that the frozen hidden state at position is approximated by a sum of filler–role outer products over the prefix. The approximation is then substituted for the model's own state, and the model must still produce the correct output. A successful replacement shows that the hypothesized structure captures the information the model uses, and it allows targeted interventions on fillers and roles. McCoy et al. report this for GPT-OSS-20b on six symbolic tasks, including Python code execution, where 31 intervention types average 0.903 accuracy [33]. Not every network can be approximated in this way, and whether a given one can is an empirical question. We keep the experimental settings of that paper (Section 4.3) and change the target models, the roles, and the replacement protocol, adding a held-out identifier condition and a dependency-removal control under a 20,000-step training budget.
2.3 Formal Instantiation
Let be the tokenizer piece at query position and the position whose state is reconstructed. Each piece receives a fixed label from program analysis or from the prompt template (Section 3). For each level , learned embedding tables map pieces and role keys to vectors,
and the normalized hidden state is approximated by
followed by the inverse normalization . The state at position is thus reconstructed from one binding per query token up to and including , each pairing the token’s content with a role that depends on . Here is the query span (the varying part of the prompt, including a trailing output cue and excluding the fixed few-shot prefix), and are the reconstruction weights and bias, and the target is the per-level, per-channel normalized state . We estimate and once from the query-token states of 1,024 programs sampled from the 200,000-program training corpus and keep them fixed during fitting. Only , , , and are optimized. The model weights and the symbolic role rules stay fixed. All learned parameters are level-specific, and the discrete role definition is shared across levels. The two schemes we compare differ in one component, the role key. The positional baseline, bidirectional_all, uses with indexed relative to the query span (the name refers to the two coordinates, with no access to future tokens). Our main scheme replaces this key with one derived from static analysis.
3 Role Schemes from Static Analysis
A role scheme is a hypothesis about which structural positions are relevant when a model combines information about a program. For code, the roles must capture the structure that bindings depend on, that is, where each name is defined, which occurrences refer to it, and which syntactic position each token occupies. They must also be computable by standard tools on any program, so that the hypothesis depends only on standard program analysis rather than on the task or on a learned probe. Our label meets both requirements with four fields from standard static analysis.
3.1 Four Structural Fields
For every tokenizer piece at source position j, the analyzer assigns a composite label
with the following fields.
(1) (AST path): the full CPython AST field and index path of the smallest node containing the token, for example Module.body[2].value.elts[0]. The path records structural order, so SE roles also carry positional information.
Prateek Kumar Rajput, Yewei Song, Jacques Klein, and Tegawendé F. Bissyandé

Fig. 2. Overview of the approach. Static analysis assigns each token of the source program a structural label made of its AST path, scope, definition-use record, and syntactic category. A tensor product representation binds each token to its label, sums the terms, and projects the sum to reconstruct the hidden states of a frozen code model. The reconstruction is fitted to the model's own states and then used in two behavioral tests. In the first, the model's states are replaced by the reconstruction at all analyzed levels and we check whether its answers are preserved, including on combinations of tokens and roles never seen during fitting. In the second, the bindings are edited, for instance by rebinding an argument or renaming a variable, and we check whether the answer follows the edit.
(2) (scope): the kind and structural location of the enclosing lexical scope, from the LibCST 1.8.6 ScopeProvider. This field records where an occurrence appears, which need not be where the referenced variable is defined.
(3) (dependency): for a definition, its structural location. For a use, the sorted set of possible defining locations and the expression-input dependencies computed by Beniget 0.5.0, with explicit markers for builtins and unbound names.
(4) (syntactic category): the AST node class, the load or store context where present, and the literal kind for constants, for example Name.Load, Name.Store, or Constant.str.
The dependency field is purely symbolic. Every location is an AST path, a use may list several candidate definitions, and the records are serialized into and combined with the other fields into one categorical label before fitting. The analysis is static and involves no execution. The role vectors are learned, while the recorded locations and relations remain fixed. These links correspond to the data dependences of classical analysis, which connect definitions to the uses they may reach [11]. We use the records directly and build no program dependence graph. The labels contain no control-flow or control-dependence information, and the category field is purely syntactic, since we perform no type inference. In Figure 1(b), the y of the queried call is a module-scope Name. Load with a possible defining location at the first assignment, so the identifier receives different labels at its declaration and at its use, and the two parameters named sequence are separated by the scope field.
3.2 From Program Text to Token Labels
The analyzer processes the whole visible program. For each source character it finds the smallest containing AST node, taking the deeper node when two spans coincide, and assigns that node's label to the tokenizer piece through the piece's first overlapping code character, after aligning the UTF-8 offsets of the AST with the Unicode offsets of the tokenizer. When an identifier spans several tokenizer pieces, the pieces at its boundaries can therefore lose identifier-specific detail. Tokens outside the source program, including the trailing output cue, receive template labels. The decomposition sums over the prefix of the query, but the analysis reads the whole program.
3.3 The Joint Source–Current Role
Our main scheme, se_composite_pair, defines the role of a source token relative to the position being reconstructed,
an ordered, serialized pair of composite labels used as a single categorical key. The role of the y in the queried call of Figure 1(b) is therefore one key when the reconstructed state belongs to the closing parenthesis and another when it belongs to the output cue. We do not embed the four fields separately and then add or concatenate their vectors, and the source and current components share no parameters across keys. On the main task the vocabulary contains 1,009 joint roles under the StarCoder2 tokenizer and 1,093 under the CodeLlama tokenizer, excluding padding.
3.4 Positional Baseline
The positional baseline bidirectional_all keeps Equation (2) unchanged and replaces only the role key with the positional pair . Both schemes have the same table shapes, the same projection size, and the same training budget, so any difference in behavior between the two schemes is due to the role definition alone.
3.5 Relation to DISCOVER
The tensor product form, the linear reconstruction, the source–current conditioning, replacement at all levels, and the target-minus-source edit are taken from DISCOVER [33], whose code experiment already includes value and argument-variable edits among its six edit types. Its roles for code come from a parser written for that task, which labels function and variable identity, declaration order, positions inside definitions and lists, and query positions. This paper adds the role construction, four fields computed by standard analyzers on any Python program with no task-specific parser, the held-out identifier condition, the ablation of terms absent from training, the consistent and invalid rename and the operand-order edits, the set of 14 code and general-purpose models, and the dependency-removal control. The comparison we report is SE roles against positional roles of equal capacity. We did not run DISCOVER's hand-designed code roles as a third condition, so we make no claim about them. Three limitations apply. Only the dependency field has been ablated, on two models. The joint key is categorical, so we report coverage for every held-out condition (on the main task it was complete for all 14 models). Finally, the roles come from the analyzer and are not learned, so the experiment tests whether the model's behavior depends on this particular structure. It does not test whether the model's own organization coincides with it.
4 Study Design
This section describes the task, the models, the fitting procedure, and the replacement protocol shared by the four research questions, and then the measurements used to answer each question.
4.1 Task and Data
The main task follows the five-operation list task of DISCOVER's code experiment, regenerated as a fixed set of programs. Each program has the same structure as the program in Figure 1(b). It contains two functions, change and alter, each applying one of five operations (reverse, sort, repeat two to
Prateek Kumar Rajput, Yewei Song, Jacques Klein, and Tegawendé F. Bissyandé
four times, prefix a letter, suffix a letter), two lists x and y of one to three uppercase letters, and one queried call. Function order, declaration order, list values, and the queried function and list vary. Expected outputs are obtained by executing the program and are checked independently against the selected operation. Seeds 922001 to 922003 generate 200,000 training, 1,000 validation, and 1,000 test programs, and generated programs that duplicate (by SHA-256 hash) an earlier program, a program of the fixed development set, or a program of another split are discarded. A prompt consists of a fixed few-shot example, the program, and an output cue, and the same JSONL files and hash manifests are used for all models. An AST check of all 202,000 programs confirms that they contain no branches, loops, short-circuit expressions, or comprehensions. Every function has one return statement, and builtins such as sorted are treated as opaque. Predicting a program's output is the task that CRUXEval poses at larger scale [15]. The controlled grammar is what allows us to execute every program, to withhold chosen combinations, and to align edit triples token by token.
4.2 Models
We study seven code-specialized models and seven general-purpose counterparts (Table 4). The primary pair, StarCoder2-15B [29] and the Qwen2.5-14B base model [57], compares two model families of similar size. The other six pairs come from the same family. CodeLlama-13B [41] is paired with its documented base model Llama-2-13B [49], Qwen2.5-Coder-3B with Qwen2.5-3B and Qwen2.5-Coder-32B with Qwen2.5-32B [24, 57], CodeGemma-2B [4] with Gemma-2B [13], DeepSeek-Coder-6.7B [16] with DeepSeek-LLM-7B [2] (both base variants), and Yi-Coder-9B with Yi-1.5-9B [59]. Training data and procedures differ within every pair, so no pair isolates code pretraining or parameter count. The frozen model runs in bfloat16 and the TPR and optimizer states in float32. The number of analyzed levels (the embedding output plus the output of every transformer block) ranges from 19 to 65 depending on the model.
4.3 Fitting, Stopping, and Checkpoint Selection
Fillers have dimension 100, roles 50, and the projected tensor 5,000. The batch size is 12, with at most 20,000 optimizer steps per condition, about 1.2 passes over the training set. Normalization statistics come from 1,024 training programs, and fitting minimizes the normalized hidden-state MSE with Adam at an initial learning rate of . Reconstruction error on the 1,000 validation programs is checked every 200 steps, and answer accuracy on 250 validation programs every 10,000 steps, the latter only as a diagnostic. For RQ1, after 20 checks without improvement the learning rate is halved, the best weights are reloaded, and the optimizer state is reset, and fitting stops before the eleventh reduction or at the step cap. For RQ2 the corresponding numbers are 5 checks and three reductions. RQ1 selects the checkpoint by validation MSE and RQ2 by in-distribution validation MSE plus the penalty below. No checkpoint is selected by task accuracy or by any out-of-distribution result. All RQ1 checkpoints lie between steps 19,400 and 20,000 and all RQ2 checkpoints at step 20,000. Every condition uses one configuration seed, 20260922, so every result is a single-seed measurement. RQ2 adds the dimension-wise penalty on the embedding tables described in the DISCOVER paper, with weight , which drives whole embedding dimensions toward zero. The released DISCOVER code applies an L1 penalty instead. We follow the written protocol and record the difference.
4.4 Replacement Protocol
For each token whose state is replaced, the replacement is applied at all analyzed levels in the same forward pass. The states of the query, including the output cue, are replaced, and the fixed few-shot prefix is left unchanged. Attention caches are rebuilt by the decoder after each replacement, and the answer is then generated as usual. Identity-replacement and zero-ablation controls are run before any fitting and scoring. All 14 RQ1 audits report zero dropped contributions, so no RQ1 number is affected by unknown keys, and the original model’s accuracy is recorded without any minimum capability threshold.
4.5 RQ1: Preservation, Layer Diagnostic, and Dependency Control
We fit the positional and SE schemes separately against the same frozen model, select by validation MSE, and evaluate replacement at all levels on the test set, which is never used during fitting, recording original accuracy, accuracy under replacement, agreement with the original outputs, retention on originally correct cases, reconstruction error, and key coverage. A per-level diagnostic replaces one level at a time, on 125 in-distribution test programs, at all 41 StarCoder2-15B levels and records accuracy and mean normalized reconstruction MSE per level. Audits confirm that these programs contain no unseen filler-role pair among 1,597,194 contributions under either scheme. The dependency-removal control refits the SE scheme with the dependency field deleted from both the source and the current label before the role vocabulary is rebuilt from the training set, leaving AST path, scope, and category. It is a fresh fit with the same corpus, splits, normalization sample, dimensions, batch size, and step cap, evaluated on the same test programs with the same original predictions and normalization arrays, on CodeLlama-13B and StarCoder2-15B only. Removing the field merges joint roles, from 1,093 to 914 keys on CodeLlama-13B and from 1,009 to 838 on StarCoder2-15B, so the control has fewer role parameters than the full scheme although the vector dimensions are equal.
4.6 RQ2: Fresh Fits with Held-Out Combinations
We distinguish two kinds of novelty. An unknown atomic key is a token piece or role key that has no embedding in the training vocabulary. The encoder drops that contribution and counts it, so coverage is reported together with accuracy. An unseen pairing is a filler-role combination whose two embeddings exist but which never occurred together in training, so its outer product is well defined. Unknown keys were the main obstacle in our early attempts on repository code. RQ2 studies unseen pairings, of which Figure 1(b) is an example. Because the RQ1 fits were trained on the combinations we want to withhold, RQ2 fits a new SE-only decomposition for each frozen code model, with no imported weights, optimizer state, normalization statistics, or validation cache. The grammar is restricted (seed 2026092309) to one prefix function, one suffix function, two three-letter lists over six distinct letters, and the names x, y, u, v, with its own 200,000 training, 1,000 validation, and 1,000 test programs and no code shared with other splits or with the main corpus. List slots 0 to 2 lie in the first declaration and 3 to 5 in the second. The test set withholds the letters C/D, G/H, K/L, O/P, S/T, and W/X at slots 0 to 5, validation withholds A/B, E/F, I/J, M/N, Q/R, and U/V, and every withheld letter occurs in other slots during training. The identifier condition is separate. Training allows y or v in the first declaration and x or u in the second, validation uses u then v, and test uses x then y, a new combination of names and declaration slots that each occur in training. Identifier tests keep literal bindings allowed in training, and literal tests keep identifier bindings allowed in training. The evaluation covers 1,000 in-distribution test programs, 500 literal held-out programs in which all six literal bindings are withheld, and 1,000 identifier held-out programs. Held-out validation sets (100 and 250 cases) are scored after fitting, with novel pairs disjoint from the test set. Checks for each tokenizer verify the expected outputs, disjoint hashes, known atomic keys, and the absence of the withheld pairs from training.
Prateek Kumar Rajput, Yewei Song, Jacques Klein, and Tegawendé F. Bissyandé
Ablation of unseen terms. Let S be the set of filler-role pairs present in training. We compare the full reconstruction with
which removes only the unseen contributions and keeps weights, inputs, and known contributions unchanged. If accuracy falls, the newly composed contributions are necessary for successful replacement on the measured programs. The check does not reveal the model's own algorithm, and an increase in accuracy is reported as such. Under uniform guessing, the chance level is , that is for six letters with three returned, and for the identifier swap. These chance levels are reference points only, since a system with structural information can exceed them. No positional and no general-purpose RQ2 fit was run.
4.7 RQ3: Edits and Control Edits
RQ3 uses the RQ1 checkpoints and triples of independently executed programs (source, target, control). The text given to the model remains the source program. For aligned token positions, the edit adds the full target-minus-source difference of the decomposition to the source states,
The model reads the source text while its states carry the fitted difference between the decomposition of the target and that of the source. The per-level mean cancels in the difference. These are whole-program differences, including changed roles, rather than edits of a single SE field in isolation. A target hit means that the edited model produces the target program's executed output. The control condition applies the control-minus-source difference instead and scores the result against the control program's own executed output. A control hit therefore records that the control edit succeeded, and it does not mean that the model was misled.
Listing 1. Source program of an edit triple. The queried call executes to ['Y', 'X'].
def alter(sequence): return sequence + ["X"]
def change(sequence): return ["X"] + sequence
y = ["Y"] x = ["Z", "U"]
alter(y)
Four edit families are measured with 100 triples per model and family. In terms of Listing 1, an argument rebinding target calls alter(x), with output Z, U, X, and its control calls change(y), with output X, Y. A consistent rename target swaps the x and y declarations and calls alter(x), which preserves the output Y, X. Its control, an invalid rename, swaps the declarations but keeps alter(y), which changes the output to Z, U, X. An operand-order target makes alter prepend instead of append, with output X, Y, and its control changes the unused function to a suffix operation. A value change alters a literal. Because a consistent rename preserves the output, a target hit alone could mean that the model simply kept its previous answer. The invalid-rename control distinguishes following the edit from keeping the old answer. Triples require supported vocabulary, equal token counts, prefix alignment, and distinct programs, and they are selected without looking at model predictions. Unsupported cases are excluded rather than counted as failures, and the operand-order family is excluded for all five Qwen models because their candidates fail the equal-alignment requirement. We report counts over all 100 triples. Results restricted to the triples whose source and target the original model answers correctly are in the replication package. No-op and oracle-state controls check the intervention code.
4.8 RQ4: Paired Model Contrasts
For each model and test program , let [SE correct] - 1 [positional correct]. For each pair we compare on identical test programs by paired resampling of the RQ1 results. No new fitting is involved. RQ4 compares SE advantages rather than raw accuracies, so a code model can show the larger advantage while its counterpart has the higher accuracy, and because training data and procedures differ within every pair, the result is a paired contrast between specific models rather than an isolated effect of code pretraining.
4.9 Statistics
RQ1, RQ3, and RQ4 intervals use 5,000 paired percentile bootstrap resamples over the 1,000 test programs with seed 20260923. RQ2 uses the fixed-seed paired bootstrap of its saved evaluator. All intervals are pointwise, exploratory, and uncorrected for multiplicity. They measure test-case uncertainty under one fitting seed and say nothing about variation across independent fits.
4.10 Protocol Amendments
The study departed from the planned protocol in six respects, listed once here. Section 7 states their consequences. (1) The 20,000-step cap was adopted after interim validation and before the final RQ1 test. Fits that stop at the cap have not converged, and both schemes faced the same cap. (2) The StarCoder2-15B RQ1 SE fit was continued from an earlier schedule change, whereas every other fit, including its dependency-removal control, started fresh. A matched fresh full-SE reference was planned and cancelled before it started, so the control comparison for StarCoder2-15B differs in more than the removed field. (3) The Yi-1.5-9B RQ1 fit was resumed at step 10,000, with optimizer and schedule state preserved, after a device migration, which can change floating-point results. (4) A hardcoded 90% original-validation threshold had excluded Qwen2.5-Coder-3B (223/250), Qwen2.5-3B (182/250), and CodeLlama-13B (193/250) from RQ2. We removed the threshold on 24 September 2026, since it selected models by capability, and kept the weaker models in every table. (5) The RQ2 penalty is as in the Discover paper's written protocol, whereas its reference code applies L1. (6) Direct GPU-to-GPU copies were found to corrupt values, so all transfers are staged through the CPU and the affected preliminary outputs were discarded. Fits run on rented GPUs (the 32B Qwen pair, DeepSeek, and Yi-Coder) were imported with checksum verification, so every reported number is backed by raw data held locally.
5 Results
All confidence intervals are paired bootstrap estimates (Section 4.9). Unless stated otherwise, accuracy is the fraction of the 1,000 test programs for which the model produces the exact expected output.
5.1 RQ1: Preservation under Replacement at All Levels
Table 1 gives the main result. The SE decomposition preserves more correct answers than the positional decomposition in 10 of the 14 models. Among the seven code-specialized models the advantage holds in six, from +5.2 points on CodeGemma-2B to +38.3 on Yi-Coder-9B, and the exception is Qwen2.5-Coder-3B at -20.5. Among the general-purpose models, Yi-1.5-9B, Llama-2-13B, Qwen2.5-32B, and Gemma-2B favor SE roles, while Qwen2.5-14B (-2.4 [-5.8, +0.9]), Qwen2.5-3B (-14.5), and DeepSeek-LLM-7B (-3.3) favor positional roles. The three Qwen2.5 models below
Prateek Kumar Rajput, Yewei Song, Jacques Klein, and Tegawendé F. Bissyandé
Table 1. RQ1. Accuracy after replacement at all levels on the 1,000 test programs, grouped by pair with the code-specialized model first. “Original” is the unmodified model, “Positional” and “SE” the two schemes fitted against it. The gap is SE minus positional in percentage points, with paired 95% bootstrap intervals for the two primary models. “MSE” is the validation reconstruction error of the selected checkpoint, averaged over levels.
| Model | Levels | Original | Positional | SE | SE - pos. | MSE pos. | MSE SE |
|---|---|---|---|---|---|---|---|
| StarCoder2-15B | 41 | 97.8 | 52.0 | 79.0 | +27.0 [23.8, 30.2] | 0.08260 | 0.12129 |
| Qwen2.5-14B | 49 | 94.9 | 55.7 | 53.3 | -2.4 [-5.8, +0.9] | 0.08037 | 0.10935 |
| CodeLlama-13B | 41 | 80.5 | 36.4 | 61.9 | +25.5 | 0.06945 | 0.11234 |
| Llama-2-13B | 41 | 50.4 | 25.8 | 40.3 | +14.5 | 0.05321 | 0.08910 |
| DeepSeek-Coder-6.7B | 33 | 89.6 | 44.0 | 64.9 | +20.9 | 0.07625 | 0.11638 |
| DeepSeek-LLM-7B | 31 | 44.2 | 23.2 | 19.9 | -3.3 | 0.04471 | 0.08340 |
| Yi-Coder-9B | 49 | 95.7 | 43.5 | 81.8 | +38.3 | 0.10649 | 0.14561 |
| Yi-1.5-9B | 49 | 96.3 | 40.6 | 71.4 | +30.8 | 0.08442 | 0.12026 |
| CodeGemma-2B | 19 | 33.1 | 12.9 | 18.1 | +5.2 | 0.05562 | 0.09043 |
| Gemma-2B | 19 | 44.1 | 22.1 | 24.1 | +2.0 | 0.04119 | 0.06672 |
| Qwen2.5-Coder-3B | 37 | 87.1 | 49.3 | 28.8 | -20.5 | 0.06891 | 0.09538 |
| Qwen2.5-3B | 37 | 72.6 | 35.2 | 20.7 | -14.5 | 0.06277 | 0.08732 |
| Qwen2.5-Coder-32B | 65 | 99.7 | 66.7 | 77.1 | +10.4 | 0.08613 | 0.12062 |
| Qwen2.5-32B | 65 | 99.6 | 66.1 | 73.2 | +7.1 | 0.08732 | 0.12041 |
32B are therefore the consistent exception, and the 32B Qwen pair favors SE roles. The last two columns show that the SE fit has the higher validation reconstruction error in all 14 models, by 0.025 to 0.043, including the ten in which it preserves more answers. Lower reconstruction error therefore does not imply better preservation of the model's answers.


Fig. 3. Replacement of one level at a time on 125 in-distribution StarCoder2-15B test programs. (a) Exact-answer accuracy, with the unmodified model at . (b) Normalized reconstruction MSE, weighted by query-token count. Level 0 is the embedding output and level 40 the final normalized state.
Per-level diagnostic. Figure 3 shows the same effect within a single model, level by level. The unmodified StarCoder2-15B answers 121 of these 125 programs correctly. Positional replacement preserves 121/125 at the embedding level against 98/125 for SE, the order is reversed at level 19 (100 against 120), and both reach 121/125 at level 40. The positional scheme loses most at levels 15 to 21, where SE accuracy stays between and . SE nevertheless has the larger mean normalized reconstruction error across the sweep (0.12099 against 0.08271), and its MSE curve lies
Table 2. RQ2. Fresh SE fits for the seven code-specialized models on the restricted grammar. “Orig.” is the unmodified model, “Full” replaces all states with the complete decomposition, and “Drop” additionally removes the contributions whose filler-role pair was absent from training (Equation 5). “Full – Drop” carries a paired 95% bootstrap interval. Chance levels are for literals and 1/2 for identifiers.
| Model | Unseen literal bindings (n=500) | Unseen identifier bindings (n=1,000) | ||||||
|---|---|---|---|---|---|---|---|---|
| Orig. | Full | Drop | Full - Drop | Orig. | Full | Drop | Full - Drop | |
| StarCoder2-15B | 100.0 | 100.0 | 0.0 | +100.0 [100.0, 100.0] | 99.1 | 99.5 | 99.9 | -0.4 [-0.8, -0.1] |
| CodeLlama-13B | 96.4 | 83.2 | 0.0 | +83.2 [80.0, 86.4] | 95.8 | 94.8 | 95.4 | -0.6 [-1.8, +0.5] |
| DeepSeek-Coder-6.7B | 99.0 | 90.2 | 0.0 | +90.2 [87.4, 92.6] | 97.9 | 94.0 | 91.2 | +2.8 [+1.5, +4.1] |
| Yi-Coder-9B | 99.8 | 100.0 | 0.0 | +100.0 [100.0, 100.0] | 100.0 | 99.5 | 100.0 | -0.5 [-1.0, -0.1] |
| CodeGemma-2B | 33.6 | 13.4 | 0.0 | +13.4 [10.6, 16.6] | 31.8 | 5.3 | 13.0 | -7.7 [-9.6, -5.9] |
| Qwen2.5-Coder-3B | 97.6 | 44.8 | 0.0 | +44.8 [40.6, 49.4] | 93.8 | 0.5 | 0.7 | -0.2 [-0.5, +0.0] |
| Qwen2.5-Coder-32B | 100.0 | 100.0 | 0.0 | +100.0 [100.0, 100.0] | 100.0 | 0.5 | 0.2 | +0.3 [+0.0, +0.7] |
above the positional one at every level. None of the 1,597,194 contributions in these programs is unseen, so the diagnostic is strictly in-distribution.
Dependency-removal control. The dependency field records candidate definition sites, which describe possible value flow (Section 3.1) and could be regarded as semantic information inside the role definition. We therefore remove the field and ask whether the remaining AST path, scope, and category labels keep an advantage over positional roles. Refitting the SE scheme without the dependency field lowers accuracy from to on CodeLlama-13B (-18.3 points, ) and from to on StarCoder2-15B (-28.9, ). On identical test programs, 197 CodeLlama-13B programs and 293 StarCoder2-15B programs are correct only under the full scheme, against 14 and 4 correct only under the control. The control remains above the positional scheme on CodeLlama-13B (43.6 against 36.4) and is at the positional level on StarCoder2-15B (50.1 against 52.0). Two qualifications apply. The control has a smaller joint-role vocabulary (914 against 1,093 and 838 against 1,009 keys), and the StarCoder2-15B full fit was continued from an earlier schedule while its control started fresh (Section 4.10).
RQ1. SE roles preserve more answers than positional roles in 10 of 14 models, including six of seven code-specialized models, although they reconstruct states less accurately in all 14. Removing the dependency field costs 18.3 and 28.9 points.
5.2 RQ2: Held-Out Combinations and the Ablation of Unseen Terms
Table 2 reports the held-out results of the fresh fits. On the in-distribution test set of the restricted grammar, the fresh fits preserve 88.1 to of the answers on five models (original accuracies 96.4 to ), but only on Qwen2.5-Coder-3B and on CodeGemma-2B (originals and ), which should be kept in mind when reading the held-out results.
On held-out literal bindings the full decomposition solves of the 500 programs on StarCoder2-15B, Yi-Coder-9B, and Qwen2.5-Coder-32B, on DeepSeek-Coder-6.7B, on CodeLlama-13B, on Qwen2.5-Coder-3B, and on CodeGemma-2B, against a chance level of . Removing the newly composed contributions drops every model to . Where all 500 paired differences are equal, the bootstrap interval collapses to points, which describes this sample only. In all seven models, successful replacement on held-out literal bindings depends on the newly composed filler-role contributions.
Held-out identifier bindings give a different result. On StarCoder2-15B, Yi-Coder-9B, CodeLlama-13B, and DeepSeek-Coder-6.7B the full decomposition solves 94.0 to of the programs, and
Prateek Kumar Rajput, Yewei Song, Jacques Klein, and Tegawendé F. Bissyandé
Table 3. RQ3. Target hits, positional / SE, out of 100 triples per family, and invalid-rename control hits out of 100. A target hit means that the edited model produces the target program's output, a control hit that the control edit produces the control program's changed output. “—” marks the operand-order family, excluded for the Qwen models by the equal-alignment requirement.
| Model | Value | Rename | Argument | Operand | Invalid-rename control |
|---|---|---|---|---|---|
| StarCoder2-15B | 80 / 67 | 91 / 94 | 19 / 90 | 88 / 87 | 7 / 88 |
| Qwen2.5-14B | 86 / 55 | 90 / 90 | 23 / 8 | — | 10 / 25 |
| CodeLlama-13B | 50 / 46 | 77 / 79 | 17 / 63 | 71 / 67 | 10 / 65 |
| Llama-2-13B | 45 / 38 | 53 / 55 | 16 / 51 | 48 / 43 | 8 / 51 |
| DeepSeek-Coder-6.7B | 62 / 64 | 88 / 88 | 10 / 73 | 68 / 77 | 4 / 78 |
| DeepSeek-LLM-7B | 32 / 15 | 35 / 43 | 26 / 49 | 52 / 42 | 22 / 50 |
| Yi-Coder-9B | 71 / 82 | 95 / 95 | 2 / 88 | 88 / 90 | 3 / 92 |
| Yi-1.5-9B | 84 / 70 | 91 / 96 | 7 / 84 | 74 / 82 | 4 / 84 |
| CodeGemma-2B | 28 / 5 | 17 / 22 | 7 / 23 | 28 / 24 | 8 / 29 |
| Gemma-2B | 30 / 7 | 33 / 40 | 22 / 39 | 31 / 19 | 13 / 34 |
| Qwen2.5-Coder-3B | 84 / 13 | 88 / 86 | 37 / 13 | — | 18 / 33 |
| Qwen2.5-3B | 54 / 11 | 70 / 71 | 35 / 21 | — | 15 / 29 |
| Qwen2.5-Coder-32B | 94 / 64 | 99 / 98 | 55 / 7 | — | 31 / 44 |
| Qwen2.5-32B | 93 / 62 | 98 / 99 | 39 / 3 | — | 14 / 37 |
removing the unseen contributions leaves that accuracy unchanged (99.9, 100.0, 95.4, and 91.2%, differences between -0.6 and +2.8 points). The known structural roles already carry the binding information that the held-out identifiers would have supplied. On both Qwen2.5-Coder models the full decomposition solves only 0.5% of the identifier programs, although the original models solve 93.8% and 100% and although the 32B fit solves every held-out literal program. On CodeGemma-2B it solves 5.3%, and removing the unseen contributions raises this to 13.0% (-7.7 [-9.6, -5.9]). The measurements do not establish why the Qwen reconstructions fail on identifier recombination while succeeding on literal recombination (Section 6.2).
RQ2. Held-out literal bindings are solved only through newly composed contributions (0% without them in all seven models). Held-out identifier bindings are solved with or without them on four models and not at all on both Qwen2.5-Coder models.
5.3 RQ3: Edits on the Decomposition
Table 3 summarizes the edits for all 14 models. Argument rebinding gives the clearest result, and it separates the models in the same way as RQ1. The SE edit produces the target answer more often than the positional edit in all nine non-Qwen models, with 19 against 90 hits on StarCoder2-15B, 2 against 88 on Yi-Coder-9B, 10 against 73 on DeepSeek-Coder-6.7B, 17 against 63 on CodeLlama-13B, and 7 against 84 on Yi-1.5-9B, and with the smallest margins on the Gemma pair. In all five Qwen models the SE edit does worse (23 against 8 on Qwen2.5-14B, 55 against 7 on Qwen2.5-Coder-32B). On the StarCoder2-15B triples whose source and target the original model answers correctly, the counts are 19/95 for the positional edit and 87/95 for the SE edit, a difference of +71.6 points [62.1, 81.1].
Under a consistent rename, both schemes keep the output in most models, and the SE edit matches or exceeds the positional edit in 12 of 14 models (the two Qwen2.5-Coder models are lower by two and by one hit). Because a consistent rename preserves the output, the invalid-rename
Table 4. RQ4. Difference between the SE advantage (SE minus positional accuracy, Table 1) of each code-specialized model and that of its general-purpose counterpart, in percentage points, with paired 95% bootstrap intervals on identical test programs.
| Code / general pair | Relationship | Code Δ | General Δ | Difference [95% CI] |
|---|---|---|---|---|
| CodeLlama-13B / Llama-2-13B | derived from the base model | +25.5 | +14.5 | +11.0 [+6.8, +15.2] |
| DeepSeek-Coder-6.7B / DeepSeek-LLM-7B | same developer, similar size | +20.9 | -3.3 | +24.2 [+20.0, +28.7] |
| Yi-Coder-9B / Yi-1.5-9B | same developer and size | +38.3 | +30.8 | +7.5 [+3.2, +11.7] |
| CodeGemma-2B / Gemma-2B | built on the base model | +5.2 | +2.0 | +3.2 [+0.0, +6.4] |
| Qwen2.5-Coder-3B / Qwen2.5-3B | same family and size | -20.5 | -14.5 | -6.0 [-9.8, -2.2] |
| Qwen2.5-Coder-32B / Qwen2.5-32B | same family and size | +10.4 | +7.1 | +3.3 [-0.2, +7.0] |
| StarCoder2-15B / Qwen2.5-14B | different families | +27.0 | -2.4 | +29.4 [+24.8, +34.0] |
control is the informative measurement. Its output changes, and the SE edit produces the changed output more often than the positional one in all 14 models, with 88 against 7 on StarCoder2-15B, 92 against 3 on Yi-Coder-9B, 78 against 4 on DeepSeek-Coder-6.7B, and 65 against 10 on CodeLlama-13B. The smallest margin is 44 against 31 on Qwen2.5-Coder-32B. The rename results therefore reflect the direction of the edit rather than a tendency to keep the old answer. Value changes favor the positional edit in 12 of 14 models, often by a wide margin (84 against 13 on Qwen2.5-Coder-3B), with DeepSeek-Coder-6.7B (62 against 64) and Yi-Coder-9B (71 against 82) as the exceptions. Operand-order edits give mixed results on the nine models with eligible triples (SE ahead on three). No-op and oracle-state controls passed for all models.
RQ3. SE edits produce the target answer for argument rebinding more often than positional edits in all nine non-Qwen models and less often in all five Qwen models, and they follow the invalid-rename control more often in all 14. Value changes favor the positional edit in 12 of 14.
5.4 RQ4: Paired Model Contrasts
Table 4 pairs each code-specialized model with its general-purpose counterpart. The code model has the larger SE advantage in six of the seven pairs. The clearest comparison is CodeLlama-13B against its documented base model Llama-2-13B, +25.5 against +14.5 points, a difference of +11.0 [+6.8, +15.2]. The DeepSeek and Yi pairs give +24.2 [+20.0, +28.7] and +7.5 [+3.2, +11.7]. The Gemma pair (+3.2 [+0.0, +6.4]) and the 32B Qwen pair (+3.3 [-0.2, +7.0]) point in the same direction with intervals that touch or include zero, and the cross-family primary pair gives +29.4 [+24.8, +34.0]. The 3B Qwen pair is the exception at -6.0 [-9.8, -2.2], where both models favor positional roles and the code model does so more. RQ4 compares advantages rather than raw accuracies, so CodeGemma-2B has the larger advantage although its SE accuracy (18.1%) is below Gemma-2B's (24.1%).
RQ4. The SE advantage is larger in the code-specialized member of six of seven pairs, most clearly for CodeLlama-13B against Llama-2-13B (+11.0 [+6.8, +15.2]). The 3B Qwen pair is the exception (-6.0 [-9.8, -2.2]).
6 Discussion
6.1 Dependence on the Model Family
The main finding depends on the model family. With the same protocol for all models, SE roles produce the target answer for argument rebinding more often than positional roles in all nine non-Qwen models and preserve behavior better in eight of them (DeepSeek-LLM-7B, at -3.3, is the exception), across five model families and sizes from 2B to 15B. In the Qwen2.5 family the same
Prateek Kumar Rajput, Yewei Song, Jacques Klein, and Tegawendé F. Bissyandé
roles perform worse on most measurements that involve bindings. Three of the five Qwen models favor positional roles for preservation, all five favor positional edits for argument rebinding, and both Qwen2.5-Coder fits fail on held-out identifiers while succeeding on held-out literals. The exception is partial, since the 32B pair favors SE roles for preservation and the invalid-rename control favors SE roles on every Qwen model, but every binding-related measurement points the same way. The completed experiments do not identify a cause. The Qwen models differ from the others in tokenizer, training data, and training procedure, and the measurements do not explain why their identifier reconstructions fail while the original models solve the same programs. We therefore interpret the Qwen results as a limitation of the Discover method with these roles rather than as evidence about what the Qwen models encode, since an approximation can fail because of the role definition, the optimization, or the decoder's sensitivity to perturbation [33, 34].
Table 1 also has a methodological consequence. The SE fit reconstructs states less accurately than the positional fit in every model and still preserves more answers in ten of them, so reconstruction loss is a poor criterion for choosing between structural hypotheses, and behavioral preservation under replacement is the relevant criterion.
6.2 Which Edits the Roles Support
The edit experiments distinguish two kinds of edit. Edits that change the structure of the program succeed under SE roles, and edits that substitute content do not. Argument rebinding moves a value from one binding context to another, which is the operation that the scope and dependency fields describe, and the SE edit is better on all nine non-Qwen models. Consistent renaming is handled by both schemes, and the invalid-rename control, which is followed more often under SE roles on all 14 models, shows that the SE-edited model responds to the direction of the edit. Value changes favor the positional edit on 12 of 14 models. A hypothesis consistent with this asymmetry is that the joint source-current key captures the relation between a source token and the reconstructed position, which rebinding and renaming change, while value edits change content that the decomposition represents only indirectly through the fillers.
The dependency-removal control indicates, on two models, where this relational information comes from. Without the dependency field the SE scheme loses 18.3 points on CodeLlama-13B and 28.9 on StarCoder2-15B, where it falls to the level of the positional scheme. The dependency field records which definition a use may refer to, which is also what argument rebinding changes.
The held-out experiment adds a third observation. Generalization to held-out literal bindings depends on newly composed filler-role contributions in every model, whereas generalization to held-out identifier bindings does not, on the four models that generalize at all. For a program analysis, a constant bound to a list slot and an identifier bound by a declaration are the same kind of binding, but the fitted decomposition treats them differently. Measured by accuracy alone, both cases would have counted as compositional generalization, and the Qwen identifier failure would have been hidden behind a literal accuracy of 100%. One explanation consistent with the data is that literal values are the contents that must appear in the answer, so removing their new contributions removes information the answer needs, whereas a variable name selects a binding without appearing in the answer, so the remaining structural contributions can still identify the selected binding. This explanation has not been tested.
6.3 Scope of the Task and Implications
The list-execution task is small by design. It provides an executed expected output for every program, allows exact filler-role combinations to be withheld while every atomic key stays in the training vocabulary, and yields edit triples with exact token alignment. None of these controls is available on repository code today, where our early attempts failed on unknown atomic keys.
(Section 4.6). The task is nevertheless close to practice. Figure 1 shows a regression test with the same token-level structure as a measured held-out record, and the held-out condition corresponds to a developer rearranging a known configuration.
For tool builders, the result means that refactoring-like operations can be applied to the model's state instead of its input, at least on tasks where the fit is accurate. The invalid-rename control shows that such edits act in the direction of the change, which is a requirement for using them as counterfactual tests. Earlier work showed, by modifying inputs, that models of code are sensitive to renaming [40, 58] and weak at tracking data and control flow [21]. A fitted decomposition allows the same questions to be asked of the model's internal state, one binding at a time. For research on what code models encode, the result argues for complementing probing [25, 30, 31, 53] with behavioral replacement tests and for treating the model family as an experimental variable, since a result that held in five families failed in a sixth. The difference between identifiers and literals also cautions against general claims of compositional generalization in code models [18, 51], since how a decomposition generalizes depends on the kind of binding.
7 Threats to Validity
Construct validity. Our composite label is one way of representing software-engineering structure. Only the dependency field has been ablated, on two models, and the control has a smaller role vocabulary than the full scheme, so the measured loss bounds the field's contribution without isolating it. AST path, scope, and category are evaluated jointly. The category field involves no type inference, and the dependency field reports static may-definitions and expression inputs rather than runtime data flow or control dependencies, which the straight-line grammar does not exercise. Token-level projection can lose detail on the boundary pieces of multi-token identifiers, and the analysis reads the whole program. We compare SE roles with positional roles only. DISCOVER's hand-designed code roles were not run, and the value and argument-variable edit families originate in that work.
Internal validity. Every condition is a single-seed measurement (seed 20260922), and the sensitivity to the seed is unknown. The six amendments of Section 4.10 affect internal validity as follows. The StarCoder2-15B SE fit was continued from an earlier schedule while every other fit started fresh, so its RQ1 pairing and its dependency control did not follow the same procedure. The Yi-1.5-9B fit was resumed after a device migration. Fits that stop at the cap have not converged, although both schemes faced the same cap. The RQ2 numbers correspond to the penalty and not to the L1 penalty of the reference code. Checkpoint selection used validation MSE and never task accuracy. RQ3 excludes ineligible triples instead of scoring them as failures, so the operand-order family covers nine models, and the invalid-rename control is a single diagnostic per model.
Conclusion validity. Bootstrap intervals are pointwise, exploratory, and uncorrected for multiplicity, and they quantify test-case uncertainty under one fitting seed only. Per-model RQ1 gaps carry intervals for the two primary models only. Counts such as “six of seven” summarize directions across heterogeneous models and are not tests of a common effect.
External validity. The task is a synthetic list-execution family with straight-line programs, one return per function, opaque builtins, lists of at most three single-letter elements, and a four-name identifier vocabulary, in Python only. The results do not establish behavior on real repositories. Figure 1(a) is an illustration, and an earlier pilot on repository code was inconclusive. The 14 models span six families and 2B to 32B parameters, but every code/general pair differs in training data and procedure, so RQ4 does not isolate code pretraining or parameter count, and no general-purpose model has an RQ2 fit.
Prateek Kumar Rajput, Yewei Song, Jacques Klein, and Tegawendé F. Bissyandé
8 Related Work
8.1 What Code Models Encode
Probing studies measured how well syntax, AST structure, and data flow can be decoded from the hidden states of CodeBERT-family encoders [3, 10, 28, 43, 50, 52, 53] and, later, of decoder models [1, 25, 30, 31, 37], coding agents [44], and state-space code models [55]. All of these measure decodability. Behavioral studies instead change the input. Models of code change their predictions under semantics-preserving transformations such as renaming [40, 58], counterfactual tests find that current code models track data flow and control flow poorly [21], and causal interpretability estimates the effect of program properties on predictions by causal inference over inputs [39]. Our study differs from all three lines, since it replaces states at all levels of a frozen model with roles from static analysis and intervenes on the states rather than on the input.
8.2 Tensor Product Representations and Binding
TPRs originate in cognitive modeling [7, 45] and have been used as architectural components [23, 42, 46] and as hypotheses about trained networks, which recurrent networks implement implicitly [32] and role-learning networks can discover [47]. The binding problem has a long history in neural computation [14] and has recently been formalized for modern architectures [22]. Related analyses ask how transformers learn variable binding in symbolic programs [56], read attention as a vector-symbolic operation [6], probe TPR-structured directions [26], and connect filler-role structure with mechanistic interpretability [8]. Whether LLMs implement symbolic structure at all remains open [15, 34, 35], and DISCOVER's central result, frozen representations replaced by closed-form symbolic expressions with behavior largely intact, supports a quasi-symbolic view [33]. RQ2 measures representational systematicity [51] behaviorally, and the ablation of unseen terms is a counterpart of the control tasks used for probes [19]. Our results extend the question to 14 open models with roles from program analysis and add a boundary, since the decomposition succeeds in five model families and fails in the Qwen2.5 family under the same protocol.
8.3 Causal Interventions on Internal States
Our RQ3 edits are activation-level interventions. Causal abstraction aligns a network with a high-level causal model through interchange interventions [12], causal tracing patches activations between clean and corrupted runs [36], and circuit-discovery methods localize computations in graphs of components [5, 17, 48]. DISCOVER instead derives the edit from a fitted decomposition of the target program and adds the full target-minus-source difference, including changed current-token roles, and its code experiment reports six edit types, including value and argument-variable edits [33]. We keep that design, add the rename and operand-order conditions with their control edits, and run the edits on 14 models.
9 Conclusion
We asked whether the hidden states of open code models can be written as sums of bindings whose roles come from static analysis, whether such decompositions generalize to held-out combinations, and whether they support edits that act like refactorings on the model's state. On 14 models and a controlled list-execution task, the answers are consistent in five model families and weaker or reversed in one. SE roles preserve more answers than positional roles in 10 models, including six of the seven code-specialized models, and edits on the decomposition produce the target answer for argument rebinding more often than positional edits in all nine non-Qwen models. Within the scope of one synthetic task, a single seed per condition, and a capped training budget, roles from ordinary static analysis make a code model's program state inspectable and editable without retraining in most of the models tested, and not in one family. Future work includes multi-seed replication, further ablations, control flow in the task grammar, and repository programs.
Data Availability
An anonymized replication package is publicly available at https://zenodo.org/records/23078805. It contains se-tpr-code.zip, released under the MIT license, and se-tpr-data-results.zip, whose synthetic data and experimental results are released under CC BY 4.0. The code includes the role extraction, fitting and intervention implementations, protocol configurations and pinned model revisions, corpus generators, and scripts for verification and result analysis.
The data archive contains the frozen synthetic corpora and edit triples, per-program predictions for the four research questions and the two dependency-removal controls, and five CSV result tables. SHA-256 manifests and provenance records support file verification. The tables can be regenerated from the saved predictions on a CPU without downloading or running the LLMs. Pretrained model weights, fitted TPR checkpoints, optimizer states, and hidden-state caches are excluded from the release. The supplied code supports fresh GPU runs using the documented protocol and upstream model revisions.
Upon acceptance, we will release a non-anonymized version of the package with author attribution.
AI assistance. Codex assisted with packaging the replication artifact and preparing the plotting script for Figure 3 from saved measurements. The plotted accuracies and token-weighted reconstruction errors were checked against the per-program records.
References
[1] Toufique Ahmed, Dian Yu, Chengxuan Huang, Cathy Wang, Prem Devanbu, and Kenji Sagae. 2023. Towards Understanding What Code Language Models Learned. arXiv:2306.11943 doi:10.48550/arXiv.2306.11943
[2] Xiao Bi, Deli Chen, Guanting Chen, et al. 2024. DeepSeek LLM: Scaling Open-Source Language Models with Longtermism. arXiv:2401.02954 doi:10.48550/arxiv.2401.02954
[3] Nuo Chen, Qiushi Sun, Renyu Zhu, Xiang Li, Xuesong Lu, and Ming Gao. 2022. CAT-probing: A Metric-based Approach to Interpret How Pre-trained Models for Programming Language Attend Code Structure. In Findings of the Association for Computational Linguistics: EMNLP 2022. Association for Computational Linguistics, 4000–4008. doi:10.18653/v1/2022.findings-emnlp.295
[4] CodeGemma Team et al. 2024. CodeGemma: Open Code Models Based on Gemma. arXiv:2406.11409 doi:10.48550/arxiv.2406.11409
[5] Arthur Conmy, Augustine N. Mavor-Parker, Aengus Lynch, Stefan Heimersheim, and Adrià Garriga-Alonso. 2023. Towards Automated Circuit Discovery for Mechanistic Interpretability. arXiv:2304.14997 doi:10.48550/arXiv.2304.14997
[6] Sahil Rajesh Dhayalkar. 2025. Attention as Binding: A Vector-Symbolic Perspective on Transformer Reasoning. arXiv:2512.14709 doi:10.48550/arXiv.2512.14709
[7] Charles P. Dolan and Paul Smolensky. 1989. Tensor Product Production System: a Modular Architecture and Representation. Connection Science 1, 1 (1989), 53–68. doi:10.1080/09540098908915629
[8] Zhang Enyan and R. Thomas McCoy. 2026. A Unifying Perspective on Language Model Representations: From Filler-Role Structure to Mechanistic Interpretability. arXiv:2608.29034 doi:10.48550/arXiv.2608.29034
[9] Angela Fan, Beliz Gokkaya, Mark Harman, Mitya Lyubarskiy, Shubho Sengupta, Shin Yoo, and Jie M. Zhang. 2023. Large Language Models for Software Engineering: Survey and Open Problems. In Proceedings of the IEEE/ACM International Conference on Software Engineering: Future of Software Engineering (ICSE-FoSE). IEEE, 31–53. doi:10.1109/ICSE-FoSE59343.2023.00008
[10] Zhangyin Feng, Daya Guo, Duyu Tang, Nan Duan, Xiaocheng Feng, Ming Gong, Linjun Shou, Bing Qin, Ting Liu, Daxin Jiang, and Ming Zhou. 2020. CodeBERT: A Pre-Trained Model for Programming and Natural Languages. In Findings of the Association for Computational Linguistics: EMNLP 2020. Association for Computational Linguistics, 1536–1547. doi:10.18653/v1/2020.findings-emnlp.139
[11] Jeanne Ferrante, Karl J. Ottenstein, and Joe D. Warren. 1987. The Program Dependence Graph and Its Use in Optimization. ACM Transactions on Programming Languages and Systems 9, 3 (1987), 319–349. doi:10.1145/24039.24041
Prateek Kumar Rajput, Yewei Song, Jacques Klein, and Tegawendé F. Bissyandé
[12] Atticus Geiger, Hanson Lu, Thomas Icard, and Christopher Potts. 2021. Causal Abstractions of Neural Networks. In Advances in Neural Information Processing Systems, Vol. 34. 9574–9586. https://proceedings.neurips.cc/paper/2021/hash/4f5c422f4d49a5a807eda27434231040-Abstract.html
[13] Gemma Team et al. 2024. Gemma: Open Models Based on Gemini Research and Technology. arXiv:2403.08295 doi:10.48550/arxiv.2403.08295
[14] Klaus Greff, Sjoerd van Steenkiste, and Jürgen Schmidhuber. 2020. On the Binding Problem in Artificial Neural Networks. arXiv:2012.05208 doi:10.48550/arXiv.2012.05208
[15] Alex Gu, Baptiste Rozière, Hugh James Leather, Armando Solar-Lezama, Gabriel Synnaeve, and Sida Wang. 2024. CRUXEval: A Benchmark for Code Reasoning, Understanding and Execution. In Proceedings of the 41st International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 235). PMLR, 16568–16621. https://proceedings.mlr.press/v235/gu24c.html
[16] Daya Guo, Qihao Zhu, Dejian Yang, Zhenda Xie, Kai Dong, Wentao Zhang, Guanting Chen, Xiao Bi, Y. Wu, Y. K. Li, Fuli Luo, Yingfei Xiong, and Wenfeng Liang. 2024. DeepSeek-Coder: When the Large Language Model Meets Programming – The Rise of Code Intelligence. arXiv:2401.14196 doi:10.48550/arXiv.2401.14196
[17] Itamar Hadad, Guy Katz, and Shahaf Bassan. 2026. Formal Mechanistic Interpretability: Automated Circuit Discovery with Provable Guarantees. arXiv:2602.16823 doi:10.48550/arXiv.2602.16823
[18] Hossein Hajipour, Ning Yu, Cristian-Alexandru Staicu, and Mario Fritz. 2024. SimSCOOD: Systematic Analysis of Out-of-Distribution Generalization in Fine-tuned Source Code Models. In Findings of the Association for Computational Linguistics: NAACL 2024. Association for Computational Linguistics, 1400–1416. doi:10.18653/v1/2024.findings-naacl.90
[19] John Hewitt and Percy Liang. 2019. Designing and Interpreting Probes with Control Tasks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP). Association for Computational Linguistics, 2733–2743. doi:10.18653/v1/D19-1275
[20] Abram Hindle, Earl T. Barr, Zhendong Su, Mark Gabel, and Premkumar Devanbu. 2012. On the Naturalness of Software. In Proceedings of the 34th International Conference on Software Engineering (ICSE). IEEE, 837–847. doi:10.1109/ICSE.2012.6227135
[21] Ashish Hooda, Mihai Christodorescu, Miltiadis Allamanis, Aaron Wilson, Kassem Fawaz, and Somesh Jha. 2024. Do Large Code Models Understand Programming Concepts? Counterfactual Analysis for Code Predicates. In Proceedings of the 41st International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 235). PMLR, 18738–18748. https://proceedings.mlr.press/v235/hooda24a.html
[22] Lianghuan Huang, Yihao Li, Saeed Salehi, Yingshan Chang, Ansh Soni, and Konrad P. Kording. 2026. Formalizing the Binding Problem. arXiv:2606.03976 doi:10.48550/arXiv.2606.03976
[23] Qiuyuan Huang, Paul Smolensky, Xiaodong He, Li Deng, and Dapeng Wu. 2018. Tensor Product Generation Networks for Deep NLP Modeling. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers). Association for Computational Linguistics, 1263–1273. doi:10.18653/v1/N18-1114
[24] Binyuan Hui, Jian Yang, Zeyu Cui, Jiaxi Yang, Dayiheng Liu, Lei Zhang, Tianyu Liu, Jiajun Zhang, Bowen Yu, Keming Lu, Kai Dang, Yang Fan, Yichang Zhang, An Yang, Rui Men, Fei Huang, Bo Zheng, Yibo Miao, Shanghaoran Quan, Yunlong Feng, Xingzhang Ren, Xuancheng Ren, Jingren Zhou, and Junyang Lin. 2024. Qwen2.5-Coder Technical Report. arXiv:2409.12186 doi:10.48550/arXiv.2409.12186
[25] Anjan Karmakar and Romain Robbes. 2023. INSPECT: Intrinsic and Systematic Probing Evaluation for Code Transformers. arXiv:2312.05092 doi:10.48550/arXiv.2312.05092
[26] Andrew Lee, Fernanda Viégas, and Martin Wattenberg. 2026. Tensor Product Representation Probes Reveal Shared Structure Across Linear Directions. arXiv:2605.09967 doi:10.48550/arXiv.2605.09967
[27] Chenxiao Liu, Shuai Lu, Weizhu Chen, Daxin Jiang, Alexey Svyatkovskiy, Shengyu Fu, Neel Sundaresan, and Nan Duan. 2023. Code Execution with Pre-trained Language Models. In Findings of the Association for Computational Linguistics: ACL 2023. Association for Computational Linguistics, Toronto, Canada, 4984–4999. doi:10.18653/v1/2023.findings-acl.308
[28] José Antonio Hernández López, Martin Weyssow, Jesús Sánchez Cuadrado, and Houari Sahraoui. 2022. AST-Probe: Recovering abstract syntax trees from hidden representations of pre-trained language models. arXiv:2206.11719 doi:10.48550/arXiv.2206.11719
[29] Anton Lozhkov, Raymond Li, Loubna Ben Allal, Federico Cassano, Joel Lamy-Poirier, Nouamane Tazi, Ao Tang, Dmytro Pykhtar, Jiawei Liu, Yuxiang Wei, Tianyang Liu, Max Tian, Denis Kocetkov, Arthur Zucker, Younes Belkada, Zijian Wang, Qian Liu, Dmitry Abulkhanov, Indraneil Paul, Zhuang Li, Wen-Ding Li, Megan Risdal, Jia Li, Jian Zhu, Terry Yue Zhuo, Evgenii Zheltonozhskii, Nii Osae Osae Dade, Wenhao Yu, Lucas Krauß, Naman Jain, Yixuan Su, Xuanli He, Manan Dey, Edoardo Abati, Yekun Chai, Niklas Muennighoff, Xiangru Tang, Muhtasham Oblokulov, Christopher Akiki, Marc Marone, Chenghao Mou, Mayank Mishra, Alex Gu, Binyuan Hui, Tri Dao, Armel Zebaze,
Olivier Dehaene, Nicolas Patry, Canwen Xu, Julian McAuley, Han Hu, Torsten Scholak, Sebastien Paquet, Jennifer Robinson, Carolyn Jane Anderson, Nicolas Chapados, Mostofa Patwary, Nima Tajbakhsh, Yacine Jernite, Carlos Muñoz Ferrandis, Lingming Zhang, Sean Hughes, Thomas Wolf, Arjun Guha, Leandro von Werra, and Harm de Vries. 2024. StarCoder 2 and The Stack v2: The Next Generation. arXiv:2402.19173 doi:10.48550/arXiv.2402.19173
[30] Wei Ma, Shangqing Liu, Mengjie Zhao, Xiaofei Xie, Wenhang Wang, Qiang Hu, Jie Zhang, and Yang Liu. 2024. Unveiling Code Pre-Trained Models: Investigating Syntax and Semantics Capacities. ACM Transactions on Software Engineering and Methodology 33, 7 (2024), 1–29. doi:10.1145/3664606
[31] Vahid Majdinasab, Amin Nikanjam, and Foutse Khomh. 2024. DeepCodeProbe: Towards Understanding What Models Trained on Code Learn. arXiv:2407.08890 doi:10.48550/arXiv.2407.08890
[32] R. Thomas McCoy, Tal Linzen, Ewan Dunbar, and Paul Smolensky. 2018. RNNs Implicitly Implement Tensor Product Representations. arXiv:1812.08718 doi:10.48550/arXiv.1812.08718
[33] R. Thomas McCoy, Paul Soulos, Tal Linzen, and Paul Smolensky. 2026. The Emergent Symbolic Structure of Artificial Neural Networks. arXiv:2608.29530 doi:10.48550/arXiv.2608.29530
[34] R. Thomas McCoy, Abigail L. Tenenbaum, Zhang Enyan, and Zhenghao Herbert Zhou. 2026. Reconciling symbols and neural networks: evidence for a quasi-symbolic view. Current Opinion in Behavioral Sciences 72 (2026), 101686. doi:10.1016/j.cobeha.2026.101686
[35] R. Thomas McCoy, Shunyu Yao, Dan Friedman, Mathew D. Hardy, and Thomas L. Griffiths. 2024. When a language model is optimized for reasoning, does it still show embers of autoregression? An analysis of OpenAI o1. arXiv:2410.01792 doi:10.48550/arXiv.2410.01792
[36] Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. 2022. Locating and Editing Factual Associations in GPT. In Advances in Neural Information Processing Systems, Vol. 35. 17359–17372. https://proceedings.neurips.cc/paper_files/paper/2022/hash/6f1d43d5a82a37e89b0665b33bf3a182-Abstract-Conference.html
[37] Thu-Trang Nguyen, Thanh Trong Vu, Hieu Dinh Vo, and Son Nguyen. 2024. An Empirical Study on Capability of Large Language Models in Understanding Code Semantics. arXiv:2407.03611 doi:10.48550/arXiv.2407.03611
[38] Maxwell Nye, Anders Johan Andreassen, Guy Gur-Ari, Henryk Michalewski, Jacob Austin, David Bieber, David Dohan, Aitor Lewkowycz, Maarten Bosma, David Luan, Charles Sutton, and Augustus Odena. 2021. Show Your Work: Scratchpads for Intermediate Computation with Language Models. arXiv:2112.00114 doi:10.48550/arXiv.2112.00114
[39] David N. Palacio, Alejandro Velasco, Nathan Cooper, Alvaro Rodriguez, Kevin Moran, and Denys Poshyvanyk. 2024. Toward a Theory of Causation for Interpreting Neural Code Models. IEEE Transactions on Software Engineering 50, 5 (2024), 1215–1243. doi:10.1109/TSE.2024.3379943
[40] Md Rafiqul Islam Rabin, Nghi D. Q. Bui, Ke Wang, Yijun Yu, Lingxiao Jiang, and Mohammad Amin Alipour. 2021. On the Generalizability of Neural Program Models with Respect to Semantic-Preserving Program Transformations. Information and Software Technology 135 (2021), 106552. doi:10.1016/j.infsof.2021.106552
[41] Baptiste Rozière, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Xiaoqing Ellen Tan, Yossi Adi, Jingyu Liu, Romain Sauvestre, Tal Remez, Jérémy Rapin, Artyom Kozhevnikov, Ivan Evtimov, Joanna Bitton, Manish Bhatt, Cristian Canton Ferrer, Aaron Grattafiori, Wenhan Xiong, Alexandre Défossez, Jade Copet, Faisal Azhar, Hugo Touvron, Louis Martin, Nicolas Usunier, Thomas Scialom, and Gabriel Synnaeve. 2023. Code Llama: Open Foundation Models for Code. arXiv:2308.12950 doi:10.48550/arXiv.2308.12950
[42] Imanol Schlag and Jürgen Schmidhuber. 2018. Learning to Reason with Third-Order Tensor Products. arXiv:1811.12143 doi:10.48550/arXiv.1811.12143
[43] Da Shen, Xinyun Chen, Chenguang Wang, Koushik Sen, and Dawn Song. 2022. Benchmarking Language Models for Code Syntax Understanding. In Findings of the Association for Computational Linguistics: EMNLP 2022. Association for Computational Linguistics, 3071–3093. doi:10.18653/v1/2022.findings-emnlp.224
[44] André Silva, Han Tu, and Martin Monperrus. 2026. Latent Programming Horizons in Coding Agents. arXiv:2607.05188 doi:10.48550/arXiv.2607.05188
[45] Paul Smolensky. 1990. Tensor product variable binding and the representation of symbolic structures in connectionist systems. Artificial Intelligence 46, 1-2 (1990), 159–216. doi:10.1016/0004-3702(90)90007-M
[46] Paul Smolensky, Moontae Lee, Xiaodong He, Wen tau Yih, Jianfeng Gao, and Li Deng. 2016. Basic Reasoning with Tensor Product Representations. arXiv:1601.02745 doi:10.48550/arXiv.1601.02745
[47] Paul Soulos, R. Thomas McCoy, Tal Linzen, and Paul Smolensky. 2020. Discovering the Compositional Structure of Vector Representations with Role Learning Networks. In Proceedings of the Third BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP. Association for Computational Linguistics, 238–254. doi:10.18653/v1/2020.blackboxnlp-1.23
[48] Aaquib Syed, Can Rager, and Arthur Conmy. 2023. Attribution Patching Outperforms Automated Circuit Discovery. arXiv:2310.10348 doi:10.48550/arXiv.2310.10348
[49] Hugo Touvron, Louis Martin, Kevin Stone, et al. 2023. Llama 2: Open Foundation and Fine-Tuned Chat Models. arXiv:2307.09288 doi:10.48550/arxiv.2307.09288
Prateek Kumar Rajput, Yewei Song, Jacques Klein, and Tegawendé F. Bissyandé
[50] Sergey Troshin and Nadezhda Chirkova. 2022. Probing Pretrained Models of Source Codes. In Proceedings of the Fifth BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP. Association for Computational Linguistics, 371–383. doi:10.18653/v1/2022.blackboxnlp-1.31
[51] Ivan Vegner, Sydelle de Souza, Valentin Forch, Martha Lewis, and Leonidas A. A. Doumas. 2025. Behavioural vs. Representational Systematicity in End-to-End Models: An Opinionated Survey. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, 31842–31856. doi:10.18653/v1/2025.acl-long.1537
[52] Alejandro Velasco, David N. Palacio, Daniel Rodríguez-Cárdenas, and Denys Poshyvanyk. 2024. Which Syntactic Capabilities Are Statistically Learned by Masked Language Models for Code? arXiv:2401.01512 doi:10.48550/arXiv.2401.01512
[53] Yao Wan, Wei Zhao, Hongyu Zhang, Yulei Sui, Guandong Xu, and Hai Jin. 2022. What Do They Capture? – A Structural Analysis of Pre-Trained Language Models for Source Code. arXiv:2202.06840 doi:10.48550/arXiv.2202.06840
[54] Matt Welsh. 2023. The End of Programming. Commun. ACM 66, 1 (2023), 34–35. doi:10.1145/3570220
[55] Jiali Wu, Abhinav Anand, Shweta Verma, and Mira Mezini. 2026. Towards Understanding What State Space Models Learn About Code. arXiv:2602.06774 doi:10.48550/arXiv.2602.06774
[56] Yiwei Wu, Atticus Geiger, and Raphaël Millière. 2025. How Do Transformers Learn Variable Binding in Symbolic Programs? arXiv:2505.20896 doi:10.48550/arXiv.2505.20896
[57] An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, Junyang Lin, Kai Dang, Keming Lu, Keqin Bao, Kexin Yang, Le Yu, Mei Li, Mingfeng Xue, Pei Zhang, Qin Zhu, Rui Men, Runji Lin, Tianhao Li, Tianyi Tang, Tingyu Xia, Xingzhang Ren, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yu Wan, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, and Zihan Qiu. 2024. Qwen2.5 Technical Report. arXiv:2412.15115 doi:10.48550/arXiv.2412.15115
[58] Noam Yefet, Uri Alon, and Eran Yahav. 2020. Adversarial Examples for Models of Code. Proceedings of the ACM on Programming Languages 4, OOPSLA, Article 162 (2020), 30 pages. doi:10.1145/3428230
[59] Alex Young, Bei Chen, Chao Li, et al. 2024. Yi: Open Foundation Models by 01.AI. arXiv:2403.04652 doi:10.48550/arxiv.2403.04652