WEBVTT

00:00:30.679 --> 00:00:34.820
<v Andreas Welsch>Today, we'll talk about fine-tuning and operating generative AI models.

00:00:35.539 --> 00:00:39.739
<v Andreas Welsch>And who better to talk to about it than somebody who does that actually for a living.

00:00:39.929 --> 00:00:40.609
<v Andreas Welsch>Abi Aryan.

00:00:41.030 --> 00:00:41.489
<v Andreas Welsch>Hey, Abi.

00:00:41.515 --> 00:00:42.679
<v Andreas Welsch>Thank you so much for joining.

00:00:44.269 --> 00:00:46.759
<v Abi Aryan>Thank you so much for inviting me.

00:00:46.810 --> 00:00:50.019
<v Andreas Welsch>Hey, why don't you tell us a little bit about yourself, who you are and what you do?

00:00:51.414 --> 00:00:58.844
<v Abi Aryan>So I am a machine learning engineer who's currently working on building orchestration tools for goal-based agents.

00:01:00.134 --> 00:01:13.414
<v Abi Aryan>I also do some consulting on the side as an ML engineer for very conventional MLOps kind of work, which I've been doing for about a few years now.

00:01:14.135 --> 00:01:28.745
<v Abi Aryan>Outside of that, right now, I'm working on the book and you'll see me pop up in a lot of venture capital meetings every now and then, but only if it's related to large language models.

00:01:29.569 --> 00:01:30.200
<v Andreas Welsch>That's awesome.

00:01:30.200 --> 00:01:32.420
<v Andreas Welsch>Thank you so much for sharing that with us.

00:01:34.640 --> 00:01:39.170
<v Andreas Welsch>It's, I think, the most technical session and episode that we have today.

00:01:39.170 --> 00:01:40.789
<v Andreas Welsch>So I'm really excited to have you on.

00:01:41.209 --> 00:01:45.319
<v Andreas Welsch>Like I said, you come highly recommended from the data community and leaders in the community.

00:01:45.319 --> 00:01:48.079
<v Andreas Welsch>So I'm so excited that's working out today.

00:01:48.109 --> 00:01:48.589
<v Andreas Welsch>Thank you.

00:01:51.304 --> 00:01:56.944
<v Andreas Welsch>And so for, those of you in, the audience, if you're just joining the stream, drop a comment in the chat where you're joining us from today.

00:01:57.064 --> 00:01:59.554
<v Andreas Welsch>Really curious how global our audience is again.

00:02:00.314 --> 00:02:02.664
<v Andreas Welsch>Abi, should we play a little game to kick things off?

00:02:02.784 --> 00:02:03.354
<v Andreas Welsch>What do you say?

00:02:04.104 --> 00:02:04.974
<v Abi Aryan>Yeah, that's good.

00:02:05.694 --> 00:02:06.625
<v Andreas Welsch>Okay, perfect.

00:02:07.284 --> 00:02:15.025
<v Andreas Welsch>So this game is called In Your Own Words, and when I hit the buzzer, the wheels will start spinning.

00:02:15.085 --> 00:02:17.094
<v Andreas Welsch>And when they stop, you see a sentence.

00:02:17.335 --> 00:02:22.045
<v Andreas Welsch>And I would like you to complete that sentence with the first thing that comes to mind in your own words.

00:02:22.525 --> 00:02:28.795
<v Andreas Welsch>And to make it a little more interesting you'll have 60 seconds to do that, in your own words and why.

00:02:29.875 --> 00:02:31.675
<v Andreas Welsch>Are you ready to play"What's the BUZZ?"

00:02:32.754 --> 00:02:33.925
<v Abi Aryan>Yeah, I'm sorry.

00:02:33.925 --> 00:02:37.344
<v Abi Aryan>To disappoint, if I don't do it in 60 seconds.

00:02:39.055 --> 00:02:40.134
<v Andreas Welsch>You can go over too.

00:02:41.365 --> 00:02:43.704
<v Andreas Welsch>Alright, let's get started then.

00:02:44.704 --> 00:02:48.685
<v Andreas Welsch>If AI were a book, what would it be?

00:02:49.074 --> 00:02:50.365
<v Andreas Welsch>60 seconds on the clock.

00:02:51.174 --> 00:02:51.534
<v Andreas Welsch>Go!

00:02:53.004 --> 00:02:53.634
<v Abi Aryan>Harry Potter.

00:02:54.909 --> 00:02:55.419
<v Andreas Welsch>And why?

00:02:55.419 --> 00:02:56.259
<v Andreas Welsch>Why Harry Potter?

00:02:57.549 --> 00:03:07.090
<v Abi Aryan>Oh, because there are so many magical creatures and so many magical spells that are coming out regularly for each of the different animals.

00:03:07.090 --> 00:03:28.995
<v Abi Aryan>We have a different spell and Harry Potter people are popular and they're somehow considered better than muggles or, yes I, don't know what's the ideal word, but there's normal people in India, magicians, and I think in the same way, there're normal people in the industry and AI people right now.

00:03:30.615 --> 00:03:31.544
<v Andreas Welsch>I like that analogy.

00:03:31.544 --> 00:03:32.354
<v Andreas Welsch>That's awesome.

00:03:33.389 --> 00:03:35.710
<v Andreas Welsch>And it seems like there's always a sequel, right?

00:03:35.710 --> 00:03:37.180
<v Andreas Welsch>There's always a next one coming.

00:03:37.750 --> 00:03:43.090
<v Andreas Welsch>So as we're going through the hype cycles and the motions, there's always the next one coming, too.

00:03:43.210 --> 00:03:44.979
<v Andreas Welsch>So I love that idea of Harry Potter.

00:03:45.159 --> 00:03:49.954
<v Andreas Welsch>Maybe going back to something more tangible on the topic of our episode.

00:03:52.414 --> 00:03:59.474
<v Andreas Welsch>Obviously generative AI has been a hot topic for a number of months now this year definitely.

00:03:59.474 --> 00:04:08.204
<v Andreas Welsch>But already since last year with Midjourney and DALL-E and all these remarkable in inventions, and that progress that we've made as an industry.

00:04:08.625 --> 00:04:14.924
<v Andreas Welsch>And now you can get large language models like GPT off the shelf from the likes of OpenAI or Anthropic and others.

00:04:14.924 --> 00:04:16.935
<v Andreas Welsch>And you can integrate them into your applications.

00:04:16.935 --> 00:04:19.120
<v Andreas Welsch>And everybody's trying to figure that out.

00:04:19.240 --> 00:04:25.540
<v Andreas Welsch>And their leaders are asking them go figure out what we can do with this ChatGPT, generative AI type thing.

00:04:26.319 --> 00:04:37.449
<v Andreas Welsch>But I'm wondering, what do you actually do when you need more specific results than what these large generic models can give you that have been trained on vast bodies of texts that's been scraped off the internet?

00:04:37.509 --> 00:04:40.509
<v Andreas Welsch>How can you tailor them to your specific industry or domain?

00:04:42.840 --> 00:04:52.250
<v Abi Aryan>I think something we should ask even before, and it completely depends on who's the audience that we are talking to here.

00:04:52.579 --> 00:04:57.019
<v Abi Aryan>The first question would be: do you really need these large language models?

00:04:57.409 --> 00:05:00.480
<v Abi Aryan>Because they become in pretty expensive.

00:05:01.709 --> 00:05:20.064
<v Abi Aryan>Plus you have reduced interpretability just because of course the models were black box, but there are so many more questions because of the generative nature of these models, which lends to the word interpretability in the first place.

00:05:20.425 --> 00:05:26.444
<v Abi Aryan>That's the first question I would ask: why do you think you need a generative model in the first place?

00:05:26.774 --> 00:05:29.870
<v Abi Aryan>It's not ideal for every use case.

00:05:30.170 --> 00:05:33.170
<v Abi Aryan>It's not ideal for every single industry.

00:05:33.219 --> 00:05:40.509
<v Abi Aryan>Do you have the infrastructure to already think about what are the downsides of it?

00:05:40.509 --> 00:05:44.620
<v Abi Aryan>For example, there are some industries that do require more compliance.

00:05:44.949 --> 00:05:59.370
<v Abi Aryan>If you don't have the end answers to how do you plan to deal with the cons of generativity, and the biggest problem in generativity right now is how do we really evaluate our models?

00:05:59.759 --> 00:06:04.949
<v Abi Aryan>If you don't have an answer to that, then let's not even talk about fine-tuning.

00:06:04.969 --> 00:06:08.480
<v Abi Aryan>Let's not even talk about language models maybe.

00:06:09.319 --> 00:06:11.420
<v Abi Aryan>I know it's my bread butter.

00:06:11.420 --> 00:06:13.040
<v Abi Aryan>I'm writing a book on the topic.

00:06:13.040 --> 00:06:14.750
<v Abi Aryan>But I would really highly suggest.

00:06:15.339 --> 00:06:18.819
<v Abi Aryan>Not to use a generative model just for the heck of it.

00:06:20.949 --> 00:06:22.930
<v Andreas Welsch>I think that's a great suggestion.

00:06:22.985 --> 00:06:35.225
<v Andreas Welsch>First of all, figure out if that is something you need to begin with, or are you just giving in to the hype and just jumping into the bandwagon, because you feel everybody's doing it, or your competitors are doing it, and you should be doing it, too.

00:06:35.764 --> 00:06:37.144
<v Andreas Welsch>I really like that suggestion, too.

00:06:38.214 --> 00:06:40.555
<v Andreas Welsch>Stop for a minute and think, do we really need that?

00:06:42.485 --> 00:06:47.944
<v Abi Aryan>The way I would go about is I would ask two questions: the first question is, why do you need it?

00:06:48.154 --> 00:06:52.685
<v Abi Aryan>Second question is, have you done a cost assessment of these models?

00:06:52.685 --> 00:06:56.194
<v Abi Aryan>And not just basically what is the cost of inferencing these models.

00:06:56.524 --> 00:07:00.170
<v Abi Aryan>But what are the other cost associated with these models.

00:07:00.219 --> 00:07:01.569
<v Abi Aryan>There are a few things to think about.

00:07:01.810 --> 00:07:05.935
<v Abi Aryan>The first thing is whether you do fine-tuning versus prompting.

00:07:06.415 --> 00:07:12.745
<v Abi Aryan>Let's say you choose to do prompting, then who in the team is actually doing prompting in the first place.

00:07:14.425 --> 00:07:20.245
<v Abi Aryan>Because we indirectly create so much dependency on that person.

00:07:20.274 --> 00:07:26.754
<v Abi Aryan>Will it be a data scientist who's doing the prompting versus annotators back in the day?

00:07:27.024 --> 00:07:32.514
<v Abi Aryan>Is that the best use of a data scientist's time to be able to do prompting?

00:07:33.115 --> 00:07:41.165
<v Abi Aryan>Now, every single time you have changes in the API itself or anytime you're updating the model as well.

00:07:41.485 --> 00:07:56.339
<v Abi Aryan>A large work that you've done, or lot of infrastructure that you've built around the prompt itself, which is chain of thought prompting, which is one of the techniques of prompting, might or might not be useful and needs to be rewritten.

00:07:56.699 --> 00:07:58.680
<v Abi Aryan>Is that worth the work as well?

00:07:59.040 --> 00:08:04.319
<v Abi Aryan>And all of those things are comfort cost, because again, you're paying people.

00:08:04.324 --> 00:08:08.670
<v Abi Aryan>Everybody is on a payroll for those many months until you're figuring out.

00:08:10.529 --> 00:08:13.920
<v Abi Aryan>So that's an important question to think of.

00:08:13.920 --> 00:08:27.295
<v Abi Aryan>The second question to think of would be, as there's a cost for evaluation for these models right now, because everything needs to have almost human in the loop, depending on the use case as well.

00:08:27.394 --> 00:08:39.860
<v Abi Aryan>If you're doing copywriting, then I don't think we have that much need for having humans in the loop, other than we have some baselines that are taken care of.

00:08:39.860 --> 00:08:44.779
<v Abi Aryan>The first baseline would be the toxicity reduction.

00:08:46.370 --> 00:09:02.674
<v Abi Aryan>The second baseline would be we do some sort of sentiment analysis on it, and the answers aren't really very strongly political, ideology based, but also they can be depending on who you're serving as well.

00:09:03.184 --> 00:09:07.564
<v Abi Aryan>For example, if the people that are using your platform is mainly journalist, then it's fine.

00:09:08.105 --> 00:09:13.985
<v Abi Aryan>But then the model requires constant, fine-tuning, constant monitoring as well.

00:09:15.875 --> 00:09:21.245
<v Abi Aryan>So all of these things would pile up into cost eventually down the lane.

00:09:21.835 --> 00:09:32.975
<v Abi Aryan>Fine-tuning has a different cost as compared to to the cost of inferencing or the prompting of the model itself, which is almost four times the cost.

00:09:34.235 --> 00:09:42.830
<v Abi Aryan>And unless you have a way to be able to evaluate a model, you don't really know if fine-tuning is working or not.

00:09:44.149 --> 00:09:53.014
<v Abi Aryan>So yes, you're spending that much money and if you don't really know what's the output out of it.

00:09:53.075 --> 00:10:01.235
<v Abi Aryan>And this is a question that we kept asking in the ML industry, which is, let's tie the models back to the business KPIs.

00:10:01.684 --> 00:10:19.330
<v Abi Aryan>So I think the same question of tying the models back to the business KPIs reiterates and justifying that cost before we eventually go into fine-tuning, before we actually discuss there's some benefit out of doing domain specific fine-tuning.

00:10:20.080 --> 00:10:23.960
<v Andreas Welsch>I think that's a great point that you're making especially the cost.

00:10:24.259 --> 00:10:37.575
<v Andreas Welsch>Everybody's so excited about the possibilities and, we want to try this out, we need to try it out, and might overlook also operational cost in the long run, specifically around fine-tuning.

00:10:38.254 --> 00:10:40.985
<v Andreas Welsch>So I think it's important that you highlight that.

00:10:40.985 --> 00:10:47.259
<v Andreas Welsch>And I really like how you've described it, that we need to think more about that as we're venturing into generative AI.

00:10:47.259 --> 00:10:49.419
<v Andreas Welsch>So there's more to it than just calling the model.

00:10:50.649 --> 00:10:50.889
<v Abi Aryan>Yeah.

00:10:50.950 --> 00:10:53.379
<v Abi Aryan>And knowing whether we are doing an experiment.

00:10:53.429 --> 00:11:00.539
<v Abi Aryan>There's some sort of like expectation attached to an experiment versus we think these models are going to change the world.

00:11:00.850 --> 00:11:31.939
<v Abi Aryan>Or we think we should build a large language model just because everyone else is, and somehow model creators would have some sort of moat that others wouldn't.

00:11:32.750 --> 00:11:36.379
<v Abi Aryan>Which is one of the common themes that I've heard from a lot of people.

00:11:36.434 --> 00:11:44.444
<v Abi Aryan>If we are using the OpenAI models versus creating our own models, somehow we're not as sophisticated unless we are building a model ourselves.

00:11:46.049 --> 00:11:46.199
<v Andreas Welsch>Yeah.

00:11:46.259 --> 00:11:51.939
<v Andreas Welsch>So what I'm hearing then is maybe not everybody needs to build their own model or, needs to do the fine-tuning.

00:11:53.069 --> 00:11:58.859
<v Andreas Welsch>But when, should you even think about fine-tuning an LLM and, what are the prerequisites that you see?

00:12:00.329 --> 00:12:07.979
<v Abi Aryan>So I think there's two levels of understanding in this.

00:12:08.279 --> 00:12:14.339
<v Abi Aryan>The first thing is what is your infrastructure like, or who, is the end user?

00:12:15.659 --> 00:12:22.059
<v Abi Aryan>There are use cases where you can use a proprietary large language model out of the box.

00:12:22.059 --> 00:12:39.779
<v Abi Aryan>So for example, you can use GPT-3 to be on your chat bot website if it's just a chat bot which needs some sort of interaction versus if we are really just trying to give it data that can make it domain specific for those ones we have.

00:12:40.169 --> 00:12:48.750
<v Abi Aryan>Chaining tools that would allow us to be able to feed data from our databases for some specific scenarios.

00:12:49.079 --> 00:12:58.719
<v Abi Aryan>And also to be able to save up some cash sheet results wherever you intend on saving your ineffective database to be able to pull up those questions.

00:12:58.809 --> 00:13:01.179
<v Abi Aryan>For example, like FAQ question answering.

00:13:01.459 --> 00:13:08.629
<v Abi Aryan>If you're an e-commerce company, you're not interested in giving answers on who's the president of the country right now.

00:13:08.929 --> 00:13:10.219
<v Abi Aryan>It's, just not relevant.

00:13:12.409 --> 00:13:23.389
<v Abi Aryan>So it's important to have that one distinction, which is do you think you need an out of the box model or do you want to give it more data internally?

00:13:23.689 --> 00:13:27.529
<v Abi Aryan>Now, if you want to give it more data, then what's your use case?

00:13:27.529 --> 00:13:38.839
<v Abi Aryan>If the use case is just question answering, then probably you don't need tons of fine-tuning, if you know what are the kind of questions that you give almost all the time.

00:13:39.959 --> 00:13:45.509
<v Abi Aryan>A lot of people are now exploring using large language models for recommendation systems.

00:13:45.944 --> 00:13:49.814
<v Abi Aryan>Even for those, you don't need extensive fine-tuning.

00:13:50.884 --> 00:13:52.714
<v Abi Aryan>Let's take copywriting.

00:13:52.714 --> 00:13:57.094
<v Abi Aryan>Let's say there's a service that allows you to be able to write college essays.

00:13:58.264 --> 00:14:01.864
<v Abi Aryan>Then that's a very particular use case.

00:14:02.029 --> 00:14:10.370
<v Abi Aryan>That can be trained on a lot of data, and that can require that extensive fine-tuning based on how accurate you want the results to be.

00:14:12.049 --> 00:14:12.469
<v Andreas Welsch>Awesome.

00:14:12.679 --> 00:14:17.649
<v Andreas Welsch>So definitely weigh your options and understand what it is that you're trying to solve for.

00:14:17.654 --> 00:14:23.649
<v Andreas Welsch>Whether it's more of a generic answer or if it's more specific to your domain or to your use case.

00:14:24.129 --> 00:14:28.724
<v Andreas Welsch>I'm taking a quick look at the chat and, I see, we indeed do have a very global audience.

00:14:29.144 --> 00:14:31.364
<v Andreas Welsch>So from Connecticut in the U.S.

00:14:31.364 --> 00:14:35.144
<v Andreas Welsch>to Israel to London, L.A., Tamil Nadu.

00:14:36.524 --> 00:14:37.754
<v Andreas Welsch>Other folks from India.

00:14:37.875 --> 00:14:39.199
<v Andreas Welsch>Thank you for joining us.

00:14:40.039 --> 00:14:44.719
<v Andreas Welsch>If you mention fine-tuning, certainly for certain use cases, it makes sense.

00:14:45.500 --> 00:14:47.929
<v Andreas Welsch>But we also know it's very resource intensive.

00:14:47.929 --> 00:14:49.969
<v Andreas Welsch>It's very cash heavy.

00:14:50.964 --> 00:14:59.509
<v Andreas Welsch>If you want to do that to some extent as well, remember for probabilistic models you would collect data, you would improve the model during the next training.

00:14:59.559 --> 00:15:00.879
<v Andreas Welsch>And, then you push it out again.

00:15:01.239 --> 00:15:05.319
<v Andreas Welsch>How do you do that for our foundation models and for fine-tuned models?

00:15:05.875 --> 00:15:08.754
<v Andreas Welsch>How does it change or what of it maybe even stays the same?

00:15:10.324 --> 00:15:18.519
<v Abi Aryan>I would say there's one key difference with generative models versus discrimative models.

00:15:18.759 --> 00:15:26.559
<v Abi Aryan>With the discriminative models, most of the time if you were not doing some sort of fine-tuning, you weren't really getting any specific results.

00:15:27.309 --> 00:15:37.609
<v Abi Aryan>A lot of effort was really spent on hyper-tuning the parameters to the extent there was almost a level of craziness with it hyper-tuning the parameters.

00:15:38.000 --> 00:15:39.739
<v Abi Aryan>But it depends.

00:15:39.929 --> 00:15:45.989
<v Abi Aryan>Most of their value add wasn't really done from fine-tuning the parameters.

00:15:46.319 --> 00:15:54.839
<v Abi Aryan>Sure, you could get a lame bump in accuracy, if that's generally what you cared about.

00:15:54.839 --> 00:15:58.089
<v Abi Aryan>But that wasn't what made the big difference.

00:15:58.449 --> 00:16:01.899
<v Abi Aryan>The big difference were what were the features that we were looking at?

00:16:02.199 --> 00:16:04.929
<v Abi Aryan>How do we do feature engineering, right?

00:16:04.959 --> 00:16:23.544
<v Abi Aryan>If you've done data collection, you've identified the key features, you understand the correlation as well as causation between different variables itself in the model, then that is where the biggest value is.

00:16:25.074 --> 00:16:34.254
<v Abi Aryan>Once you were past that initial limit, then it was more like, okay, let's think about fine-tuning our models and improve the accuracy of the model.

00:16:34.614 --> 00:16:43.739
<v Abi Aryan>I think fine-tuning was almost always just about optimizing for that 0.1% gain and that wasn't the most important.

00:16:44.339 --> 00:17:01.659
<v Abi Aryan>Sure from a research perspective, from all of us who grew up on Kaggle in a way, we enjoyed that as a practice, but when it came to the real machine learning projects, at least in the industry, that's now a lot of effort was really invested.

00:17:02.924 --> 00:17:17.569
<v Andreas Welsch>Maybe on that note, I'm taking a look at the chat and I see one of the questions here is what are the models that can be used in insurance and maybe that other domain-specific models or maybe that'll answer that addresses different use cases, different domains, different industries.

00:17:18.680 --> 00:17:26.019
<v Andreas Welsch>Is there anything available that you know that's public or how can you maybe customize it based on your industry?

00:17:27.204 --> 00:17:31.160
<v Abi Aryan>So I think there are two kinds of generative models right now.

00:17:31.519 --> 00:17:38.569
<v Abi Aryan>One are the OpenAI models that are more like you can call them general models in a way.

00:17:38.575 --> 00:17:48.815
<v Abi Aryan>Because despite the fact they're trained on a very specific kind of unstructured data and there's a lot of data that they haven't seen, but they're constantly improving.

00:17:48.865 --> 00:17:55.904
<v Abi Aryan>And the second are basically large language models that have been trained on very different data sets.

00:17:55.904 --> 00:18:02.025
<v Abi Aryan>For example, BloombergGPT comes to mind that has been trained specifically on financial data.

00:18:02.025 --> 00:18:07.965
<v Abi Aryan>I've not really seen something which is specifically used in insurance itself.

00:18:09.045 --> 00:18:15.325
<v Abi Aryan>But depending on who the creator of the model is, how much data did they have?

00:18:15.325 --> 00:18:24.955
<v Abi Aryan>Access to a financial model, which is a model that is trained on financial data, is slightly better in performance as compared to a generalized model.

00:18:27.955 --> 00:18:36.075
<v Andreas Welsch>One of the other questions here is: Are there any resources available that lay out the evaluation of the different models that you've described?

00:18:36.085 --> 00:18:41.755
<v Abi Aryan>To be able to evaluate the discriminative models, we had tons of parameters available to us.

00:18:41.995 --> 00:18:48.365
<v Abi Aryan>And the very obvious you are looking at the f1 scores, you're doing some sort of cross-validation.

00:18:48.384 --> 00:18:51.115
<v Abi Aryan>You're looking at the r value.

00:18:51.805 --> 00:18:54.535
<v Abi Aryan>You're looking at the precision, you're looking at the recall.

00:18:54.894 --> 00:18:56.845
<v Abi Aryan>Those, it was very easy.

00:18:57.345 --> 00:19:05.505
<v Abi Aryan>With the generative models, the evaluation is something which is specific to the use case as well.

00:19:05.894 --> 00:19:16.475
<v Abi Aryan>So as of now, if you're seeing the evaluation frameworks out there, there are two kinds of evaluation frameworks that are available to almost everybody on the internet.

00:19:17.015 --> 00:19:27.815
<v Abi Aryan>The first are the evaluation frameworks like Stanford Hymn, which in a way, breaks down these are the parameters that you should be looking at.

00:19:28.235 --> 00:19:32.080
<v Abi Aryan>But it's very generalized as well.

00:19:32.890 --> 00:19:37.360
<v Abi Aryan>And they've compared what is the performance of one versus the other.

00:19:37.779 --> 00:19:44.390
<v Abi Aryan>The second thing is there are also some sort of leaderboards that are a little bit more domain-specific.

00:19:44.410 --> 00:19:45.789
<v Abi Aryan>For question answering.

00:19:47.470 --> 00:19:55.900
<v Abi Aryan>There's this company called AI21 Labs that has created their own leader boards as well.

00:19:56.475 --> 00:20:09.424
<v Abi Aryan>For example, which model does perform there on question answering, but again like a word of caution I'll give is if your model does well on the, so all the evaluation frameworks that are provided there.

00:20:10.380 --> 00:20:28.640
<v Abi Aryan>Our best use to be able to establish some sort of baseline only, you know, if the model is good enough to be able to perform well on question answering, but it doesn't really mean that it will answer well on your specific domain as well.

00:20:29.049 --> 00:20:38.830
<v Abi Aryan>There needs to be more work in terms of domain-specific evaluation that needs to be done on top of the question answering as well.

00:20:39.220 --> 00:20:57.705
<v Abi Aryan>So as of now, evaluation is more like an open question that way, which is like a lot of people are looking at how to evaluate your models and while there are three things that you're technically looking at, which is one is what is the accuracy of the model?

00:20:58.005 --> 00:21:00.765
<v Abi Aryan>The second is what is the inference speed of the model?

00:21:01.065 --> 00:21:04.185
<v Abi Aryan>And third is what is the latency of the model as well.

00:21:05.085 --> 00:21:13.185
<v Abi Aryan>While these are things that you can measure, which is, I would quote unquote put them inside what I would say performance.

00:21:13.275 --> 00:21:26.825
<v Abi Aryan>These are the performance metrics, but outside of performance metrics, there are so many things that need to be taken care of because the next question comes, how do we define the accuracy?

00:21:27.005 --> 00:21:28.894
<v Abi Aryan>What is a good enough inference speed?

00:21:29.005 --> 00:21:35.705
<v Abi Aryan>So on each of these, which is for on accuracy, on inference speed, on latency, establishing some sort of baseline.

00:21:36.799 --> 00:21:38.600
<v Abi Aryan>Is it acceptable enough for us?

00:21:38.900 --> 00:21:48.710
<v Abi Aryan>If we're working with a chatbot and we have a latency and our model does give us an answer in let's say 30 seconds or one minute.

00:21:49.039 --> 00:22:03.685
<v Abi Aryan>That's a very long waiting time when you're interacting directly with the customer versus we are using a large language model to be able to do a knowledge retrieval on a bunch of internal documents where we can wait.

00:22:05.065 --> 00:22:20.965
<v Abi Aryan>The fact that we are able to do natural language prompting on a lot of Excel sheets that we do have or on a lot of PDFs that we do have internally within the organization, the team internally wouldn't mind waiting that much.

00:22:22.700 --> 00:22:28.435
<v Abi Aryan>It depends on who the end user would be and what would be an acceptable level for each of those things.

00:22:28.485 --> 00:22:41.445
<v Abi Aryan>While having a higher latency is almost always preferred, but it doesn't mean that it's always the most ideal solution.

00:22:41.445 --> 00:22:51.360
<v Abi Aryan>Different use cases and different users as well can have very different baselines on each of these things.

00:22:52.430 --> 00:23:05.630
<v Andreas Welsch>I think that again puts it in a very good context, especially if you're familiar with the metrics that you mentioned like the f1, precision, recall, and everything that we've done before generative AI was the big thing.

00:23:05.630 --> 00:23:08.630
<v Andreas Welsch>And then now what I heard you say is make it use case specific.

00:23:09.080 --> 00:23:17.460
<v Andreas Welsch>If it's more end-user focused or more customer-facing, then there might be different expectations regarding latency than if, it's an internal scenario.

00:23:17.460 --> 00:23:23.170
<v Abi Aryan>Maybe I'll say this as well, as of now, there are two kinds of benchmarks that are available to you.

00:23:23.500 --> 00:23:36.970
<v Abi Aryan>The ones are the closed benchmarks, and as we go further maybe, there will be more closed benchmarks as well where you're able to feed your model into the evaluation framework and to be able to evaluate it.

00:23:37.299 --> 00:23:39.549
<v Abi Aryan>And there're open source frameworks as well.

00:23:39.549 --> 00:23:53.490
<v Abi Aryan>So for example, what I really mean is on the proprietary, or the closed ones are something called OpenAI wells, where you're giving out your model, you're training it, checking how your model does perform.

00:23:54.160 --> 00:24:04.720
<v Abi Aryan>And the second are more publicly available benchmarks, which would be things like Helmer, things like Eval Harness which is by Eluther, which are completely open source.

00:24:04.720 --> 00:24:07.690
<v Abi Aryan>And it depends on how you are actually able to use them.

00:24:09.404 --> 00:24:20.620
<v Abi Aryan>The second is from communities and from researchers where you don't have any managed architecture to be able to see everything.

00:24:20.894 --> 00:24:24.340
<v Abi Aryan>It's almost like they've given an evaluation framework.

00:24:24.340 --> 00:24:25.960
<v Abi Aryan>It may or may not be maintained.

00:24:26.330 --> 00:24:29.269
<v Abi Aryan>It may or may not be adapted to your particular use case.

00:24:29.269 --> 00:24:48.860
<v Abi Aryan>The performance might not be that well, but it gives you a way to be able to think in that category, I would say is Stanford Hymn or Eval Harness do fall into that category, but also there's more people looking at different methods as well.

00:24:49.190 --> 00:25:04.370
<v Abi Aryan>So for example, one of the things that a lot of people now are looking at is also some sort of scoring based methods as well to be able to see if the models are performing as well or not.

00:25:06.565 --> 00:25:09.740
<v Abi Aryan>But again there's not a lot of framework.

00:25:09.740 --> 00:25:15.110
<v Abi Aryan>There's not a lot of providers, no open source work in that particular thing.

00:25:15.160 --> 00:25:26.230
<v Abi Aryan>Yes, you have some things which are available, but it's, almost like it may or may not work, so it sounds but it'll give you a way to think about the problem.

00:25:27.100 --> 00:25:27.519
<v Andreas Welsch>I see.

00:25:27.519 --> 00:25:33.910
<v Andreas Welsch>So it sounds like on one hand it's use case specific, but also depending on the frameworks that are available or which ones you choose.

00:25:34.090 --> 00:25:37.690
<v Andreas Welsch>It might be a bit early still to get to something that's standardized.

00:25:38.019 --> 00:25:40.810
<v Abi Aryan>For Elo-based benchmarks, it's very early.

00:25:40.865 --> 00:25:51.644
<v Abi Aryan>What I've really seen is more like benchmarks that are around toxicity detection, that are around sentiment analysis, that are around one of those generalized use case.

00:25:52.245 --> 00:25:56.664
<v Abi Aryan>But I think the Elo-based benchmarks are the only ones that are very domain-specific.

00:25:56.685 --> 00:26:00.855
<v Abi Aryan>But the discipline around that, it's not really developed, yet.

00:26:00.914 --> 00:26:10.085
<v Abi Aryan>I think it would take about six months to about one year for there to be like an established framework for around Elo-based methods.

00:26:10.505 --> 00:26:10.835
<v Andreas Welsch>I see.

00:26:11.674 --> 00:26:14.255
<v Andreas Welsch>So we're getting close to the end of the show.

00:26:14.945 --> 00:26:24.220
<v Andreas Welsch>Thank you so much for sharing all those insights where you see we are with large language models, how you can adapt them, fine-tune them, what changes when you want to operate them.

00:26:24.670 --> 00:26:29.830
<v Andreas Welsch>I was wondering if you can maybe summarize the three key takeaways for our audience today before we wrap up.

00:26:30.890 --> 00:26:37.910
<v Abi Aryan>I would say first is think about whether you really need to use a large language model.

00:26:38.330 --> 00:26:49.055
<v Abi Aryan>The second thing to think about is whether you wanna do fine-tuning versus prompting, which is a bare use case for you.

00:26:49.245 --> 00:27:06.370
<v Abi Aryan>Whenever you can have a chain of thought way of thinking about a problem, it's much better to be able to think about prompting as compared to when you're looking at your data and you realize the function that you're trying to optimize for doesn't really have those very obvious connections.

00:27:06.390 --> 00:27:13.894
<v Abi Aryan>It's a very complex function if you're trying to write the function that you want to optimize for in terms of the inputs and outputs.

00:27:14.195 --> 00:27:16.654
<v Abi Aryan>If it's a simple function, do prompting.

00:27:17.465 --> 00:27:28.865
<v Abi Aryan>If it's a little bit more complex where there's more nuances within the variables itself, then I think fine-tuning is going to be slightly better in terms of performance.

00:27:29.105 --> 00:27:41.495
<v Abi Aryan>Once you've done that, think about how will you evaluate your models and who is the end user for the model and what are the risks that come with any sort of evaluation?

00:27:41.735 --> 00:27:50.440
<v Abi Aryan>So for example, any time that you're evaluating using OpenAI wells, you're exposing your data entirely to OpenAI.

00:27:51.440 --> 00:27:54.620
<v Abi Aryan>And they can use that to be able to train for the models.

00:27:54.890 --> 00:27:57.470
<v Abi Aryan>So you're in a way leaking out your models.

00:27:57.470 --> 00:28:03.470
<v Abi Aryan>And this was brought to attention by Percy Young from Stanford who said this is not ideal.

00:28:05.269 --> 00:28:09.110
<v Andreas Welsch>So, there's also the IP component and data privacy component to attend.

00:28:09.350 --> 00:28:09.799
<v Andreas Welsch>Awesome.

00:28:10.490 --> 00:28:12.170
<v Andreas Welsch>Abi, thank you so much for summarizing it.

00:28:12.170 --> 00:28:16.610
<v Andreas Welsch>Thanks for joining us today and for sharing your expertise with us in such great depth.

00:28:16.825 --> 00:28:24.235
<v Andreas Welsch>I know it's an exciting topic and I wanted to make sure that our joint audience has an opportunity to hear from you and to learn from you.

00:28:24.535 --> 00:28:31.595
<v Andreas Welsch>And especially to go deeper than the"everybody should be doing generative AI and get on the bandwagon." for those of you in the audience.

00:28:32.285 --> 00:28:33.904
<v Andreas Welsch>Again, thank you, Abi for joining.

00:28:36.529 --> 00:28:37.910
<v Abi Aryan>Oh, thank you so much.
