Slot filling: finding task values in a single utterance
Learn how slot filling identifies typed value spans in one user turn, how BIO tags represent multiword values, and how extraction differs from intent classification, normalization, and dialogue state tracking.
Slot filling is an NLU task that maps information in a user’s current utterance to predefined fields. In “Find a flight from Boston to San Francisco tomorrow,” it can identify the origin, destination, and date as from_city=Boston, to_city=San Francisco, and departure_date=tomorrow. This structured prediction records what the user said; it does not mean the date has been resolved or a flight search completed.
Slots, values, and intent
A slot is a field the system needs; its value is the specific information expressed by the user. Slots can be paired with an intent in a semantic frame, a structured summary of the requested task:
intent = SEARCH_FLIGHT
from_city = Boston
to_city = San Francisco
departure_date = tomorrowThe intent describes the task for the utterance. Slot filling finds which task fields are expressed and their values. The required slots depend on the domain and schema: flight search may need origin and destination, while a hotel request may need dates and party size.
Finding value spans
A classic formulation splits an utterance into tokens and assigns a slot tag to each token, a method called sequence tagging. This invented example is not a dataset annotation or model output.
| Token | Tag | Meaning |
|---|---|---|
| Find / a / flight / from | O | Not part of a slot value |
| Boston | B-from_city | Start of the origin value |
| to | O | Not part of a slot value |
| San | B-to_city | Start of the destination value |
| Francisco | I-to_city | Remainder of that value |
| tomorrow | B-departure_date | Start of the date value |
B marks a value’s first token, I a later token in the same span, and O a token outside any slot span. The system groups adjacent tagged tokens to form values; it can predict the utterance-level intent separately or jointly.
Extraction is not normalization
Slot filling usually finds the type and text span expressed in the utterance. A later step may normalize or validate it. Converting tomorrow to a YYYY-MM-DD date requires a reference time and may require a time zone. Converting a city name to an airport code is also separate from finding its span. Do not assume these transformations were done without checking their reference data.
Slot filling does not supply conditions the user never stated. If a flight request has no departure date, the current utterance alone does not provide one. Tracking conditions across turns, retaining omitted values, and applying corrections are dialogue state tracking (DST): slot filling finds values expressed now; DST manages the evolving conversation state.
Should slots and intent be learned together?
The tasks can provide clues to each other: an utterance-level flight-search intent can help interpret a place name as a flight field, while origin and destination spans can support the intent. Research surveys both independent models and joint models that share representations or pass predictions between tasks. Independent models are easier to inspect separately but may miss useful interactions or propagate errors in a pipeline. Joint models can use shared information, but no architecture is best for every domain and dataset. Consider available labels, number of domains, latency, schema changes, and how easily errors must be diagnosed.
Evaluation and common failures
One common slot metric counts a prediction as correct only when both its type and its exact start and end boundaries match; precision, recall, and F1 are then computed over spans. A correct type with a one-token boundary error is not an exact match under this measure. Intent can be scored separately by utterance accuracy. Token accuracy alone can hide missed spans when many tokens are O, so check the dataset’s tagging and scoring rules.
Typical errors include a missed boundary (San Francisco becomes only Francisco), the wrong field for a correctly found span (origin vs. destination), incorrect normalization, a missing schema field, or uncertainty from speech recognition or ambiguous wording that is resolved without confirmation.
Even when the field type is known, a name may be new or absent from training data. Review the slot schema, annotation rules, and treatment of uncertain values. Confirm important values before a real search or booking.
Keep the tasks distinct
Slot filling answers “which part of this utterance fills which field?” Intent classification identifies the requested task; DST maintains current conditions across turns; neither proves an external action succeeded. See NLU, intent classification, and dialogue state tracking.
References
[Louvan and Magnini (2020), Recent Neural Methods on Slot Filling and Intent Classification for Task-Oriented Dialogue Systems: A Survey](https://aclanthology.org/2020.coling-main.42/)
[Balaraman, Sheikhalishahi, and Magnini (2021), Recent Neural Methods on Dialogue State Tracking for Task-Oriented Dialogue Systems: A Survey](https://aclanthology.org/2021.sigdial-1.25/)