# Retrofit: Continual Learning with Controlled Forgetting for Binary Security Detection and Analysis

Source: [Retrofit: Continual Learning with Controlled Forgetting for Binary Security Detection and Analysis](<https://www.sota2.com/research/paper/691aac196750be83fe5ce434>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-04-25T05:00:04.395Z

Authors: Yiling He, Junchi Lei, Hongyu She, Shuo Shao, Xinran Zheng, Yiping Liu, Zhan Qin, Lorenzo Cavallaro

Published: 2025-11-14T16:07:03.000Z

## Abstract

Binary security has increasingly relied on deep learning to reason about malware behavior and program semantics. However, the performance often degrades as threat landscapes evolve and code representations shift. While continual learning (CL) offers a natural solution through sequential updates, most existing approaches rely on data replay or unconstrained updates, limiting their applicability and effectiveness in data-sensitive security environments. We propose RETROFIT, which regulates knowledge retention and adaptation with controlled forgetting at each update, without requiring historical data. Our key idea is to consolidate previously trained and newly fine-tuned models, serving as teachers of legacy and emergent knowledge, through retrospective-free parameter merging. Forgetting control is achieved by 1) constraining parameter changes to low-rank and sparse subspaces for approximate orthogonality, and 2) employing a confidence-guided arbitration mechanism to dynamically aggregate knowledge from both teachers.   Our evaluation on two representative applications demonstrates that RETROFIT consistently mitigates forgetting while maintaining adaptability. In malware detection under temporal drift, it substantially improves the retention score, from 20.2% to 38.6% over CL baselines, and exceeds the oracle upper bound on new data. In binary summarization across decompilation levels, where analyzing stripped binaries is especially challenging, RETROFIT achieves over 2x the BLEU score of transfer learning used in prior work and surpasses all baselines in cross-representation generalization.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Binary Analysis on CAPYBARA Dec-Strip](<https://www.sota2.com/research/sota/binary-analysis-on-capybara-dec-strip.md>): Binary Analysis; CAPYBARA Dec-Strip; ROUGE-L: 19.8.

- [Binary Analysis on CAPYBARA Dec-Strip (EM)](<https://www.sota2.com/research/sota/binary-analysis-on-capybara-dec-strip-em.md>): Binary Analysis; CAPYBARA Dec-Strip; EM Score: 5.62.

- [Binary analysis on CAPYBARA Dec-Strip (METEOR)](<https://www.sota2.com/research/sota/binary-analysis-on-capybara-dec-strip-meteor.md>): Binary Analysis; CAPYBARA Dec-Strip; METEOR Score: 18.2.

- [Malware Detection on Transcendent New 2017](<https://www.sota2.com/research/sota/malware-detection-on-transcendent-new-2017.md>): Malware Detection; Transcendent New 2017; F1-score: 95.6.

- [Binary Analysis on CAPYBARA cross-representation](<https://www.sota2.com/research/sota/binary-analysis-on-capybara-cross-representation.md>): Binary Analysis; CAPYBARA cross-representation; Performance (Full Mode): 36.97.

- [Malware Detection on Transcendent 2014-2018 (temporal)](<https://www.sota2.com/research/sota/malware-detection-on-transcendent-2014-2018-temporal.md>): Malware Detection; Transcendent 2014-2018 (temporal); Detection Accuracy (2014): 86.7.

- [Binary Analysis on CAPYBARA Dec-Anon](<https://www.sota2.com/research/sota/binary-analysis-on-capybara-dec-anon.md>): Binary Analysis; CAPYBARA Dec-Anon; ROUGE-L: 31.1.

- [Binary Analysis on CAPYBARA XRep](<https://www.sota2.com/research/sota/binary-analysis-on-capybara-xrep.md>): Binary Analysis; CAPYBARA XRep; ROUGE-L: 32.4.

- [Binary Analysis on CAPYBARA Dec-Anon (EM)](<https://www.sota2.com/research/sota/binary-analysis-on-capybara-dec-anon-em.md>): Binary Analysis; CAPYBARA Dec-Anon; Exact Match (EM): 15.77.

- [Binary Analysis on CAPYBARA XRep (EM)](<https://www.sota2.com/research/sota/binary-analysis-on-capybara-xrep-em.md>): Binary Analysis; CAPYBARA XRep; EM: 14.82.

- [Binary Analysis on CAPYBARA Dec-Anon (METEOR)](<https://www.sota2.com/research/sota/binary-analysis-on-capybara-dec-anon-meteor.md>): Binary Analysis; CAPYBARA Dec-Anon; METEOR: 27.7.

- [Binary Analysis on CAPYBARA XRep (METEOR)](<https://www.sota2.com/research/sota/binary-analysis-on-capybara-xrep-meteor.md>): Binary Analysis; CAPYBARA XRep; METEOR: 0.29.

- [Malware Detection on Transcendent 2016 Old](<https://www.sota2.com/research/sota/malware-detection-on-transcendent-2016-old.md>): Malware Detection; Transcendent 2016 Old; F1 Score: 92.6.

- [Malware Detection on Transcendent Old 2017](<https://www.sota2.com/research/sota/malware-detection-on-transcendent-old-2017.md>): Malware Detection; Transcendent Old 2017; F1 Score: 88.2.

- [Malware Detection on Transcendent Old 2018](<https://www.sota2.com/research/sota/malware-detection-on-transcendent-old-2018.md>): Malware Detection; Transcendent Old 2018; F1 Score: 87.7.

- [Malware Detection on Transcendent Old 2015](<https://www.sota2.com/research/sota/malware-detection-on-transcendent-old-2015.md>): Malware Detection; Transcendent Old 2015; F1-score: 93.5.

- [Malware Detection on Transcendent 2015 New](<https://www.sota2.com/research/sota/malware-detection-on-transcendent-2015-new.md>): Malware Detection; Transcendent 2015 New; F1-score: 93.3.

- [Malware Detection on Transcendent New 2016](<https://www.sota2.com/research/sota/malware-detection-on-transcendent-new-2016.md>): Malware Detection; Transcendent New 2016; F1-score: 93.9.

- [Binary Analysis on CAPYBARA Dec-Full](<https://www.sota2.com/research/sota/binary-analysis-on-capybara-dec-full.md>): Binary Analysis; CAPYBARA Dec-Full; ROUGE-L: 46.3.

- [Binary Analysis on CAPYBARA Dec-Full (EM)](<https://www.sota2.com/research/sota/binary-analysis-on-capybara-dec-full-em.md>): Binary Analysis; CAPYBARA Dec-Full; EM: 23.09.

- [Binary Analysis on CAPYBARA (Dec-Full) (METEOR)](<https://www.sota2.com/research/sota/binary-analysis-on-capybara-dec-full-meteor.md>): Binary Analysis; CAPYBARA Dec-Full; METEOR: 41.3.

- [Malware Detection on Transcendent 2018 New](<https://www.sota2.com/research/sota/malware-detection-on-transcendent-2018-new.md>): Malware Detection; Transcendent 2018 New; F1-score: 94.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2511.11439>)

[PDF](<https://arxiv.org/pdf/2511.11439.pdf>)
