A Fine-Tuned Large Language Model for Domain-Specific with Reinforcement Learning

Amira Shazleen Aminuddin,Amelia Ritahani Ismail,Afiqa Nurul,Noor Azura Zakaria,Wafa Haussain Nasser Fadaaq
DOI: https://doi.org/10.1109/ICCIT62134.2024.10701208
2024-08-07
Abstract:Large Language Models (LLMs) like GPT-3 and BERT have significantly shown advancement in natural language processing by providing robust tools for understanding and generating human languages. However, their broad but shallow knowledge across many domains often leads to less effective performance in domain-specific tasks, where detailed and special-ized knowledge is needed. To address this limitation, this paper investigates the effectiveness of fine-tuning LLMs for specific domains. The approach incorporates reinforcement learning to integrate user feedback, allowing the model to dynamically adjust and refine its responses. This will ensure the model adapts iteratively, improving communication and interaction with users. The fine-tuned model’s performance is evaluated using two domain-specific datasets—medical and dental. Evaluation metrics such as Levenshtein distance and cosine similarity are used to assess the textual accuracy and semantic relevance of the fine-tuned model. The results from the dental the medical datasets indicate a low level of textual differences and strong semantic alignment, respectively. These suggest that the fine-tuned model effectively processes and preserves the integrity of domain-specific content with the potential of fine-tuning LLMs to enhance their applicability in specific domains.
Computer Science
What problem does this paper attempt to address?