arXiv:2610.29027cs.CROct 2026

Manuscript Offprint

arXiv:2610.29027

Beyond Tokens: NumAnchor for Address-Grounded Numeric Operand Representation in Assembly Language Models

Kun Liu, Keith Mitchell, Xin Hu, Jiangcheng Yu, Chenke Luo, Zhengming Ding, Haotian Zhang, Jiang Ming

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

Kun Liu*, Keith Mitchell*, Xin Hu*, Jiangcheng Yu†, Chenke Luo*, Zhengming Ding*, Haotian Zhang†, Jiang Ming*

*Tulane University, USA

†New Jersey Institute of Technology, USA

‡Independent Researcher

Abstract—Assembly language models (ALMs) are becoming important foundations for automated binary program analysis, but their token-level interfaces remain mismatched with numeric-like operands, which are common and semantically dense in stripped binaries. In two evaluated corpora, such operands account for 45.7% and 40.9% of all operand occurrences, yet their surface values may denote branch targets, global objects, stack slots, ordinary constants, or unresolved pointer-derived values. Existing ALMs expose this heterogeneity only partially through coarse placeholders, jump-specific rewriting, or execution-derived side channels, leaving a representation-boundary gap between static-analysis preprocessing and model-facing inputs.

We present NumAnchor, a structure-aware input-boundary adapter that exposes recoverable numeric-like operands as typed, canonicalized program entities for ALMs. Rather than proposing a new static analyzer or modifying Transformer backbones, NumAnchor defines how recovered code, data, and stack artifacts enter the model interface: it preserves repeated entity identity and locality through compact side descriptors and fuses them before the first Transformer layer while keeping host architectures, pretraining objectives, and downstream protocols unchanged. On frozen instruction-level embeddings, NumAnchor makes address-grounded structure recoverable, reaching 98.7% hierarchical-location probing accuracy and 0.932/0.907 AUROC on jump/call target alignment. Across instruction-level, function-level, rebasing-oriented, and execution-aware ALMs, it improves 10k-candidate function retrieval by up to 35.0% in Recall@1 and 31.7% in MRR, and improves execution-aware type recovery by up to 5.2 F1 points. Ablations show complementary gains from code, data, and stack descriptors, while the side-channel design keeps overhead modest without increasing host sequence length.

I. INTRODUCTION

Deep learning has become a central paradigm for automated software engineering and program analysis [1]–[3]. In binary program analysis, models often operate on executable artifacts rather than source code, where semantics are reflected through low-level representations and compiler-shaped structures [4]. Some approaches lift binaries into higher-level representations to reuse source-oriented models [5]–[7], but such lifting can obscure executable-level layout and address-grounded structure. Assembly language models (ALMs) offer a complementary path by learning directly from disassembly. Pretrained on large unlabeled assembly corpora, ALMs provide transferable representations for binary-analysis and reverse-engineering tasks, including function recognition [8], type recovery [9], binary similarity [10], vulnerability search [11]–[13], and malware analysis [14]–[16].

Yet, learning directly from disassembly does not remove the representation mismatch between binary code and text-based modeling [17]. Most ALMs follow a Transformer-based sequence-modeling paradigm, operating on tokenized instruction streams rather than explicitly representing the structural relations that organize binary programs [18]. Although disassembly is serialized as mnemonics and operands, many assembly tokens carry recoverable program structure whose meaning cannot be inferred from surface form alone. This issue is especially prominent for numeric-like operands, which account for 45.7% and 40.9% of all operand occurrences in the StateFormer [19] and jTrans [20] corpora, respectively. In a stripped binary, a hexadecimal value such as 0x3ccd4 in jmp 0x3ccd4 is not merely a constant; it denotes a control-flow anchor. Raw numeric values are also unstable across relocation, rebasing, and compiler transformations. Treating them as ordinary lexical tokens encourages models to learn brittle layout-specific artifacts, whereas uniformly normalizing them into generic placeholders discards entity identity and locality needed by downstream binary-analysis tasks.

Prior work has recognized the difficulty of modeling numeric operands, but existing interfaces expose recovered structure only partially. Abstraction-based ALMs [21]–[23] reduce out-of-vocabulary (OOV) effects by replacing numerics with coarse placeholders, often losing repeated entity identity and locality. Jump-aware methods [20], [24] preserve selected control-flow targets, but provide limited support for data references and stack layouts. Execution-aware models [19], [25], [26] expose runtime semantics through traces or state sequences, yet these signals may be unavailable in static deployment. Thus, the missing piece is not merely more static-analysis artifacts, but a unified model-facing interface that converts recoverable code, data, and stack structure into typed, layout-stable signals for ALMs.

To address this representation-boundary gap, we present NumAnchor, a structure-aware input-boundary interface for numeric-like operands in ALMs. Rather than introducing a new static-analysis algorithm or relying on task-specific rewriting rules, NumAnchor defines how recovered static artifacts enter the model interface. It maps recoverable numeric-like operands to typed and canonicalized program entities, preserves shared identities and hierarchical locality through compact side descriptors, and falls back to generic numeric representations when grounding is unavailable or ambiguous. These signals are fused at the input embedding layer, allowing NumAnchor to integrate with existing Transformer-based ALMs without changing their backbone architectures, pretraining objectives, or downstream protocols.

We evaluate NumAnchor as a non-invasive adapter across multiple binary-analysis tasks and ALM backbones. Frozen-embedding probes show that NumAnchor makes address-grounded structure recoverable after pretraining, reaching 98.7% hierarchical-location accuracy and 0.932/0.907 AUROC on jump/call target alignment. For function retrieval, NumAnchor improves instruction-level and function-level ALMs by up to 35.0% in Recall@1 and 31.7% in MRR in the challenging 10k-candidate setting. For type recovery, it improves execution-aware modeling by up to 5.2 F1 points. Ablations show that code, data, and stack descriptors provide complementary benefits over role-only and generic numeric encodings, with modest parameter and inference overhead.

In summary, this paper makes the following contributions:

• Problem Characterization. We identify numeric-like operands as a central representation challenge for ALMs in stripped binaries. We show that existing tokenization and normalization strategies struggle to preserve transferable structural meaning from raw numeric values.

• Structure-Aware Representation Interface. We introduce NumAnchor, a representation-boundary interface that exposes recoverable program structure to ALMs in a stable and model-compatible form. Rather than proposing a new static analyzer or task-specific heuristics, NumAnchor provides a unified mechanism for preserving structural signals before binary-code tokenization.

• Evaluation Across Downstream Tasks. We evaluate NumAnchor across representative ALM families, input granularities, and downstream binary-analysis tasks. The results show consistent gains over baseline models and simpler numeric encodings, while ablations confirm the complementary value of different structural signals with modest overhead.

References (37)