Characterizing secret memory in decoding Code LLMs via token-level featuresDecoding Secret Memorization in Code LLMs Through Token-Level Characterization
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.