Submitted:
02 October 2025
Posted:
02 October 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Related Work
3. Methodology and Model Design
- Adaptive Task Dispatch Scheduler (ATDS): Dynamically adjusts task sampling probabilities via entropy and convergence rate to ensure balanced optimization.
- Dual Attention Gradient Guidance (DAGG): Aligns gradients with attention distributions to maintain semantic consistency across tasks.
- Task Imbalance Adversarial Regulator (TIAR): Encourages task-invariant feature learning under skewed data through adversarial objectives.
- Hybrid Modal Decoupled Fusion (HMD-Fusion): Separates language-specific and language-agnostic representations for improved generalization.
3.1. Adaptive Task Dispatch Scheduler (ATDS)
3.2. Dual Attention Gradient Guidance (DAGG)
3.3. Task Imbalance Adversarial Regulator (TIAR)
3.4. Hybrid Modal Decoupled Fusion (HMD-Fusion)
3.5. Supervised Fine-Tuning (SFT)
3.6. Prompt Design and Schema
Instruction: [Task description]
Input: [Signature or partial code]
Output: [Expected completion]
Instruction: Write a Python function to compute the factorial of a number.
Input: def factorial(n):
Output: if n == 0: return 1 \n else: return n * factorial(n-1)
3.7. Loss Function
- Task Loss: Standard cross-entropy on output tokens.
- Alignment Loss: Attention-guided constraints to align input-output semantics.
- Adversarial Loss: Regularizes latent space to improve robustness.
- Decoupling Loss: Encourages semantic separation across tasks to prevent interference.

3.7.1. Task-Specific Supervised Loss
3.7.2. Gradient-Aware Attention Alignment Loss
3.7.3. Adversarial Task Regularization Loss
3.7.4. Cross-Task Focal Alignment Loss
3.7.5. Overall Weighted Objective
3.8. Data Preprocessing
3.9. Evaluation Metrics
4. Experiment Results
5. Conclusions
References
- Muennighoff, N.; Liu, Q.; Zebaze, A.; Zheng, Q.; Hui, B.; Zhuo, T.Y.; Singh, S.; Tang, X.; Von Werra, L.; Longpre, S. Octopack: Instruction tuning code large language models. In Proceedings of the NeurIPS 2023 workshop on instruction tuning and instruction following, 2023.
- Zhu, Y.; Liu, Y. LLM-NER: Advancing Named Entity Recognition with LoRA+ Fine-Tuned Large Language Models. In Proceedings of the 2025 11th International Conference on Computing and Artificial Intelligence (ICCAI), 2025, pp. 364–368. [CrossRef]
- Qin, L.; Chen, Q.; Zhou, Y.; Chen, Z.; Li, Y.; Liao, L.; Li, M.; Che, W.; Yu, P.S. A survey of multilingual large language models. Patterns 2025, 6. [Google Scholar] [CrossRef]
- Bistarelli, S.; Fiore, M.; Mercanti, I.; Mongiello, M. Usage of Large Language Model for Code Generation Tasks: A Review. SN Computer Science 2025, 6, 1–16. [Google Scholar] [CrossRef]
- Begolli, I.; Aksoy, M.; Neider, D. Fine-Tuning Multilingual Language Models for Code Review: An Empirical Study on Industrial C# Projects. arXiv preprint arXiv:2507.19271 2025. [CrossRef]
- Li, M.; Mishra, A.; Mujumdar, U. Bridging the Language Gap: Enhancing Multilingual Prompt-Based Code Generation in LLMs via Zero-Shot Cross-Lingual Transfer. arXiv preprint arXiv:2408.09701 2024. [CrossRef]
- He, R.; Zhang, L.; Lyu, M.; Lyu, L.; Xue, C. Using Large Language Models for Aerospace Code Generation: Methods, Benchmarks, and Potential Values. Aerospace 2025, 12, 498. [Google Scholar] [CrossRef]
- Guan, S. Predicting Medical Claim Denial Using Logistic Regression and Decision Tree Algorithm. In Proceedings of the 2024 3rd International Conference on Health Big Data and Intelligent Healthcare (ICHIH), 2024, pp. 7–10. [CrossRef]



| Model | Dataset | pass@1 (%) | pass@10 (%) | CodeBLEU | EM | RSR (%) | FPR (%) |
|---|---|---|---|---|---|---|---|
| Qwen-1.8B (baseline) | HumanEval | 26.7 | 42.1 | 35.1 | 21.8 | 72.3 | 59.2 |
| Qwen-1.8B + LoRA (6L) | HumanEval | 29.3 | 45.7 | 38.4 | 24.0 | 76.8 | 64.7 |
| MFTCoder (official) | HumanEval | 31.2 | 49.0 | 42.5 | 25.5 | 79.5 | 68.3 |
| MFTCoder++ (ours) | HumanEval | 36.5 | 55.3 | 48.7 | 28.7 | 90.1 | 75.9 |
| Qwen-1.8B (baseline) | MBPP | 32.1 | 47.9 | 41.8 | 29.4 | 75.6 | 63.0 |
| Qwen-1.8B + LoRA (6L) | MBPP | 34.4 | 50.2 | 45.3 | 31.2 | 78.9 | 67.4 |
| MFTCoder (official) | MBPP | 37.6 | 53.5 | 49.9 | 33.5 | 81.0 | 70.1 |
| MFTCoder++ (ours) | MBPP | 42.8 | 58.7 | 56.4 | 38.1 | 91.3 | 78.5 |
| w/o ATDS | HumanEval | 34.3 | 52.0 | 45.2 | 26.5 | 88.7 | 73.2 |
| w/o DAGG | HumanEval | 32.8 | 50.5 | 43.0 | 24.7 | 87.5 | 71.4 |
| w/o TIAR | HumanEval | 31.6 | 49.1 | 40.7 | 23.3 | 85.1 | 69.8 |
| w/o HMD-Fusion | HumanEval | 30.4 | 47.8 | 38.9 | 22.1 | 84.3 | 68.5 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).