paper-with-me

Papers

Transformer Meets Twicing: Harnessing Unattended Residual Information

2025-03-02 · Laziz Abdullaev, Tan Nguyen

Transformer-based deep learning models have achieved state-of-the-art performance across numerous language and vision tasks. While the self-attention mechanism, a core component of transformers, has proven capable of handling complex data patterns, it has been observed that the representational capacity of the attention matrix degrades significantly across transformer layers, thereby hurting its overall performance. In this work, we leverage the connection between self-attention computations and low-pass non-local means (NLM) smoothing filters and propose the Twicing Attention, a novel attention mechanism that uses kernel twicing procedure in nonparametric regression to alleviate the low-pass behavior of associated NLM smoothing with compelling theoretical guarantees and enhanced adversarial robustness. This approach enables the extraction and reuse of meaningful information retained in the residuals following the imperfect smoothing operation at each layer. Our proposed method offers two key advantages over standard self-attention: 1) a provably slower decay of representational capacity and 2) improved robustness and accuracy across various data modalities and tasks. We empirically demonstrate the performance gains of our model over baseline transformers on multiple tasks and benchmarks, including image classification and language modeling, on both clean and corrupted data.

📄 PDF Abstract BibTeX arXiv:2503.00687

Code (1)

lazizcodes/twicing_attention 공식 구현 pytorch

Tasks

Adversarial Robustnessimage-classificationImage ClassificationLanguage ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

Gradient Boosting within a Single Attention Layer

2026-04-03 · Saleh Sargolzaei arxiv

Transformer attention computes a single softmax-weighted average over values -- a one-pass estimate that cannot correct its own errors. We introduce \emph{gradient-boosted attention}, which applies the principle of gradi…

Anisotropic twicing for single particle reconstruction using autocorrelation analysis

2017-04-26 · Tejal Bhamre, Teng Zhang, Amit Singer

The missing phase problem in X-ray crystallography is commonly solved using the technique of molecular replacement, which borrows phases from a previously solved homologous structure, and appends them to the measured Fou…

CLEAR: Covariant LEAst-square Re-fitting with applications to image restoration

2016-06-16 · C-A. Deledalle, N. Papadakis, J. Salmon, S. Vaiter

In this paper, we propose a new framework to remove parts of the systematic errors affecting popular restoration algorithms, with a special focus for image processing tasks. Generalizing ideas that emerged for $\ell_1$ r…

Image Restoration

EEG-assisted Modulation of Sound Sources in the Auditory Scene

2017-11-28

Noninvasive EEG (electroencephalography) based auditory attention detection could be useful for improved hearing aids in the future. This work is a novel attempt to investigate the feasibility of online modulation of sou…

Brain Computer InterfaceEEGElectroencephalogram (EEG)

Transformer Meets Gated Residual Networks To Enhance Photoplethysmogram Artifact Detection Informed by Mutual Information Neural Estimation

2024-05-25 · Thanh-Dung Le, Clara Macabiau, Kévin Albert, Symeon Chatzinotas 외

This study delves into the effectiveness of various learning methods in improving Transformer models, focusing particularly on the Gated Residual Network Transformer (GRN-Transformer) in the context of pediatric intensiv…

Artifact DetectionSelf-Supervised Learning