Back to Case Studies

Small Language Model Fine-Tuning for Sentiment Analysis with Continuous Learning

·
A retail bank in Australia

Executive Summary

Customer feedback is rarely just positive or negative: a customer may praise the support agent while describing an unresolved problem, and a polite message can still express frustration. GenAI Protos fine-tunes a small language model on the client's own examples to read that feedback more accurately, and builds a feedback loop where reviewed corrections train future versions. Every update is tested against the current model and only released if it improves performance without losing accuracy on previously understood cases.

01Problem Statement

The client needs to classify customer feedback across reviews, surveys, or support conversations within one business domain. The challenge is understanding company-specific language, mixed opinions, and changing customer concerns, along with a practical way to correct recurring mistakes as new products and terminology appear.

  • Apply consistent sentiment labels using the client's definitions
  • Recognize negative feedback even when it is expressed indirectly
  • Handle mixed or unclear sentiment without forcing a confident answer
  • Process the expected volume within agreed latency and cost limits
  • Incorporate reviewed corrections into future training
  • Check every model update before it replaces the current version

02Our Approach

We begin with the labeling rules. The client's reviewers agree on what positive, negative, neutral, and mixed sentiment mean for the task, using examples where interpretations differ. We then prepare de-identified training, validation, and test datasets, with the test data including difficult language and more recent feedback to check whether the model handles examples beyond its training history.

A conventional sentiment classifier, a prompted language model, and the selected small model provide the initial comparison. We fine-tune the small model on the agreed examples and measure:

  • Accuracy by sentiment class
  • Missed negative feedback
  • Errors involving mixed opinions or domain-specific language
  • Response time, throughput, and processing cost
System Architecture & Flowclick to zoom
Architecture Overview
Architecture Overview
Architecture Overview

03Outcome

  • A fine-tuned model or adapter and a working inference setup
  • A comparison with the baseline approaches, including remaining failure cases
  • Prepared datasets, labeling guidance, and evaluation assets
  • A feedback and retraining workflow with release checks and rollback
  • Findings on accuracy, review effort, latency, and operating cost

04Tech Stack & Ecosystem

Key models, frameworks, and core infrastructure powering this solution.

Model selection

Benchmarked a classic classifier, a prompted LLM and a fine-tuned SLM on quality, speed and cost.

Small language model

Open-weight 1B to 3B SLM (Llama 3.2 / Qwen class). Faster and cheaper than large API models.

Fine-tuning

LoRA adapters (Hugging Face PEFT), so retraining and rollback stay easy.

Inference

vLLM on private infrastructure. Low latency, and data stays in-house.

Data privacy

Microsoft Presidio to remove customer details before training.

Human review

Label Studio. Uncertain predictions go to reviewers.

Release control

MLflow for versioning, regression tests and rollback.

Orchestration

Python pipelines. No agent framework, because a classification task doesn't need one.

05Client Testimonials

“Our customers can praise our staff and still be unhappy with the outcome. GenAI Protos worked with our reviewers to define those distinctions, then fine-tuned a small model on our feedback. They also built a process for incorporating reviewed corrections, with regression checks before each release.”
RB
Product & Technology Team
Retail Banking, Australia

Turn Customer Feedback into Smarter AI.

GenAI Protos fine-tunes domain-specific AI models that evolve with your products.

Frequently asked questions

Define a mixed-sentiment label using reviewed examples, then test specifically for negative feedback the model misses.

Fine-tune a small language model on de-identified, bank-specific feedback. Evaluate it on difficult and recent examples kept separate from training.

Benchmark both, alongside a conventional classifier, on the same workload. Compare accuracy by class, missed complaints, latency, review effort, and operating cost.

Route uncertain or mixed cases to reviewers. Only verified corrections should become training labels.

Test each candidate against the current model on recent data and a protected regression set. Release it only if it meets the agreed criteria, with rollback available.