With the rapid development of artificial intelligence, particularly the rise of deep learning, the importance of Explainable Artificial Intelligence has become increasingly prominent. Among its key techniques, counterfactual explanation plays a crucial role in understanding the decision-making mechanisms of black-box models. However, the high dimensionality and complex feature patterns of image data pose significant challenges for the task of generating counterfactuals for images. Existing literature has proposed various algorithms based on different assumptions, many of which rely on the existence of appropriate generative models. Some of these assumptions, particularly the assumption regarding the existence of generative models, may be overly stringent. To address this issue, this letter introduces a novel assumption-free image counterfactual generation algorithm, DFO-S, based on Score Matching and gradient-free optimization techniques. The proposed method achieves high-quality counterfactual generation without relying on generative models. Through extensive empirical analysis, we demonstrate the significant superiority of our method in terms of performance.
Extracting robust features against geometric transformations and adversarial perturbations remains a critical challenge in deep learning. Although capsule networks exhibit resilience through vector-encapsulated features and dynamic routing, they suffer from computational inefficiency due to iterative routing, dense matrix operations, and extra activation scalars. To address these limitations, we propose a method that integrates (1) compact vector-grouped neurons to eliminate activation scalars, (2) a non-iterative voting algorithm that preserves spatial relationships with reduced computation, and (3) efficient weight-sharing strategies that balance computational efficiency with generalizability. Our approach outperforms existing methods in image classification on CIFAR-10 and SVHN, achieving up to a 0.31% increase in accuracy with fewer parameters and lower FLOPs. Evaluations demonstrate superior performance over competing methods, with 0.31% accuracy gains on CIFAR-10/SVHN (with reduced parameters and FLOPs) and 1.93%/1.09% improvements in novel-view recognition on smallNORB. Under FGSM and BIM attacks, our method reduces attack success rates by 47.7% on CIFAR-10 and 32.4% on SVHN, confirming its enhanced robustness and efficiency. Future work will extend vexel representations to MLPs and RNNs and explore applications in computer graphics, natural language processing, and reinforcement learning.