Notes

Slot Filling

"Book me a cab to the airport at six." Recognising that this is a booking request is only half the job; the system still has to come away with destination = the airport and time = 18:00. Slot filling is that second half — pulling the specific values an action needs out of what the user actually said.

A form with named boxes
Every intent carries a schema of slots, and the task is to fill them from one utterance:

  • Slots are defined per intent: a flight booking needs origin, destination and date; a music request needs artist and track.
  • The standard formulation is sequence labelling — every token gets a tag in a BIO scheme (B-destination, I-destination, O) so multi-word values stay intact.
  • Captured values then need normalising: "tomorrow evening" has to become a real timestamp before any booking service will accept it.

Trained and measured
ATIS and SNIPS are the standard datasets. Joint models that share one encoder between intent classification and slot tagging — joint BERT is the common baseline — beat two separate models, because the intent constrains which slots can appear and the slots hint at the intent. Scoring uses span-level F1 rather than token accuracy: a half-captured destination is wrong, not partly right.

Why it matters
This is the point where language becomes a function call, and its failures are the ones users actually see — an assistant asking again for something already said, or confidently booking the wrong day. It also absorbs the hard parts of real conversation: values that arrive across several turns, references like "the same as last time", and the dozen ways people write a date.

Slot filling is the extraction of the parameter values an action requires from a user's utterance — destination, date, artist — usually as per-token BIO tagging against a schema tied to the recognised intent. It is the step that converts free-form language into a structured call a booking or search system can execute. Scoring is span-level F1: a partially captured value counts as a failure, and a wrong one produces a visibly wrong action.

Picture a booking clerk listening while you explain your trip, quietly filling in a form as you talk: where from, where to, which day, how many people. You never read the form out loud — the clerk picks the answers out of your sentences.

Slot filling is software doing exactly that. Say "get me a table for four in Soho tomorrow at eight" and it has to come away with four people, Soho, tomorrow's date, 8pm. Realising you want a restaurant booking is not enough; without the details, nothing can actually be booked. And it has to cope with the fact that "tomorrow" means a different day every day.