← Latest papers
🤖 AI

HELIOS: Hierarchical Graph Abstraction for Structure-Aware LLM Decompilation

The paper presents HELIOS, a framework that enhances LLM-based binary decompilation by converting control flow and function calls into a hierarchical graph abstraction, significantly improving code compilability and functional correctness across diverse architectures without requiring model fine-tuning.

Original authors: Yonatan Gizachew Achamyeleh, Harsh Thomare, Mohammad Abdullah Al Faruque

Published 2026-02-03
📖 4 min read☕ Coffee break read

Original authors: Yonatan Gizachew Achamyeleh, Harsh Thomare, Mohammad Abdullah Al Faruque

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to translate a secret message written in a very messy, shorthand notebook. This notebook is a "binary" file (computer code), and your goal is to turn it back into a clean, readable story (source code) that a human can understand and edit.

For a long time, computers tried to do this by just reading the messy notes line-by-line, like a robot reading a book. But because the notes are full of shortcuts, jumps, and loops that don't make sense when read in a straight line, the robot often gets confused. It writes a story that looks okay at first glance but falls apart when you try to use it.

The paper introduces HELIOS, a new way to help Artificial Intelligence (specifically Large Language Models, or LLMs) solve this puzzle. Instead of just reading the messy notes, HELIOS gives the AI a map and a rulebook.

Here is how HELIOS works, using simple analogies:

1. The Problem: The "Blind Reader"

Current AI decompilers are like a blindfolded person trying to assemble a 3D puzzle. They are handed a pile of puzzle pieces (the code) and told to put them together. They can see the shapes of the pieces, but they can't see how the pieces connect to form the big picture.

  • The Result: They might put two pieces together that look similar but don't actually fit, creating a "hallucinated" story that makes no logical sense. This is especially bad when the original code has been "optimized" (shuffled around by a compiler to run faster), making the notes even messier.

2. The Solution: HELIOS (The "Architect's Blueprint")

HELIOS changes the game. Instead of just handing the AI the messy notes, it first acts like an architect who studies the building before the AI tries to rebuild it.

  • Step 1: Drawing the Map (The Control Flow Graph)
    HELIOS looks at the code and draws a map of the "traffic flow." It identifies:

    • Where the story starts.
    • Where it splits into different paths (like "If it rains, go left; if it's sunny, go right").
    • Where it loops back around (like a "Do this 10 times" instruction).
    • It turns this complex map into a simple text list that the AI can read.
  • Step 2: The Rulebook (Critical Rules)
    HELIOS gives the AI a short list of "Don'ts" and "Dos." For example:

    • "Don't invent new paths that aren't on the map."
    • "Don't change the type of numbers unless the map says so."
    • "If the map says there's a loop, your story must have a loop."
  • Step 3: The "Check-Engine" Light (Compiler Feedback)
    After the AI writes its new story, HELIOS runs it through a "test drive" (a compiler).

    • If the car starts: Great! The job is done.
    • If the car stalls: HELIOS takes the error message ("The engine is missing a spark plug") and hands it back to the AI, saying, "Here is what went wrong. Fix it, but keep the map in mind." The AI tries again, and usually gets it right.

3. The Results: Why It Matters

The researchers tested this on a huge variety of computer "languages" (different hardware architectures like x86, ARM, and MIPS).

  • Without HELIOS: The AI was like a student guessing on a test. It got about 45% to 70% of the answers right, and its answers often broke when the code was optimized.
  • With HELIOS: The AI became like a student with a textbook and a teacher.
    • It successfully rebuilt the code 85% to 96% of the time.
    • It worked just as well on a computer chip from a smartphone (ARM) as it did on a desktop computer (x86), without needing to be retrained for each one.
    • The code it produced actually worked (passed tests), not just looked pretty.

The Big Takeaway

The paper argues that AI is great at understanding text, but bad at understanding structure (like how a program flows). HELIOS doesn't try to teach the AI a new language or retrain it from scratch. Instead, it simply translates the structure into text and gives the AI a clear set of instructions on how to use that structure.

Think of it like this: You don't need to teach a human how to read a map to make them a better driver; you just need to hand them the map and tell them, "Follow the roads on this paper, not the ones you think you remember." HELIOS does exactly that for computer code.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →