Streamlining Background Check Classification with Fine-tuned Small Language Models

checkr · HR · 2024 · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Background-check adjudication classification

Checkr needed to classify the hardest background-check adjudication records into 230 categories with high accuracy, low latency, and reasonable cost after its prior DNN covered only a small fraction of hard cases.

Constraints:

Architecture

Checkr experimented from GPT-4 expert prompting and RAG to fine-tuned small language models, then productionized a Predibase-hosted fine-tuned llama-3-8b-instruct model. The production architecture uses Predibase fine-tuning, LoRA/LoRAX serving, low-latency inference, dashboards for model performance, and multi-LoRA serving to support additional use cases without extra GPUs.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  complex_background_check_records["Complex background-check records"] --> fine_tuned_slm_classifier["Fine-tuned SLM classifier"]
  fine_tuned_slm_classifier --> predibase_fine_tuning_platform["Predibase fine-tuning platform"]
  fine_tuned_slm_classifier --> lorax_serving_layer["LoRAX serving layer"]
  predibase_fine_tuning_platform --> model_tracking_dashboards["Model tracking dashboards"]
  lorax_serving_layer --> classification_output["Classification output"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Complex background-check records Noisy unstructured records from the hardest adjudication subset. Fine-tuned SLM classifier
Fine-tuned SLM classifier Llama-based classifier fine-tuned to assign records to adjudication categories. Complex background-check records, Predibase fine-tuning platform, LoRAX serving layer
Predibase fine-tuning platform Fine-tunes and tracks small open-source models and LoRA adapters. Fine-tuned SLM classifier, Model tracking dashboards
LoRAX serving layer Low-latency serving for fine-tuned LoRA adapters without requiring more GPUs for additional adapters. Fine-tuned SLM classifier, Classification output
Model tracking dashboards Tracks model versions, loss graphs, production efficiency, and performance across time. Predibase fine-tuning platform
Classification output Adjudication category prediction used to streamline background-check review. LoRAX serving layer

Data flow

Complex unstructured background-check records flow into a fine-tuned SLM classifier. The model predicts one of 230 categories for the hard adjudication subset, served through Predibase with LoRAX. Production dashboards and model-version tooling monitor performance, latency, and efficiency, while future LoRA adapters can share the serving infrastructure.

3 supporting quotes
“The remaining 2%, however, are complex cases that require categorizing data records into 230 distinct categories.”article, stated
“Our best-performing model was llama-3-8b-instruct, a small open-source LLM that we fine-tuned on Predibase.”article, stated
“with open-source LoRAX under the hood, we can serve additional LoRA Adapters on Predibase without needing more GPUs.”article, stated

Why this architecture

Checkr moved to fine-tuned SLMs because GPT-4 and RAG performed well on easy cases but lagged on the difficult 2%, while a small domain-adapted model delivered better accuracy, much lower latency, and lower cost for the synchronous production classifier.

3 supporting quotes
“The model performed well achieving 87-88% accuracy. However, it only achieved 80-82% accuracy for the hardest 2% of classification cases.”article, stated
“the training set examples leading the LLM away from a better logical conclusion.”article, stated
“we saw significant improvements across all metrics compared to GPT-4.”article, stated

Models used: GPT-4 · Llama-2-7b · llama-3-8b-instruct · Llama-2-chat · Predibase LoRA adapters

Scale

Alternatives considered (roads not taken)

Previous DNN classifier

Rejected because: It classified only 1% of the difficult 2% with decent accuracy, leaving another 1% unclassified.

“Our original solution for this 2% of data involved a Deep Neural Network (DNN) that was able to classify only 1% with decent accuracy”article, stated

GPT-4 expert LLM

Rejected because: GPT-4 achieved only 80-82% accuracy on the hardest 2% and had worse latency/cost than fine-tuned SLMs.

“However, it only achieved 80-82% accuracy for the hardest 2% of classification cases.”article, stated
“we achieved better accuracy, faster response times, and 5X reduction in costs compared to traditional GenAI approaches utilizing commercial LLMs.”article, stated

GPT-4 plus RAG over training examples

Rejected because: RAG improved easier cases but hurt difficult cases by steering the LLM away from better reasoning.

“accuracy decreased for the more difficult dataset due to the training set examples leading the LLM away from a better logical conclusion.”article, stated

Traditional full fine-tuning

Rejected because: Predibase PEFT with LoRA reduced training cost and time while delivering comparable performance.

“Predibase leverages techniques like Low-Rank Adaptation (LoRA) which reduces the number of parameters needed for fine-tuning.”article, stated

Patterns

fine-tuning-adaptation (model adaptation)

Checkr fine-tuned small open-source LLMs on its hard adjudication classification task, culminating in a llama-3-8b-instruct production model.

“Our best-performing model was llama-3-8b-instruct, a small open-source LLM that we fine-tuned on Predibase. We achieved an accuracy of 90% for the most challenging 2% of cases, outperforming both GPT-4 and all of our other fine-tuning experiments.”article, stated

eval-driven-development (model selection)

The team compared GPT-4, Expert+RAG, Llama-2 fine-tuning, combined models, and Predibase-hosted fine-tuning across accuracy, latency, and cost.

“In our experiments, I explored several approaches to improve classification accuracy with LLMs. The first experiment involved using GPT-4 as a general purpose “Expert LLM” on the 98% of easier classification cases.”article, stated
“I experimented with combining fine-tuned and expert models. Interestingly, this didn’t net any improvements in performance.”article, stated

latency-optimization (serving)

The production system uses optimized SLM serving to meet synchronous low-latency requirements with 0.15 second response times.

“This task is synchronous and must meet low-latency SLAs in order to provide our customers with near real-time employment insights.”article, stated
“consistently delivers .15 sec response times for our production traffic which is 30x faster than our GPT-4 experiments.”article, stated

cost-aware-routing (cost optimization)

Fine-tuned SLMs and multi-LoRA serving reduce inference cost and enable additional use cases without adding GPUs.

“We reduced our inference costs by 5x compared to GPT-4 by fine-tuning and serving SLMs on Predibase.”article, stated
“Best of all, with open-source LoRAX under the hood, we can serve additional LoRA Adapters on Predibase without needing more GPUs.”article, stated

observability-tracing (operations)

Predibase dashboards let Checkr track model versions, loss graphs, production efficiency, and performance impact over time.

“Predibase has also deployed dashboards for production metrics which helps me understand production efficiency and performance across time.”article, stated

Tradeoffs

Fine-tune small language models for the hardest records.

Chose Llama-based SLMs on Predibase over GPT-4 expert prompting and GPT-4 plus RAG.

Rationale: Fine-tuned SLMs improved difficult-case accuracy while cutting latency and cost for the synchronous production workflow.

“The fine-tuned model achieved 97% accuracy on the easier dataset and 85% on the difficult dataset. This approach was not only highly efficient, with response times typically under half a second, but also cost-effective.”article, stated
“we achieved better accuracy, faster response times, and 5X reduction in costs compared to traditional GenAI approaches utilizing commercial LLMs.”article, stated

Use LoRA/PEFT serving.

Chose Predibase PEFT and LoRAX multi-LoRA serving over Full fine-tuning and separate GPU deployments for each adapter.

Rationale: LoRA reduced training cost/time and enabled additional adapters without extra GPUs.

“With this approach, I was able to reduce my training cost and time while delivering comparable performance to full fine-tuning.”article, stated
“Best of all, with open-source LoRAX under the hood, we can serve additional LoRA Adapters on Predibase without needing more GPUs.”article, stated

Keep prompts short after fine-tuning.

Chose Concise prompts over Prompt-engineering-heavy performance tuning.

Rationale: Fine-tuned model performance was largely independent of prompt details, so shorter prompts reduced token usage and cost.

“With a production model in place, I experimented with prompt engineering to boost performance, but it had a minimal impact.”article, stated
“you can significantly reduce token usage by keeping prompts concise, as the model's performance is largely independent of them.”article, stated

Gotchas (what bit them)

RAG can hurt hard classification cases when examples pull reasoning the wrong way.

Root cause: Training-set examples helped easier cases but misled the LLM on more difficult records.

Resolution: Fine-tune a smaller model directly on the hard classification task instead of relying on retrieved examples.

“accuracy decreased for the more difficult dataset due to the training set examples leading the LLM away from a better logical conclusion.”article, stated
“I fine-tuned the much smaller open-source model, Llama-2-7b and we saw significant improvements across all metrics compared to GPT-4.”article, stated

Difficult adjudication records were not covered by earlier automation.

Root cause: The remaining 2% involved noisy unstructured text and 230 categories, while the original DNN covered only half of that hard slice.

Resolution: Use fine-tuned SLMs to classify the most complex records with higher accuracy and coverage.

“The remaining 2%, however, are complex cases that require categorizing data records into 230 distinct categories.”article, stated
“Our original solution for this 2% of data involved a Deep Neural Network (DNN) that was able to classify only 1% with decent accuracy”article, stated

Fine-tuned classifiers can appear overconfident.

Root cause: Confidence intervals from log probabilities produced skewed distributions with consistently high confidence scores.

Resolution: Lower temperature and top_k to broaden the confidence distribution while maintaining precision.

“this method often resulted in a skewed distribution, with the model appearing overly confident and consistently returning high confidence scores.”article, stated
“Lowering the temperature increased next-token variance while lowering top_k decreased the options it could choose from.”article, stated

Evaluation

Checkr compared multiple model and architecture options on accuracy for easy and difficult datasets, then used production metrics dashboards and convergence/loss monitoring during fine-tuning.

Metrics: GPT-4 expert: 87-88% easy accuracy and 80-82% hard accuracy. · Expert+RAG: 96% easy accuracy but lower hard-case accuracy. · Fine-tuned Llama-2-7b: 97% easy accuracy and 85% difficult accuracy. · Fine-tuned llama-3-8b-instruct: 90% accuracy on the most challenging 2%. · Production latency: 0.15 seconds. · Cost reduction: 5x versus GPT-4.

3 supporting quotes
“The model performed well achieving 87-88% accuracy. However, it only achieved 80-82% accuracy for the hardest 2% of classification cases.”article, stated
“We achieved an accuracy of 90% for the most challenging 2% of cases, outperforming both GPT-4 and all of our other fine-tuning experiments.”article, stated
“The web UI makes it easy to manage projects, track model versions, and explore model performance with visualizations like loss graphs.”article, stated

Outcomes

Checkr serves over 100,000 customers, conducts millions of background checks each month, processes 98% of data with logistic regression, and targets the remaining 2% hard cases across 230 categories.

“Using Predibase we've managed to train highly accurate and efficient small models, achieve lightning-fast inference, and reduce costs by 5X compared to GPT-4.”article, stated
“On average, we conduct millions of background checks each month, and 98% of the data is processed efficiently using a tuned logistic regression model.”article, stated