TL;DR
This paper introduces a novel framework to quantify how much a smaller Large Language Model (LLM) has "learned" from a larger teacher model through distillation. They found that most LLMs show significant signs of distillation, leading to homogenization, with exceptions like Claude and Gemini. This work calls for more independent LLM development and transparency to ensure model robustness and safety.
What Problem Does This Paper Address?
The widespread use of model distillation, a technique to transfer knowledge from powerful LLMs to smaller ones, raises concerns about model homogenization. This means that many LLMs might become too similar, losing diversity and potentially inheriting undesirable traits or biases from their teachers. Quantifying the extent of this distillation is crucial for understanding and mitigating these risks, but current methods are lacking. This paper aims to fill that gap by providing a systematic way to measure how much distillation has occurred and its impact on LLM identity and response patterns.
Methods
The authors propose a two-pronged approach to quantify LLM distillation:
- Identity Consistency Evaluation (ICE): This method uses an adapted jailbreaking framework (GPT-Fuzz) to craft adversarial prompts that probe LLMs for self-identity information. By comparing the LLM's responses to known facts about its origin, the researchers can detect "identity leakage" – instances where a student model inadvertently reveals characteristics of its teacher. They use three scoring metrics: Loose Score, Strict Score, and Hard Score, to capture different levels of identity inconsistency.
- Response Similarity Evaluation (RSE): This technique measures the similarity between the responses of a student LLM and a reference LLM (GPT-4) across various prompts. The similarity is assessed across three dimensions: response style, logical structure, and content details. An LLM-as-a-judge approach is used to score these similarities, providing a fine-grained analysis of how closely the student model mimics the teacher.
Datasets
The paper utilizes several existing datasets for evaluation:
- ArenaHard, Numina, and ShareGPT: These datasets are used for the Response Similarity Evaluation (RSE) and cover general reasoning, mathematical problem-solving, and instruction-following tasks.
- No new datasets were introduced in this paper.
Key Insights and Ideas
- Distillation leads to homogenization: The core idea is that distillation, while beneficial for efficiency, can make LLMs too similar, reducing their unique characteristics.
- Identity leakage is a key indicator: When LLMs inadvertently reveal information about their teacher's identity, it's a strong sign of distillation.
- Base models are more distilled than aligned models: This suggests that instruction tuning and safety alignment can help reduce the degree of distillation and increase model uniqueness.
- Transparency is crucial: The authors advocate for more independent LLM development and transparent technical reports to ensure model robustness and safety.
Key Results
- Widespread Distillation: Most well-known closed-source and open-source LLMs exhibit high distillation degrees, as measured by ICE and RSE.
- Exceptions Exist: Claude, Doubao, and Gemini were found to have significantly lower distillation degrees compared to other models.
- Base vs. Aligned Models: Base LLMs consistently showed higher distillation degrees than their aligned counterparts. For example, Qwen2.5-7B-Base showed higher distillation than Qwen2.5-7B-Instruct.
- Specific Model Findings:
- Qwen-Max-0919 showed a significant presence of Claude-related responses (32% of Strict Score samples), suggesting it absorbed Claude's safety alignment mechanisms.
- GPT-series models (e.g., GPT40-0513) showed the highest response similarity to the reference GPT40-0806.
- Models like Llama3.1-70B-Instruct and Doubao-Pro-32k exhibited lower response similarity, indicating less distillation.
- Identity Prompt Categories: LLMs were found to be more susceptible to identity-related attacks in "Team," "Industry," and "Technology" categories, likely due to more distilled data in these areas.
Limitations and Future Work
- Jailbreak Template Inductiveness: The current identity jailbreak strategy relies on GPT-Fuzz, which may use templates with strong inductive guidance or role-playing elements. This could lead to artificial inconsistencies rather than genuine identity leakage.
- Future Work: The authors suggest developing a dedicated identity jailbreak method that better isolates identity-related vulnerabilities without inducing artificial inconsistencies. They also call for more independent LLM development and transparent documentation of training processes.
Summary updated