Coder Social home page Coder Social logo

mtkwt / hessian-analysis-with-tensorflow1.x Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 978 KB

Hessian spectral analysis with tensorflow1.x

Home Page: https://arxiv.org/pdf/1802.08241.pdf

Dockerfile 2.24% Python 60.90% Jupyter Notebook 36.86%
neural-network optimization hessian eigenvalues tensorflow

hessian-analysis-with-tensorflow1.x's Introduction

Hessian-based-analysis-tensorflow

Description

This is the implementation of an additional experiment with tensorflow in the following paper.

paper: https://arxiv.org/pdf/1802.08241.pdf

Implementation by the author: https://github.com/amirgholami/HessianFlow

speakerdeck: https://speakerdeck.com/mtkwt/hessian-based-analysis

Docker version

  • Docker version 19.03.2
  • docker-compose version 1.24.1

Experiment

In the paper, they use the Hessian matrix w.r.t input, but this repository uses the Hessian matrix w.r.t weight parameters for analysis. As in the paper, I conducted the experiment using CIFAR-10 for image classification. The model architecture is as follows.

Dataset Model architecture
CIFAR-10 Conv(3,3,64) - Conv(3,3,64) - MaxPool(2,2) - Conv(3,3,128) - Conv(3,3,128) - MaxPool(2,2) - Dense(256) - Dense(256) - Softmax(10)

how to use

$ docker-compose build
$ UID=${UID} GID=${GID} docker-compose run --rm app /bin/bash
(docker_container)$ python experiment_cifar10_sgd.py

Results

The top-20 eigenvalues of the Hessian matrix for the CIFAR-10 dataset at the points of convergence reached by Momentum SGD.

The local training loss landscapes at the points of convergence reached by Momentum SGD.

hessian-analysis-with-tensorflow1.x's People

Contributors

dependabot[bot] avatar mtkwt avatar

Stargazers

 avatar

Watchers

 avatar  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.