Instruction fine-tuning based on Llama2-7b for news topic classification
Open Access
- 24 November 2023
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 183-186
Abstract
In the rapidly evolving financial sector, timely and accurate news classification is essential. This paper introduces an approach to enhance financial news topic classification using the Llama2-7b model, fine-tuned with the QLora algorithm. Our dataset, comprising 16,990 training samples and 4,117 test samples, is focused on financial news, categorized into 20 distinct themes. This work aims to leverage the advanced capabilities of Llama2-7b, combined with QLora's fine-tuning efficiency, to improve classification accuracy and efficiency in processing news. In our experiments, we compared the performance of Llama2-7b against several other models, including Roberta-Base, Roberta-Large, Deberta-Base, and Deberta-Large. The Llama2-7b model outperformed these models, achieving an accuracy of 0.8936, which is notably higher than Roberta-Large's 0.8810, Deberta-Large's 0.8832, and other benchmarks. These results underscore the effectiveness of Llama2-7b when fine-tuned with QLora, marking a significant advancement in the domain of financial news classification.Keywords
This publication has 11 references indexed in Scilit:
- A BERT based Sentiment Analysis and Key Entity Detection Approach for Online Financial Texts2021
- Cohesiveness in Financial News and its Relation to Market VolatilityScientific Reports, 2014
- Textual sentiment in finance: A survey of methods and modelsInternational Review of Financial Analysis, 2014
- A Novel Knowledge Network Framework for Financial News NavigationLecture Notes in Computer Science, 2014
- Good debt or bad debt: Detecting semantic orientations in economic textsJournal of the Association for Information Science and Technology, 2013
- Journalists and the Stock MarketThe Review of Financial Studies, 2012
- When Is a Liability Not a Liability? Textual Analysis, Dictionaries, and 10‐KsThe Journal of Finance, 2011
- The Information Content of Forward‐Looking Statements in Corporate Filings—A Naïve Bayesian Machine Learning ApproachJournal of Accounting Research, 2010
- Recognizing Contextual Polarity: An Exploration of Features for Phrase-Level Sentiment AnalysisComputational Linguistics, 2009
- Thumbs up or thumbs down?2001