Saeed Khaki, Nima Safaei, Kamal Ginotra
10 min
Abstract
Transformer-based vision-language models (VLMs) contain substantial depth redundancy, yet the effect of removing specific decoder layers remains poorly understood, especially for domains that require tight coupling between perception and multi-step reasoning. We study structured decoder layer pruning through the lens of domain-aware activation similarity, measuring how strongly each layer transforms representations for math versus non-math inputs. This yields simple math-aware, non-math-aware, and mixed ranking criteria that identify layers whose input-output activations change least within a target domain. Across two state-of-the-art VLMs and a broad suite of math and general multimodal benchmarks, we uncover a consistent three-regime structure: at low pruning budgets, performance is highly sensitive to which layers are removed; at moderate budgets, methods converge as structural damage accumulates; and at high budgets, structural continuity dominates, favoring spacing-aware strategies. Our domain-aware rankings achieve the strongest stability in the ranking-sensitive regime, while matching or exceeding structure-aware baselines at larger budgets. These results provide a clearer picture of how depth contributes to domain-specific behavior in VLMs and offer a practical, interpretable approach to reducing model depth without sacrificing essential mathematical or general vision-language capabilities.
Sam: Yes. They average those similarity scores across thousands of examples per domain, then normalize them so layers across the model's depth compare fairly, like leveling a playing field. This gives three ranking flavors: one tuned to math redundancy, one to non-math, and a mixed version blending them with more weight on non-math. For pruning, they pick the top most-redundant middle layers up to a set budget, always sparing the first and last decoder layers plus the visual encoder.
Alex: That mixed ranking sounds key for real-world use, like homework apps. But after cutting layers, doesn't the model get unstable?
Sam: It can, so they follow with a short supervised fine-tuning pass—feeding it supervised examples to readjust weights without touching the visual encoder, preserving image-text links. This stabilizes things lightly and efficiently. The paper notes this domain-aware approach yields about two to three times better math retention at tight budgets compared to random or basic cuts, especially revealing those three pruning phases.
Alex: Right—that ties back to why random pruning tanks math over diagrams. It's a clear step for squeezing these models onto edge devices without losing reasoning. So with this domain-aware ranking in place, how did they test if it actually holds up across different math and image tasks?
Sam: They used a mix of datasets to check both math skills and general image-text handling. One key set, called Snapask, has thousands of real homework photos—like algebra diagrams—with step-by-step solutions. Another, LLaVA-OneVision, covers broader tasks like describing charts or scenes. For tougher math, NuminaMath-CoT brings competition-level problems rendered as images. They also checked ChartQA for chart reasoning, ScienceQA for science diagrams, RealWorldQA for spatial questions on real photos, and VStar for spotting tiny details in busy scenes.
Alex: Okay, so homework photos to Olympiad math, plus everyday vision stuff—that covers the ground. But to show their ranking beats random cuts, they compared against other pruning ideas?
Sam: Yes, three baselines: random removal, which just picks layers blindly; structure-aware, keeping patterns like early or late layers; and CKA-based, measuring how similar a layer acts to the next one by comparing their overall patterns. CKA stands for Centered Kernel Alignment—it's a way to score if two sets of data representations align closely, like checking if two sketches capture the same picture despite rotations. Their domain-aware method outperformed these, especially at low budgets around 10 percent cuts, where picking the right redundant layers preserved math scores about two to three times better.
Alex: Huh—so at small cuts, the ranking really shines because it targets the least useful ones precisely. And those three regimes you mentioned earlier—how do they play out here?
Sam: The paper observes three phases as you cut more layers. At low budgets, like 10 percent, performance hinges on the ranking—wrong picks tank math fast, so domain-aware wins big. Medium budgets see a transition where structure starts mattering more alongside ranking. At high budgets, over 30 percent, the model's built-in structure dominates, and all methods converge since few layers remain. This pattern holds across those benchmarks.
Alex: That explains the edge for homework apps—tight budgets need smart picks to keep diagram math intact. On those math-heavy benchmarks like Snapask and NuminaMath, how did the domain-aware pruning stack up in practice—especially showing those regimes?
Sam: On Snapask, with its real homework photos full of diagrams and tables, the approach kept math accuracy steady at low budgets around 10 percent cuts, while random picks dropped performance noticeably. NuminaMath, testing tougher competition problems, showed a similar pattern—domain-aware held up about two times better relative to baselines. This highlights the first regime: at tight budgets, ranking pinpointed truly redundant layers, avoiding damage to diagram parsing and step-by-step solving. As cuts grew, structural baselines caught up in the transition phase by spacing removals to prevent gaps. Across both math sets, low-budget results favored domain-aware because it scored layers on actual math inputs. Medium budgets blended ranking with structure to limit instability from adjacent removals. High budgets left so few layers that any careful method worked similarly.
Alex: Right—Snapask feels practical for apps, mimicking messy student uploads. And the trade-off plot—how does that look for balancing math and general tasks?
Sam: Figure three plots math accuracy against general vision-language scores for each method and budget. Domain-aware points hug the best trade-off line—strong on both or tilted favorably toward math or general skills. Random and CKA sit worse off, while structure-based holds general ability but drops math steeper at higher cuts. The mixed ranking lands right on that balanced frontier. On general benchmarks like ChartQA for charts, RealWorldQA for spatial sense in photos, ScienceQA diagrams, and VStar for fine details, the same regime shift appears: ranking rules low budgets, structure later.
Alex: Huh—that logic ties the method's strength to real constraints, like fitting on phones without losing homework math. Those general vision-language benchmarks like RealWorldQA and ScienceQA—how do the regimes show up there, confirming the patterns across non-math tasks?
Sam: On RealWorldQA, which tests spatial understanding from real photos, mixed and non-math rankings stayed close to the original model at 10 percent cuts, while others dropped more. ScienceQA, blending diagrams with multi-step reasoning, saw math-aware pruning match or slightly top the baseline at low budgets, preserving those reasoning links best. These align with the regimes—ranking shines early, structure later. Layer removal maps show why: math-aware targets later layers at small budgets, sparing early spatial grounding; non-math and mixed hit mid-layers as cuts grow. The paper points out aggressive pruning beyond 25 percent shifts fully to structure-dominated, where all methods fail sharply regardless of ranking, as the remaining layers can't compensate.
Alex: Makes sense for apps handling mixed student uploads. Fair—shows clear limits to how slim you can go before rethinking the whole stack. Still, for practical use like phones...
Sam: Exactly. This enables 40 percent slimmer models on edge devices, tackling real homework photos with contest-level math accuracy in tutoring apps—global scale without cloud dependency. A notable step in balancing size, speed, and capability.
Alex: So overall, domain-aware pruning uncovers reliable ways to trim redundancy while respecting task needs and model limits. Grounds deployment for multimodal reasoning on everyday hardware.
Sam: Precisely. The regimes, patterns, and trade-offs offer a solid framework for future work in efficient vision-language systems. Thanks for listening to ResearchPod.