Fine-Tuning Large Language Models for Financial Applications Using Direct Preference Optimization

Authors

  • Bohdan Pavlyshenko
  • Ivan Bulka

DOI:

https://doi.org/10.47839/ijc.25.3.4844

Keywords:

LLM, PEFT, Direct Preference Optimization, DPO, LoRA, QLoRA, domain adaptation, question answering, synthetic data generation

Abstract

Large language models have changed natural language processing across many fields, but their general-purpose design limits performance in specialized domains like finance. This study examines the adaptation of Meta-Llama-3-8B-Instruct for financial NLP tasks through parameter-efficient fine-tuning methods and direct preference optimization. We use LoRA and QLoRA techniques with the Sujet-Finance-Instruct-177k dataset covering six financial task categories. While parameter-efficient finetuning improves performance on structured tasks like sentiment analysis and topic classification, complex question-answering tasks show limited improvement. To address this limitation, we considered direct preference optimization using synthetically generated preference pairs from GPT-4o. A Task Completion Score was created that uses an LLM as a judge and a GPT-4 model and defines model performance based on instructions in the domain. Results demonstrate that combining parameter-efficient fine-tuning with direct preference optimization increases model performance in challenging question-answering scenarios. Our findings show that preference-based optimization is essential for optimal performance in domainspecific applications requiring both accuracy and alignment with user expectations.

References

A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, et al., “Attention is all you need,” Adv. Neural Inf. Process. Syst., vol. 30, 2017. https://doi.org/10.48550/arXiv.1706.03762.

T. Brown, B. Mann, N. Ryder, M. Subbiah, J. D. Kaplan, P. Dhariwal, et al., “Language models are few-shot learners,” Adv. Neural Inf. Process. Syst., vol. 33, pp. 1877–1901, 2020.

B. M. Pavlyshenko, “AI approaches to qualitative and quantitative news analytics on NATO unity,” arXiv:2505.06313, 2025. https://doi.org/10.48550/arXiv.2505.06313.

L. Zhou, Y. Xu, Z. Wang, and D. Wang, “FlockVote: LLM-empowered agent-based modeling for simulating US presidential elections,” arXiv:2512.05982, 2025. https://doi.org/10.48550/arXiv.2512.05982.

L. Ouyang, J. Wu, X. Jiang, D. Almeida, C. Wainwright, P. Mishkin, et al., “Training language models to follow instructions with human feedback,” Adv. Neural Inf. Process. Syst., vol. 35, pp. 27730–27744, 2022. https://doi.org/10.52202/068431-2011

E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, et al., “LoRA: Low-rank adaptation of large language models,” in Proc. Int. Conf. Learning Representations (ICLR), 2022. https://doi.org/10.48550/arXiv.2106.09685

T. Dettmers, A. Pagnoni, A. Holtzman, and L. Zettlemoyer, “QLoRA: Efficient finetuning of quantized LLMs,” Adv. Neural Inf. Process. Syst., vol. 36, pp. 10088–10115, 2023. https://doi.org/10.52202/075280-0441

R. Rafailov, A. Sharma, E. Mitchell, C. D. Manning, S. Ermon, and C. Finn, “Direct preference optimization: Your language model is secretly a reward model,” Adv. Neural Inf. Process. Syst., vol. 36, pp. 53728–53741, 2023. https://doi.org/10.52202/075280-2338

B. Pavlyshenko and I. Bulka, “Metric-based comparison of fine-tuned Llama 2 and Mixtral large language models for instruction tasks,” Electron. Inf. Technol., no. 26. https://doi.org/10.30970/eli.26.2.

B. Pavlyshenko and I. Bulka, “Parameter efficient fine-tuning and overfitting in GPT large language models: A metric-based comparison,” Electron. Inf. Technol., no. 30, pp. 33–42, 2025. https://doi.org/10.30970/eli.30.3.

J. Yang, Y. Tang, Y. Li, L. Zhang, and H. Zhang, “Dynamic hedging strategies in derivatives markets with LLM-driven sentiment and news analytics,” arXiv:2504.04295, 2025. https://doi.org/10.48550/arXiv.2504.04295.

G. Iacovides, T. Konstantinidis, M. Xu, and D. Mandic, “FinLlama: LLMbased financial sentiment analysis for algorithmic trading,” in Proc. 5th ACM Int. Conf. AI in Finance, 2024, pp. 134–141.

F. Xing, “Designing heterogeneous LLM agents for financial sentiment analysis,” ACM Trans. Manage. Inf. Syst., vol. 16, no. 1, pp. 1–24, 2025. https://doi.org/10.1145/3688399.

M. Ji, Y. Wu, Z. Wu, S. Wang, J. Yang, M. Dras, and U. Naseem, “A survey of progress in LLM alignment from the perspective of reward design,” IEEE Trans. Artif. Intell., 2026. https://doi.org/10.1109/TAI.2026.3654921

P. Lewis, E. Perez, A. Piktus, F. Petroni, V. Karpukhin, N. Goyal, et al., “Retrieval-augmented generation for knowledge-intensive NLP tasks,” Adv. Neural Inf. Process. Syst., vol. 33, pp. 9459–9474, 2020.

M. Arslan, H. Ghanem, S. Munawar, and C. Cruz, “A survey on RAG with LLMs,” Procedia Comput. Sci., vol. 246, pp. 3781–3790, 2024. https://doi.org/10.1016/j.procs.2024.09.178.

B. M. Pavlyshenko, “Multilevel analysis of cryptocurrency news using RAG approach with fine-tuned Mistral large language model,” arXiv:2509.03527, 2025. https://doi.org/10.48550/arXiv.2509.03527.

H. Essafi, “GenAI, LLM/MLLM, RAG, and their impacts on hallucination, reliability and trustworthiness,” in Proc. Int. Conf. Flexible Query Answering Systems (FQAS), Cham, Switzerland: Springer, 2025, pp. 12– 15. https://doi.org/10.1007/978-3-032-05607-8_3.

J. Zhang, X. Wang, W. Ren, L. Jiang, D. Wang, and K. Liu, “RATT: A thought structure for coherent and correct LLM reasoning,” in Proc. AAAI Conf. Artif. Intell., vol. 39, no. 25, 2025, pp. 26733–26741. https://doi.org/10.1609/aaai.v39i25.34876.

B. Lester, R. Al-Rfou, and N. Constant, “The power of scale for parameter-efficient prompt tuning,” arXiv:2104.08691, 2021. https://doi.org/10.48550/arXiv.2104.08691.

M. Yang, J. Chen, J. Tao, Y. Zhang, J. Liu, J. Zhang, et al., “Lowrank adaptation for foundation models: A comprehensive review,” arXiv:2501.00365, 2024. https://doi.org/10.48550/arXiv.2501.00365.

Z. Zhou, J. Liu, C. Yang, J. Shao, Y. Liu, X. Yue, et al., “Beyond onepreference-for-all: Multi-objective direct preference optimization,” 2023.

A. Dandekar, R. A. Zen, and S. Bressan, “A comparative study of synthetic dataset generation techniques,” in Proc. Int. Conf. Database and Expert Systems Applications (DEXA), Cham, Switzerland: Springer, 2018, pp. 387–395.

N. Schluter, “The limits of automatic summarisation according to ROUGE,” in Proc. 15th Conf. Eur. Chapter Assoc. Comput. Linguistics, 2017, pp. 41–45. https://doi.org/10.18653/v1/E17-2007.

Y. Graham, “Re-evaluating automatic summarization with BLEU and 192 shades of ROUGE,” in Proc. Conf. Empirical Methods in Natural Language Processing (EMNLP), 2015, pp. 128–137.

D. Deutsch, R. Dror, and D. Roth, “On the limitations of referencefree evaluations of generated text,” arXiv:2210.12563, 2022. https://doi.org/10.48550/arXiv.2210.12563.

D. Trautmann, A. Petrova, and F. Schilder, “Legal prompt engineering for multilingual legal judgement prediction,” arXiv:2212.02199, 2022. https://doi.org/10.48550/arXiv.2212.02199.

N. Lee, J. Hong, and J. Thorne, “Evaluating the consistency of LLM evaluators,” in Proc. 31st Int. Conf. Computational Linguistics, 2025, pp. 10650–10659.

L. Zheng, W. L. Chiang, Y. Sheng, S. Zhuang, Z. Wu, Y. Zhuang, et al., “Judging LLM-as-a-judge with MT-bench and chatbot arena,” Adv. Neural Inf. Process. Syst., vol. 36, pp. 46595–46623, 2023. https://doi.org/10.52202/075280-2020

J. Gu, X. Jiang, Z. Shi, H. Tan, X. Zhai, C. Xu, et al., “A survey on LLMas-a-judge,” The Innovation, 2024.

D. Li, B. Jiang, L. Huang, A. Beigi, C. Zhao, Z. Tan, et al., “From generation to judgment: Opportunities and challenges of LLM-as-ajudge,” in Proc. Conf. Empirical Methods in Natural Language Processing (EMNLP), 2025, pp. 2757–2791. https://doi.org/10.18653/v1/2025.emnlpmain.138.

A. Szymanski, N. Ziems, H. A. Eicher-Miller, T. J. J. Li, M. Jiang, and R. A. Metoyer, “Limitations of the LLM-as-a-judge approach for evaluating LLM outputs in expert knowledge tasks,” in Proc. 30th Int. Conf. Intelligent User Interfaces, 2025, pp. 952–966. https://doi.org/10.1145/3708359.3712091

J. He, M. Rungta, D. Koleczek, A. Sekhon, F. X. Wang, and S. Hasan, “Does prompt formatting have any impact on LLM performance?,” arXiv:2411.10541, 2024. https://doi.org/10.48550/arXiv.2411.10541.

S. Schulhoff, M. Ilie, N. Balepur, K. Kahadze, A. Liu, C. Si, et al., “The prompt report: A systematic survey of prompt engineering techniques,” arXiv:2406.06608, 2024. https://doi.org/10.48550/arXiv.2406.06608.

A. El Amri, LLM Prompt Engineering for Developers: The Art and Science of Unlocking LLMs’ True Potential. Birmingham, U.K.: Packt Publishing, 2024.

Downloads

Published

2026-09-30

How to Cite

Pavlyshenko, B., & Bulka, I. (2026). Fine-Tuning Large Language Models for Financial Applications Using Direct Preference Optimization. International Journal of Computing, 25(3), 488-495. https://doi.org/10.47839/ijc.25.3.4844

Issue

Section

Articles