Research map / Large language models / Language, safety and interpretability
A Simple Approach for Handling Out-of-Vocabulary Identifiers in Deep Learning for Source Code
Nadezhda Chirkova, Sergey Troshin
HSE University
Read the paperPlace an idea next to itCheck your own paper ↗
12measured effects
5improved
3no clear effect
3hurt
1mixed
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| anonymize OOV identifiers instead of replacing with UNK | Transformer · Variable misuse Python, |V_full|=1000 | joint accuracy (%): 72.36 -> 86.76 (ordered) | Improved |
| anonymize OOV identifiers instead of replacing with UNK | Transformer · Variable misuse JavaScript, |V_full|=10000 | joint accuracy (%): 73.36 -> 82.68 (ordered) | Improved |
| anonymize OOV identifiers instead of UNK | Transformer · Code completion value prediction Python, |V_full|=10000 | MRR (%): 51.8 -> 65.25 (ordered) | Improved |
| anonymize OOV identifiers instead of pointer mechanism | Transformer · Code completion Python, |V_full|=10000 | MRR (%): 64.94 -> 65.25 (ordered) | Mixed |
| anonymize OOV identifiers instead of pointer mechanism | Transformer · Code completion Python, |V_full|=100000 | MRR (%): 65.09 vs 64.27 (ordered) | Hurt |
| use ordered instead of randomized anonymization (ablation) | Transformer · Variable misuse Python, |V_full|=10000 | joint accuracy (%): 86.66 -> 87.72 | Improved |
| increase vocabulary of standard model to the maximum (ablation) | Standard Transformer · Variable misuse Python | joint accuracy (%): 81.42 (50K) -> 80.16 (Max) | Hurt |
| add anonymization of rare identifiers on top of frequent identifier names (vs full anonymization) (ablation) | Transformer · Variable misuse Python, |V_full|=1000 vs 1 | joint accuracy (%): 81.93 -> 86.76 (ordered) | Improved |
| combine pointer mechanism with OOV anonymization (ablation) | Transformer · Code completion | MRR (%) | No clear effect |
| increase anonymized vocabulary size |V_an| from 0.5K to 3K (ablation) | Randomized anonymization · Code completion Python, |V_full|=1k | MRR (%): 63.35 -> 62.79 | Hurt |
| increase |V_an| above max snippet length (ablation) | Randomized anonymization · Variable misuse | joint accuracy (%) | No clear effect |
| use frequency-based instead of ordered anonymization (ablation) | Transformer · Variable misuse | joint accuracy (%) | No clear effect |
Open problems in text generation and evaluation metrics
Do language, text and evaluation results hold beyond one language, one corpus and one LLM judge?
- Results come from one language, one pair or a few mostly high-resource languages. · 14 papers state it
- Data come from one corpus, genre or platform, so other settings are untested. · 14 papers state it
- LLM judges and LLM labels are used without human checks. · 8 papers state it
Closest papers by meaning
- Generating Adversarial Examples for Holding Robustness of Source Code Processing Models (AAAI 2020 · similarity 0.84)
- DOBF: A Deobfuscation Pre-Training Objective for Programming Languages (NeurIPS 2021 · similarity 0.83)
- ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding (ICLR 2025 · similarity 0.82)
- CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation (EMNLP 2021 · similarity 0.81)
- Black-Box Adversarial Attacks on LLM-Based Code Completion (ICML 2025 · similarity 0.80)
- Unlearned but Not Forgotten: Data Extraction after Exact Unlearning in LLM (NeurIPS 2025 · similarity 0.80)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.