Skip to content

SuperInstance/tropical-attention

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

tropical-attention

Tropical algebra for attention mechanisms — replaces softmax with max-plus algebra for provably sparse, interpretable attention patterns.

What This Gives You

  • Tropical softmax — max-plus semiring alternative to classical softmax
  • Sparse attention — provable sparsity guarantees from tropical geometry
  • Interpretable weights — tropical attention maps have clear geometric meaning
  • Pure Python — implementations of tropical matrix operations

How It Fits

Part of the SuperInstance mathematical research into alternative attention mechanisms. Connects to info-geo (information geometry) and pareto-tournament (Pareto optimization).

License

MIT

About

Tropical attention — max-plus softmax, tropical transformer layers, Newton polytopes, piecewise-linear decision boundaries

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages