Layer Input Modification (LIM) Score

This metric quantifies a layer's importance by measuring the negative cosine similarity between its input and output embeddings, where greater transformation signifies higher importance for maintaining model performance.

The top 3

  1. LIM Score's Core Principle: Input Transformation Metric: The Layer Input Modification (LIM) score quantifies a layer's importance by measuring how much it transforms its input representations into output ones. It's formally calculated as the negative cosine similarity between a layer's input and output embeddings, with a lower similarity indicating higher importance.
  2. LIM vs. Z-score Distribution: Performance-Complexity Trade-off: While LIM score generally outperforms the simpler Z-score Distribution (ZD) in preserving LLM performance during quantization, ZD has the advantage of not requiring calibration data. LIM's reliance on runtime information aligns better with inference behavior, but ZD offers less performance variance across different LLMs.
  3. Quantization Gains: LIM Score's Impact on Model Efficiency: Using LIM score for layer ordering significantly enhances variable layer-wise quantization, allowing LLMs to retain performance much more strongly and achieve greater compression. Models can maintain near-original performance even when 25-50% of layers are quantized to lower bits, a substantial improvement over methods without specific layer ordering.

Sources

Open the full topic