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.