On Giant's Shoulders: Effortless Weak to Strong by Dynamic Logits Fusion

Efficient fine-tuning of large language models for task-specific applications is imperative, yet the vast number of parameters in these models makes their training increasingly challenging. Despite numerous proposals for effective methods, a substantial memory overhead remains for gradient computations during updates. \thm{Can we fine-tune a series of task-specific small models and transfer their knowledge directly to a much larger model without additional training?} In this paper, we explore weak-to-strong specialization using logit arithmetic, facilitating a direct answer to this question. Existing weak-to-strong methods often employ a static knowledge transfer ratio and a single small model for transferring complex knowledge, which leads to suboptimal performance. % To address this, To surmount these limitations, we propose a dynamic logit fusion approach that works with a series of task-specific small models, each specialized in a different task. This method adaptively allocates weights among these models at each decoding step, learning the weights through Kullback-Leibler divergence constrained optimization problems. We conduct extensive experiments across various benchmarks in both single-task and multi-task settings, achieving leading results. By transferring expertise from the 7B model to the 13B model, our method closes the performance gap by 96.4\% in single-task scenarios and by 86.3\% in multi-task scenarios compared to full fine-tuning of the 13B model. Notably, we achieve surpassing performance on unseen tasks. Moreover, we further demonstrate that our method can effortlessly integrate in-context learning for single tasks and task arithmetic for multi-task scenarios.

Paper

Similar papers

Peer review

Reviewer Ttwe4/10 · confidence 3/52024-07-12

Summary

The article discusses existing weak-to-strong methods, noting that current approaches typically use a static knowledge transfer ratio and a single small model to convey complex knowledge, which results in suboptimal performance. Consequently, the article proposes a dynamic logit fusion method that employs a series of task-specific small models and adaptively allocates weights among these models at each decoding step. The weights are learned by optimizing a problem constrained by Kullback-Leibler divergence. The article conducts experiments on various benchmarks, including both multi-task and single-task scenarios.

Strengths

1. The article reevaluates existing logit arithmetic methods, highlighting the significant impact of fusion weights and the limitations of a single small model on test performance. 2. By using constrained optimization, the article autonomously learns fusion weights, thereby approximating the computationally intensive results of fine-tuning large foundational models. 3. Experiments were conducted to validate the proposed method, demonstrating notable improvements in performance, generalization capability, and robustness.

Weaknesses

1. In Section 3.2, the proposed method is based on an assumption that lacks clear supporting evidence. Does this somewhat undermine the theoretical foundation of the algorithm? 2. In the multi-task experiments, the results for CNN/DM do not demonstrate the method's superiority. Additionally, in the experiments on unseen tasks, the method does not show significant improvement. 3. In the experiments, all evaluations were conducted in a 0-shot setting. How would the evaluation results change if a 5-shot experiment were conducted?

Questions

1. In the multi-task setting, which 7B model is used as the expert to implement your algorithm on the 13B model? I am very confused. If you are using different sets of experts to operate on the 13B model, isn't this weak-to-strong? Because the parameters of multiple 7B models exceed 13B. 2. There seems to be a typo in formula (9) in Appendix B, it seems to be $\propto$ rather than $=$.

Rating

4

Confidence

3

Soundness

3

Presentation

2

Contribution

2

Limitations

The authors have adequately addressed the limitations.

Authorsrebuttal2024-08-12

Dear Reviewer Ttwe: We wish to thank you again for your constructive feedback which has helped us to improve the clarity and contribution of our work. As the discussion period draws to a close, we hope our response has effectively addressed all your concerns. Your insights are invaluable to us, and we remain open to further discussion if you have any questions regarding our response.

Reviewer Ttwe2024-08-12

Thank you for answering my question, but I'm afraid I disagree with your response to the first question. As I understand it, if you use four 7B experts to fine-tune a 13B model, this doesn't qualify as **weak to strong**. In fact, you're using a 28B MoE model to fine-tune the 13B model. If you could clarify this point better, I would consider raising the score.

Authorsrebuttal2024-08-12

We thank the reviewer for the feedback. We will address the concerns below. 1、It should be noted that our method does not require fine-tuning the 13B model. Instead, our approach involves fine-tuning multiple 7B models and then transferring the knowledge to the 13B model without the need for gradients. 2、Although we have multiple 7B models, their capability is still far from reaching the level of a 28B model. Therefore, we cannot view the entire process as a migration from 28B to 13B. As shown in the table below, the 7B-Expert Best (the best result from each dataset within the 7B-expert models) still struggles to outperform the 13B Multi-Task Tuning results, especially on unseen tasks. Other gradient-free methods (e.g., average[1], task arithmetic[2]) that do not involve training also find it difficult to combine four 7B models into a strong model equivalent to 28B, and they even fall short of surpassing the 13B model. Therefore, without training, the capability of four 7B models is weaker than that of the 13B model. | | seen task | unseen task | | --------------------- | --------- | ----------- | | 13B Multi-Task Tuning | **40.78** | **50.58** | | 7B-Expert Best | 40.02 | 46.61 | 3、In a multi-task setting, the logit arithmetic in formula (6) can be expressed as $13B+\sum_i^m \alpha_i diff^{7B}_i=\sum_i^m (\frac{1}{m}13B+\alpha_i diff^{7B}_i)$ ,where $diff^{7B}_i$ represents the shift of the i-th expert on the 7B-base in logits. Compared to the 28B MoE, our method actually performs as a combination of multiple weak-to-strong approaches (marked by parentheses in the above formula). Our method adjusts $\alpha$ to control their combination ratio, thereby facilitating the transfer of multiple small experts, as described in the Supplementary Proof for the Fusion of Multiple SLMs Scenario in the Global Rebuttal. - [1] Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time. (ICML2022) - [2] Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Models (NIPS2023)

Reviewer Ttwe2024-08-13

Thanks for your response, I have raised the point.

Authorsrebuttal2024-08-13

Dear Reviewer Ttwe: We thank the reviewer for their feedback and for raising the score! If you still have any unresolved concerns about our paper, we are open to further discussion. If you feel that the previously mentioned weaknesses (or questions) have been addressed and have no remaining concerns, would it be possible for you to reconsider our paper?

Reviewer frHX7/10 · confidence 4/52024-07-13

Summary

They tackle the problem of merging the logits from multiple models. To do so, they propose an objective that minimizes the squared loss of the KL between the two pairs of (student, teacher) models. This is solved via a random search.

Strengths

- Paper well written and easy to follow - Nice ablations on alpha and efficiency - Works well in single task scenarios

Weaknesses

- Using the squared error between two KL’s is not theoretically motivated (at least that I am aware of) - More description of the optimization method in main text since it is a big part of the method - Missing baseline in multi-task tuning setup

Questions

- Where is the baseline proxy tuning for multi-task tuning in Table 2? - From algorithm 1 in Appendix C, the optimization is done just via random search? Guessing values and storing the best? I couldn’t find the method to optimize the objective mentioned in the main paper. It should be more clearly stated in the main paper, and how it handles multitask setup. - For the efficiency analysis, the BV can be done in 1 forward pass all in parallel, but the n parameter searches require 20 forward passes. It really is n times more compute, which is not minimal. For example, decoding 100 tokens vs decoding 1 token would be a constant in the Big O, but they are different efficiency wise. - In eq (2), is the second term (multiplied by alpha) not normalized but in logit space? - In fig 4, are there some special about the tokens being generated at the timesteps where $alpha$ is high?

Rating

7

Confidence

4

Soundness

3

Presentation

4

Contribution

3

Limitations

NA

Reviewer YRcj6/10 · confidence 4/52024-07-13

Summary

The paper studies the problem of adapting large general language models via smaller expert language models fine-tuned on specific tasks. Prior work proposed the idea of mixing logits between a large model and the differencei in logits pre- and post- finetuning of a small model. The authors take this idea a step further and compute the mixing weights adaptively per-token, leading to better results.

Strengths

1. The method is very simple: the authors match tune the weights to match the KL divergence between the small model before and after fine-tuning, for each token. 2. The experiments are comprehensive with 5 tasks and 2 small models (1.1B and 7B). The authors also consider both single-task and multi-task scenarios. 3. The results are good across all tasks, the proposed method outperforms proxy-tuning as well as full fine-tuning on the smaller model predictions, and recovers a large fraction of the ceiling performance achieved by directly finetuning the large model on ground truth. 4. There are several ablations and understanding experiments in Section 5.

Weaknesses

1. It is not intuitively obvious to me why matching the KL divergence is the right objective. Could the authors please provide some intuition? I imagine it is something like this: when the small model updates significantly for some token, we want the large model to also udpate significantly. That seems reasonable, but probably doesn't always work well: if the small model is unaware of some fact or makes an arithmetic mistake, it may need to update significantly on the corresponding tokens, while a large model does not need to update. 2. The presentation is not always very clear. For example, in Eq. (5) it is not clear to me what the authors mean by the joint distribution of $Q_1, Q_2, \ldots, Q_T$. How can we compute KL between this joint and $Q$? 3. As the authors mention, the proposed method is 2.5 times slower at inference time compared to standard sampling from the same model.

Questions

1.1 and 1.2: See weaknesses 1 and 2. 2. What exactly do you mean by supervised instruction tuning: what are the smaller models fine-tuned on? Are these chain-of-thoughts for solving the task, e.g. GSM8k? Where do they come from? 3. In Figure 3, qualitatively, what do the tokens (decoding steps) where we set the weight to the lower bound correspond to, and same for the upper bound? Are they qualitatively different? 4. In Figure 3, why is the lower bound 0.8 and the upper bound 1.5? Are these tunable parameters? 0.8 seems quite high, shouldn't we want to set the lower bound to 0?

Rating

6

Confidence

4

Soundness

3

Presentation

2

Contribution

3

Limitations

Limitations are adequately discussed.

Authorsrebuttal2024-08-12

Dear Reviewer YRcj: We wish to thank you again for your constructive feedback which has helped us to improve the clarity and contribution of our work. As the discussion period draws to a close, we hope our response has effectively addressed all your concerns. Your insights are invaluable to us, and we remain open to further discussion if you have any questions regarding our response.

Reviewer XMhg5/10 · confidence 4/52024-07-13

Summary

This paper focuses on the weak-to-strong generalization paradigm where the goal is to transfer knowledge from a small language model to larger one. The method they study is the one proposed by Mitchell et al. [1]: they use log probability algebra to combine the logits of the large model, the ones of a small model and the ones of a small model that has been finetuned. This combination involves a parameter $\alpha$ that controls the contribution of the small model. The main contributions of this paper is to point to the limitations of using a static $\alpha$ and to propose a method to adaptively learn such $alpha$. Their method consists in optimizing an objective based on the KL divergence and they show that their approach is consistently better than using a static alpha across a wide range of downstream tasks. [1] Mitchell, Eric, et al. "An emulator for fine-tuning large language models using small language models." arXiv preprint arXiv:2310.12962 (2023).

Strengths

I find the paper is well written and the methodology well presented. The authors did a great job at presenting the problem, the limitations of the current methods to solve the problem and their method. They also did a good job at presenting their experiments.

Weaknesses

Overall, my main concern is that I find the contribution limited and I have some doubts about the method. Here is a detailed list of my concerns: - **Computational feasability**: I think that the authors should be more transparent in the computational cost of their procedure. Solving the optimizaiton problem at every decoding step may be very expensive and it is not clear to me that when one needs to do many generations, a finetuned model with LoRA on the large model is cheaper than the procedure proposed by the authors. Also, is it important to update alpha at each decoding step? Can't one get a more efficient procedure by updating it only every 100 tokens or so? - **Not enough clear to me that the method does much better than the static $\alpha$**: when I see the barplot of figure 2, it seems like $\alpha=1$ is a bit below than the learnt $\alpha$ but the gap is not huge. - **Theoretical justification for the optimization problem?**: So if I understand correctly, the authors objective function is to say "I want the distance between the predictions of $\tilde{P}$ and the large model is the same as the distance between the predictions of the finetuned small model and the small model". This looks like a reasonable belief. However, it would have been nice to have a theoretical justification. For instance, when you do RL finetuning, if you solve the problem exactly, the distribution you end up generating from ends up being p_bayes(generation) * exp(reward model you are training on) (usually done with ppo, dpo). When you take the logs, you get log(p) = log(p_bayes) + reward model. Then you can estimate the reward model by taking the difference of logits for any model scale and in this case the intuition of the authors make sense to me and it is principled. However, in the standard finetuning case, when the authors apply this intuition at the level of tokens, it is not clear to me why it should work. - **Scaling experiments for studying the approach**: I know that the Llama suite starts at 7B but it would have been nice to study the behavior of the method with smaller models than 7b. Understanding how robust the method is by varying the gap between the weak and strong models is important. There are maybe chances that the learnt $\alpha$ approach shows bigger gaps with respect to the static $\alpha$ when the gap between the weak and strong models is large.

Questions

I would appreciate that the authors address the concerns I have regarding the theoretical justification of their optimization problem, the computational cost of their approach.

Rating

5

Confidence

4

Soundness

2

Presentation

3

Contribution

2

Limitations

I think that the authors didn't clearly state the limitiations of their approach, which is regretful.

Authorsrebuttal2024-08-12

Dear Reviewer XMhg: We wish to thank you again for your constructive feedback which has helped us to improve the clarity and contribution of our work. As the discussion period draws to a close, we hope our response has effectively addressed all your concerns. Your insights are invaluable to us, and we remain open to further discussion if you have any questions regarding our response.

Reviewer XMhg2024-08-13

Post-rebuttal response

I thank the reviewers for their rebuttal and I appreciated their theoretical derivation. I believe that this important piece to be added to the paper. I hope they will do it. i increase my score by one point.

Authorsrebuttal2024-08-13

We thank the reviewer for raising the score, and we will add this piece in our future versions.

Reviewer frHX2024-08-12

Thanks for the response. I keep my score as is.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC