text
string
source
string
often requiring external proxy data. Table 8 presents the results for Backdoor Attack namely two prevalent variants: Bac and Sem Bac. Additionally, we assess the robustness of two prominent Backdoor Defense techniques, namely RLR [136] and CRFL [22], having effective defense capabilities against backdoor threats. Evalu...
https://arxiv.org/abs/2505.16850v1
remains underexplored due to the lack of dedicated benchmarks, reliable metrics, and structured eval- uation settings. Most existing methods focus on performance, with limited support for interpretability, traceability, or privacy-aware inference. We address this gap conceptually in Section 4 and encourage future empir...
https://arxiv.org/abs/2505.16850v1
predictive uncertainty estimation using deep ensembles. In NeurIPS , volume 30, 2017. [8]P. Blanchard, E. M. El Mhamdi, R. Guerraoui, and J. Stainer. Machine learning with adversaries: Byzantine tolerant gradient descent. In NeurIPS , 2017. [9]B.VanRooyen, A.Menon, and R.C. Williamson. Learning with symmetric label noi...
https://arxiv.org/abs/2505.16850v1
Imagenet: A large-scale hierarchical image database. In CVPR , pages 248–255. IEEE, 2009. [29] C. Dengsheng, J. Hu, V . J. K. Tan, and E. Wu. Elastic aggregation for federated optimization. In CVPR , 2023. [30] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional tr...
https://arxiv.org/abs/2505.16850v1
domain adaptation via pseudo-label refinement. InICME , pages 1829–1834. IEEE, 2023. [47] Xuan Gong, Abhishek Sharma, Srikrishna Karanam, Ziyan Wu, Terrence Chen, David Doermann, and Arun Innanje. Preserving privacy in federated learning with ensemble cross-domain knowledge distillation. Proceedings of the AAAI Confere...
https://arxiv.org/abs/2505.16850v1
pages 371–390, 2021. [67] M. Jiang, H. R. Roth, W. Li, D. Yang, C. Zhao, V . Nath, D. Xu, Q. Dou, and Z. Xu. Fair federated medical image segmentation via client contribution estimation. In CVPR , 2023. [68] J.Kang, Z.Xiong, D.Niyato, H.Yu, Y .Liang, and D.I. Kim. Incentive design for efficient federated learning in mo...
https://arxiv.org/abs/2505.16850v1
Rubinstein, and J.D. Tygar. Adversarial machine learning. In ACM workshop on Security and artificial intelligence , pages 43–58, 2011. [89] D. Li and J. Wang. Fedmd: Heterogeneous federated learning via model distillation. In NeurIPS Workshop , 2019. [90] Qinbin Li, Bingsheng He, and Dawn Song. Model-contrastive federa...
https://arxiv.org/abs/2505.16850v1
Saenko, M. Hardt, and S. Levine, editors, Advances in Neural Information Processing Systems , volume 36, pages 15660–15679. Curran Associates, Inc., 2023. [107] L.Jiang and T.Lin. Test-time robust personalization for federated learning. In ICLR , 2023. [108] L.Lyu, H.Yu, and Q.Yang. Threats to federated learning: A sur...
https://arxiv.org/abs/2505.16850v1
games. JOTA , 11:533–555, 1973. [129] M.Ye, X.Fang, B.Du, P.C. Yuen, and D.Tao. Heterogeneous federated learning: State-of-the-art and research challenges. CSUR , 2023. [130] Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y . Ng. Reading digits in natural images with unsupervised feature le...
https://arxiv.org/abs/2505.16850v1
, 2019. [149] A. Radford, J.W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, and J. Clark et al. Learning transferable visual models from natural language supervision. In ICML , pages 8748–8763, 2021. [150] T.H. Rafi, F.A. Noor, T.Hussain, and D.-K. Chae. Fairness and privacy-preserv...
https://arxiv.org/abs/2505.16850v1
Q. Yang, and Z. Yang. Lazily aggregated quantized gradient innovation for communication-efficient federated learning. IEEE PAMI , 44(4):2031–2044, 2020. [167] Z. Sun, P. Kairouz, A. T. Suresh, and H. B. McMahan. Can you really backdoor federated learning? In NeurIPS , 2019. [168] Y . Tan, G. Long, L. Liu, T. Zhou, Q. L...
https://arxiv.org/abs/2505.16850v1
Challenges, methodologies and experiments. arXiv preprint arXiv:2202.04309, 2022. [187] Herbert Woisetschläger, Alexander Erben, Shiqiang Wang, Ruben Mayer, and Hans-Arno Jacobsen. Federated fine-tuning of llms on the very edge: The good, the bad, the ugly. In Proceedings of the Eighth Workshop on Data Management for E...
https://arxiv.org/abs/2505.16850v1
driven rewards to guarantee fairness in collaborative machine learning. In NeurIPS , volume 34, pages 16,104–16,117, 2021. [208] X.Zhang, F.Li, Z.Zhang, Q.Li, C.Wang, and J.Wu. Enabling execution assurance of federated learning at untrusted participants. In INFOCOM , pages 1877–1886. IEEE, 2020. [209] H. Yang, J. Yuan,...
https://arxiv.org/abs/2505.16850v1
arXiv:1806.00582 , 2018. [227] E.L. Zec, J.Martinsson, O.Mogren, L.R. Sütfeld, and D.Gillblad. Specialized federated learning using mixture of experts. arXiv preprint arXiv:2010.02056 , 2020. [228] L.-L. Zeng, Z.Fan, J.Su, M.Gan, L.Peng, H.Shen, and D.Hu. Gradient matching federated domain adaptation for brain image cl...
https://arxiv.org/abs/2505.16850v1
Early formulations include client- server optimization schemes and federated averaging algorithms [ 81,82,118]. Depending on how data are partitioned across participants, FL methods are typically divided into three paradigms [ 66, 154]: •Horizontal Federated Learning (HFL) : All clients hold data with the same feature ...
https://arxiv.org/abs/2505.16850v1
of local empirical risks: w∗= argmin wMX i=1αiLi(w;Di), (1) whereLi(w;Di)=1 NiP (x,y)∈Diℓ g(f(x)), y is the average loss on client i, and the mixing weights satisfyP iαi= 1(commonly αi=Ni/P jNjorαi= 1/M). Training proceeds in communication rounds, each consisting of three phases: 1. Broadcast: w(t) i=w(t−1)∀i, 2. Loc...
https://arxiv.org/abs/2505.16850v1
L(wi,ex, yt) , where ytis the attacker-specified target class and λ≥0balances backdoor potency against clean-data fidelity. Recent work has shown that distributing trigger fragments across multiple malicious clients can evade standard defenses [21, 200]. A.2.3 Client Incentives and Fairness Federated learning relies o...
https://arxiv.org/abs/2505.16850v1
regularization [ 173], personalized layers [ 100], and meta-learning [ 38]. Domain adaptation in FL—where some target domain data are available during training—is surveyed in [204,65], highlighting adversarial alignment [ 46] and feature disentanglement [ 50]. Out-of- distribution generalization methods, which aim to p...
https://arxiv.org/abs/2505.16850v1
Metrics In federated learning, adversarial participants can undermine the shared model through untargeted (Byzantine) or targeted (backdoor) manipulations. We quantify defense effectiveness with two key metrics: Accuracy Degradation ( I).For Byzantine resilience, compare the model’s clean accuracy Aclean on domain uaga...
https://arxiv.org/abs/2505.16850v1
and withe contribution from client i. Excluding iyields w−i=w−αiwi 1−αi. We measure the average accuracy over all test domains before and after removal, ∆i=¯A−1 |U|X u∈UA−i u, where ¯Ais the mean accuracy and A−i udenotes performance on domain uwithout client i. Normaliz- ing the vector ∆ = (∆ 1, . . . , ∆M)and the wei...
https://arxiv.org/abs/2505.16850v1
for next-generation federated systems: •Balancing Generalization and Robustness. Heterogeneous client data drives the need for broad generalization, yet robustness mechanisms must detect and exclude malicious contributions. When benign clients happen to hold atypical data, they risk being misclassified as attackers, de...
https://arxiv.org/abs/2505.16850v1
arXiv:2505.16855v1 [cs.CL] 22 May 2025Nested Named Entity Recognition as Single-Pass Sequence Labeling Alberto Muñoz-Ortiz,1David Vilares,1Caio Corro,2Carlos Gómez-Rodríguez1 1Universidade da Coruña, CITIC, Spain 2INSA Rennes, IRISA, Inria, CNRS, Université de Rennes, France {alberto.munoz.ortiz, david.vilares, carlos....
https://arxiv.org/abs/2505.16855v1
and relying on parsing algorithms (Finkel and Manning, 2009; Wang et al., 2018; Fu et al., 2021; Lou et al., 2022). More recently, Yang and Tu (2022) applied a pointer-network- based bottom-up constituency parser to NNER, of- fering linear-time decoding. In this context, con- stituency tree linearization—first introduc...
https://arxiv.org/abs/2505.16855v1
(1) 𝑛𝑖is an integer indi- cating the number of common ancestors between words 𝑤𝑖and𝑤𝑖+1, (2)𝑐𝑖is the non-terminal sym- bol at their lowest common ancestor, and (3) 𝑢𝑖 denotes the unary branch for 𝑤𝑖, if one exists. In the absolute encoding ( abs),𝑛abs 𝑖represents the number of common ancestors between 𝑤�...
https://arxiv.org/abs/2505.16855v1
add three task-specific linear clas- sification heads to predict each atomic component of the label(𝑛𝑖, 𝑐𝑖, 𝑢𝑖). We adopt the default hyper- parameters provided in the MaChAmp repository, as our primary goal is to show these models per- form well in off-the-shelf sequence labeling setups with simple plug-and-play...
https://arxiv.org/abs/2505.16855v1
different depths. Best values for each dataset and length shown in bold. lower. Although the dynencoding predominantly uses the relative function—as most entities are flat or shallow—it outperforms the other encodings on every dataset except GENIA, effectively lever- aging the best of absandrellinearizations. Al- thoug...
https://arxiv.org/abs/2505.16855v1
Conclusion We cast nested NER for the first time as a single- pass sequence labeling task by first transforming NNER annotations into constituent trees, and then leveraging the linearization options these trees enable. In particular, we explored both depth- based (absolute, relative and dynamic encodings) and transitio...
https://arxiv.org/abs/2505.16855v1
Computational Linguistics. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language under- standing. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Tech...
https://arxiv.org/abs/2505.16855v1
Songlin Yang, and Kewei Tu. 2022. Nested named entity recognition as latent lexicalized con- stituency parsing. In Proceedings of the 60th Annual Meeting of the Association for Computational Lin- guistics (Volume 1: Long Papers) , pages 6183–6198, Dublin, Ireland. Association for Computational Lin- guistics. Wei Lu and...
https://arxiv.org/abs/2505.16855v1
Natural Language Process- ing, pages 1011–1017, Brussels, Belgium. Associa- tion for Computational Linguistics. Yiran Wang, Hiroyuki Shindo, Yuji Matsumoto, and Taro Watanabe. 2021. Nested named entity recog- nition via explicitly excluding the influence of the best path. In Proceedings of the 59th Annual Meet- ing of ...
https://arxiv.org/abs/2505.16855v1
assigned to the same non-terminal node, we retain only the first; (2) if no label is assigned to a node, it is removed from the tree; (3) indexes out of range (e.g. -7 in the relative encoding when there are fewer than 7 levels to go up) are changed to the nearest legal index; and (4) in tetra-tagging, if the label seq...
https://arxiv.org/abs/2505.16855v1
Comparative analysis of subword tokenization approaches for Indian languages Sudhansu Bala Dasa,∗ , Samujjal Choudhurya , Tapas Kumar Mishraa , Bidyut Kr. Patrab aNational Institute of Technology(NIT), Rourkela, Odisha, India b Indian Institute of Technology (IIT), Varanasi, Uttar Pradesh, India Abstract Tokenization i...
https://arxiv.org/abs/2505.16868v1
differences, present significant challenges in producing precise and relevant context translations. In the field of MT, statistical machine translati on (SMT) has served an important role in breaking down obstacles associated with language [14]. SMT uses statistical models developed using large datasets to generate pro...
https://arxiv.org/abs/2505.16868v1
Byte Pair Encoding (BPE) [9], WordPiece [25], and SentencePiece [21]. These methods have been chosen due to their applicability and possible influence on machine translation efficiency. The evaluation of these techniques attempts to identify the advantages and disadvantages of each for handling text data written in Ind...
https://arxiv.org/abs/2505.16868v1
nature of the algorithm. According to Bostrom and Durrett [32], there are better methods for language pretraining than BPE because it does not make good use of the vocabulary space. To evaluate the impact of incorporating subword tokens, Nayak et al. [33] compare the activations of BERT’s attention layers with WordPiec...
https://arxiv.org/abs/2505.16868v1
communication barriers and provides wider access to resources and information across linguistic divides. As research in this area continues, it is anticipated that the accuracy and availability of machine translation for Indian languages will improve, contributing to their preservation, outreach, and broad participatio...
https://arxiv.org/abs/2505.16868v1
efficiently deal with diacritics such as halants and nuktas [43]. With this change, the SMT model is ensured to maintain the linguistic subtleties of Indian languages (ILs). After that, Byte Pair Encoding (BPE) tokenization is applied to the data. For BPE, the subword -nmt is used. In SMT, BPE initially tokenizes the s...
https://arxiv.org/abs/2505.16868v1
until the needed vocabulary size or likelihood threshold is met. In WordPiece, the merge decision depends on a count metric estimated as follows: This count shows how often the two symbols (x, y) occur in the sum of the frequencies of the individual symbols, x and y. The symbols that have the highest count together are...
https://arxiv.org/abs/2505.16868v1
(MNMT). For SentencePiece tokenization, the SentencePiece library is utilized. It helps for preprocessing data in both source and target languages in SMT, ensuring that significant linguistic variations and patterns are captured during the tokenization process. Similarly, it is also used in NMT to tokenize input senten...
https://arxiv.org/abs/2505.16868v1
simplicity and computing efficiency. For all the experiments, the BLEU score ranges from 0 to 100. Higher BLEU scores usually suggest translations that closely rese mble human references. Similarly, the Translation Edit Rate (TER) determines the number of edits needed to convert a machine translation into an exact matc...
https://arxiv.org/abs/2505.16868v1
the CHRF score is 26.07 to 46.23. COMET scores fall between 0.49 and 0.79, while METEOR scores span from 0.06 to 0.35. Furthermore, the range of RIBES scores is 0.13 to 0.58. However, for NMT, the ranges of scores are as follows: BLEU scores lie between 0.26 to 32.59 and TER scores range from 57.82 to 178.79, whereas M...
https://arxiv.org/abs/2505.16868v1
13.73 91.8 0.39 54.41 0.61 0.83 TE-EN 24.52 68.95 0.56 55.36 0.73 0.82 TA-EN 7.03 107.93 0.24 52.64 0.31 0.81 EN-TA 20.99 74.36 0.53 52.32 0.71 0.84 MNMT EN-AS 5.14 93.13 0.24 35.81 0.61 0.8 AS-EN 20.51 72.4 0.51 50.52 0.71 0.78 EN-ML 9.71 94.77 0.3 54.97 0.48 0.85 ML-EN 27.76 64.39 0.6 58.55 0.75 0.85 EN-BN 16.11 73.3...
https://arxiv.org/abs/2505.16868v1
EN-TE 6 103.94 0.25 43.81 0.38 0.76 TE-EN 11.39 87.4 0.46 49.06 0.53 0.76 EN-TA 1.31 103.7 0.09 32.42 0.06 0.58 TA-EN 2.6 90.12 0.18 28.11 0.38 0.72 NMT EN-AS 0.48 146.82 0.06 10.38 0.1 0.54 AS-EN 0.84 152.21 0.16 20.49 0.16 0.45 EN-ML 8.7 99.91 0.28 53.43 0.45 0.84 ML-EN 23.12 72.97 0.57 55.43 0.72 0.83 EN-BN 17.43 74...
https://arxiv.org/abs/2505.16868v1
from 129 to 391 whereas TER scores show variability from 119 to 319. After analyzing the NMT and SMT models, it was found that, for the majority of language pairs, the SentencePiece tokenizer consistently produced better results in terms of BLEU score than other tokenizers. However, it has been found that BPE tokenizat...
https://arxiv.org/abs/2505.16868v1
28.8 63.73 0.6 59.9 0.76 0.82 EN-TA 7.56 101.61 0.24 52.09 0.3 0.83 TA-EN 23.12 68.15 0.55 53.97 0.73 0.841 6. Conclusion This paper aims at investigating the effects of various subword tokenization techniques, such as Byte Pair Encoding (BPE), SentencePiece, and WordPiece , on Indian languages. It has been found that ...
https://arxiv.org/abs/2505.16868v1
S. B., Panda, D., Mishra, T. K., Patra, B. K., & Ekbal, A. Multilingual Neural Machine Translation for Indic to Indic Languages. ACM Transactions on Asian and Low -Resource Language Information Processing, 2024. [12] Das, S. B., Biradar, A., Mishra, T. K., & Patra, B. K. NIT Rourkela machine translation (MT) system sub...
https://arxiv.org/abs/2505.16868v1
A., & Timmapathini, H. P . Using integrated gradients and constituency parse trees to explain linguistic acceptability learnt by BERT . arXiv preprint arXiv:2106.07349 , 2021. [34] Gong, X., Xu, H., & Huang, L. HAN: hierarchical association network for computing semantic relatedness. In Proceedings of the AAAI Conferen...
https://arxiv.org/abs/2505.16868v1
MPO: Multilingual Safety Alignment via Reward Gap Optimization Weixiang Zhao1, Yulin Hu1, Yang Deng2, Tongtong Wu3, Wenxuan Zhang4 Jiahe Guo1,An Zhang5,Yanyan Zhao1*,Bing Qin1,Tat-Seng Chua5,Ting Liu1 1Harbin Institute of Technology,2Singapore Management University,3Monash University 4Singapore University of Technology...
https://arxiv.org/abs/2505.16869v1
and Qwen2.5 (Yang et al., 2024a), which have undergone sufficient safety alignment for their dominant language (typically English). We identify a crucial pattern: the implicit reward gap—defined as the log-likelihood differ- ence between safe and unsafe responses—strongly correlates with multilingual safety performance...
https://arxiv.org/abs/2505.16869v1
the policy model, πrefis the reference model, typically the supervised fine-tuned (SFT) checkpoint, βis a hyper-parameter and Z(x)is the partition function. In the context of multilingual safety alignment, the reward gap of the backbone model between safe and unsafe responses in different languages tcan be expressed as...
https://arxiv.org/abs/2505.16869v1
for Qwen2.5-7B-Instruct is En and Zh. Data We utilize the PKU-SafeRLHF dataset (Ji et al., 2024) for the reward gap evaluation across languages. This dataset comprises high-quality English preference pairs focused on safety-related questions. To extend its scope, we randomly sam- ple 100 instances and translate them in...
https://arxiv.org/abs/2505.16869v1
both the mag- nitude and direction of its gradient updates, while the extent of gradient descent is not dictated by the model’s likelihood on the dataset. Thus, RGd effectively sets the goal for how strongly the model should discriminate between yt wandyt lin target languages. Please refer to Appendix C for the derivat...
https://arxiv.org/abs/2505.16869v1
11.54 8.08 60.65 56.62 21.84 11.43 CPO 22.85 41.26 29.21 38.10 66.98 66.98 44.23 1.35 2.69 3.85 5.78 1.35 20.96 29.23 9.32 19.37 KTO 4.76 6.67 21.59 4.76 30.79 42.86 18.57 0.58 0.96 3.27 8.46 1.92 11.35 22.84 7.05 7.31 ORPO 9.52 2.86 15.24 1.27 18.73 21.27 11.48 0.19 0.00 0.19 1.35 0.58 11.54 10.75 3.51 3.91 R-DPO 10.1...
https://arxiv.org/abs/2505.16869v1
consistent perfor- mance across various benchmarks and back- bone models. It consistently surpasses all pref- erence learning methods across three backbone LLMs and benchmarks, highlighting its outstand- ing safety alignment capabilities and scalability. MPO excels in low-resource languages. Exist- ing baseline methods...
https://arxiv.org/abs/2505.16869v1
Zh Ko Ar Bn Sw A VG. LLaMA-3.1 14.60 20.32 52.38 16.83 49.52 37.78 31.91 Align with Ar 6.98 6.67 20.00 4.13 17.78 46.35 16.99 Align with Bn 35.56 41.91 72.07 51.75 63.49 84.44 58.20 Align with Sw 20.63 30.16 53.97 26.35 53.97 81.90 44.50 MPO 2.22 0.95 4.76 1.90 12.38 10.79 5.98 Table 5: Multilingual safety performance ...
https://arxiv.org/abs/2505.16869v1
robust- ness of MPO across different levels of multilingual preference data quality, we employ three versions of the dataset obtained using three NLLB (Costa- jussà et al., 2022) translation models of varying sizes: NLLB-600M, NLLB-1.3B, and NLLB-3.3B. These models represent a progressive improvement in translation qua...
https://arxiv.org/abs/2505.16869v1
Shen et al., 2024; Li et al., 2024b; Wang et al., 2024c; Poppi et al., 2024), as seen in Deng et al. (2024), which manually translated 315 English safety prompts (Ganguli et al., 2022) into nine languages. Others evaluate multilingual safety us- ing code-switching, embedding multiple languages within the same harmful i...
https://arxiv.org/abs/2505.16869v1
of broader eth- ical considerations, future work could extend the current methodology to tackle these value align- ment challenges, ensuring models respect different cultural norms and ethical standards across regions. Furthermore, given that safety guidelines are universal principles that users across various lin- gui...
https://arxiv.org/abs/2505.16869v1
Mohammad Gheshlaghi Azar, Zhaohan Daniel Guo, Bi- lal Piot, Remi Munos, Mark Rowland, Michal Valko, and Daniele Calandriello. 2024. A general theoret- ical paradigm to understand learning from human preferences. In International Conference on Arti- ficial Intelligence and Statistics , pages 4447–4455. PMLR. Yuntao Bai,...
https://arxiv.org/abs/2505.16869v1
Manuel Brack, Roberto Navigli, Huu Nguyen, Bo Li, and Kristian Kersting. 2024. Llms lost in translation: M-alert uncovers cross-linguistic safety gaps. arXiv preprint arXiv:2412.15035 . Deep Ganguli, Liane Lovitt, Jackson Kernion, Amanda Askell, Yuntao Bai, Saurav Kadavath, Ben Mann, Ethan Perez, Nicholas Schiefer, Kam...
https://arxiv.org/abs/2505.16869v1
2023. Mistral 7b.arXiv preprint arXiv:2310.06825 . Arturs Kanepajs, Vladimir Ivanov, and Richard Moulange. 2024. Towards safe multilingual frontier ai. In Workshop on Socially Responsible Language Modelling Research . Sungdong Kim and Minjoon Seo. 2024. Rethinking the role of proxy rewards in language model alignment. ...
https://arxiv.org/abs/2505.16869v1
enable training deep learning models with over 100 billion parameters. In Proceedings of the 26th ACM SIGKDD International Conference on Knowl- edge Discovery and Data Mining , pages 3505–3506. Noam Razin, Sadhika Malladi, Adithya Bhaskar, Danqi Chen, Sanjeev Arora, and Boris Hanin. 2024. Un- intentional unalignment: L...
https://arxiv.org/abs/2505.16869v1
Secrets of rlhf in large language models part ii: Reward modeling. arXiv preprint arXiv:2401.06080 . Weixuan Wang, Barry Haddow, Minghao Wu, Wei Peng, and Alexandra Birch. 2024b. Sharing mat- ters: Analysing neurons across languages and tasks in llms. arXiv preprint arXiv:2406.09265 . Wenxuan Wang, Zhaopeng Tu, Chang C...
https://arxiv.org/abs/2505.16869v1
Li, Sainbayar Sukhbaatar, Jing Xu, and Ja- son E Weston. 2024. Self-rewarding language mod- els. In Forty-first International Conference on Ma- chine Learning . Shimao Zhang, Changjiang Gao, Wenhao Zhu, Jiajun Chen, Xin Huang, Xue Han, Junlan Feng, Chao Deng, and Shujian Huang. 2024a. Getting more from less: Large lang...
https://arxiv.org/abs/2505.16869v1
used for safety is the Attack Success Rate (ASR), where lower values indicate better performance. Results of the dominant languages are highlighted in bold. A Further Discussion on Reward Gap We have already discussed in §2.2 that using Eq. (4) within SimPO (Meng et al., 2024) to compute the reward gap is more reasonab...
https://arxiv.org/abs/2505.16869v1
respect to the train- able parameters θ(because it depends on the refer- ence model). However, it plays an important role in shaping how θis learned for yt wandyt l. Target Gap The difference βRGt−RGdappears inside the loss function. Because RGdis subtracted from βRGt, it effectively sets a target “goal” in log probabi...
https://arxiv.org/abs/2505.16869v1
w|xt)−1 |yt l|∇θlogπθ(yt l|xt) . (26) The Full Gradient of L(θ)Recall the origi- nal loss is the expectation ofℓ(θ)over samples (x, yw, yl)∼ D. Therefore, ∇θL(θ) = 2 βE(x,yw,yl)∼D" βRGt(θ)−RGd 1 |ytw|∇θlogπθ(yt w|xt)−1 |yt l|∇θlogπθ(yt l|xt)# . (27) This completes the derivation of the gradient w.r.t. the paramet...
https://arxiv.org/abs/2505.16869v1
switching red-teaming queries, combining up to 10 languages, and investigate the safety and multilingual understanding of LLMs. We evaluate multilingual safety alignment using the Attack Success Rate (ASR), following the evalua- tion pipeline proposed by Deng et al. (2024), with GPT-4o as the judgment model. The evalua...
https://arxiv.org/abs/2505.16869v1
rate, training epochs, and method- specific parameters. The learning rate is searched within [3e-7, 4e-7, 5e-7, 6e-7, 1e-6], while training epochs are explored in [1, 2, 3]. Method-specific hyperparameter search spaces are detailed in Table 7. For MPO, βis searched in [1.0, 1.5, 2.0] and we find that 1.0 or 1.5 always ...
https://arxiv.org/abs/2505.16869v1
where GPT- 4o is prompted to assign a score directly to a single response on a scale of 1 to 10. It is 1https://huggingface.co/datasets/ HuggingFaceH4/mt_bench_prompts 2https://huggingface.co/datasets/shi3z/ MTbenchJapanese 3https://huggingface.co/datasets/StudentLLM/ Korean_MT-Bench_questions 4https://huggingface.co/s...
https://arxiv.org/abs/2505.16869v1
6.88 7.05 5.78 6.16 6.80 Qwen2.5 7.77 7.36 6.43 6.21 6.60 4.49 2.37 5.89 SFT 7.49 7.14 6.73 6.50 6.46 4.66 2.08 5.87 DPO 7.68 6.99 6.79 6.61 6.50 4.71 2.24 5.93 IPO 7.66 7.24 6.86 6.29 6.61 4.68 1.98 5.90 rDPO 7.78 7.01 6.58 6.38 6.59 4.48 2.10 5.85 CPO 7.61 7.16 6.82 6.33 6.57 4.54 2.12 5.88 KTO 7.77 7.03 6.82 6.60 6....
https://arxiv.org/abs/2505.16869v1
89.20 78.80 67.60 73.60 77.30 IPO 90.00 78.40 67.20 75.20 77.70 rDPO 90.40 78.00 65.60 76.80 77.70 CPO 90.40 79.20 46.00 68.00 70.90 KTO 90.00 77.60 67.60 75.20 77.60 ORPO 90.40 80.00 49.60 65.20 71.30 R-DPO 90.00 77.60 75.20 75.60 79.60 SimPO 90.00 76.80 67.20 75.20 77.30 MPO 90.80 80.40 70.00 74.00 78.80 Qwen2.5 87.2...
https://arxiv.org/abs/2505.16869v1
general utility, MPO achieves significantly superior multilingual safety performance compared to these methods. By leveraging reward gap min- imization with the dominant language as a high- quality supervision signal, MPO effectively trans- fers safety alignment across languages without de- grading the model’s overall ...
https://arxiv.org/abs/2505.16869v1
the dominant language’s reward gap as a fine-grained supervision signal. Un- like MPO, which explicitly minimizes the reward gap difference between the dominant language and target languages, existing cross-lingual transfer ap- proaches struggle with noisy preference signals and suboptimal knowledge transfer. Additiona...
https://arxiv.org/abs/2505.16869v1
the reference-based reward gap. We further provide theoretical justification. When computing RGdusing the current model πθ instead of the reference model πref, The gradientof this loss function becomes: ∇θL1 = 2 βEDh (β·RGt−RGd)· 1 |ytw|∇θlogπθ(yt w|xt)−1 |yt l|∇θlogπθ(yt l|xt) − 1 |ydw|∇θlogπθ(yd w|xd)−1 |yd l|∇θl...
https://arxiv.org/abs/2505.16869v1
languages and ranking them based on an alignment score computed via an external translation model, which mea- sures their consistency with the response in the dominant language. The ranked responses form preference pairs that are then optimized using DPO (Rafailov et al., 2023). •LIDR relies on the LLM’s own translatio...
https://arxiv.org/abs/2505.16869v1
40 6040 20 020406080 safe_en safe_ar unsafe_en unsafe_ar(e) The visualization of multilingual rep- resentations for English and Arabic on LLaMA-3.1-8B-Instruct after multilin- gual safety alignment via MPO. 60 40 20 0 20 40 6040 20 0204060 safe_en safe_sw unsafe_en unsafe_sw(f) The visualization of multilingual rep- re...
https://arxiv.org/abs/2505.16869v1
arXiv:2505.16881v1 [cs.CL] 22 May 2025CASTILLO: Characterizing Response Length Distributions of Large Language Models Daniel F. Perez-Ramirez RISE Computer Science KTH Royal Institute of Technology Stockholm, Sweden daniel.perez@ri.se – dfpr@kth.seDejan Kostic KTH Royal Institute of Technology RISE Computer Science Sto...
https://arxiv.org/abs/2505.16881v1
transformer-based models [Vaswani et al., 2017, Holtzman et al., 2020]. This unpredictability leads to inefficient resource utilization and increased operational overhead. Proactive scheduling strategies, with the aim to predict response lengths before generation, have the potential to significantly improve LLM s infer...
https://arxiv.org/abs/2505.16881v1
allocation Figure 2: Transformer-based LLM inference in production is divided into a fast and compute intensive phase (prefill) and a time-consuming and memory intensive phase (decode). 2 Background and Related Work To our knowledge, CASTILLO is the first publicly-available dataset to empirically characterize response ...
https://arxiv.org/abs/2505.16881v1
a Bayesian model. While effective, TRAIL introduces communication overhead and requires in-depth layer-wise model-specific analysis, which limits its generalization. 3 CASTILLO contributes to this growing area by offering a large-scale dataset that captures both inter- and intra-model response variability under fixed d...
https://arxiv.org/abs/2505.16881v1
C (Table 2) lists the specific model identifiers, their parameter sizes, organizations, and the number of H100 GPUs used for inference. 3.3 Response Generation Process We implement dataset-specific prompt formatting routines to respect the schema and intended use cases of each source dataset. These routines generate co...
https://arxiv.org/abs/2505.16881v1
Appendix. 3.4 Sanitizing the CASTILLO Dataset To support downstream analysis and robustness studies, we further partition the dataset into two complementary subsets: 1.Asanitized version , sanitizing or excluding all completions exhibiting degeneration artifacts (e.g., high repetition, loss of coherence, maximum-length...
https://arxiv.org/abs/2505.16881v1
predicting response lengths. Moreover, our analysis reveals notable occurrences of text degeneration in a subset of generated completions. 4.1 Inter- and Intra-Model Variability Figure 3 presents a heatmap of the average mean (3a) and standard deviation (3b) of response lengths across all ⟨model, dataset ⟩combinations....
https://arxiv.org/abs/2505.16881v1
models ranging from 7%to up to 45%. Hence, the std-dev can reach up to half of the value of the average response length in the batch. Alpaca Apps BigCode DS1000 Dolly Mbpp ShareGPTgemma-4B llama-1B llama-3B llama-70B llama-8B mist-7B mixt-8x7B phi4 qwen-14B qwen-32B qwen-7B6 1 52 162 29 39 32 8 247 16 63 10 14 18 2 71 ...
https://arxiv.org/abs/2505.16881v1
informed admission control, resource allocation, and scheduling. CASTILLO provides per-sample statistics (mean, std, percentiles) over multiple completions per prompt, which enables the training and evaluation of both regression-based and classification-based output length predictors. These models can be integrated int...
https://arxiv.org/abs/2505.16881v1
support a deeper understanding of how models allocate tokens to reasoning versus conclusions. Given the demonstrated model-specific variation in generative behavior, we hypothesize that reasoning lengths may also reflect distinct architectural or model "personalities". Generation-Configuration Interactions While CASTIL...
https://arxiv.org/abs/2505.16881v1
ERROR: type should be string, got "https://proceedings.neurips.cc/paper_files/paper/2020/ file/1457c0d6bfcb4967418bfb8ac142f64a-Paper.pdf . M. Chen, J. Tworek, H. Jun, Q. Yuan, H. P. de Oliveira Pinto, J. Kaplan, H. Edwards, Y . Burda, N. Joseph, G. Brockman, A. Ray, R. Puri, G. Krueger, M. Petrov, H. Khlaaf, G. Sastry, P. Mishkin, B. Chan, S. Gray, N. Ryder, M. Pavlov, A. Power, L. Kaiser, M. Bavarian, C. Winter, P. Tillet, F. P. Such, D. Cummings, M. Plappert, F. Chantzis, E. Barnes, A. Herbert-V oss, W. H. Guss, A. Nichol, A. Paino, N. Tezak, J. Tang, I. Babuschkin, S. Balaji, S. Jain, W. Saunders, C. Hesse, A. N. Carr, J. Leike, J. Achiam, V . Misra, E. Morikawa, A. Radford, M. Knight, M. Brundage, M. Murati, K. Mayer, P. Welinder, B. McGrew, D. Amodei, S. McCandlish, I. Sutskever, and W. Zaremba. Evaluating large language models trained on code. 2021. W.-L. Chiang, Z. Li, Z. Lin, Y . Sheng, Z. Wu, H. Zhang, L. Zheng, S. Zhuang, Y . Zhuang, J. E. Gonzalez, I. Stoica, and E. P. Xing. Vicuna: An open-source chatbot impressing gpt-4 with 90%* chatgpt quality, March 2023. URL https://lmsys.org/blog/2023-03-30-vicuna/ . A. Chowdhery, S. Narang, J. Devlin, M. Bosma, G. Mishra, A. Roberts, P. Barham, H. W. Chung, C. Sutton, S. Gehrmann, P. Schuh, K. Shi, S. Tsvyashchenko, J. Maynez, A. Rao, P. Barnes, Y . Tay, N. Shazeer, V . Prabhakaran, E. Reif, N. Du, B. Hutchinson, R. Pope, J. Bradbury, J. Austin, M. Isard, G. Gur-Ari, P. Yin, T. Duke, A. Levskaya, S. Ghemawat, S. Dev, H. Michalewski, X. Garcia, V . Misra, K. Robinson, L. Fedus, D. Zhou, D. Ippolito, D. Luan, H. Lim, B. Zoph, A. Spiridonov, R. Sepassi, D. Dohan, S. Agrawal, M. Omernick, A. M. Dai, T. S. Pillai, M. Pellat, A. Lewkowycz, E. Moreira, R. Child, O. Polozov, K. Lee, Z. Zhou, X. Wang, B. Saeta, M. Diaz, O. Firat, M. Catasta, J. Wei, K. Meier-Hellstern, D. Eck, J. Dean, S. Petrov, and N. Fiedel. Palm: Scaling language modeling with pathways. Journal of Machine Learning Research , 24(240):1–113, 2023. URL http://jmlr.org/papers/v24/22-1144.html . M. Conover, M. Hayes, A. Mathur, J. Xie, J. Wan, S. Shah, A. Ghodsi, P. Wen- dell, M. Zaharia, and R. Xin. Free dolly: Introducing the world’s first truly open instruction-tuned llm, 2023. URL https://www.databricks.com/blog/2023/04/12/ dolly-first-open-commercially-viable-instruction-tuned-llm . T. Dao, D. Fu, S. Ermon, A. Rudra, and C. Ré. Flashattention: Fast and memory-efficient exact atten- tion with io-awareness. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh, editors, Advances in Neural Information Processing Systems , volume 35, pages 16344–16359. Cur- ran Associates, Inc., 2022. URL https://proceedings.neurips.cc/paper_files/paper/ 2022/file/67d57c32e20fd0a7a302cb81d36e40d5-Paper-Conference.pdf . J. Duan, R. Lu, H. Duanmu, X. Li, X. Zhang, D. Lin, I. Stoica, and H. Zhang. Muxserve: flexible spatial-temporal multiplexing for multiple llm serving. In Proceedings of the 41st International Conference on Machine Learning , ICML’24. JMLR.org, 2024. 10 A. Gu and T. Dao. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752 , 2023. A. Gu, K. Goel, and C. Re. Efficiently modeling long sequences with structured state spaces. In International Conference on Learning Representations , 2022."
https://arxiv.org/abs/2505.16881v1
URL https://openreview.net/ forum?id=uYLFoz1vlAC . D. Hendrycks, S. Basart, S. Kadavath, M. Mazeika, A. Arora, E. Guo, C. Burns, S. Puranik, H. He, D. Song, et al. Measuring coding challenge competence with apps. In 35th Conference on Neural Information Processing Systems (NeurIPS 2021) Track on Datasets and Benchmarks...
https://arxiv.org/abs/2505.16881v1
of highly capable multimodal models. arXiv preprint arXiv:2312.11805 , 2023. A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin. Attention is all you need. In Advances in neural information processing systems , volume 30, 2017. 11 J. Wei, X. Wang, D. Schuurmans, M. Bosm...
https://arxiv.org/abs/2505.16881v1
We access the dataset from https://huggingface.co/ datasets/databricks/databricks-dolly-15k . Schema The schema of each sample of the dataset is a dictionary with the following fields: { ’instruction’: ’Given a reference text about Lollapalooza, where does ...’, ’context’: ’Lollapalooza is an annual American festival.....
https://arxiv.org/abs/2505.16881v1
Moreover, we notice that some original long conversations interactions with ChatGPT were split into multiple data samples, which causes some data samples to start their conversation with the gptinput. We discard those data samples as well, since we do not want to bias the response from the considered LLM s by CASTILLO ...
https://arxiv.org/abs/2505.16881v1
of the Alpaca dataset: sample[’instruction’] + "\nInput: " + sample[’context’] Analogous to the DollyDataset, the "Input" line is added only for samples that have a input field, and omitted otherwise. 100 Number of T okens0200040006000800010000FrequencyHistogram - # Input T okens Alpaca 100 Number of T okens0.00.20.40....
https://arxiv.org/abs/2505.16881v1
Programming Progress Standard) dataset, introduced by Hendrycks et al. [2021], is a benchmark designed to evaluate the code generation capabilities of LLM s. It comprises 10,000 Python programming problems sourced from open-access coding platforms like Codeforces and Kattis, with difficulties ranging from introductory ...
https://arxiv.org/abs/2505.16881v1
sampled instances. The sampled subset shares a similar distribution as the original dataset. Figure 11 shows the distribution of the length of the tokenized user prompts in terms of number of tokens for both the filtered version of the dataset and for the 2000 samples considered. The input prompts in the APPS dataset h...
https://arxiv.org/abs/2505.16881v1
Each sample in the BigCodeBench dataset has the following structure: {’task_id’: ’BigCodeBench/222’, ’complete_prompt’: ’import math\nimport numpy as np\nimport matpl[...]’, ’instruct_prompt’: ’Sort the given list in ascending order based on the deg[...]’, ’canonical_solution’: ’ sorted_list = sorted(list_input, key=l[...
https://arxiv.org/abs/2505.16881v1
inspection, we found that not all such samples were degenerated: some included valid long-form responses or variations in verbosity that did not involve repetition or other undesirable generation patterns (see Figure 14 for an illustrative non-degenerated example). 19 Model: mistralai--Ministral-8B-Instruct-2410Dataset...
https://arxiv.org/abs/2505.16881v1
who has been surfing for over 40 years. He has written several books on surfing and has been a pioneer of the sport. In 2017, Hynd suffered a heart attack while surfing in Bali and died. 4. **Greg Noll**: Greg Noll is an American surfer and big wave rider who has been surfing for over 60 years. He has written several b...
https://arxiv.org/abs/2505.16881v1
terms: (x+y)^5 = (-14a^3 + 746a^2(1 + 3344/b)/5a^4 - (2016/b)/5a^4 - (3969/b^2)/5a^4 Combine like terms: (x+y)^5 = (-14a^3 + 746a^2(1 + 3344/b)/5a^4 - (2016/b)/5a^4 - (3969/b^2)/5a^4 Combine like terms: (x+y)^5 = (-14a^3 + 746a^2(1 + 3344/b)/5a^4 - (2016/b)/5a^4 - (3969/b^2)/5a^4 […] (b) Block-level repetition of alpha...
https://arxiv.org/abs/2505.16881v1
[693, 479, 779, 869, 740, 442, 15001, 637, 697, 721]Prompt (Hash ID: 3e602f902b72fddd): QUESTION: Deoxyribonucleic acid, DNA is the primary information storage molecule in biological systems. It is composed of four nucleic acid bases Guanine ('G'), Cytosine ('C'), Adenine ('A'), and Thymine ('T'). […]Shortest Response:...
https://arxiv.org/abs/2505.16881v1