TraceNAS: Zero-shot LLM Pruning via Gradient Trace Correlation
Prajna G. Malettira, Manish Nagaraj, Arjun Roy, Shubham Negi, Kaushik Roy
TL;DR
TraceNAS introduces a training-free neural architecture search framework for non-uniform depth and width pruning of large language models. It relies on a scale-invariant gradient trace proxy, Φ, to measure functional inheritance by aligning pruned sub-networks with the pretrained base on a low-rank gradient manifold. An in-place masking strategy and an evolutionary search navigate the discrete depth and continuous width space, yielding high-performing pruned architectures with dramatically reduced search cost. Across Llama and Qwen families, TraceNAS matches or exceeds training-aware baselines while reducing GPU hours by roughly an order of magnitude, and demonstrates robust generalization to different architectures and reasoning benchmarks. The work advances practical compression of LLMs by enabling efficient, high-fidelity architecture discovery that preserves pretrained knowledge and post-pruning recovery potential.
Abstract
Structured pruning is essential for efficient deployment of Large Language Models (LLMs). The varying sensitivity of LLM sub-blocks to pruning necessitates the identification of optimal non-uniformly pruned models. Existing methods evaluate the importance of layers, attention heads, or weight channels in isolation. Such localized focus ignores the complex global structural dependencies that exist across the model. Training-aware structured pruning addresses global dependencies, but its computational cost can be just as expensive as post-pruning training. To alleviate the computational burden of training-aware pruning and capture global structural dependencies, we propose TraceNAS, a training-free Neural Architecture Search (NAS) framework that jointly explores structured pruning of LLM depth and width. TraceNAS identifies pruned models that maintain a high degree of loss landscape alignment with the pretrained model using a scale-invariant zero-shot proxy, effectively selecting models that exhibit maximal performance potential during post-pruning training. TraceNAS is highly efficient, enabling high-fidelity discovery of pruned models on a single GPU in 8.5 hours, yielding a 10$\times$ reduction in GPU-hours compared to training-aware methods. Evaluations on the Llama and Qwen families demonstrate that TraceNAS is competitive with training-aware baselines across commonsense and reasoning benchmarks.
