decision-model / README.md
xstard's picture
Improve refund and tone with evaluated approach-4 v1.1
5a309ea verified
|
Raw History Blame Contribute Delete
2.37 kB
metadata
language:
  - uk
  - en
license: mit
tags:
  - text-classification
  - decision-model

Experimental bilingual decision model

Partially adapted mmBERT-small with a shared candidate logistic head and per-type temperature scaling.

Encoder revision: abc32620dd4f6ab06f5fbe905dc25f310618e09f. Only candidate description tokens are mean pooled.

Experimental: True. No general-purpose reliability claim.

Language/type n Accuracy Macro F1 ECE NLL Score MAE
uk/noul 157 0.688 0.687 0.066 0.640 β€”
uk/choice 157 0.904 0.857 0.137 0.357 β€”
uk/score 157 0.764 0.759 0.076 0.654 0.432
en/noul 157 0.834 0.834 0.047 0.373 β€”
en/choice 157 0.949 0.902 0.086 0.226 β€”
en/score 157 0.834 0.817 0.046 0.438 0.232

Evidence limitations

  • Last encoder layers adapted; earlier layers frozen.
  • Customer support domain; arbitrary unseen criteria are not validated.
  • Temperature scaling is not proof of calibration; inspect independent test ECE/NLL and sample counts.

Sources

  • Base model: https://huggingface.co/jhu-clsp/mmBERT-small (MIT).
  • Source dataset when used: bitext/Bitext-customer-support-llm-chatbot-training-dataset (CDLA-Sharing-1.0).
  • Source/annotation provenance is retained in the local corpus; raw data and keys are not uploaded by deployment.

Interface

Use the companion FastAPI /v1/systemone service. noul returns P(yes); score returns the expected zero-based level.

Annotation provenance

The test set has 314 tickets with declared AI semantic review. It is a synthetic, AI-reviewed evaluation set, not a human-annotated benchmark. Review attribution is self-declared.

Comparison with v1 on the same new test

Independent bilingual families: 156. Weights were locked before test generation. The earlier RC1 test was retired to development after its unsuccessful evaluation; this is a different cohort.

Language Refund F1 v1 β†’ current Refund recall v1 β†’ current Tone MAE v1 β†’ current
uk 0.363 β†’ 0.687 0.026 β†’ 0.731 0.601 β†’ 0.432
en 0.335 β†’ 0.834 0.000 β†’ 0.769 0.722 β†’ 0.232

The reported user example was training feedback, not independent test evidence.