HackerPapers

arXiv:2311.13721cs.SE

Nova: Generative Language Models for Assembly Code with Hierarchical Attention and Contrastive Learning

Nan Jiang, Chengxiao Wang, Kevin Liu, Xiangzhe Xu, Lin Tan, Xiangyu Zhang, Petr Babkin

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

Binary code analysis is the foundation of crucial tasks in the security domain; thus building effective binary analysis techniques is more important than ever. Large language models (LLMs) although have brought impressive improvement to source code tasks, do not directly generalize to assembly code due to the unique challenges of assembly: (1) the low information density of assembly and (2) the diverse optimizations in assembly code. To overcome these challenges, this work proposes a hierarchical attention mechanism that builds attention summaries to capture the semantics more effectively and designs contrastive learning objectives to train LLMs to learn assembly optimization. Equipped with these techniques, this work develops Nova, a generative LLM for assembly code. Nova outperforms existing techniques on binary code decompilation by up to 14.84 -- 21.58% (absolute percentage point improvement) higher Pass@1 and Pass@10, and outperforms the latest binary code similarity detection techniques by up to 6.17% Recall@1, showing promising abilities on both assembly generation and understanding tasks.

arXiv comments
Published as a conference paper at ICLR 2025
Journal reference
DOI
Subjects
cs.SESoftware Engineering cs.AIArtificial Intelligence

On Hacker News

Linked by 1 identifiable commenter in 2 comments across 2 threads, from May 2025 to May 2025. Found in 1 HN submission from Oct 2025 to Oct 2025. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments2 threads

  1. Gemini 2.5 Pro Preview 1 comment
    • Exactly, I also see code generation to current languages as output only an intermediary step, like we had to have those -S switches, or equivalent, to convince developers during the first decades of compiler existence, until optmizing compilers took over. "Nova: Generative…

      pjmlpView on HNParent context

    • Well, that won't stop folks trying though. "Nova: Generative Language Models for Assembly Code with Hierarchical Attention and Contrastive Learning" https://arxiv.org/html/2311.13721v3

      pjmlpView on HNParent context

Submitted to Hacker News

  • Ultrameta Modelling

    Hi HN. There are highly specialized languages models abounding. Two that have been personally interesting are: https://arxiv.org/abs/2311.13721 And Today, https://www.reddit.com/r/LocalLLaMA/comments/1o27xsj/introducing_playable1gguf_by_far_the_worlds_best/ The obvious extension of generating models with large corpi, eventually, is generation of models of models. The LMM, the large model model, is trained on models, such as the content of hugging face. Right? All the fine tuners and…

Connected through shared HN threads, not inferred similarity or a recommendation.