[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-509857-105":59,"doc-detail-509857-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","sk2decompile-llm-based-two-phase-binary-decompilation-from-skeleton-to-skin","SK2Decompile - LLM-based two-phase binary decompilation from skeleton to skin","","Large Language Models (LLMs) are used for binary decompilation, but existing LLM-based decompilers often fail to restore source-level structure with original identifiers. SK2Decompile introduces a two-phase method: Structure Recovery to generate a structural intermediate representation (“skeleton”) using reinforcement learning for compiler-valid syntax/semantics, then Identifier Naming to predict meaningful identifiers (“skin”) guided by semantic-similarity rewards. Evaluations show significant gains over state of the art on HumanEval and GitHub2025 benchmarks.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/sk2decompile-llm-based-two-phase-binary-decompilation-from-skeleton-to-skin/509857/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/sk2decompile-llm-based-two-phase-binary-decompilation-from-skeleton-to-skin/509857.png","ImageObject",300,407,{"name":92,"@type":93},"Đào","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-07","2026-10-05",true,{"@type":102,"interactionType":103,"userInteractionCount":44},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What limitation in existing LLM-based decompilers motivates SK2Decompile?","Question",{"text":112,"@type":113},"Existing approaches are limited in preserving a program’s source-level structure together with its original identifiers while maintaining both correctness and readability.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does SK2Decompile perform the first phase of decompilation?",{"text":117,"@type":113},"It uses a Structure Recovery model to translate binary code into an Intermediate Representation (IR) skeleton, preserving control flow and data structures while replacing identifiers with generic placeholders, and trains it with reinforcement learning using compiler-checked rewards.",{"name":119,"@type":110,"acceptedAnswer":120},"How does SK2Decompile produce meaningful identifiers in the second phase?",{"text":121,"@type":113},"It applies an Identifier Naming model that enriches the placeholder IR by predicting meaningful names corresponding to program semantics, trained with a reinforcement learning objective that rewards semantic similarity rather than exact name matching.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},509857,1791289603,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":44,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},1374402968488,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","SK 2 DECOMPILE: LLM-BASED TWO-PHASE BINARY DECOMPILATION FROM SKELETON TO SKIN  \nHanzhuo Tan 1 ,2 ,Weihao Li 1 ,Xiaolong Tian 1 ,Siyi Wang 1 ,Jiaming Liu 1 ,Jing Li2 ,Yuqun Zhang1   \n1Research Institute of Trustworthy Autonomous Systems, Southern University of Science and Technology  \n2Department of Computing, The Hong Kong Polytechnic University  \nABSTRACT  \nLarge Language Models (LLMs) have emerged as a promising approach for binary decompilation. However, the existing LLM-based decompilers are still somewhat limited in effectively presenting a program’s source-level structure with its original identifiers. To mitigate this, we introduce SK2Decompile, a novel two-phase approach to decompile from the skeleton (semantic structure) to the skin (identifier) of programs. Specifically, we first apply a Structure Recovery model to translate a program’s binary code to an Intermediate Representation (IR) as deriving the program’s “skeleton”, i.e., preserving control flow and data structures while obfuscating all identifiers with generic placeholders. We also apply reinforcement learning to reward the model for producing program structures that adhere to the syntactic and semantic rules expected by compilers. Second, we apply an Identifier Naming model to produce meaningful identifiers which reflect actual program semantics as deriving the program’s “skin”. We train the Identifier Naming model with a separate reinforcement learning objective that rewards the semantic similarity between its predictions and the reference code. Such a two-phase decompilation process facilitates advancing the correctness and readability of decompilation independently. Our evaluations indicate that SK2Decompile significantly outperforms the SOTA baselines, achieving 21.6% average re-executability rate gain over GPT-5-mini on the HumanEval dataset and 29.4% average R2I improvement over Idioms on the GitHub2025 benchmark.  \n1 INTRODUCTION  \nDecompilation refers to converting compiled binaries back to high-level source code and has been widely adopted in software security tasks like malware analysis and vulnerability discovery (Brumley et al., 2013; Katz et al., 2018; Wu et al., 2022; Cao et al., 2022; Fu et al., 2019; Chen et al., 2025; Gao et al., 2025a; Huang et al., 2025; Wang et al., 2025a; Shang et al., 2025; Hamedi et al., 2025) . Ideally, a decompiler ensures both functional correctness and code readability, which can hardly be realized in practice at the same time. For instance, traditional tools like Ghidra (Ghidra, 2024) and IDA (Hex-Rays, 2024) excel at functional correctness but often produce obfuscated, hard-toread code, while recent Large Language Model (LLM)-based approaches (Hosseini & Dolan-Gavitt, 2022; Armengol-Estap’e et al., 2023; Jiang et al., 2025; Tan et al., 2024; ylfeng et al., 2024; Dramko et al., 2025) generate more readable output but frequently fail to preserve the original program’s functionality (Tan et al., 2025b) .  \nMany research efforts imply the root cause of this trade-off as the intractable complexity of simultaneously inferring control-flow structures, data layouts, and identifiers in a single phase (Lacomiset al., 2019; Xie et al., 2024; Chen et al., 2022; Console et al., 2023; Patrick-Evans et al., 2020; David et al., 2020; Li et al., 2025) . To mitigate this, we introduce SK2Decompile, a novel LLMbased decompilation technique that decomposes the binary decompilation task into two phases. In particular, we first derive the program’s skeleton, i.e., its core structure, including control flow and data structure (Aho et al., 2007) . Then, we derive the program’s skin, i.e., the meaningful type, variable, and function names reflecting the actual program semantics (Lacomis et al., 2019) . Such  \n∗Yuqun Zhang is the corresponding author.  \na two-phase decompilation design allows for tackling the challenges of functionality and readability independently for aggregating their respective effectiveness rather than realizing a ","cbCaisQkw8BTBYSR","https://ap.wps.com/l/cbCaisQkw8BTBYSR","pdf",2361457,32,"English","# Abstract\n# Introduction\n## Problem: correctness vs readability trade-off in decompilation\n## Proposed solution: SK2Decompile two-phase design\n### Structure Recovery (skeleton)\n### Identifier Naming (skin)\n# Evaluation overview","[{\"question\":\"What limitation in existing LLM-based decompilers motivates SK2Decompile?\",\"answer\":\"Existing approaches are limited in preserving a program’s source-level structure together with its original identifiers while maintaining both correctness and readability.\"},{\"question\":\"How does SK2Decompile perform the first phase of decompilation?\",\"answer\":\"It uses a Structure Recovery model to translate binary code into an Intermediate Representation (IR) skeleton, preserving control flow and data structures while replacing identifiers with generic placeholders, and trains it with reinforcement learning using compiler-checked rewards.\"},{\"question\":\"How does SK2Decompile produce meaningful identifiers in the second phase?\",\"answer\":\"It applies an Identifier Naming model that enriches the placeholder IR by predicting meaningful names corresponding to program semantics, trained with a reinforcement learning objective that rewards semantic similarity rather than exact name matching.\"}]","SK2Decompile - LLM-based two-phase binary decompilation from skeleton to skin | PDF",1791237573,81,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/49a019cdeb0d9986fde9179eeb880f5d.webp",983,1272,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/b2f7d9c61c05d331ad762754b459f6b7.webp",982,1270,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/f51651e68d1aa60f614278c8c0533f29.webp",981,1269,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/fc2d725b43aac3f54be85d1432767a4c.webp",980,1268]