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
Key points
From the paper's conclusion- We present NumAnchor, an input-boundary adapter that represents recoverable numeric-like operands as typed, canonicalized program entities.
Abstract
Assembly language models (ALMs) are becoming important for automated binary analysis, yet their token-level interfaces often obscure numeric-like operands. In two corpora, such operands account for 45.7% and 40.9% of operand occurrences and may denote branch targets, global data, stack slots, constants, or unresolved pointer-derived values. Existing normalization strategies often lose their identities and structural relationships. We present NumAnchor, an input-boundary adapter that represents recoverable numeric-like operands as typed, canonicalized program entities. NumAnchor encodes code, data, and stack context in compact structural side descriptors, preserving entity identity and locality without increasing the host sequence length. These descriptors are fused into input embeddings before the first Transformer layer, while the host architecture, pretraining objectives, and downstream protocols remain unchanged. Probing frozen instruction-level embeddings yields 98.7% hierarchical-location accuracy and AUROC scores of 0.932 and 0.907 for jump and call target alignment, respectively, showing that the encoded structural information remains recoverable. Across multiple ALM families, NumAnchor achieves relative improvements of up to 35.0% in Recall@1 and 31.7% in MRR on 10k-candidate function retrieval, and improves execution-aware type recovery by up to 5.2 F1 points. Ablations show complementary gains from code, data, and stack descriptors with modest overhead.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- ANI: Adaptive Numerical Injection for Unifying Semantic and Arithmetic Representations in Numerical ReasoningarXiv · 2026
- SoK: Are LLMs Reliable at Source Code Recovery? A Taxonomy and Empirical EvaluationarXiv · 2026
- Invariant Pretraining for Robust Code RepresentationsarXiv · 2026
- BUSTA: Teaching Small Language Models to Reason About Binary ExecutionarXiv · 2026
- Beyond Experience: Knowledge-Guided Evolution for NPU Kernel GenerationarXiv · 2026
- VulDec: Vulnerability Detection in Binaries via Neural DecompilationarXiv · 2026