Welcome to the Alteryx Knowledge Base

Zero-shot issue
user

Created/Edited - 9/13/2025 by Michael Phipps | Alteryx

Question
  • Why do two identical input records result in different zero-shot results?
    • We observed that when using the Zero-shot Text Classification tool with identical labels and identical input data, the tool is returning different scoring values.
    • One instance of the tool is using 3 records, while another instance is processing over 1000 records, resulting in variations in the output scores
Environment
  • Designer Desktop
    • Alteryx Intelligence Suite
      • Zero-Shot Tool
Answer

This is because of the inherent randomness within the underlying model used in the Zero-Shot Text Classification Tool. However variability could be mitigated (reduced) by using consistent input (identical), and text cleaning or summarization being applied consistently to the input text data before each run. Precision and Numerical Stability could be a factor, this would mean that result variation would exist between machines. Other considerations for variance, even between runs using the same data set would be expected due to floating point precision of the quantized model and nature of the graph implementation.

 

In general, zero-shot should only be used on use cases that are common knowledge since it is a pretrained model on general knowledge (ONNX graph representation). It is not like few-shot learning where there would be multiple examples in prompting or with a LLM trained with larger knowledge. Anything that is industry knowledge or specialized expertise required is not likely to perform well using Zero-Shot Text Classification Tool. For datasets with industry knowledge or following a "bag-of-words" dataset, approaching the workflow design would be more suitable with the Text Classification Tool which allows for for training on your data and outputs a text classification model based on your training data. Text parsing should also be considered as an approach for classifying some datasets.

 

Note: Zero-Shot Text Classification tool is trained on https://huggingface.co/datasets/stanfordnlp/snli

 

Important: Even if the input text does not contain specific industry terms, if it does not provide enough context the model will not perform well.

 

Important: Avoid using extra labels on the L anchor, if the labels used are not included in the data stream D anchor, output may be unexpected

Additional Information
Was this article helpful?