Evolutionary Pruning: DarwinLM & GenePrune Optimize LLMs

Methods like DarwinLM use evolutionary search to find optimal structured pruning configurations, achieving state-of-the-art compression for models like Llama-2-7B with up to 5 times less post-compression training data. [4, 5, 8]

The top 3

  1. DarwinLM vs. GenePrune: Pruning Strategies Compared: DarwinLM unifies second-order pruning with an evolutionary search for training-aware structured pruning of general LLMs, generating offspring models through mutation and selecting the fittest. In contrast, GenePrune uses genetic algorithms to dynamically optimize pruning masks for Code LLMs, iteratively refining configurations via crossover and mutation without requiring costly retraining during the search phase.
  2. DarwinLM's Record for Data-Efficient LLM Pruning: DarwinLM has achieved state-of-the-art results in structured pruning, notably outperforming ShearedLlama by requiring five times less training data during post-compression fine-tuning for models like Llama-2-7B. It can reduce Llama-2-7B to 2.7B parameters and Llama-3.1-8B to 4.6B parameters with significantly lower performance degradation.
  3. Core Evolutionary Operations in LLM Pruning: Evolutionary pruning, inspired by natural selection, applies genetic algorithms to optimize LLM sparsity. Key operations include mutation, which introduces variations to pruning configurations (e.g., masks), and crossover, which combines successful pruning patterns from different 'parent' models. These are guided by a fitness function that quantifies the trade-off between model sparsity and retained performance.

Sources

Open the full topic