All articles
  • 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:

Column headers llama2 and azure.openai35short for the one-sentence summary of a call
Llama’s summary switches to English, “Klient volá because of damage caused by gas”, while GPT answers in Czech

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:

Column headers llama2 and azure.openai35short for the one-sentence summary of a call
Llama repeats the instruction “Summarizace téma hovoru v 1 větě:” in its answer, while GPT answers straight away

Llama’s Czech is less fluent:

Column headers azure.openai35short and llama2 for the reason for the call in keywords
The reason for the call from GPT, “Nesplacená platba.” (unpaid payment), and from Llama, “Nebylo mi zaplaceno” (I was not paid)

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.

  1. 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.
  2. 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.

Table of three keywords from calls, the llama2 column beside the azure.openai35short column
Table of one-sentence call summaries, the llama2 column beside the azure.openai35short column
Answers of the azure.openai35short model to one call as separate fields in the index, all in Czech
Answers of the llama2 model to one call as fields in the index, with the summary and the topic of the call both switching to English

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.

Get in touch

A few sentences about what you are working on will help us prepare.

We describe how we handle personal data in our privacy policy.

You can also call us on +420 228 227 418 or email us at info@datera.cz.