Editorial illustration for Fine-tuning a decision model: what you can change in Laya, Jev, Gemini Decision 1 and OpenAI's Decisions API
AI analysis / Latest briefings

Fine-tuning a decision model: what you can change in Laya, Jev, Gemini Decision 1 and OpenAI's Decisions API

Of the four decision models you can use today, only Laya can be fine-tuned. Jev, OpenAI's Decisions API and Google's new Gemini Decision 1 serve the same weights to everyone, and you shape them through the questions instead. Either way, retraining is not the hard part. The labelled examples are: where they come from, how they are split, and what their probabilities are fitted on.

By TerraNet Technologies13 min read13 sources
Editorial illustration for Fine-tuning a decision model: what you can change in Laya, Jev, Gemini Decision 1 and OpenAI's Decisions API
fine tune laya
jev fine tuning
gemini decision 1 fine tuning
decisions api calibration
decision model calibration
platt scaling
temperature scaling
classifier training data
system one model

Watch

Fine-Tuning Decision Models: What You Can Actually Change

Listen to this article

~13 min spoken. Keeps playing while you work in another tab.

Updated 18 November 2026: adds Gemini Decision 1, launched on 11 November, and OpenAI's Decisions API, now generally available. Also covers Laya's fit() step, which trains a small layer on top of the model in seconds without retraining it.

Our explainer on Jev and Laya ended on a pattern: a decision model settles the confident cases, and an LLM handles the rest. That pattern only pays if the decision model is right often enough on your data, and knows when it is not. Out of the box, none of them guarantees either. Laya's base checkpoint scores below the most-common-answer baseline on the benchmark its makers chose, and Jev's calibration is being argued about in public. Google says Gemini Decision 1 has the lowest calibration error of the models it tested, but it shows that only in its own launch charts. OpenAI's documentation makes no claim about calibration at all.

So this is about the work between choosing a decision model and trusting it: what each one lets you change, what the examples look like, where they come from, and the mistakes that make a model look better than it is.

Four levers, and which model has which

People say "training" for several different things. It helps to keep them apart, because they cost different amounts and change different things.

Lever What it changes What it needs Laya Jev Gemini Decision 1 OpenAI Decisions API
Question design Which answer it picks Your judgment, and a test set to check it Yes Yes, the main lever Yes, the main lever Yes, the main lever
Recalibration How far to trust its confidence A few hundred labelled examples Built into the library On your side On your side On your side
A small model on top Which answer it picks, on your data Dozens to hundreds of labelled examples Built in: fit() On your side, as TypeSafe recommends On your side On your side
Fine-tuning Which answer it picks, and how well Thousands of labelled decisions and a GPU Yes No Not offered Not offered

Only the last lever changes the model's own weights. The first three leave it alone, which is why they are open to every model, hosted or not.

The hosted three: you shape the questions, not the model

TypeSafe's documentation is explicit: Jev "is not fine-tuned or LoRA-adapted with customer data", and the same weights serve every account. Google's launch post and its getting-started codelab for Gemini Decision 1 say nothing about tuning, and OpenAI's Decisions API guide doesn't mention it either. The customisation all three describe is the same: the question you ask and the descriptions you give each answer.

The request shapes differ only in their names:

  • Jev: reference material goes in the state, and domain rules in each question's instructions and criteria.
  • Gemini Decision 1: each question has instructions, and criteria that describe each option or each level of a score.
  • OpenAI: each question has instructions, and each option a value and an optional description. The model behind it is gpt-6-luna.

The most effective change is to break a broad judgment into narrow questions and combine the answers in your own code. "Should this refund be approved?" is one hard question. "Is the order older than 30 days?", "Does the customer say the item arrived damaged?" and "Has this customer had a refund this month?" are three easy ones, and your code can apply the policy to the answers. A decision model is much better at narrow questions than broad ones, and your policy lives in code you control instead of a prompt you hope it follows. Google's codelab makes the same point: it is easy to confuse "sure about the category" with "safe to approve automatically", and separate questions keep the two apart.

Beyond that, TypeSafe recommends training a small classical model of your own downstream of Jev. You feed Jev's probabilities in as features and fit the small model on your labelled outcomes. That works the same way with Gemini's or OpenAI's probabilities. You are not changing the hosted model; you are learning how to read it.

Recalibration: the step nobody should skip

A model is calibrated when its confidence means what it says: of all the answers it gives at 0.8, about 80% are right. TypeSafe and Convai both train for this, with the method they call RLCD, which rewards probabilities that match how often the model turns out to be right. Google says Gemini Decision 1 returns calibrated probabilities but has not described its method.

The catch is in "turns out to be right" - on which data? A critique published in September argues that Jev cannot be calibrated for everyone at once: calibration holds on a particular mix of data, and a single model returning the same probabilities to every customer cannot match every customer's mix. Its author reports Jev giving 0.92 for heads on a coin the prompt said was fair. The same failure shows up in Laya, which one review reports scoring 0% on Khmer text at 95% confidence. The argument applies just as much to Gemini and OpenAI, which also serve one set of weights to everyone. A probability is only calibrated on data like the data it was calibrated on. That is why OpenAI's guide tells you to set thresholds from labelled examples from your own application, and why Google's codelab leaves the cut-off to your code.

The fix is cheap and it is the same for all four: fit the confidence to your own data. Take a few hundred examples you have labelled, run the model on them, and fit a simple correction from the model's scores to how often it was actually right. For a yes-or-no question that is usually Platt scaling, a small logistic curve. For questions with several options it is temperature scaling: one number per question type that softens or sharpens every probability. Neither changes which answer the model picks. Both change how far you should trust it, and your threshold is built on that. The critique's author suggests a few hundred labelled examples can be enough.

Laya: two ways to train it

Laya is the one you can actually change, and its library offers two ways to do it.

The quick one: fit()

Laya's library has a step that sits between recalibration and fine-tuning. agent.fit(rows) takes labelled examples, each with a state, the questions and the right answers. For each question it trains a small logistic layer on top of Laya's frozen features, in seconds and without touching the model itself. It is the same idea as TypeSafe's downstream model, built in. Two safeguards come with it:

  • A layer is only used if it helps. It is kept only if it beats chance under cross-validation, and only used if it also beats Laya's own answer on the same rows.
  • A quarter of the rows is held out for calibration. On those, it fits three numbers per question:
  • a temperature;
  • a threshold that makes the set of likely answers contain the right one 90% of the time;
  • a review line, set where precision holds at 0.95.

The output is a route of "auto" or "review", and the README's advice is to gate on that rather than on a raw confidence number. Its example accepts as few as 35 rows. It also says that a route you can act on needs a few hundred.

The full one: fine-tuning on a free GPU

For a bigger change, Convai publishes the recipe as a notebook that runs on Kaggle's free pair of T4 GPUs. It fine-tunes the 421M-parameter English checkpoint on the training split of a public benchmark, typed-decisions: 1,200 cases holding 6,000 decisions across four workflows. The workflows are agent-trace observability, customer service, invoice processing and security incidents. It then evaluates on the benchmark's separate 400-case test split. The model card puts the original training at four to five hours, and the current notebook says the run takes about four to six minutes on both GPUs. Either way, compute is not the obstacle.

The result is the jump our explainer quoted: from 0.362 accuracy for the base model to 0.766 after fine-tuning, on 2,000 decisions it had not trained on. That is a big improvement from a modest amount of data, and it is the strongest argument for Laya.

Each training case has the same shape as a request at run time:

  • a state: a JSON record of the ticket, invoice or trace;
  • a set of questions, each with a type and a short description of every option;
  • the answer to each question.

The notebook trains with RLCD: the model proposes a probability for each option, and a proper scoring rule rewards it for how close that was to the right answer. It is also pulled towards the labeller's own probabilities. The notebook then fits one temperature per question type, on a slice held out from training, and saves the model.

The loop: label, split three ways, train, calibrate, then set the thresholdA loop of five steps. Collect real inputs and label them; split the labelled examples into train, calibrate and test sets; fit a layer on top of Laya or fine-tune it on the training set, or, with Jev, Gemini Decision 1 or the OpenAI Decisions API, which cannot be fine-tuned, improve the questions instead; fit the confidence on the calibration set; choose the threshold on the test set and run the two-stage pattern. A dashed arrow returns from the running system to the first step: escalated cases come back with answers and become new labelled examples.The loop: label, split three ways, train, calibrate, thenset the thresholdescalated cases come back with answersCollect andlabelReal inputs,labelled bypastdecisions, ateacher LLM,or people.Split threewaysTrain,calibrate,test. Neverfit or teston what ittrained on.Train orreshapeLaya: fit()or fine-tune.Hostedmodels:improve thequestions.Fit theconfidenceTemperatureor Plattscaling, onthecalibrationset.Set thethreshold,run itOn the testset: shareclearedagainstaccuracy.Then keepmeasuring.The calibration and test sets are held back before training starts. Fitting the confidence on training datamakes a model look more certain than it is.TerraNet Technologies · terranettechnologies.com

The numbers behind this chart

Step Model Does Hands off to
1. Collect and label Your data, a teacher LLM, or people Gathers real inputs and records the right answer to each typed question The split
2. Split Your code Holds back a calibration set and a test set before any training Fine-tuning, with the training set only
3. Train or reshape Laya (Jev, Gemini Decision 1 and OpenAI cannot be fine-tuned) Fits a layer on top of Laya or retrains it on the training set; with a hosted model, the questions are improved instead Calibration
4. Calibrate Your code Fits temperature or Platt scaling on the calibration set Threshold choice
5. Threshold and run Your code Picks the threshold on the test set and runs the two-stage pattern New labelled examples from escalated cases

Where the labels come from

This is the hard part, and it is worth being honest about what the benchmark's labels are. The model card says they came from a teacher: a reference model that answered every question, whose answers became the ground truth. The card also reports that the teacher agreed with itself only 73.5% of the time. Laya's 0.766 means it matched a noisy teacher more often than the teacher matched itself. That suggests it learned the task's pattern rather than the teacher's noise, but it doesn't measure how often Laya is right.

For your own task, labels come from three places, usually in this order:

  1. Decisions you have already made. Tickets that were routed and resolved, comments a moderator removed or kept, invoices that were paid or disputed. This is the best data you have, because the label is what actually happened. Check that past decisions were right, and that the mix of cases still looks like today's.
  2. A teacher model. Have a strong LLM answer your typed questions over a large sample of real inputs, and train on its answers. This is how the benchmark was built, and it is how most teams without years of history will start. The student inherits the teacher's mistakes, so the teacher should be the best model you can afford, and asked the same narrow questions the student will be.
  3. People. Slow and expensive, and irreplaceable for one set: the examples you test on. A test set labelled by the same teacher as the training set can only tell you how well the student copies the teacher.

The same labels serve every model in this article. With Laya they train and calibrate it. With the hosted three they calibrate it, train the small model on top, and tell you whether a rewrite of a question helped.

Once the two-stage pattern is running, it produces labels by itself. Every case the decision model sends up to an LLM comes back with an answer, and so does every case the LLM sends to a person. Those are exactly the hard cases, and they are the most valuable examples you can feed the next round of training.

The mistakes that flatter a model

Fitting the confidence on the training data. Until late September, Laya's own notebook fitted its temperatures on a slice of the training set. A model that has just been trained on those examples is already confident and right about them, so the fitted temperatures barely moved: [1.0148, 1.0374, 1.0575], all within 6% of doing nothing. The notebook now holds that slice out. The published fine-tune has not been refitted, and its card still says to "treat its confidence as uncalibrated". Its calibration error on the benchmark is 0.213, against 0.144 for Jev. If Convai's own team made this mistake in public, assume you will too. Split your data three ways before you start: train, calibrate, test.

Testing on the benchmark you trained on. The 0.766 is on the benchmark's own test split, drawn from the same four workflows as its training data. The card warns that the checkpoint is a specialist, and to expect it to behave like the base model, or worse, on anything else. The only number that matters is on your data.

Letting a hosted model change under your thresholds. A threshold fitted to one version of a hosted model is fitted to that version. Jev 1.14 arrived on 14 October, and the jev-latest alias now points to it. TypeSafe's documentation says that if you have tuned confidence thresholds against one version, you should send that version's ID instead of the alias. Do the same with any hosted model that offers a version ID, and refit before you move to a new one.

A test set too small to tell you anything. At 80% accuracy on 300 test examples, the uncertainty is about plus or minus 4.5 percentage points. That is fine for deciding whether a model works at all, and too coarse to tell two close fine-tunes apart. Count your test examples per question, not per case.

Many options at once. Laya's card says to keep choice questions under about 20 options, while Gemini Decision 1 accepts up to 255. Accepting them is not the same as answering them well. If a question has 77 possible answers, splitting it helps more than fine-tuning: a question for the department, then one for the intent within it.

Choosing the threshold

Only after calibration does the threshold mean anything. Run the calibrated model over the test set, and for each candidate threshold look at two numbers: the share of cases that clear it, and how often those cases are right. Raising the threshold makes the decision model more accurate on fewer cases, and sends more of them to the LLM behind it. Pick the point where the accuracy on the cleared cases is what your business can live with, and see how much traffic that leaves for the LLM. OpenAI's guide frames the same choice as the cost of a false positive against the cost of a false negative. Laya's route makes this choice for you once it has been fitted, at a precision of 0.95. Then keep measuring, because the mix of your data will move and the fit will drift with it.

Is it worth it for you?

The work is front-loaded: the labelled examples, the three-way split, the calibration fit and the threshold. It pays when the decision runs thousands of times a day and each run to an LLM costs real money or real latency. Which model you choose changes less of this work than you might expect. A hosted model saves you the GPU and the serving, and Laya lets you change the model itself. Either way, you need the same labelled examples, and they do most of the work.

Our own case is a useful counterweight. Journal Mosaic's comment moderation is exactly the kind of narrow, short-text decision these models are built for, and we already have a teacher: the LLM that checks every comment today returns a verdict a smaller model could learn from. What we don't have yet is the volume to justify running, calibrating and monitoring a second model. So for now the LLM stays. Well before training anything, our first step would be to keep each verdict alongside the comment and what a moderator later decided about it. That is probably the right way for most teams to start: record your decisions in a shape a decision model could learn from, long before you train one.

AI Tools

    Fine-tuning a decision model: what you can change in Laya, Jev, Gemini Decision 1 and OpenAI's Decisions API | TerraNet Technologies