Skip to main content

PolyAttention

Project description

Poly Attention (wip)

Implementation of Poly-Attention, a general scheme for higher-order self-attention

Install

$ pip install poly-attention

Usage

import torch
from poly_attention import PolyAttention

attn = PolyAttention(
    dim = 512,
    heads = 8,
    dim_head = 64,
    causal = False
)

x = torch.randn(1, 1024, 512)
out = attn(x) # (1, 1024, 512)

Citations

@inproceedings{chakrabarti2026poly,
    title   = {Poly-attention: a general scheme for higher-order self-attention},
    author  = {Chakrabarti, Sayak and Pitassi, Toniann and Alman, Josh},
    booktitle = {International Conference on Learning Representations (ICLR)},
    year    = {2026}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poly_attention-0.0.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poly_attention-0.0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file poly_attention-0.0.2.tar.gz.

File metadata

  • Download URL: poly_attention-0.0.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for poly_attention-0.0.2.tar.gz
Algorithm Hash digest
SHA256 61459923799e6a3329ae92a10a983d8dff0cdbed39ba829da2a07e21733ffa9b
MD5 3d11c8f8e50049c44c76e53e74fa9b21
BLAKE2b-256 51a0e6370362c247caab6b7b628b9a53836f88996c7ad7cf2f3913ef3ef553b6

See more details on using hashes here.

File details

Details for the file poly_attention-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for poly_attention-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4bd160b1d60d734e442362f01dbe800d297c19a74954e98a97fb48be8bcb0635
MD5 adfc2113d061cd2797db4f51a40e1df5
BLAKE2b-256 690fa0ad5a9d824b5a3ba8b1d73161dfd2c8fc7f3a7dd667e0c597e545943f08

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page