{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/learning-local-discrete-features-in","title":"Learning local discrete features in explainable-by-design convolutional neural networks","arxiv_id":"2411.00139","date":"2024-10-31","proceeding":null,"authors":["Pantelis I. Kaplanoglou","Konstantinos Diamantaras"],"abstract":"Our proposed framework attempts to break the trade-off between performance and explainability by introducing an explainable-by-design convolutional neural network (CNN) based on the lateral inhibition mechanism. The ExplaiNet model consists of the predictor, that is a high-accuracy CNN with residual or dense skip connections, and the explainer probabilistic graph that expresses the spatial interactions of the network neurons. The value on each graph node is a local discrete feature (LDF) vector, a patch descriptor that represents the indices of antagonistic neurons ordered by the strength of their activations, which are learned with gradient descent. Using LDFs as sequences we can increase the conciseness of explanations by repurposing EXTREME, an EM-based sequence motif discovery method that is typically used in molecular biology. Having a discrete feature motif matrix for each one of intermediate image representations, instead of a continuous activation tensor, allows us to leverage the inherent explainability of Bayesian networks. By collecting observations and directly calculating probabilities, we can explain causal relationships between motifs of adjacent levels and attribute the model's output to global motifs. Moreover, experiments on various tiny image benchmark datasets confirm that our predictor ensures the same level of performance as the baseline architecture for a given count of parameters and/or layers. Our novel method shows promise to exceed this performance while providing an additional stream of explanations. In the solved MNIST classification task, it reaches a comparable to the state-of-the-art performance for single models, using standard training setup and 0.75 million parameters.","url_abs":"https://arxiv.org/abs/2411.00139v1","url_pdf":"https://arxiv.org/pdf/2411.00139v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"learning-local-discrete-features-in","repo_url":"https://github.com/pikaplan/LearnExplaiNet","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"none","reach":null}],"tasks":[{"task_slug":"xai","task_name":"Explainable Artificial Intelligence (XAI)"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"interpretable-machine-learning","task_name":"Interpretable Machine Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/image-classification-on-cifar-10","task":"Image Classification","dataset":"CIFAR-10","model":"R-ExplaiNet-26","rank_in_archive_order":162,"of":265,"metrics":{"Parameters":"0.89 M","Percentage correct":"94.15"},"uses_additional_data":false},{"leaderboard":"/sota/image-classification-on-fashion-mnist","task":"Image Classification","dataset":"Fashion-MNIST","model":"R-ExplaiNet-26","rank_in_archive_order":9,"of":34,"metrics":{"Accuracy":"93.45","Percentage error":"6.55","Trainable Parameters":"892362"},"uses_additional_data":false},{"leaderboard":"/sota/image-classification-on-kuzushiji-mnist","task":"Image Classification","dataset":"Kuzushiji-MNIST","model":"R-ExplaiNet-26","rank_in_archive_order":10,"of":26,"metrics":{"Accuracy":"98.78","Error":"1.22","Trainable Parameters":"892362"},"uses_additional_data":false},{"leaderboard":"/sota/image-classification-on-mnist","task":"Image Classification","dataset":"MNIST","model":"R-ExplaiNet-22 (single model)","rank_in_archive_order":6,"of":81,"metrics":{"Accuracy":"99.80","Percentage error":"0.20","Trainable Parameters":"743882"},"uses_additional_data":false},{"leaderboard":"/sota/image-classification-on-oracle-mnist","task":"Image Classification","dataset":"Oracle-MNIST","model":"R-ExplaiNet-26","rank_in_archive_order":2,"of":4,"metrics":{"Accuracy":"96.93","Trainable Parameters":"892362"},"uses_additional_data":false}],"syntology":{"atlas_url":null,"mcp":null,"developers":"https://syntology.ai/developers"},"arxiv_metadata":null,"syntology_extracted_results":null}