LIVE · Thursday 3 December

Fine-Tuning a Decision Model From Expert Feedback: Labels, Preference Pairs, Costs and Hard Rules

Expert corrections, rankings, error costs and prohibitions each call for a different update. Here is how to map each one, train an option scorer with open code, and prove the gain.

By Surya13 min read

To fine-tune a decision model from expert feedback, turn each kind of feedback into the update that fits it. Corrected answers become supervised labels, and "B is better than A" judgments become preference pairs. Unequal error costs change the loss or the decision threshold, while prohibited actions stay as rules that the application enforces. Neural fine-tuning is only one of these updates, and expert agreement with the model is not proof that its decisions got better.

Each type of expert feedback maps to a different update

The clearest framework comes from "Perspectives on incorporating expert feedback into model updates" by Valerie Chen and colleagues, published in Patterns on July 14, 2023. It sorts feedback along two axes. The first is the level of the feedback: conceptual guidance about the whole domain, or a judgment about one case. The second is what the feedback changes: the dataset, the loss function or the set of allowed model parameters.

That framing makes one point plain. Fine-tuning a neural network is not the only way to act on what an expert says. The paper describes cost-sensitive retraining, constraints added to the training objective and direct edits that work "without requiring retraining of the model on new data or loss function." For a model that picks one action from a fixed list, the mapping looks like this:

What the expert says Update that fits Support in open-jev at commit 8f2ced8
"The right option here is B." Supervised label Choice target, trained by all three methods
"B, C and D are all acceptable." Set label Subset target, trained only by --method encoder
"B is better than A." Preference pair Preference type exists, but no training method reads it
"Missing this case costs ten times more." Loss weights or a stricter threshold Per-kind deferral threshold at serving time
"Never refund without a receipt." Eligibility rule in the application mandatory_defer and the candidate function

The last row matters most. A learned score can make a forbidden action unlikely, but it cannot make it impossible. Chen and colleagues describe constraints as something that can be added "to the optimization objective," which still leaves a trained model that can be wrong. A prohibition that has legal or financial weight belongs in code that runs before and after the model.

DPO and InstructGPT solve a related problem for text generation

Two papers on language-model alignment address a related problem. InstructGPT, submitted to arXiv on March 4, 2022 by Long Ouyang and colleagues, first fine-tuned GPT-3 on demonstrations written by labelers. It then applied reinforcement learning from human feedback, which uses human rankings of model outputs. Its headline result was that human evaluators preferred outputs from the 1.3-billion-parameter InstructGPT model to outputs from the 175-billion-parameter GPT-3.

Direct Preference Optimization (DPO), by Rafael Rafailov and colleagues, was first submitted on May 29, 2023. It removes the separate reward model and the reinforcement-learning loop. The paper shows that the RLHF objective can be rewritten as a simple classification loss over preferred and rejected responses. Its experiments covered sentiment control, summarization and single-turn dialogue.

Both papers train a model that generates responses. A decision model of the kind this guide covers does not generate anything. It receives a list of eligible options from the application and assigns a probability to each one. When an expert prefers option B to option A, the useful signal is that B's score should be higher than A's score for that case. DPO is one way to express that signal for a generator, but it is not automatically the right objective for an encoder that scores a closed list. Its published results come from language tasks, and no study has measured how well they transfer to option scoring.

The InstructGPT order of work still carries over. Supervised labels came first in that paper, and rankings were added on top. For a decision model, supervised training on corrected cases is the natural first step, and a preference objective is worth adding only if experts can compare options reliably when they cannot name one right answer.

A review record must keep the decision context, the model's view and the expert's uncertainty

Expert feedback is only useful for training if it is stored with everything that the model saw. A review that says only "wrong, should be escalate" loses the state, the options that were eligible at the time and the policy that applied. A record that keeps this context looks like this:

{
  "decision_id": "acct-4471:2026-11-03:refund",
  "group_id": "acct-4471",
  "decided_at": "2026-11-03T14:22:05Z",
  "kind": "refund_action",
  "question": "What should happen with this refund request?",
  "state": {"order_age_days": 41, "amount_usd": 182.0, "receipt": true, "prior_refunds_90d": 2},
  "eligible_options": [
    {"id": "refund_full", "text": "Refund the full amount to the original card"},
    {"id": "store_credit", "text": "Offer store credit for the full amount"},
    {"id": "escalate", "text": "Send to a senior agent for review"}
  ],
  "policy_version": "refunds-v7",
  "model": {"version": "refund-head-2026-10-28", "scores": {"refund_full": 0.71, "store_credit": 0.22, "escalate": 0.07}, "chosen": "refund_full"},
  "review": {
    "verdict": "corrected",
    "preferred": "escalate",
    "rejected": "refund_full",
    "acceptable": ["escalate", "store_credit"],
    "reason": "Third refund in 90 days needs a senior review under refunds-v7",
    "confidence": "medium",
    "reviewer": "rev-019"
  }
}

The record keeps three kinds of uncertainty that a single label would hide. The acceptable set records that more than one option was defensible. The confidence field records how sure the reviewer was. Several reviewers can write records for the same decision_id, which preserves disagreement instead of forcing a vote at collection time. Chen and colleagues warn that "there might be conflicting pieces of feedback from multiple, diverse domain experts," and they suggest an explicit aggregation step.

The open-jev SDK has a matching set of target types. Its docs list Choice, Subset, Preference, Outcome and NoneCorrect, and they state that "A missing target means unlabelled, never wrong." A case on which reviewers disagree can therefore stay unlabelled for training and still appear in evaluation. NoneCorrect records an action that was taken but was not among the candidates. That is a sign that the candidate list itself needs fixing.

The open-jev SDK offers three architectures with one data format

The open-jev repository is published under an MIT licence. Its README describes "One-pass option scoring with a local Gemma 3 4B," and it includes an SDK, installed with pip install openjev-sdk, for training decision models. It sits under the same GitHub organization as Parsec's code, and its README does not present it as part of a paid service. This guide pins commit 8f2ced8f93bd43d09f081bbe5c3c2e13d37b3428, dated November 2, 2026.

The SDK trains three kinds of model from the same dataset directory:

  • Training with --method head, the default, freezes Gemma 3 4B and trains a small head of about 2 million parameters for each decision kind. It needs about 9 GB of GPU memory or an Apple silicon Mac, and its objective is listwise cross-entropy over each row's options.
  • Training with --method encoder fully fine-tunes a Hugging Face model, by default ModernBERT-large with 395 million parameters, and adds a per-candidate head. It is the only method that trains Subset targets, and the result serves on a CPU.
  • Training with --method tod continues training the LoRA adapter of TOD, a decision model that is built on Gemma 4 12B. It needs an NVIDIA GPU with at least 40 GB or, more slowly, a 64 GB Apple silicon Mac. It handles up to 26 candidates and accepts text states only.

The choice depends on hardware and on the shape of the labels. A team with a single mid-range GPU and single-answer labels can start with the head method. A team whose experts mark sets of acceptable options, or that wants to serve on CPUs, needs the encoder method. The TOD method suits teams that already have a 40 GB GPU and want to start from a model that was pre-trained on decisions.

The SDK has one gap that matters for expert feedback. A Preference(better, worse) type is defined in openjev/tod/schema.py. However, at the pinned commit, the training code in train.py, picker.py and encoder.py selects only Choice and Subset targets. No documented method trains on preference pairs, and the README does not mention DPO. A preference objective for these models would have to be implemented separately, for example as a pairwise loss on the two option scores, and it would need its own tests.

Training starts from the review records and a versioned decision spec

The SDK builds every training row through a DecisionSpec. Each decision kind declares a question, a function that lists the eligible candidates for a state and a version string. The docs say to bump the version "whenever that function's behaviour changes." The spec's fingerprint covers those versions, so rows built under an old policy fail validation with spec.check.

The following steps turn the review records above into a trained model:

  1. Write the candidate function so that it applies the eligibility rules. Only options that the policy allows for that state should reach the model.
  2. Convert each record with a single agreed answer into a Choice target, and each record with a reviewed set of acceptable options into a Subset target.
  3. Leave records with unresolved disagreement unlabelled, and keep them in a separate evaluation file.
  4. Set group_id to the account or customer, so that all of one customer's cases land in the same split.
  5. Call build_dataset(spec, episodes).write("runs/refunds"), then run openjev tod train runs/refunds --method head --out runs/refunds-model.

build_dataset drops duplicate inputs and keeps the first copy. It reports how many duplicates carried a different label, which is a direct measure of reviewer inconsistency. It splits rows by group into 70% training, 10% validation, 10% calibration and 10% test, and it checks that the splits do not overlap.

A fair data split separates time, customers and policy versions

Corrected failures are the most valuable rows and also the most biased ones. If reviewers mostly see cases on which the model was unsure, the corrections over-represent hard cases. A model trained only on those cases can get worse on routine traffic. The training set should therefore mix corrected failures with a random sample of ordinary decisions that experts also reviewed.

The SDK's default split is by hashed group, not by time. A temporal test needs one extra step. The docs allow an evaluation-only dataset built with fractions={'test': 1.0}, so the most recent weeks of reviewed cases can be held out in their own dataset and never used for training. Rows from a retired policy version should be either rebuilt under the current spec or dropped, because the spec check rejects them.

A fixed regression set protects against forgetting. It should contain reviewed cases that the current model already gets right, across every decision kind. The SDK's TOD method keeps the starting adapter if fine-tuning does not beat it on validation. Its reinforcement-learning step rolls back any kind whose validation accuracy drops more than 2 points. The docs do not describe such a guard for the head or encoder method, so the regression set has to be checked by hand.

Evaluation must compare every option on the same held-out cases

A useful comparison runs four candidates on the same untouched test set: the current rules alone, the original model, the supervised update and any preference method. No published study has made this comparison for option scorers, so each team has to run it on its own cases.

The SDK reports some of the needed numbers. openjev tod train reports test accuracy, and openjev tod evaluate reports calibration error and Brier score. The head method adds a shuffled-context control: if accuracy does not fall toward chance when each case is paired with another case's state, the head is scoring option priors rather than using the state. The application has to measure the rest:

  • The rate of costly errors shows whether the update reduced the mistakes that experts flagged as expensive, not only the total error rate.
  • The count of constraint violations should be zero after the application's rules run, and any non-zero count points to a gap in the candidate function.
  • The rate of expert agreement shows how often the model's choice falls inside the reviewers' acceptable set.
  • The level of deferral coverage shows what share of cases the model handles at each confidence threshold, and how accurate it is on that share.
  • The end-to-end outcome, such as resolved tickets or recovered revenue, shows whether better agreement produced better results.
  • The latency and total cost of each option show what each improvement costs to run.

Each number should be reported per slice, such as customer segment, decision kind and policy version, with a confidence interval. Chen and colleagues set the goal that an updated model "should ideally reflect the expert's preferences better than the original model." They also write that "it is not clear what impactful means." Expert agreement measures the first point, and only outcome data can settle the second.

Deployment keeps eligibility and execution outside the model

The SDK's serving call, policy.decide(state, kind, threshold), returns a choice, a calibrated confidence and a defer flag. The docs describe the split of duties in one line: "The model reads text; your code executes payload." A safe deployment builds on that split:

  1. The application computes the eligible options before the model runs, and any option listed in mandatory_defer always goes to a person.
  2. The model scores the remaining options, and cases below the per-kind threshold go to a reviewer.
  3. A separate validator checks the arguments of the chosen action, such as an amount or an account, before anything executes.
  4. A new model runs in shadow next to the current one, and its choices are logged and compared without being executed.
  5. Each release is a versioned model directory, and rollback means pointing load_policy back at the previous directory.

Calibration needs care after every change. The SDK fits a temperature per kind on the calibration split, and its docs say that calibration must be refitted after any further training. The export command reloads the exported copy and fails if its probabilities differ from the source by more than 0.02. The TOD repository adds two serving warnings: use chunked_eager or eager attention instead of sdpa, and do not use bitsandbytes int8 quantization.

Any performance claim should name the model release and the architecture. Results for a ModernBERT encoder and for the 12B TOD model are not interchangeable. The TOD page labels its figures "TOD decision v1 release evaluation, 29 September 2026." On the public JevBench set of 231 text decisions, it reports 84.4% accuracy for TOD against 86.2% for the untrained base model. The page says that this regression is to be fixed in the next release.

Some feedback needs a rule change or no training at all

Training is the expensive answer, and it is not always needed. A new prohibition is a rule change: update the candidate function, bump the kind's version and leave the model alone. A one-off error on an unusual case may not justify a retraining run. The open-jev README also suggests a zero-shot check first: "If Gemma zero-shot is close to the trained head, Route B is enough," meaning that the unmodified model can be used as is.

Training becomes worthwhile when corrections show a repeated pattern, the zero-shot model falls clearly short on held-out cases and enough reviewed rows exist to fill the calibration and test splits. Teams that lack the staff to build the data pipeline and the evaluation set can look for outside help. Parsec, a small language model lab, says that it tunes decision models on a customer's own decisions and builds evaluations, training sets and simulated post-training environments. Its decision-models page gives no price for that work and names no deployment options.

What the work costs depends mostly on expert time

A worked example shows the scale of each cost. It assumes 2,000 reviewed decisions, the head method and rented GPUs at Together's on-demand list price for an H100 in a GPU cluster, which is $3.99 per GPU per hour.

  • Expert review is the largest cost. If each review takes 2 minutes, 2,000 reviews take about 67 hours of expert time, priced at whatever those experts cost.
  • Training is small by comparison. The head method took about 6 minutes in open-jev's first cookbook, most of it spent on feature extraction. If a team budgets 10 GPU-hours for repeated training, calibration and evaluation runs, the compute costs $39.90.
  • Serving the head method on one H100 kept running for a 30-day month costs 720 hours at $3.99, or $2,872.80. The encoder method serves on a CPU instead, and no published figure gives that cost.

How many decisions per second one GPU can serve with this setup has not been measured. The review budget, not the GPU bill, sets how often a team can retrain.

Sources

More in Research

All Research →