GithubHelp home page GithubHelp logo

star-ensembling's Introduction

This repository contains the code to reproduce the experiments in the paper:

"Star algorithm for NN ensembling"

by Sergey Zinchenko and Dmitry Lishudi

ICML DyNN workshop 2022 - accepted, NeurIPS 2022 - reject:), AISTATS - under review

Abstract

Neural network ensembling is a common and robust way to increase model efficiency. In this paper, we propose a new neural network ensemble algorithm based on Audibert's empirical star algorithm. We provide optimal theoretical minimax bound on the excess squared risk. Additionally, we empirically study this algorithm on regression and classification tasks and compare it to most popular ensembling methods.

Overview

In short, the procedure we proposed can be described as follows: we run ๐‘‘ independent learning processes of neural networks, obtaining empirical risk minimizers (black box), freeze their weights, after that we initialize a new model and connect all ๐‘‘+1 models with a layer of convex coefficients, after that we start the process of optimizing all non-frozen parameters (red elemenents). This whole procedure can be viewed as a search for an empirical minimizer in all possible ๐‘‘ -dimensional simplices spanned by ๐‘‘ -minimizers and a class of neural networks. As is known, the minimization of the empirical risk with respect to the convex hull is not optimal in the same way as with respect to the original class of functions. Our method, however, minimizes over some set intermediate between the original class of functions and its convex hull, allowing us to combine the advantages of model ensembling and the star procedure.

The algorithm proposed by us can be perceived as a new way of training neural networks of block architecture and as a new way of model aggregation. See the article for details.

Dependencies

FMNIST & BOSTON HOUSE PRICING:

torch==1.10.2
torchvision==0.11.3
numpy==1.20.3
pandas==1.4.1
sklearn==1.0.2

MILLION SONG DATASET:

torch==1.11.0
numpy==1.21.6
pandas==1.3.5
CUDA=11.3.1

Data downloading

BOSTON HOUSE PRICING downloading is handled by sklearn.datasets, FMNIST is hadled by torch.torchvision.

MILLION SONG DATASET can be downloaded from the link.

File structure

+-- tables/
|   +-- BOSTON/ (tables of results for BOSTON HOUSE PRICING)
|   +-- FMNIST/ (tables of results for FASHION MNIST)
|   +-- MSD/ (tables of results for MILLION SONG DATASET)
+-- notebooks (jupyter notebooks used to generate tables and their short description in the file description.md) 

Best Results

Name d accuracy entropy TIME
Snap Star (shot wrmp) 5 0.898 1.152 2588.0
Snap Star (new wrmp) 5 0.898 1.136 2369.0
Snap Ensemble 5 0.902 0.330 2036.0
Ensemble 5 0.918 0.229 2052.0
Classic Star (no wrmp) 5 0.922 0.229 2589.0
Classic Star (new wrmp) 5 0.923 0.228 2239.0
Big NN 5 0.910 0.481 1560.0

(results after epochs=25 by using parameter d=5)

These scores are 11-12 according to the dataset FMNIST in the leaderboard. Note the fact that our model takes a few minutes to learn on a laptop.

This table corresponds to the tables/FMNIST/FMNIST_ep(25)_p(0.0)_lr(0.001).csv

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.