Skip to content

twoehrer/Narrow_ResNet_Constraints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Universal Approximation Constraints of Narrow ResNets: The Tunnel Effect

This code base provides the numerical experiments discussed in the paper

It contains the training setup for various narrow/non-augmented ResNets including neural ODEs and MLPs.

One-Dimensional ResNets

In the one-dimensional setting, we train models to approximate x^2 and analyze the present embedding restrictions

running1

Two-Dimensional ResNets

2d_node_regime_pred 2d_node_regime_ls

In the neural ODE regime, the narrow ResNet cannot express critical points. This topological constraint creates a "tunnel" in the prediction level sets, leading to unavoidable misclassifications on the 2D circle dataset.

2d_mlp_regime_pred 2d_mlp_regime6_ls

Similarly, in the standard MLP regime, the skip connection's influence vanishes and the architecture once again loses the ability to embed critical points. The resulting input-output map generates the exact same "tunnel effect", failing to capture the enclosed topology of the data.

ff6_res_pred ff6_res_ls

Standard ResNets are able to embed critical points and as a result express the desired topology of the data accurately.

About

experiments for NN embedding properties

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors