Problem
After each chat, an Alfa-Bank operator fills in a six-field report: product, subproduct, topic, subtopic, channel and resolution status. The hierarchy has 20 products, 630 subtopics and over 1000 product x topic x subtopic combinations. Filling it in takes about 30 seconds, during which the operator cannot take the next customer. Report quality also varies with the operator's experience and falls toward the end of a shift.
Example from the article: a customer asks for "the conditions on my deposit". The operator must check which deposits the customer holds before choosing between "Alfa-Deposit Maximum" and "Alfa-Deposit New Money".
Solution in brief
The team first rebuilt the training data: whole dialogues, relabeled with overlap by trained former operators. Then it fine-tuned ruBERT with one head per report field. At inference it masked every class that is impossible under the predicted parent or absent from the customer's active products.
Questions this case answers
- How to automate a multi-field hierarchical classification of free-text conversations when the existing labels come from busy staff and agree with each other only 41-65% of the time
- How to raise accuracy of a multi-head text classifier by masking predictions that are impossible given the known hierarchy and the user's own entity list
- How to automate a six-field, 1000+ class report that support operators fill in after every chat?
- How to find out whether weak model accuracy comes from the model or from the operators' own labels?
Tools and methods
- ruBERT with 6 fully connected heads, one per field
- Label Studio for early labeling, later an in-house tool
- Overlap annotation: a case is accepted if two experts agree on all levels
- Logit masking: impossible classes get -Inf
- Apache Hadoop, PyTorch, MLflow: data source, training and tracking in the diagrams
Google or a one-time email code. No password.