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.1.tar.gz (5.4 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.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for poly_attention-0.0.1.tar.gz
Algorithm Hash digest
SHA256 db3f379518efe62aa547b3f109a57577ee242c4c11a3c76090efa7ebd0c3afcb
MD5 605ca002918eeb067a3edb3a947b5acf
BLAKE2b-256 d694ec17c3e1ddbc97f0d6d9e45e72a97d6f3f5544d1f5c3476b2993c47e6bcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for poly_attention-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 836e8f7d395730b52239a14d0cec0a8d83402edf2e78cb70d539ab6882af2a5e
MD5 66f6ce8db27ca9076c8bd695cede1459
BLAKE2b-256 f007566f2b282d9e814388d85c8e76317727b9fc50c774b5c23f08a681a1d555

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