Papers
Topics
Authors
Recent
Search
2000 character limit reached

Efficient Representation of the Activation Space in Deep Neural Networks

Published 13 Dec 2023 in cs.LG and cs.AI | (2312.08143v1)

Abstract: The representations of the activation space of deep neural networks (DNNs) are widely utilized for tasks like natural language processing, anomaly detection and speech recognition. Due to the diverse nature of these tasks and the large size of DNNs, an efficient and task-independent representation of activations becomes crucial. Empirical p-values have been used to quantify the relative strength of an observed node activation compared to activations created by already-known inputs. Nonetheless, keeping raw data for these calculations increases memory resource consumption and raises privacy concerns. To this end, we propose a model-agnostic framework for creating representations of activations in DNNs using node-specific histograms to compute p-values of observed activations without retaining already-known inputs. Our proposed approach demonstrates promising potential when validated with multiple network architectures across various downstream tasks and compared with the kernel density estimates and brute-force empirical baselines. In addition, the framework reduces memory usage by 30% with up to 4 times faster p-value computing time while maintaining state of-the-art detection power in downstream tasks such as the detection of adversarial attacks and synthesized content. Moreover, as we do not persist raw data at inference time, we could potentially reduce susceptibility to attacks and privacy issues.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (37)
  1. Llama 2: Open foundation and fine-tuned chat models. arXiv e-prints, pages arXiv–2307, 2023.
  2. Fastdiff: A fast conditional diffusion model for high-quality speech synthesis. In IJCAI International Joint Conference on Artificial Intelligence, pages 4157–4163. IJCAI: International Joint Conferences on Artificial Intelligence Organization, 2022.
  3. Hierarchical text-conditional image generation with clip latents. arXiv preprint arXiv:2204.06125, 2022.
  4. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8):1798–1828, 2013.
  5. Evaluating the visualization of what a deep neural network has learned. IEEE transactions on neural networks and learning systems, 28(11):2660–2673, 2016.
  6. Methods for interpreting and understanding deep neural networks. Digital signal processing, 73:1–15, 2018.
  7. Explainable artificial intelligence: Understanding, visualizing and interpreting deep learning models. arXiv e-prints, pages arXiv–1708, 2017.
  8. Advances, challenges and opportunities in creating data for trustworthy ai. Nature Machine Intelligence, 4(8):669–677, 2022.
  9. Interpretable deep learning: Interpretation, interpretability, trustworthiness, and beyond. Knowledge and Information Systems, 64(12):3197–3234, 2022a.
  10. Deepgauge: Multi-granularity testing criteria for deep learning systems. In Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering, pages 120–131, 2018.
  11. Deepxplore: Automated whitebox testing of deep learning systems. In proceedings of the 26th Symposium on Operating Systems Principles, pages 1–18, 2017.
  12. Fakespotter: A simple yet robust baseline for spotting ai-synthesized fake faces. In Christian Bessiere, editor, Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI-20, pages 3444–3451. International Joint Conferences on Artificial Intelligence Organization, 7 2020. doi: 10.24963/ijcai.2020/476. URL https://doi.org/10.24963/ijcai.2020/476. Main track.
  13. Pattern detection in the activation space for identifying synthesized content. Pattern Recognition Letters, 153:207–213, 2022a.
  14. Identifying audio adversarial examples via anomalous pattern detection. In Workshop on Adversarial Learning Methods for Machine Learning and Data Mining, KDD’20, 2020.
  15. Out-of-distribution detection in dermatology using input perturbation and subset scanning. In 2022 IEEE 19th International Symposium on Biomedical Imaging (ISBI), pages 1–4. IEEE, 2022.
  16. Towards creativity characterization of generative models via group-based subset scanning. In Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence (IJCAI-22) Special Track on AI, the Arts and Creativity, pages 4929–4935, 2022b.
  17. Detecting adversarial samples from artifacts. arXiv e-prints, pages arXiv–1703, 2017.
  18. Threat of adversarial attacks on deep learning in computer vision: A survey. Ieee Access, 6:14410–14430, 2018.
  19. Blacklight: Scalable defense for neural networks against {{\{{Query-Based}}\}}{{\{{Black-Box}}\}} attacks. In 31st USENIX Security Symposium (USENIX Security 22), pages 2117–2134, 2022b.
  20. Graph convolutional policy network for goal-directed molecular graph generation. Advances in neural information processing systems, 31, 2018.
  21. Improved artgan for conditional synthesis of natural image and artwork. IEEE Transactions on Image Processing, 28(1):394–409, 2018.
  22. Zinc- a free database of commercially available compounds for virtual screening. Journal of chemical information and modeling, 45(1):177–182, 2005.
  23. Zinc 15–ligand discovery for everyone. Journal of chemical information and modeling, 55(11):2324–2337, 2015.
  24. Yann LeCun. The mnist database of handwritten digits. http://yann. lecun. com/exdb/mnist/, 1998.
  25. Spatially constrained adversarial attack detection and localization in the representation space of optical flow networks. IJCAI, 2023.
  26. Fast generalized subset scan for anomalous pattern detection. The Journal of Machine Learning Research, 14(1):1533–1561, Jun 2013.
  27. Detecting adversarial attacks via subset scanning of autoencoder activations and reconstruction error. In IJCAI 2020, 2020.
  28. Bernard W Silverman. Using kernel density estimates to investigate multimodality. Journal of the Royal Statistical Society: Series B (Methodological), 43(1):97–99, 1981.
  29. Emanuel Parzen. On estimation of a probability density function and mode. The annals of mathematical statistics, 33(3):1065–1076, 1962.
  30. On the histogram as a density estimator: L 2 theory. Zeitschrift für Wahrscheinlichkeitstheorie und verwandte Gebiete, 57(4):453–476, 1981.
  31. David W Scott. Sturges’ rule. Wiley Interdisciplinary Reviews: Computational Statistics, 1(3):303–306, 2009.
  32. Frank J Massey Jr. The kolmogorov-smirnov test for goodness of fit. Journal of the American statistical Association, 46(253):68–78, 1951.
  33. Subset scanning over neural network activations. arXiv preprint arXiv:1810.08676, 2018.
  34. Non-parametric scan statistics for event detection and forecasting in heterogeneous social media graphs. In KDD ’14, pages 1166–1175, 2014.
  35. Toward a neuro-inspired creative decoder. In International Joint Conference on Artificial Intelligence. International Joint Conferences on Artificial Intelligence, 2021.
  36. Explaining and harnessing adversarial examples. stat, 1050:20, 2015.
  37. Penalized fast subset scanning. Journal of Computational and Graphical Statistics, 25(2):382–404, 2016. doi: 10.1080/10618600.2015.1029578. URL https://doi.org/10.1080/10618600.2015.1029578.

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.

Collections

Sign up for free to add this paper to one or more collections.