Coder Social home page Coder Social logo

jdc08161063 / research-softmax-with-mutual-information Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kfzyqin/research-softmax-with-mutual-information

0.0 1.0 0.0 47.38 MB

Full implementation of the paper "Rethinking Softmax with Cross-Entropy: Neural Network Classifier as Mutual Information Estimator".

License: Creative Commons Attribution 4.0 International

Python 83.90% Jupyter Notebook 12.84% Shell 3.27%

research-softmax-with-mutual-information's Introduction


Rethinking Softmax with Cross-Entropy

Neural Network Classifier as Mutual Information Estimator

MI EstimatorPC SoftmaxInfoCAMCreditsLicence

InfoCAM-Procedure

Overview

In the paper, we show the connection between mutual information and softmax classifier through variational form of mutual information. The connection explains the rational behind softmax cross-entropy from information-theoretic perspective, which brings a new insight to understand the classifiers. We utilise the connection between classification and mutual information to improve the weakly-supervised object localisation task. To this end, we propose a new way to compute the classification activation map, which is based on the difference between PMIs.

This repository includes all the experimental implementation.

MI Estimator

In the paper, we prove that classification neural networks that optimise their weights to minimise the softmax cross-entropy are equivalent to the ones that maximise mutual information between inputs and labels with the balanced datasets. This repository includes the implementation for evaluating the effectiveness of classification mutual information estimator via synthetic datasets. We also show the balanced dataset assumption can be relaxed by modifying the traditional softmax to the Probability-Correct (PC) softmax. This repository also contains implementation for evaluating mutual information with PC-softmax on the synthetic dataset.

PC Softmax

We modify the traditional softmax to the Probability-Correct (PC) softmax. This repository contains implementation for demonstrating PC-softmax can improve a large margin than the traditional softmax for the average of the per-class classification accuracy. We experiment on two datasets: MNIST and CUB-200-2011. In terms of the accuracy value merely, we achieve a new state-of-art of the micro classification accuracy (ours: 89.73; previous: 89.6) on CUB-200-2011.

InfoCAM

We propose infoCAM: Informative Class Activation Map, which highlights regions of the input image that are the most relevant to a given label based on differences in information. The activation map helps localise the target object in an image. We in this repository show the effectiveness of the informative-theoretic approach than the traditional CAM.

InfoCAM

Credits

This repository uses the following implementations:

Licence

CC-BY-4.0

research-softmax-with-mutual-information's People

Contributors

kfzyqin avatar

Watchers

James Cloos 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.