paper-with-me

홈 › Papers

Context2Name: A Deep Learning-Based Approach to Infer Natural Variable Names from Usage Contexts

2018-08-31 · Rohan Bavishi, Michael Pradel, Koushik Sen

Most of the JavaScript code deployed in the wild has been minified, a process in which identifier names are replaced with short, arbitrary and meaningless names. Minified code occupies less space, but also makes the code extremely difficult to manually inspect and understand. This paper presents Context2Name, a deep learningbased technique that partially reverses the effect of minification by predicting natural identifier names for minified names. The core idea is to predict from the usage context of a variable a name that captures the meaning of the variable. The approach combines a lightweight, token-based static analysis with an auto-encoder neural network that summarizes usage contexts and a recurrent neural network that predict natural names for a given usage context. We evaluate Context2Name with a large corpus of real-world JavaScript code and show that it successfully predicts 47.5% of all minified identifiers while taking only 2.9 milliseconds on average to predict a name. A comparison with the state-of-the-art tools JSNice and JSNaughty shows that our approach performs comparably in terms of accuracy while improving in terms of efficiency. Moreover, Context2Name complements the state-of-the-art by predicting 5.3% additional identifiers that are missed by both existing tools.

📄 PDF Abstract BibTeX arXiv:1809.05193

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Recovering Variable Names for Minified Code with Usage Contexts

2019-06-08 · Hieu Tran, Ngoc Tran, Son Nguyen, Hoan Nguyen 외

In modern Web technology, JavaScript (JS) code plays an important role. To avoid the exposure of original source code, the variable names in JS code deployed in the wild are often replaced by short, meaningless names, th…

Information RetrievalRetrieval

Transformer-Based Contextualized Language Models Joint with Neural Networks for Natural Language Inference in Vietnamese

2024-11-20 · Dat Van-Thanh Nguyen, Tin Van Huynh, Kiet Van Nguyen, Ngan Luu-Thuy Nguyen

Natural Language Inference (NLI) is a task within Natural Language Processing (NLP) that holds value for various AI applications. However, there have been limited studies on Natural Language Inference in Vietnamese that …

Natural Language InferenceXLM-R

Variable Name Recovery in Decompiled Binary Code using Constrained Masked Language Modeling

2021-03-23 · Pratyay Banerjee, Kuntal Kumar Pal, Fish Wang, Chitta Baral

Decompilation is the procedure of transforming binary programs into a high-level representation, such as source code, for human analysts to examine. While modern decompilers can reconstruct and recover much information t…

Language ModelingLanguage ModellingMasked Language Modeling

ViNLI: A Vietnamese Corpus for Studies on Open-Domain Natural Language Inference

2022-10-01 · COLING 2022 10 · Tin Van Huynh, Kiet Van Nguyen, Ngan Luu-Thuy Nguyen

Over a decade, the research field of computational linguistics has witnessed the growth of corpora and models for natural language inference (NLI) for rich-resource languages such as English and Chinese. A large-scale an…

ArticlesNatural Language InferenceSentenceVietnamese Natural Language Inference

Leveraging Semantic Representations Combined with Contextual Word Representations for Recognizing Textual Entailment in Vietnamese

2023-01-01 · Quoc-Loc Duong, Duc-Vu Nguyen, Ngan Luu-Thuy Nguyen

RTE is a significant problem and is a reasonably active research community. The proposed research works on the approach to this problem are pretty diverse with many different directions. For Vietnamese, the RTE problem i…

Natural Language InferenceNatural Language UnderstandingRepresentation LearningRTE