Skip to main content

Implementation of the Pseudo-Projector, application of multigrid methods to deep neural networks, by Vitaly Bulgakov

Project description

Pseudo-projector

Implementation of the pseudo projector proposed by Vitaly Bulgakov during his work applying transformers to medical records at Mass General Brigham Hospital

Install

$ pip install pseudo-projector

Usage

import torch
from pseudo_projector import PseudoProjector

proj = PseudoProjector(dim = 64, dim_lowrank = 16)

feats = torch.randn(1, 8, 1024, 64) # any number of preceding dimensions

out = proj(feats)

assert feats.shape == out.shape

Citations

@misc{bulgakov2026correctiontransformerbasedmodelssmoothing,
    title   = {Correction of Transformer-Based Models with Smoothing Pseudo-Projector},
    author  = {Vitaly Bulgakov},
    year    = {2026},
    eprint  = {2603.09815},
    archivePrefix = {arXiv},
    primaryClass = {cs.LG},
    url     = {https://arxiv.org/abs/2603.09815},
}

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

pseudo_projector-0.0.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

pseudo_projector-0.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pseudo_projector-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1839460bfd6cd6b97a0bb60f1e52ff398416ec23f4f64a6c98c5503c2876abe9
MD5 cf479d64ac37fde413a66d8a7a4aab1b
BLAKE2b-256 072129f6031e7c931d0d3031bee513a9231da3f05ff1c09f9d06689b5071519e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pseudo_projector-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57192dec0292982d46df07bc3b286c291d41411a7ae81c68b4933f3e0bae029a
MD5 4cf388ba3ecb2a00dfb31d169ff08f20
BLAKE2b-256 1d05d8e66c217fcd1fad9938029d045ebfdb45ac0a27821ffd50c616a3d78a50

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