Beyond Tokens: NumAnchor for Address-Grounded Numeric Operand Representation in Assembly Language Models
Kun LiuKeith MitchellXin HuJiangcheng YuChenke LuoZhengming DingHaotian Zhang
Jiang Ming Kun Liu
Keith Mitchell
Xin Hu
Jiangcheng Yu
Chenke Luo
Zhengming Ding
Haotian Zhang

Jiang Ming
+8
NumAnchor is an input-boundary adapter for assembly language models that represents recoverable numeric-like operands—which make up roughly 40–46% of operand occurrences in the two studied corpora—as typed, canonicalized program entities rather than losing them to normalization. Compact structural side descriptors encode code, data, and stack context so that entity identity and locality are preserved without increasing host sequence length; these descriptors are fused into input embeddings before the first Transformer layer while the host architecture, pretraining objectives, and downstream protocols stay unchanged. Probing frozen instruction-level embeddings shows the structural information remains recoverable, and across multiple ALM families NumAnchor yields relative gains of up to 35.0% in Recall@1 and 31.7% in MRR on 10k-candidate function retrieval and up to 5.2 F1 points in execution-aware type recovery, with ablations confirming complementary contributions from code, data, and stack descriptors at modest overhead.

arXiv ·
· October 21, 2026