← All AI Engineer talks

AI Engineer World's Fair 2026

Your Fine-Tuned Model Is Tech Debt: A 50x ROI House of Cards

About this talk

Lease End senior data scientist Dan Bjornn describes replacing a retrieval-based customer-intent workflow with a fine-tuned model that reportedly generated $12 million in revenue at 50x ROI, while accumulating operational debt through labeling, synthetic-example generation, retraining, customer-facing classification failures, and vendor lock-in. His team rebuilt around a model-agnostic agentic framework, deployed changes as Markdown files in Amazon S3, accepted higher per-message API costs, and regained flexibility to use providers including OpenAI and Anthropic. He argues that fine-tuning should be a last resort when frontier models cannot solve the problem.

Chapters

  1. 0:00Lease End, customer messaging, and retrieval-based intent classification
  2. 1:46Fine-tuning, evaluation, and the reported $12 million return
  3. 4:27Misclassified appointments, customer impact, and retraining overhead
  4. 10:52Architecture lock-in and rebuilding with an agentic framework
  5. 13:34Higher API costs, provider independence, and when fine-tuning is justified

Talk transcript

  1. 0:00

    [outro jingle] All right. Hello, everybody.

  2. 0:16

    Thank you for coming. I'm Dan Bjornn. I'm a senior data scientist at Lease End. Lease End, we connect people who are coming to the end of their auto lease with financing, uh, options so that they can buy out their lease and keep their car.

  3. 0:33

    Now, as part of this, uh, we, uh, built a, an LLM-based application in late twenty-twenty-four to help our customers connect with, uh, with our sales team. This application allowed them to send messages through text.

  4. 0:51

    Uh, they could ask questions about the sales process. They could schedule calls. Uh, they could get reminders, all of this stuff. Our first solution used a workflow-based approach, uh, built on top of, uh, a RAG system, where we searched a vector database of messages that we had already seen and classified with the customer's intent.

  5. 1:15

    So, for example, uh, a message saying, "Call me tomorrow," would be classified as the customer wants to, uh, wants to talk later. A message saying, "I've got time now," would be classified as, uh, the customer wants to talk right now.

  6. 1:33

    Uh, this has worked, but not super amazing. There's a lot of nuance in, in messages and, and conversation, and this RAGs approach just couldn't quite pick up on that nuance.

  7. 1:46

    And so we started to look for, uh, for new options to improve this. And naturally, being a data scientist, my first thought was, "Hey, let's start fine-tuning." This seemed like a fun thing to do, and I was sure that this was the right call.

  8. 2:01

    Um, there's a few reasons for that. First of all, uh, we need a better accuracy. Uh, our entire system, uh, was built upon us getting the user's intent correct.

  9. 2:14

    Did they want to talk now? Did they wanna schedule a call? Do they want to opt out? All of this hinged on that decision, and so we needed to make sure that we got that first and foremost.

  10. 2:25

    Next, uh, we could use smaller models with fine-tuning, and so this would lower the cost and also lower latency. So this was really important for us because we were, uh, responding to thousands of messages a day in real time, and so it, it, uh, would help us scale a lot.

  11. 2:46

    Then next, like I said, we were classifying the intent of the user, and so this was a very narrow, structured task that we were trying to do, and so it lent itself very nicely to supervised fine-tuning.

  12. 2:58

    Uh, we would bucket, uh, that conversation in one of six different categories, and the model would learn the differences between those. Uh, so seemed like a great option there.

  13. 3:10

    Lastly, uh, I believe that this would help us have a little bit more control over our destiny with the, the model providers. Uh, the idea was that we had the data, and all we would need to do is pass that into a new model, go through the fine-tuning process, and we could get similar results no matter, uh,

  14. 3:33

    what we decided to use, so we could be model agnostic.

  15. 3:38

    So this was the approach that we took. Um, and I built a pipeline to collect examples, run LLM-as-judge, uh, classifications to label our data. I'd, uh, manually review that, create holdout sets, go through the fine-tuning process, check my metrics.

  16. 3:58

    This was a data scientist's dream. And, uh, the numbers sure helped. Within a year, this application had helped us bring in twelve million dollars of revenue at a fifty X ROI.

  17. 4:11

    Um, it was pretty awesome. But, uh, the whole time, it was quietly accumulating debt underneath that we didn't see. So I wanna show a couple examples of how this application could get things wrong.

  18. 4:27

    Uh, first of all, uh, the confused confirmer is a situation where, um, when customers set up an appointment with a sales rep, we send them a confirmation message to let them know that it's been scheduled and give them the details of that.

  19. 4:44

    Uh, so a conversation may look like this.

  20. 4:48

    We reach out and say, "Hi, Tracy, just confirming your Lease End call with your advisor is set for Thursday at two PM. We'll call you then." Tracy then sends us a message back saying, "Sounds good."

  21. 5:01

    And then our LLM responds with, "Great. I'm calling you right now." Uh, it's not what we want. We just confirmed a me- an appointment for a following day, and then all of a sudden we start calling them.

  22. 5:14

    This led to frustrated customers and some missed opportunities. Uh, the next one, um, I've come to lovingly call the overeager puppy. Um, the, the conversation looks like this. So first, "Hi, James.

  23. 5:30

    This is Alex with Lease End reaching out about your upcoming lease maturity." James then says, "Hi, good morning." And,

  24. 5:40

    "Good morning, I'm giving you a call." Um, just like a puppy that gets so excited that somebody's giving it attention, our model decided to, to give a call right there.

  25. 5:53

    Um, obviously, this is not what James wanted. This actually did happen in production. Um, very embarrassing there.

  26. 6:01

    Uh, but this is a-- these are a couple examples of, of where it went wrong. And, and don't get me wrong, the, the app did well. The revenue numbers show that, that it was working, but it could also mess up pretty spectacularly.

  27. 6:17

    Um, the big issue wasn't how to fix it, but how to make it, the fix manageable. The, the fine-tuning process was pretty complex. Uh, first, we needed to gather examples of the problems that we started to see.

  28. 6:34

    Um, then we needed to ask ourselves, uh, do we have enough examples for, uh, to go through fine-tuning? If not, we synthesized those examples. Uh, we passed it through an LLM.

  29. 6:48

    We created some, some possible examples there. We'd have to validate those, which was a very manual process, uh, because we wanted to make sure it had the best training data possible.

  30. 6:59

    And then once we had enough, uh, we labeled those with, uh, the categorization bins, and we validate- validated those through a manual review. Surprisingly, the fine-tuning process was the shortest part of all of this.

  31. 7:14

    Uh, it normally took about an hour, depending on the size of the data that we had. But, uh, we never got it on the first iteration. Uh, normally what happened was we would, uh, we would fine-tune, and we'd evaluate this, and, uh, we fixed the problem that we were just trying to solve, but then we caused regressions

  32. 7:36

    in other things. And so, this turned into kind of a whack-a-mole process where we would solve something new, but then other old issues kept popping up that we had to, to whack down.

  33. 7:47

    Um, this whole process took about a week to gather the data, label everything, go through the fine-tuning process and iterate, and then deploy. So, it was costly. Um, therefore, we needed to triage all of these issues that we ran into.

  34. 8:04

    We asked ourselves three questions before a- we did any, any retraining. How frequent is the issue?

  35. 8:12

    Is it something that customers are seeing every day? Is it one-off? Um, one big exception to this was if it was hurting the customer experience too much. So, for example of this would be, uh, somebody repeatedly stating what their, uh, their preference for a call time is, and then the, um, the model ignoring that.

  36. 8:36

    Another one would be a customer scheduling a call. We tell them that we've scheduled it for them, but we don't return the payload in, in the proper way. And so, the, this call never gets scheduled, and so we don't follow up with them.

  37. 8:51

    So, these kinds of things needed to be fixed right away. But before we did that, uh, we asked the last question. Is there anything that we can do in order to prevent a retrain?

  38. 9:02

    Can we have some kind of a band-aid fix to get out there so we don't have to go through a whole week-long process, uh, for one or two issues?

  39. 9:11

    And so, we, we ranked our own bugs, um, based on how much customer pain we could tolerate at the moment. Um, so not a great situation to be in with a production system.

  40. 9:23

    This led to what I've come to call the calcification tax. Uh, the more we used the model, the more rigid everything became. This manifested in a couple different ways.

  41. 9:35

    First, we were locked into our model. You remember when I said that, uh, fine-tuning would give us, uh, more freedom in what model we did? That was not the case.

  42. 9:47

    Um, within providers, there's nuance between one model version to another, and so that changes the, the training data that you need to provide it. Um, across model providers, uh, it's extremely different.

  43. 10:02

    The structure of the data you need to pass to it could be different, the amount of the training data to get good results, the way to interact with the training interface.

  44. 10:13

    All of this caused a lot of complexity, and so it was just too costly for us to switch. And so, um, to-- we kept it the same model for consistency because we already had a lot to do with, uh, with each retraining process, and we couldn't afford to s- uh, upgrade the model.

  45. 10:34

    So, uh, the other way that this locked in was architecture. Uh, we built this app in, uh, late 2024, uh, when workflows were kind of the, um, gold standard if you wanted good, uh, production results.

  46. 10:52

    And, uh, the AI world moves very fast, and we couldn't adapt to that because we were so locked into this, just trying to keep it running, and we couldn't take advantage of the new architectures, um, and, and improve performance that way.

  47. 11:11

    So earlier this year, I had an aha moment. Um, we started using Claude Code for our coding tasks, and I noticed that we never needed to change the model depending on what task we were using.

  48. 11:27

    Um, we just changed the skill, the resources that we passed it, the context. Um, you drop in the better, better context, you get better results. And I thought, "Why can't we do this with our messaging app?"

  49. 11:43

    Um, this was obviously difficult for me to admit because I was the champion for fine-tuning. And, uh, luckily, we were able to piggyback on a project that was already happening.

  50. 11:55

    Um, and so we migrated our workflow approach to a series of skills, tools, and resources that the skills could, could load into or load up, um, and get that context.

  51. 12:09

    And so we pushed this as one of our first production tests of our, our new agentic framework that, that was being built already.

  52. 12:18

    Now, uh, I want to compare the process before and after our rebuild. Uh, before, we already went through the, kind of the training cycle, but there was this triage cycle beforehand where we needed to make sure that we had reached a critical mass of problems before we would even s- attempt to, uh, fine-tune again to improve everything.

  53. 12:43

    Like I said, this took about a week, so it was a long process, costly. Uh, after the rebuild, um, it was a simple process of you find a problem, you adjust the sym- system prompt or the skill that was affected.

  54. 13:00

    We validated performance on a curated set that we had been collecting over the time that this was in production. We iterate a few times, and then we deploy that simply by uploading MD files to an S3 bucket.

  55. 13:14

    Um, this whole process from discovering a problem to deploying the fix, we reduced down to less than an hour. So it extremely improved all of this, and we could be far more reactive, give our, our customers way better performance or better experience there.

  56. 13:34

    Now, I'll be honest, it did cost us a little bit more per message. We were using better models, um, so the API costs were a little higher. But

  57. 13:46

    accuracy went way up. I said before that accuracy was the key to, to getting all of this right, um, and we did that. Accuracy, uh, was far better with this than it ever was with fine-tuning.

  58. 14:00

    Um, next, like I said, we reduced our, uh, our fix process from days down to minutes.

  59. 14:09

    Next, we were able to unfreeze our model and finally get that freedom from a vendor that we never had with fine-tuning. Um, the-- Our agentic framework was built, uh, model-agnostic, so we could use OpenAI, we can use, uh, Anthropic, we can use any other model that we want.

  60. 14:27

    The important part is the context that we're providing to that model. And then lastly, while it cost us a little more per message, the total cost went down because we were spending far less time trying to keep it up and running and fine-tuning to, uh, to keep it working properly.

  61. 14:49

    So before you fine-tune, I'd ask you, can you cross your reason off of this list? So I thought we would get better accuracy. Uh, the rebuild beat the fine-tune model.

  62. 15:03

    Um, I thought we would get lower cost at the volume we were doing. Um, I was looking at the wrong costs. We, we paid more per message, but the total cost ended up going down with our rebuild.

  63. 15:15

    Lower latency, we, we did see marginal gains on the- these smaller models, but they were so small that in practice it really didn't make any difference.

  64. 15:26

    And then maybe you've got a narrow or structured task. Our textbook case still became tech debt. Uh, and lastly, vendor control. It's not as simple as just plugging the data in.

  65. 15:40

    The other two situations where you, you might have privacy and data control, or you need some offsign- offline solution, I would say this, these are the situations where a fine-tuned model may be useful, but you need to be cautious.

  66. 15:57

    There are other solutions out there, um, but, um, you need to make sure that it's not, uh, not causing issues in the long run. So finally, fine-tune only when you literally cannot call a frontier model, and even then, your decision still has to beat the, the tax.

  67. 16:18

    Thank you. [audience applauding] [outro music]