[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-509851-105":59,"doc-detail-509851-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","sk-2-decompile-llm-based-two-phase-binary-decompilation-from-skeleton-to-skin","SK 2 DECOMPILE: LLM-BASED TWO-PHASE BINARY DECOMPILATION FROM SKELETON TO SKIN","","Large Language Models (LLMs) have emerged as a promising approach for binary decompilation, yet existing LLM-based decompilers struggle to preserve source-level structure together with original identifiers. SK2Decompile introduces a two-phase pipeline: Structure Recovery builds an intermediate representation that retains control flow and data structures while masking identifiers, guided by compiler-based reinforcement learning rewards. Identifier Naming then restores meaningful names using reinforcement learning for semantic similarity. Evaluations show SK2Decompile outperforms state of the art baselines, improving re-executability and semantic mapping metrics on multiple 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/sk-2-decompile-llm-based-two-phase-binary-decompilation-from-skeleton-to-skin/509851/",{"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/sk-2-decompile-llm-based-two-phase-binary-decompilation-from-skeleton-to-skin/509851.png","ImageObject",300,407,{"name":92,"@type":93},"Putri","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-07","2026-10-05",true,{"@type":102,"interactionType":103,"userInteractionCount":52},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is SK2Decompile’s core idea?","Question",{"text":112,"@type":113},"SK2Decompile decomposes binary decompilation into two phases: Structure Recovery to derive a structure-preserving skeleton IR and Identifier Naming to generate meaningful identifiers reflecting program semantics.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does Structure Recovery work in SK2Decompile?",{"text":117,"@type":113},"A first LLM translates binary code into an intermediate representation where control flow and data structures are preserved while identifiers are replaced with generic placeholders. Reinforcement learning rewards are based on compiler syntax/semantics correctness.",{"name":119,"@type":110,"acceptedAnswer":120},"How are identifier names produced and evaluated?",{"text":121,"@type":113},"A second LLM predicts meaningful variable, type, and function names from the IR. Its reinforcement learning objective rewards semantic similarity to reference code 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},509851,1791360905,{"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":52,"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},962085571259,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","arXiv :2509 .22114v1 [ cs . SE] 26 Sep 2025  \nSK 2 DECOMPILE: LLM-BASED TWO-PHASE BINARY DECOMPILATION FROM SKELETON TO SKIN  \nHanzhuo Tan, Weihao Li, Xiaolong Tian, Siyi Wang, Jiaming Liu, Jing Li, Yuqun Zhang  \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) . 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-to-read 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., 2024; 2025) .  \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., 2021b; 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 a two-phase decompilation design allows for tackling the challenges of functionality and readability independently for aggregating their respective effectiveness rather than realizing a trade-off inbetween. In particular, we design a novel Intermediate Representation (IR) acting as the “skeleton”of the program. This IR essentially refers to the original source code with all identifiers (variable, function, and type names) replaced by generic placeholders (Lachaux et al., 2021) ","cbCaiciu9Srr0yjA","https://ap.wps.com/l/cbCaiciu9Srr0yjA","pdf",543528,18,"English","# Abstract\n# 1 Introduction\n## Decompilation trade-off between correctness and readability\n## Two-phase approach: skeleton to skin\n## Intermediate representation and reinforcement learning design\n## Evaluation results and contributions","[{\"question\":\"What is SK2Decompile’s core idea?\",\"answer\":\"SK2Decompile decomposes binary decompilation into two phases: Structure Recovery to derive a structure-preserving skeleton IR and Identifier Naming to generate meaningful identifiers reflecting program semantics.\"},{\"question\":\"How does Structure Recovery work in SK2Decompile?\",\"answer\":\"A first LLM translates binary code into an intermediate representation where control flow and data structures are preserved while identifiers are replaced with generic placeholders. Reinforcement learning rewards are based on compiler syntax/semantics correctness.\"},{\"question\":\"How are identifier names produced and evaluated?\",\"answer\":\"A second LLM predicts meaningful variable, type, and function names from the IR. Its reinforcement learning objective rewards semantic similarity to reference code rather than exact name matching.\"}]","SK 2 DECOMPILE: LLM-BASED TWO-PHASE BINARY DECOMPILATION FROM SKELETON TO SKIN | PDF",1791237554,45,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/b159ec2c039645819c3ac08108e7a08f.webp",983,1272,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/f718f20865822cf0856b985626d566fe.webp",982,1270,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/9bf5d3bafa9cfe5ce4b634cb801e3e46.webp",981,1269,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/bcdeaeae7804dd847367203d723f35e4.webp",980,1268]