Skip to content

Characterizing secret memory in decoding Code LLMs via token-level featuresDecoding Secret Memorization in Code LLMs Through Token-Level Characterization

arXiv· arXiv:2410.08858· ICSE 2025· Yuqing Nie, Chong Wang, Kailong Wang, Guoai Xu, Guosheng Xu, Haoyu Wang·Indexed by this site · 23 days ago· Originally publishedAttacks
AI summary

The researchers propose DESEC, a two-stage method that uses token-level features to extract real secrets from Code LLM memory, for evaluating the privacy leakage risk of code models. Existing extraction methods that rely on prompt engineering suffer from prevalent hallucination and low efficiency in extracting targeted sensitive information; the paper identifies four token probability features that distinguish real secrets from hallucinated secrets, first uses a proxy Code LLM to build an offline token scoring model, and then guides the decoding process by redistributing token probabilities. Experiments on four mainstream Code LLMs and diverse datasets show that DESEC achieves a higher plausible rate than existing baselines and extracts more real secrets.

Read originalICSE 2025