Skip to content

Calculate the mutual information between inputs and outputs of SSM and Attention, using MINE.

License

Notifications You must be signed in to change notification settings

BDeMo/MINE_SSM_Attention

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

  • Save and put your features in a Tensor [idx_layer, idx_tokens (t), feature] first.
  • Run calculation_MI.py and plot_MI.ipynb respectively then.

Idx Selection

In CV tasks, Mid Layer is recommended due to its balance between low-level and high-level pattern.

Reference

MINE R-MeeTo

About

Calculate the mutual information between inputs and outputs of SSM and Attention, using MINE.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published