Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Classify Support Tickets with Attention

Hard
Machine LearningAsked 1 times

Problem

Business Context

OpenAI Support receives a large volume of inbound tickets across billing, API usage, account access, safety, and enterprise onboarding. You need to build a transformer-based classifier that routes tickets to the correct queue while also explaining how the attention mechanism contributes to model behavior.

Dataset

You are given a historical dataset of support tickets labeled with the final resolved queue.

Feature GroupCountExamples
Text fields3subject, message_body, prior_agent_note
Metadata6channel, language, customer_tier, product_surface, attachment_count, account_age_days
Temporal2hour_of_day, day_of_week
Target classes5billing, api_support, account_access, safety_review, enterprise_ops
  • Size: 420K tickets over 18 months
  • Target: Multiclass label for final routing queue
  • Class balance: Moderately imbalanced; billing 34%, api_support 27%, account_access 18%, safety_review 9%, enterprise_ops 12%
  • Missing data: 22% missing in prior_agent_note, 4% missing in metadata fields, occasional empty subject lines

Success Criteria

A good solution should achieve strong routing quality on minority queues while remaining fast enough for near-real-time triage. Target macro F1 of at least 0.82 and safety_review recall above 0.88.

Constraints

  • P95 online inference latency must stay under 120 ms per ticket
  • The solution must support explanation of token-level relevance using transformer attention or attention-adjacent analysis
  • Retraining budget is limited to a weekly batch job on 4 A100-equivalent GPUs

Deliverables

  1. Build a multiclass transformer classifier for ticket routing
  2. Explain the attention mechanism mathematically and operationally in the context of this task
  3. Compare a transformer baseline against a simpler non-attention baseline
  4. Propose preprocessing, training, and thresholding choices for imbalanced classes
  5. Describe how you would validate, deploy, and monitor the model in production

You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.

Sign up freeI have an account
Sign up to unlock solutions
OpenAI Machine Learning Engineer Interview Questions
Next questions
GoogleExplain Attention in Support Ticket TransformersMediumOpenTextClassify OpenText Support Ticket IntentMediumCharlotte StaffingClassify Support Tickets by IntentMedium
0 / ~200 words