- EMMA
- Data analysis
Llama-2-70b vs. GPT-3.5-turbo
4 minute read
A comparison of large language models (LLMs) on transcripts of phone calls
Summary
- We compared Llama-2-70b and GPT-3.5-turbo on transcripts of contact centre calls from insurance, from a one-sentence summary of the call to keywords.
- Without instructions and a system prompt Llama gave inconsistent outputs, and even with them roughly a fifth of its answers were unusable.
- Without fine-tuning, GPT-3.5-turbo is somewhat better suited to analysing transcripts, while Llama-2-70b has potential but needs more time to tune the prompt.
We have been working on the use of LLMs in content analysis for some time, so in the following article we focus on a comparison of two major players among large language models, Llama-2-70b and GPT-3.5-turbo, and their use in analysing contact centre communications. Our input data were transcripts of phone calls between contact centre agents in insurance and customers (questions about paying a premium, advice on new products, insurance claims and so on).
From the LLMs we expected, for example, a one-sentence summary of the call (summarisation), extraction of keywords, and identification of the topic or of the reason the communication took place. Our aim was to compare the reliability of the models’ answers, both in form (standardising the output for further aggregated use) and in content (keywords, topic of the call, summary). We also wanted to find out how much time it takes to reach relevant outputs.
Methodology
To compare the selected models, we sent requests including the prompt through the API and parsed the responses received so that the answers ended up in the index as separate fields. Thanks to this parsing into the index, it was then easy to compare and evaluate the answers of the two models against each other.
Our testing was done on a small sample of data, so it is more a qualitative than a quantitative comparison, but it still gave us indicative information about how the models behave.
At the start the same prompt was used for both models, and we then tuned it step by step. The first versions of the prompt contained simple questions and the content of the transcript itself. In later versions we gradually added parameters in the form of instructions [INST] and a system prompt <<SYS>>. GPT was able to answer even without these parameters, but without them Llama gave very inconsistent outputs that could not be parsed and used further in aggregate. Prompting for Llama-2-70b struck us as more technical, that is, more complicated when writing all the instructions needed to get a usable output. GPT is more intuitive when building the prompt, and the required outputs are easier to obtain.
Examples of the qualitative difference between the models
The Llama2 model was instructed to answer in Czech only, yet in several cases it gave an answer that switched from Czech to English:


GPT had no problem with the output format, whereas Llama did. Sometimes it repeats part or all of the instruction from the prompt in its answer:


Llama’s Czech is less fluent:


Results
We put several questions about the call transcript into the prompt. Below we give our assessment of two of them: the summary of the call and its keywords.
- Summarisation:
Llama-2-70b occasionally jumps into other languages, although the instructions explicitly said to answer in Czech. This may also be because the GPT model (opens another website) contains roughly twice as much text in Czech as Llama (opens another website). GPT-3.5-turbo is better at consistency in the form of its answers; otherwise the results are relatively comparable. - Reason for the call - keywords:
GPT-3.5-turbo gives slightly better outputs (in the content and form of its answers), but Llama-2-70b is also at a solid level.
Judge for yourself below.




Conclusion
Our testing showed that, without fine-tuning or more complex prompt tuning, the GPT-3.5-turbo model is somewhat better suited to analysing phone call transcripts, mainly thanks to the better consistency of its answers and more efficient writing and processing of the prompt. Put simply, better results can be reached with it faster and more easily.
Even after using more complex instructions and system prompting, roughly a fifth of the answers from Llama-2-70b were unusable, whether in form or in content.
Nevertheless, Llama-2-70b has the potential to achieve good results; it just needs more time and effort in setting up the request and the whole process than we were willing to devote to it in this testing. It is a matter of tuning the prompt or of using fine-tuning, which is generally recommended.
On the basis of the above, we are preparing further testing and comparison using fine-tuning. We already have the llama2 model deployed on-premises on an NVIDIA DGX Station A100.
