Method, system and processor for enhancing robustness of source-code classification model
AssigneeHuazhong University of Science and Technology
InventorsZhen Li, Junyao Ye, Deqing Zou, Hai Jin, Xianghong Zeng
Life of this patent
Estimating the term…
Loading patent…
AssigneeHuazhong University of Science and Technology
InventorsZhen Li, Junyao Ye, Deqing Zou, Hai Jin, Xianghong Zeng
Estimating the term…
A method, system and processor for enhancing robustness of a source-code classification model based on invariant features is provided, wherein the method includes: combining non-robustness features to generate different style templates, converting codes in an input code training set into new codes of different styles to obtain a converted-code training set, merging the input-code and the converted-code training set into an expanded training set, and converting code texts in the expanded training set into code images; and converting the code images into required vectors, pairing samples of identical class randomly picked from the expanded training set and inputting the matched sample pairs into a feature extractor, iteratively updating the feature extractor and the matched sample pairs and extracting target characteristics, and training the extracted invariant features in a classifier to produce a trained model. The disclosed system includes a training set-expanding module and a model-training module.
A method for enhancing robustness of a source-code classification model, based on invariant features, wherein the method comprises steps of:
A system for enhancing robustness of a source-code classification model, based on invariant features, wherein the system comprises a processor and a storage medium, wherein the processor is configured to execute a computer program stored in the storage medium in the form of a computer program to be executed by the processor, wherein the computer program comprises:
Dependencies are inferred from the claim text.