Irrelevance detection in NLU
Summarize
Summary of Irrelevance Detection in NLU
The Irrelevance detection feature enhances Natural Language Understanding (NLU) models by training them to disregard utterances that do not apply to any intent. This helps maintain focused Virtual Agent chats by ensuring that irrelevant user inputs do not generate predictions.
Show less
Key Features
- Marking Utterances: Users can mark utterances as Not relevant, which are then included in model training. This prevents the model from predicting intents for similar future utterances.
- Management Table: The Irrelevance detection table allows users to manage marked utterances efficiently.
- Roles Required: Access is granted to users with nluadmin, admin, or nlueditor roles. The latter must be assigned to a model for editing.
- Adding Utterances: Utterances can be added through the Virtual Agent chat log, manual input, or by importing from a CSV/XLSX file.
- Conflict Review: Irrelevant utterances take precedence over training utterances, and conflicts are identified in the Cross-model Conflict Review module.
Key Outcomes
By implementing the Irrelevance detection feature, ServiceNow customers can:
- Improve prediction accuracy by filtering out irrelevant user inputs.
- Maintain optimal model performance with a maximum of 200 irrelevant utterances per model.
- Assess model behavior using irrelevant utterances in test sets, aiming for 10% of test inputs to be irrelevant.
- Reassign marked utterances to new intents when applicable, and ensure these updates are incorporated into model training.
Keep Virtual Agent chats focused with Irrelevance detection. Use the Irrelevance detection feature to train your NLU model to avoid making predictions for utterances that are not relevant.
Summary information
The Irrelevance detection feature improves the prediction accuracy of NLU models by training them to ignore certain utterances. These utterances from your users may not apply to any intent, so should not get any prediction.
To ensure that models do not predict an intent when they are not supposed to, you can mark utterances as Not relevant. These marked utterances are included as part of model training. When the published model encounters similar utterances from your users, no intent is matched or predicted.
The Irrelevance detection table is where you can manage utterances marked as Not relevant.
Roles, Usage, and Navigation
Use the nlu_admin or admin role to access Irrelevance Detection. The nlu_editor role is also able to access Irrelevance Detection, but must be assigned to a model to edit that model's contents.
Irrelevance Detection is available for Virtual Agent models only.
- Navigate to . The Virtual Agent tab opens by default.
- Scroll down the list of Virtual Agent models to the Boost your model performance section.
- Scroll horizontally to locate the card Keep chats focused, and select its button Go to irrelevance detection.
Adding utterances to Irrelevance detection
There are several methods for adding utterances to Irrelevance detection:
- The Virtual Agent chat log: In the Expert Feedback Loop in NLU Workbench, when you review an utterance collected from the Virtual Agent chat log, you can mark it as Not relevant. The system will ask whether it should be irrelevant to a particular model, or to all models. After adding, these utterances may
display as NO_INTENT in Expert Feedback Loop.
For more information on Expert Feedback Loop in NLU, see NLU Expert Feedback Loop.
These utterances have a Source of VA Chat Logs in the Irrelevance detection table.
Manual input: In Irrelevance detection, type your utterance in the Type utterances here field, then select Add. The system will ask whether it should be irrelevant to a particular model, or to all models.
These utterances have a Source of Manual in the Irrelevance detection table.
- Importing: When you use a CSV or XLSX (Excel Workbook) file to import training utterances and their intents, you can indicate irrelevant utterances by leaving the Intent column empty. These utterances may display as
NO_INTENT in areas such as Expert Feedback Loop and Conflict Review.
For more information on importing utterances and intents, see Create an NLU model from a CSV file.
These utterances have a Source of Manual in the Irrelevance detection table.
Behavior of irrelevant utterances
There are two types of irrelevant utterances: those associated to one specific model, or those irrelevant to any model. A model can have a maximum of 200 irrelevant utterances associated to it.
Following are details of how these two types and the 200-count maximum interact.
When a model is submitted for training, at most 200 irrelevant utterances are submitted with it. First, irrelevant utterances directly associated to that model are submitted. Then, utterances which are designated as not relevant to any model are submitted. The total of these types does not exceed 200.
If a model has 200 irrelevant utterances associated to it, and a new irrelevant utterance is added, then the model's oldest utterance is dropped. The new irrelevant utterance could be of either type (not relevant to the specific model, or not relevant to any model).
A model cannot have more irrelevant utterances than normal training utterances.
Conflict review
If an utterance is marked as irrelevant, and there is a similar utterance in an intent, the model does not make a prediction for that utterance. In other words, irrelevant utterances take precedence over training utterances.
Because irrelevant utterances impact the model's predictions, they are displayed as conflicts when they overlap with training utterances.- The Cross-model Conflict Review module. For more information about this module, see Cross-model Conflict Review.Note:The Cross-model Conflict Review module is available with the NLU Workbench - Advanced Features application from ServiceNow® Store. For more information, see NLU Workbench - Advanced Features.
- The Conflicts tab of an intent. For more information on conflicts in an intent, see Resolve intent issues.
Note that irrelevant utterances cannot be edited or deleted on the conflict page. Copy the irrelevant utterance from the conflict page to the Irrelevance detection page to modify or delete the utterance.
More information
- In test sets, aim to include about 10% of test utterances as irrelevant. This helps to assess how your model handles utterances that should not have an intent predicted. When you import training or test utterances from a CSV or XLSX (Excel Workbook) file, you can indicate that an utterance is irrelevant by leaving the Intent column empty.
- When testing models against test sets, results are considered Correct if no intent is predicted for an irrelevant utterance.
- Utterances that were marked as Not relevant can be re-assigned later. For example, if a new intent is created, existing irrelevant utterances can be manually assigned to the new intent. They then become
part of the normal training utterances.
To re-assign an utterance in Irrelevance detection, expand the list in the Corrected intent column and select the appropriate intent. Be sure to select the Save feedback button after re-assignment. Also be sure to retrain the model to incorporate these updates into the model.
- Irrelevant utterances are not associated to particular intents within a model. They are either associated to one model, or marked as not relevant to any model.
- The utterances which are marked as not relevant to any model are submitted as part of the training data for each model. In other words, these apply to all models.
- Model training is necessary to incorporate Not relevantutterances. Training any model adds newly marked utterances to all models.
- Utterances can be deleted or edited in the Irrelevance detection table.
- Irrelevant utterances should have content that is different from utterances associated to an intent.