Adversarial training has been proven to be one of the most effective techniques to defend against adversarial examples. The majority of existing adversarial training methods assume that every class in the training data is equally distributed. However, in reality, some classes often have a large number of training data while others only have a very limited amount. Recent studies have shown that the performance of adversarial training will degrade drastically if the training data is imbalanced. In this paper, we propose a simple yet effective framework to enhance the robustness of DNN models under imbalanced scenarios. Our framework, Imb-Mix, first augments the training dataset by generating multiple adversarial examples for samples in the minority classes. This is done by first adding random noise to the original adversarial examples created by one specific adversarial attack method. It then constructs Mixup-mimic mixed examples upon the augmented dataset used by adversarial training. In addition, we theoretically prove the regularization effect of our Mixup-mimic mixed examples generation technique in Imb-Mix. Extensive experiments on various imbalanced datasets verify the effectiveness of the proposed framework.
Software vulnerabilities pose a severe threat to system security and stability. To reinforce the hierarchical structure of source code, enhance the distinctiveness of embedded features, and reduce feature confusion, we propose CADetect, a vulnerability detection model based on clustering-aware heterogeneous code graphs. First, a hierarchical clustering algorithm is applied to constrain and optimize the embedding vectors. This enhances the model’s ability to differentiate between diverse node and edge types within the heterogeneous code graphs, while streamlining code structures and reducing redundant information. Subsequently, multi-scale convolutions with varying kernel sizes are designed to extract vulnerability features at different granularities, effectively mitigating the information loss commonly caused by single-scale convolutions. Finally, extensive evaluations on the FFmpeg+Qemu, BigVul, and Reveal datasets demonstrate the effectiveness of the proposed model, and ablation studies confirm the specific contributions of the clustering algorithm and multi-scale convolutions.
Early and accurate detection of brain tumors is critical for MRI-based diagnosis. Conventional convolutional neural networks often struggle to capture fine-grained details, small or boundary-ambiguous lesions, and hemispheric symmetry patterns. To address these limitations, we propose S-ResGCN, a symmetry-aware framework integrating hierarchical feature extraction, attention mechanisms, and graph-based classification. S-ResGCN employs a ResNet50 backbone to extract multi-level features, with Convolutional Block Attention Modules applied to intermediate and deep layers to enhance key information and discriminative features. Furthermore, we introduce a novel self-paired regularization to enforce feature consistency between original and horizontally flipped images, improving sensitivity to bilateral symmetric structures. Extracted features are converted into nodes and modeled as a small graph, and a graph convolutional network captures inter-node relationships to generate symmetry-aware predictions. Evaluation on three publicly available brain tumor MRI datasets demonstrates that S-ResGCN achieves average accuracies of 99.83%, 99.37% and 99.26% ± 0.16, with consistently high precision, recall, and F1-scores. These results indicate that S-ResGCN effectively captures fine-grained and symmetric tumor characteristics often overlooked by conventional models, providing a robust and efficient tool for automated, graph convolutional network.