Coder Social home page Coder Social logo

filtag's Introduction

FilTag

This repository contains the code for the paper Explaining Convolutional Neural Networks by Tagging Filters published at AIMLAI@CIKM'22.

Abstract

Convolutional neural networks (CNNs) have achieved astonishing performance on various image classification tasks, but it is difficult for humans to understand how a classification comes about. Recent literature proposes methods to explain the classification process to humans. These focus mostly on visualizing feature maps and filter weights, which are not very intuitive for non-experts. In this paper, we propose FilTag, an approach to effectively explain CNNs even to non-experts. The idea is that if images of a class frequently activate a convolutional filter, that filter will be tagged with that class. Based on the tagging, individual image classifications can then be intuitively explained using the tags of the filters that the input image activates. Finally, we show that the tags are useful in analyzing classification errors caused by noisy input images and that the tags can be further processed by machines.

Code

The approach consists of four steps:

  • step1collectingactivations.py: computes the activations of feature maps based on a data set and a cnn (examplary for ImageNet and VGG16, other cnns can also be executed).
  • step2labelfilters.py: assigns the tags to the filters according to our approach, corresponding to the activations of the feature maps assigned to the filters.
  • step3evaluation.py: computes predictions of the evaluation method.

Execution

For execution, the path to the images of the corresponding data set needs to be specified.

Additional files

  • EXAMPLE_FilterTags_VGG16_conv5-3_k1.txt: contains filter tags for the last convolutional layer of VGG16 with k=1.
  • decoding_wnids.txt: contains an assignment from wnid to label for ImageNet to decode the labels.

Contact & More Information

More information can be found in the paper Explaining Convolutional Neural Networks by Tagging Filters (AIMLAI@CIKM'22).

How to Cite

Please cite the work as follows:

@inproceedings{FilTag2022,
  author    = {Anna Nguyen and
               Daniel Hagenmayer and
               Tobias Weller and
               Michael F{\"{a}}rber},
  title     = {Explaining Convolutional Neural Networks by Tagging Filters},
  booktitle   = {Proc. of AIMLAI@CIKM'22},
  year      = {2022}
}

filtag's People

Contributors

michaelfaerber avatar

Watchers

James Cloos avatar  avatar Kostas Georgiou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.