           Large Language Models Can Perform Tasks Without Instruction via Selective Attention Head Masking



C.6. Experiments on MoE Model

                                                                     Table 43. XNLI translation perplexity (PPL) on Phi-3.5-MoEinst .

MoE (Mixture-of-Experts) language models divide the

                                                                                                   w/ instruction

model’s FFN (Feed-Forward Network) layer into multiple

experts, and during inference, only a subset of these experts                 To

                                                                                    en      zh        fr       es      de      ru      ar

is selected by routers to contribute to the computation. MoE         From

models often achieves better performance than dense mod-                 en          −     1.088     1.046    0.857   1.008   1.286   0.851

els with a similar number of activated parameters and is                 zh        2.747     −       2.160    2.371   2.317   1.825   1.237

gradually becoming a popular research topic. In this section,                                          w/ M

we conduct experiments to verify whether the attention head                   To

mask can still switch the model’s behavior in MoE models.                           en      zh        fr       es      de      ru      ar

                                                                     From

We select Phi-3.5-MoE-instruct (AdinaTru, 2024) (16×3.8B                 en          −     0.786     0.684    0.558   0.680   0.877   0.558

                                                                         zh        1.098     −       1.048    1.141   1.202   1.148   0.746

parameters, with 6.6B active parameters when using 2 ex-

perts) for head mask training on the English and Chinese

XNLI translation task. As shown in Table 43-44, we observe

that while head masking in the MoE model could trigger be-           Table 44. XNLI translation ROUGE-L on Phi-3.5-MoEinst .

havior switch, it does not lead to performance improvements

                                                                                                   w/ instruction

on the generative metric. This might be because the major-

ity of MoE model parameters are concentrated in the FFN                       To

                                                                                    en      zh        fr       es      de      ru      ar

                                                                     From

layers, while the attention layer accounts for only a small

portion of parameters. We propose another two possible                   en          −     0.448     0.650    0.674   0.628   0.429   0.425

                                                                         zh        0.519     −       0.465    0.484   0.449   0.378   0.344

explanations: (1) The primary functionality of MoE might

reside in the FFN, with the router playing a role similar to                                           w/ M

attention head masking for function selection. (2) The task-                  To

level mask and the token-level router may not work well                             en      zh        fr       es      de      ru      ar

                                                                     From

together. Improving the effectiveness of head masks in MoE               en          −     0.400     0.361    0.568   0.481   0.282   0.278

models is an important direction for our future research.                zh        0.558     −       0.314    0.327   0.350   0.231   0.237









                                                                26

