Adaptation and Performance Evaluation of Large Language Models for Business Related Tasks

Pascal Knoll

PDF

Abstract

The pharmacy business generates vast amounts of text data daily, including manuals, standard operation procedures, guidelines, deviation records, and more. Language models offer a viable route to process this textual information on a large scale. Simply applying a pre-trained language model (based on internet texts) may, however, produce sub-optimal results. The reasons may be routed in business-related slang or a change in word distribution in business-specific corpora compared to the general pre-trained corpora. In this thesis, different pre-trained Bidirectional Encoder Representations from Transformer (BERT) models were adapted to a business-internal text corpus. After obtaining modified models, several company-specific benchmarks are introduced (e.g., text classification, multiple-choice Question Answering (Q&A), and topic modeling) to evaluate the performance of the models. During the investigations, it was found that fine-tuning BERT can lead to a significant performance improvement over the pre-trained BERT model in specific tasks: • Multiple-choice Q&A: 27% accuracy improvement on Boehringer Ingelheim (BI) specific questions (see Table 5.1) • Criticality classification of deviations: 24% improvement of F1 score (see Table 5.2) and 29% of precision after applying a traffic-light system (see Table 5.4). • Moreover, topic diversity, topic coherence, and the Silhouette score were investigated as metrics for evaluating the goodness of the BI internal text clustering pipeline.

Topics
Language Models Benchmarking Transformers Pharmacy Industry BERT
Research Methods
Benchmarking Action Research

Publication Data

Author: Pascal Knoll
Thesis Type: Bachelor's Thesis
Pages: 73
Language: English
About the Author:
Major / Study Program: Information Systems - Data Science
License: CC BY-SA 4.0
Date of Publication: 2023-10-09
Status: Available
Date of Grading: 2023-07-06
Institution: Duale Hochschule Baden-Württemberg Ravensburg (Meßkirch, Germany)
Publication ID: 0x587a1F7f3f94D78e1ee0693C287522b59c159825
The publication ID is the address of the smart contract that recorded this publication on the bloxberg blockchain (how the platform used to work). The link leads to an external website that may become unavailable.

Endorsements

Blockchain Record

The transactions of the smart contract that recorded this publication on the bloxberg blockchain while the platform was in operation (how the platform used to work). Snapshot of the public block explorer taken on 12 October 2026.

# Event Date (UTC) Block Transaction
1 Publication created 2023-10-08 14:35 22339071 0x17cda6da…6fa645ae
2 Endorsement 2023-10-09 11:15 22349541 0x51068b24…4da9cac6
3 Endorser role updated 2023-10-09 12:30 22350189 0x30bdffa1…9fcc96b0
4 Publication published 2023-10-09 12:31 22350195 0x9c7d1544…a09f6506

Thesis Documents and Supplemental Materials

# Description Type Date
1 Thesis Document (with title page) PDF (5.55 MB) 2023-10-09 Download
2 Original Document (without title page, signatures removed) PDF (5.45 MB) 2023-10-09 Download