How Different Tokenization Algorithms Impact LLMs and Transformer Models for Binary Code Analysis
Not on the map. Why?
Abstract (arXiv)
Tokenization is fundamental in assembly code analysis, impacting intrinsic characteristics like vocabulary size, semantic coverage, and extrinsic performance in downstream tasks. Despite its significance, tokenization in the context of assembly code remains an underexplored area. This study aims to address this gap by evaluating the intrinsic properties of Natural Language Processing (NLP) tokenization models and parameter choices, such as vocabulary size. We explore preprocessing customization options and pre-tokenization rules tailored to the unique characteristics of assembly code. Additionally, we assess their impact on downstream tasks like function signature prediction -- a critical problem in binary code analysis. To this end, we conduct a thorough study on various tokenization models, systematically analyzing their efficiency in encoding assembly instructions and capturing semantic nuances. Through intrinsic evaluations, we compare tokenizers based on tokenization efficiency, vocabulary compression, and representational fidelity for assembly code. Using state-of-the-art pre-trained models such as the decoder-only Large Language Model (LLM) Llama 3.2, the encoder-only transformer BERT, and the encoder-decoder model BART, we evaluate the effectiveness of these tokenizers across multiple performance metrics. Preliminary findings indicate that tokenizer choice significantly influences downstream performance, with intrinsic metrics providing partial but incomplete predictability of extrinsic evaluation outcomes. These results reveal complex trade-offs between intrinsic tokenizer properties and their utility in practical assembly code tasks. Ultimately, this study provides valuable insights into optimizing tokenization models for low-level code analysis, contributing to the robustness and scalability of Natural Language Model (NLM)-based binary analysis workflows.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 16 of its 30 references that are in the map. First posted on arXiv 5 Nov 2025.
Builds on
16 of 30 references.
References · 16
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
- 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 639
- 2023Tokenizer Choice For LLM Training: Negligible or Crucial?cited by 108
- 2021Representing Numbers in NLP: a Survey and a Visioncited by 83
- 2024Getting the most out of your tokenizer for pre-training and domain adaptationcited by 66
- 2020Big Code != Big Vocabulary: Open-Vocabulary Models for Source Codecited by 54
- 2021PalmTree: Learning an Assembly Language Model for Instruction Embeddingcited by 49
- 2020Neural Arithmetic Unitscited by 28
- 2023CP-BCS: Binary Code Summarization Guided by Control Flow Graph and Pseudo Codecited by 11
4 more
- 2023Training and Evaluation of a Multilingual Tokenizer for GPT-SW3cited by 7
- 2022UniASM: Binary Code Similarity Detection without Fine-tuningcited by 3
- 2021Improving type information inferred by decompilers with supervised machine learningcited by 1
- 2024STRIDE: Simple Type Recognition In Decompiled Executablescited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.