atlas

Research map / Large language models / Agents, code and math

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

ICLR 2025 · Large language models › Agents, code and math · approach: Execution-based code verification · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Nova, a generative LLM for x86-64 assembly that adds hierarchical self-attention and functionality/optimization contrastive objectives on top of DeepSeek-Coder, improving binary decompilation and binary code similarity detection.

Problem

Generative LLMs pre-trained on source code do not transfer well to assembly code, which has low information density (long token sequences per semantic unit) and high syntactic diversity across compiler optimization levels.

Approach

Hierarchical self-attention with per-instruction [INST] summary tokens (intra-instruction, preceding-instruction, and inter-instruction attention applied to half the heads), combined with functionality and optimization contrastive losses that align same-function embeddings across forms and order embeddings by optimization level.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add contrastive learning objectives (ablation)DeepSeek-Coder-1.3B assembly model without hierarchical attention · HumanEval-DecompilePass@1: 15.78 -> 21.86Helped
Add hierarchical self-attention (ablation)Nova-1.3B · HumanEval-DecompilePass@1: 21.86 -> 25.17Helped
Add hierarchical self-attention (ablation)Nova-1.3B · HumanEval-DecompilePass@10: 35.25 -> 38.30Helped
Add functionality contrastive learning (ablation)DeepSeek-Coder-1.3B assembly model without hierarchical attention or optimization CL · HumanEval-DecompilePass@1: 15.78 -> 17.05Helped
Add optimization contrastive learning (ablation)DeepSeek-Coder-1.3B assembly model without hierarchical attention or functionality CL · HumanEval-DecompilePass@1: 15.78 -> 20.40Helped
Apply hierarchical attention to all attention heads instead of half (ablation)Nova-1.3B · HumanEval-DecompilePass@1: 25.17 -> 22.04Mixed
Replace hierarchical attention with LongCoder attention (ablation)Nova-1.3B · HumanEval-DecompilePass@1: 25.17 -> 22.68Hurt
Apply Nova's approaches (hierarchical attention and contrastive learning) instead of standard fine-tuningGranite-3B-Code-128K · HumanEval-DecompilePass@1: 13.97 -> 18.49Helped
Apply Nova's approaches (hierarchical attention and contrastive learning) instead of standard fine-tuningGranite-3B-Code-128K · HumanEval-DecompilePass@10: 20.98 -> 25.60Helped
Use Nova-1.3B instead of LLM4Decompile-1.3BDeepSeek-Coder-1.3B · HumanEval-DecompilePass@1: 10.33 -> 25.17Helped
Use Nova-1.3B instead of LLM4Decompile-1.3BDeepSeek-Coder-1.3B · HumanEval-DecompilePass@10: 16.72 -> 38.30Helped
Increase model size from Nova-1.3B to Nova-6.7BNova · BCSD average (K=50, 100, 200, 500)Recall@1Helped

Surprising findings

Limitations

Experimental setup

Datasets: AnghaBench The-Stack BinaryCorp-3M HumanEval-Decompile

Benchmarks: HumanEval-Decompile Binutils Curl ImageMagick SQLite OpenSSL Putty

Metrics: Pass@1 Pass@10 Recall@1

Baselines: LLM4Decompile-1.3B LLM4Decompile-6.7B CodeLlama-7B StarCoder2-7B DeepSeekCoder-7B Qwen-2.5-Coder-7B LLMCompiler-7B GPT-3.5-Turbo GPT-4o jTrans DiEmph CodeArt

Builds on: DeepSeek-Coder LongCoder LLM4Decompile CodeArt jTrans

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy