Search arXiv⌕ Search

arXiv subjects

Akshay Kiran Jose

Publications and source records attributed to Akshay Kiran Jose.

2 recordsLinked to original sources

LoSpAttn: Fast Training-Free Hybrid Attention for Vision and Diffusion Transformers

Softmax attention is central to modern vision and diffusion transformers, but its quadratic complexity in tokens remains a major computational bottleneck. Uniformly replacing softmax attention with linear or sparse attention in large pretrained models often degrades performance, as attention rank and sparsity vary across heads and layers, and additionally across denoising timesteps in diffusion transformers. We show that selectively exploiting these two complementary structures enables inference acceleration in large pretrained models while retaining competitive task performance, with the largest gains at long token sequences. In particular, we propose Low-Rank and Sparse Attention (LoSpAttn), a training-free hybrid framework that uses fast, one-time calibration to select low-rank or block-sparse replacements, retaining exact softmax when neither is sufficiently accurate. For reliable low-rank replacement, we develop a numerically stable Nyström approximation using symmetric kernel lifting and preconditioning, with theoretical error guarantees for normalized attention. Experiments on ViT-Large, DiT-XL/2, and PixArt-$Σ$ demonstrate inference acceleration while maintaining classification accuracy and generation quality comparable to the original pretrained models. For example, on PixArt-$Σ$ at 2K resolution ($16{,}384$ tokens), LoSpAttn achieves up to $1.4\times$ end-to-end and $11\times$ attention speedup over the FlashAttention-2. Code provided at https://github.com/J-Karthik-palaniappan/LospAttn

cs.CV↗

An Encoder-Decoder Approach for Packing Circles

The problem of packing smaller objects within a larger object has been of interest since decades. In these problems, in addition to the requirement that the smaller objects must lie completely inside the larger objects, they are expected to not overlap or have minimum overlap with each other. Due to this, the problem of packing turns out to be a non-convex problem, obtaining whose optimal solution is challenging. As such, several heuristic approaches have been used for obtaining sub-optimal solutions in general, and provably optimal solutions for some special instances. In this paper, we propose a novel encoder-decoder architecture consisting of an encoder block, a perturbation block and a decoder block, for packing identical circles within a larger circle. In our approach, the encoder takes the index of a circle to be packed as an input and outputs its center through a normalization layer, the perturbation layer adds controlled perturbations to the center, ensuring that it does not deviate beyond the radius of the smaller circle to be packed, and the decoder takes the perturbed center as input and estimates the index of the intended circle for packing. We parameterize the encoder and decoder by a neural network and optimize it to reduce an error between the decoder's estimated index and the actual index of the circle provided as input to the encoder. The proposed approach can be generalized to pack objects of higher dimensions and different shapes by carefully choosing normalization and perturbation layers. The approach gives a sub-optimal solution and is able to pack smaller objects within a larger object with competitive performance with respect to classical methods.

cs.AI↗