Response to Reviewer RPCQ (Part 1)
**Q1. More insightful explanations about why the proposed method does not compromise the in-context learning ability of LLMs could make the paper stronger.**
**A1.** Thank you for the opportunity to elaborate on why our proposed method, MEND, does not compromise the in-context learning ability of LLMs. The key to this lies in our novel two-stage training procedure.
- Firstly, our pretraining stage is designed to align the condensed distillation vectors with the word embeddings of the LLM. As evidenced in Table 4, variations without this specialized pretraining show inferior performance compared to vanilla ICL, highlighting the pretraining's role in ensuring the effectiveness of the distilled vectors.
- Secondly, the fine-tuning stage leverages objective functions that are crucial for capturing the essence of in-context learning. Removing any of these objectives results in a noticeable performance drop, underscoring their importance. This stage essentially harnesses meta-knowledge from both the data and the teacher model, ensuring that MEND can adeptly adapt to new tasks during testing.
- Furthermore, our approach is supported by findings in relevant literature [1-3], which demonstrate the effectiveness of similar methodologies in enhancing LLMs' learning capabilities. This dual-stage training process is integral to MEND’s ability to maintain, and often enhance, the in-context learning performance of large language models without significant computational overhead."
[1] Min, Sewon, Mike Lewis, Luke Zettlemoyer, and Hannaneh Hajishirzi. "Metaicl: Learning to learn in context." arXiv preprint arXiv:2110.15943 (2021).
[2]Ye, Qinyuan, Iz Beltagy, Matthew E. Peters, Xiang Ren, and Hannaneh Hajishirzi. "FiD-ICL: A Fusion-in-Decoder Approach for Efficient In-Context Learning." In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 8158-8185. 2023.
[3] Phang, Jason, Yi Mao, Pengcheng He, and Weizhu Chen. "Hypertuning: Toward adapting large language models without back-propagation." In International Conference on Machine Learning, pp. 27854-27875. PMLR, 2023.
**Q2. More contrast color for Figure 5.**
**A2.** Thank you for your valuable suggestion regarding the visualization in Figure 5.
We originally chose a grayscale color scheme to represent the attention map due to the wide range of values, from $10^{-1} to 10^{-8}$ and the focused distribution of attention weights on specific tokens. This resulted in many tokens having very small attention weights, which are represented in lighter colors close to white.
To enhance the readability of the figure without compromising its informational content, we are considering not only the addition of x-ticks to better differentiate between tokens from demonstrations. This adjustment will make it easier to discern the differences in attention weights across tokens.
Furthermore, it is crucial to note the significance of Figure 5 in our paper.
It illustrates that even though the demonstrations are condensed, our model, MEND, can still effectively extract and utilize the necessary information from the distilled vectors for accurate label prediction. This highlights the efficacy of MEND in maintaining key information despite significant data compression, a central aspect of our work.
**Q3.1. Influence of lambda in controlling the importance of distillation loss in meta-training?**
**A3.1.** hank you for the question about the lambda parameter and our training mechanism. The lambda parameter, crucial for balancing distillation loss, is analyzed in Figure 7 of Appendix B. We found that MEND performs optimally when lambda is equal to or greater than 1. This balance is key to our finetuning process.
**Q3.2. The connection between our two-stage training mechanism and each loss term and “task-specific retraining or compromise in-context learning.**
**A3.2.** Thank you for your query. MEND's two-stage training process is designed to learn a meta-knowledge for
demonstration distillation that's effective across various tasks without needing retraining for each new task, unlike prompt tuning methods.
This process helps maintain performance on par with vanilla ICL.
The first stage aligns the distilled vectors with the LLM's word embeddings, while the second stage fine-tunes this alignment, ensuring adaptability to new tasks.
This approach differs significantly from methods like HyperTuning, which lack this alignment, resulting in compromised in-context learning performance.
Our ablation study in Section 5.4 highlights these distinctions and demonstrates MEND's efficacy in preserving in-context learning ability without task-specific retraining.
**(Unfinished)**