Control theory meets transformers to create more stable and robust models
https://arxiv.org/abs/2402.15989
π Original Problem:
Transformer architectures face two critical issues: vulnerability to input corruptions (like noise/blur) and rank collapse in deep layers where token embeddings become increasingly similar, limiting representation capacity.
-----
π οΈ Solution in this Paper:
PIDformer introduces a Proportional-Integral-Derivative (PID) control system into transformers. It treats self-attention as a state-space model and adds closed-loop feedback control to preserve high-frequency details while improving stability. The PID controller helps maintain detailed information that would otherwise be lost during processing, making the model more resilient to perturbations.
-----
π‘ Key Insights:
β Self-attention operates as an autonomous state-space model that minimizes nonlocal total variation
β This smoothness property leads to rank collapse and diminished representation capacity
β PID control framework can effectively counteract information loss while maintaining stability
β The controlled state-space model proves theoretically robust against input perturbations
-----
π Results:
β Enhanced robustness against adversarial attacks on ImageNet classification
β Superior performance on ADE20K image segmentation tasks
β Improved language modeling results on WikiText-103 benchmark










