Structured Pruning for CLIP
The first application of Block Movement Pruning, a structured pruning method for Transformers, to a vision-language dual encoder.
Structured pruning (removing whole attention heads and FFN channels, so the model actually runs faster, not just smaller) was well studied for BERT-style text encoders. It had not been applied to a vision-language dual encoder like CLIP, where pruning one tower silently breaks its alignment with the other.
The approach prunes both towers jointly under a shared budget and treats the contrastive alignment as something to protect, not just the per-tower accuracy. I built a sparse training pipeline in PyTorch, decomposed Block Movement Pruning into modular steps so each could be scheduled and ablated, and introduced auxiliary losses that stabilize training and balance the two modalities while capacity is being removed.
What I did. This was my internship project, and I did it end to end over three months: designed the method, built the sparse training pipeline, and ran the ablations over pruning schedules and auxiliary losses.