Same Text, Different Prediction: Serving-Context Nondeterminism in Text Classifiers
Import the versions from OpenReview: the same title at other venues
@openreview[bot] · 2026-11-22 19:47 UTC · f64476a71556
.gitattributes added
+++ b/.gitattributes@@ -0,0 +1,10 @@+# PDFs and pictures are kept with Git LFS (https://git-lfs.com). With it installed (`git lfs install`),+# a clone has the files, and `git add` of one stores a pointer. This file is the same on every page.+/.potentialpaper/*.pdf filter=lfs diff=lfs merge=lfs -text+/versions/*.pdf filter=lfs diff=lfs merge=lfs -text+/thumbnail.png filter=lfs diff=lfs merge=lfs -text+/thumbnail.jpg filter=lfs diff=lfs merge=lfs -text+/thumbnail.jpeg filter=lfs diff=lfs merge=lfs -text+/thumbnail.gif filter=lfs diff=lfs merge=lfs -text+/thumbnail.webp filter=lfs diff=lfs merge=lfs -text+/thumbnail.avif filter=lfs diff=lfs merge=lfs -text
.potentialpaper/metadata.json added
+++ b/.potentialpaper/metadata.json@@ -0,0 +1,19 @@+{+ "layout": 5,+ "identifiers": [+ {+ "scheme": "openreview",+ "value": "Up1plqCqo3"+ }+ ],+ "title": "Same Text, Different Prediction: Serving-Context Nondeterminism in Text Classifiers",+ "authors": [],+ "abstract": "Deterministic inference is essential for reliable and trustworthy machine learning. Prior studies of text generation have shown that changing factors such as batch size, batch composition, hardware, or inference engine can substantially alter the generated text, even when the prompt, model parameters, and sampling randomness are fixed. These differences have been attributed in part to floating-point non-associativity, shape-dependent kernel selection, and other implementation-level differences in numerical execution. However, it remains unclear whether, when, and to what extent the same factors affect text classification. To the best of our knowledge, this is the first systematic study of serving-context non-invariance in text classifiers. We train 180 models (spanning discriminative, pseudo-generative, and fully generative classifier formulations), and evaluate them across four different categories of serving contexts. We show that label stability can conceal substantial score instability e.g. changing only the batch shape changes no labels across fp32 comparisons, yet under bf16 it redistributes up to 56.7 percentage points of predicted probability mass, with label flipping concentrated around small margins. Fully generative classifiers are particularly susceptible, compared to their discriminative counterpart. We derive sufficient conditions for label stability under various serving contexts and give a separate mitigation for each non-invariance mechanism as well.\nTaken together, our results identify and quantify the previously understudied but important serving conditions that must be factored in for reproducible text classification.",+ "year": 2027,+ "venue": "ICLR 2027 (under review)",+ "source": "openreview",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}
community/10-tl-dr.md added
+++ b/community/10-tl-dr.md
community/20-summary.md added
+++ b/community/20-summary.md
community/30-why-it-matters.md added
+++ b/community/30-why-it-matters.md
community/40-critique.md added
+++ b/community/40-critique.md
community/50-errata.md added
+++ b/community/50-errata.md
community/60-reproductions.md added
+++ b/community/60-reproductions.md
community/70-follow-ups.md added
+++ b/community/70-follow-ups.md
owners/10-tl-dr.md added
+++ b/owners/10-tl-dr.md
owners/20-overview.md added
+++ b/owners/20-overview.md
owners/30-results.md added
+++ b/owners/30-results.md
owners/40-demos.md added
+++ b/owners/40-demos.md
owners/50-code-and-data.md added
+++ b/owners/50-code-and-data.md
owners/60-talks.md added
+++ b/owners/60-talks.md
prek.toml added
+++ b/prek.toml@@ -0,0 +1,36 @@+# Checks run before each commit, with prek (https://prek.j178.dev): `prek install` once in this clone.+# The site checks every push again; these catch mistakes before you commit. The same on every page.++[[repos]]+repo = "builtin"+hooks = [+ { id = "check-json" },+ { id = "pretty-format-json", args = ["--autofix", "--no-sort-keys", "--no-ensure-ascii"], exclude = '^demos/' },+ { id = "end-of-file-fixer", exclude = '^demos/' },+ { id = "trailing-whitespace", args = ["--markdown-linebreak-ext=md"], exclude = '^demos/' },+ { id = "check-case-conflict" },+ { id = "check-illegal-windows-names" },+ { id = "check-added-large-files", args = ["--maxkb=256"], exclude = '^demos/' },+]++# Each JSON file against its schema (https://papers.potentialhedge.com/schemas/).+[[repos]]+repo = "https://github.com/python-jsonschema/check-jsonschema"+rev = "0.39.0"+hooks = [+ { id = "check-jsonschema", name = "author section plugins files", files = '^owners/plugins\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/authorPlugins.json"] },+ { id = "check-jsonschema", name = "venue files", files = '^venue\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/venue.json"] },+ { id = "check-jsonschema", name = "topic files", files = '^topic\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/topic.json"] },+ { id = "check-jsonschema", name = "organisation files", files = '^org\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/org.json"] },+ { id = "check-jsonschema", name = "link files", files = '^links/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/link.json"] },+ { id = "check-jsonschema", name = "version files", files = '^versions/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/version.json"] },+ { id = "check-jsonschema", name = "picture files", files = '^thumbnail\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/thumbnail.json"] },+]++# Sections formatted the way the web editor formats them.+[[repos]]+repo = "https://github.com/rbubley/mirrors-prettier"+rev = "v3.9.9"+hooks = [+ { id = "prettier", files = '^(owners|community)/.*\.md$' },+]
versions/v_99iqb4cs.json added
+++ b/versions/v_99iqb4cs.json@@ -0,0 +1,19 @@+{+ "date": "2026-09-06",+ "kind": "submitted",+ "label": "ODI @ NeurIPS 2026",+ "submissions": [+ {+ "venue": "ODI @ NeurIPS 2026",+ "status": "accepted",+ "decision": "Poster",+ "url": "https://openreview.net/forum?id=XY1Po1fvoq"+ }+ ],+ "title": "Same Text, Different Prediction: Serving-Context Nondeterminism in Text Classifiers",+ "url": "https://openreview.net/forum?id=XY1Po1fvoq",+ "evidence": [+ "https://openreview.net/forum?id=XY1Po1fvoq"+ ],+ "abstract": "On-device and edge deployment runs text classifiers under reduced precision,\ninteger quantization, and specialized runtimes chosen to meet compute, memory,\nand energy budgets, often with no cloud reference to check against. We show that\nthese deployment settings, together with the batch a request happens to share,\ncan change a classifier's prediction even when the trained parameters, the input\ntext, and the tokenizer are fixed. Prior work documented such changes for text\ngeneration and attributed them to floating-point non-associativity and\nshape-dependent kernel selection; whether the same factors affect classification\nhas had almost no direct measurement. To our knowledge this is the first\nsystematic study of serving-context sensitivity in neural text classifiers: we\ntrain 180 models and evaluate them across 3,960 serving contexts spanning\ndiscriminative, pseudo-generative, and fully generative formulations. Label\nstability conceals score instability: changing only the batch shape flips no\nlabels across 226,104 full-precision comparisons, yet under bf16 it\nredistributes up to 56.7 percentage points of predicted probability, with the\nflip rate reaching 30.6\\% among examples whose top-two margin is below 0.01, and\nfully generative classifiers are the most exposed. We trace the numerical batch\neffect to shape-dependent matrix-multiplication reductions removed by\nbatch-invariant operations, while assigning token positions by real-token order\nremoves the larger padding effect. Reliable on-device classification therefore\nrequires fixing these serving settings and monitoring class probabilities, not\nthe predicted label alone."+}
versions/v_hv5qhntt.json added
+++ b/versions/v_hv5qhntt.json@@ -0,0 +1,19 @@+{+ "date": "2026-08-30",+ "kind": "submitted",+ "label": "LIGHT @ NeurIPS 2026",+ "submissions": [+ {+ "venue": "LIGHT @ NeurIPS 2026",+ "status": "accepted",+ "decision": "Oral",+ "url": "https://openreview.net/forum?id=n5jLT0jYfG"+ }+ ],+ "title": "Same Text, Different Prediction: Serving-Context Nondeterminism in Text Classifiers",+ "url": "https://openreview.net/forum?id=n5jLT0jYfG",+ "evidence": [+ "https://openreview.net/forum?id=n5jLT0jYfG"+ ],+ "abstract": "Deterministic inference is essential for reliable and trustworthy machine learning. Prior studies of text generation have shown that changing factors such as batch size, batch composition, hardware, or inference engine can substantially alter the generated text, even when the prompt, model parameters, and sampling randomness are fixed. These differences have been attributed in part to floating-point non-associativity, shape-dependent kernel selection, and other implementation-level differences in numerical execution. However, it remains unclear whether, when, and to what extent the same factors affect text classification, a task that is routinely served with compact models under reduced precision and quantization in latency- and cost-constrained deployments. To the best of our knowledge, this is the first systematic study of serving-context non-invariance in text classifiers. We train 180 models and evaluate them across 3,960 serving contexts spanning discriminative, pseudo-generative, and fully generative classifier formulations, while varying padded width, inference precision, hardware, batch size, batch composition, and other execution conditions. We show that label stability can conceal substantial score instability: changing only the batch shape changes no labels across 226,104 fp32 comparisons, yet under bf16 it redistributes up to 56.7 percentage points of predicted probability mass, with the label-change rate reaching 30.6\\% among examples whose initial top-two margin is below 0.01. We trace the measured numerical batch effect to shape-dependent matrix-multiplication reductions and show that batch-invariant operations eliminate the observed score differences and label changes in the tested configurations. Taken together, our results identify and quantify the previously unreported but consequential serving conditions that must be frozen for reproducible text classification, and show that the quantization, reduced-precision, and batching choices that make compact classifiers efficient to deploy carry a measurable reproducibility cost."+}
versions/v_pzfik2bh.json added
+++ b/versions/v_pzfik2bh.json@@ -0,0 +1,18 @@+{+ "date": "2026-09-17",+ "kind": "submitted",+ "label": "ICLR 2027",+ "submissions": [+ {+ "venue": "ICLR 2027",+ "status": "under_review",+ "url": "https://openreview.net/forum?id=Up1plqCqo3"+ }+ ],+ "title": "Same Text, Different Prediction: Serving-Context Nondeterminism in Text Classifiers",+ "url": "https://openreview.net/forum?id=Up1plqCqo3",+ "evidence": [+ "https://openreview.net/forum?id=Up1plqCqo3"+ ],+ "abstract": "Deterministic inference is essential for reliable and trustworthy machine learning. Prior studies of text generation have shown that changing factors such as batch size, batch composition, hardware, or inference engine can substantially alter the generated text, even when the prompt, model parameters, and sampling randomness are fixed. These differences have been attributed in part to floating-point non-associativity, shape-dependent kernel selection, and other implementation-level differences in numerical execution. However, it remains unclear whether, when, and to what extent the same factors affect text classification. To the best of our knowledge, this is the first systematic study of serving-context non-invariance in text classifiers. We train 180 models (spanning discriminative, pseudo-generative, and fully generative classifier formulations), and evaluate them across four different categories of serving contexts. We show that label stability can conceal substantial score instability e.g. changing only the batch shape changes no labels across fp32 comparisons, yet under bf16 it redistributes up to 56.7 percentage points of predicted probability mass, with label flipping concentrated around small margins. Fully generative classifiers are particularly susceptible, compared to their discriminative counterpart. We derive sufficient conditions for label stability under various serving contexts and give a separate mitigation for each non-invariance mechanism as well.\nTaken together, our results identify and quantify the previously understudied but important serving conditions that must be factored in for reproducible text classification."+}
versions/v_rrvmd4gq.json added
+++ b/versions/v_rrvmd4gq.json@@ -0,0 +1,19 @@+{+ "date": "2026-08-30",+ "kind": "submitted",+ "label": "TAE @ NeurIPS 2026",+ "submissions": [+ {+ "venue": "TAE @ NeurIPS 2026",+ "status": "accepted",+ "decision": "Poster",+ "url": "https://openreview.net/forum?id=uoHMoLLjhc"+ }+ ],+ "title": "Same Text, Different Prediction: Serving-Context Nondeterminism in Text Classifiers",+ "url": "https://openreview.net/forum?id=uoHMoLLjhc",+ "evidence": [+ "https://openreview.net/forum?id=uoHMoLLjhc"+ ],+ "abstract": "Deterministic inference is essential for reliable and trustworthy machine learning. Prior studies of text generation have shown that changing factors such as batch size, batch composition, hardware, or inference engine can substantially alter the generated text, even when the prompt, model parameters, and sampling randomness are fixed. These differences have been attributed in part to floating-point non-associativity, shape-dependent kernel selection, and other implementation-level differences in numerical execution. However, it remains unclear whether, when, and to what extent the same factors affect text classification, a task that is routinely served with compact models under reduced precision and quantization in latency- and cost-constrained deployments. To the best of our knowledge, this is the first systematic study of serving-context non-invariance in text classifiers. We train 180 models and evaluate them across 3,960 serving contexts spanning discriminative, pseudo-generative, and fully generative classifier formulations, while varying padded width, inference precision, hardware, batch size, batch composition, and other execution conditions. We show that label stability can conceal substantial score instability: changing only the batch shape changes no labels across 226,104 fp32 comparisons, yet under bf16 it redistributes up to 56.7 percentage points of predicted probability mass, with the label-change rate reaching 30.6\\% among examples whose initial top-two margin is below 0.01. We trace the measured numerical batch effect to shape-dependent matrix-multiplication reductions and show that batch-invariant operations eliminate the observed score differences and label changes in the tested configurations. Taken together, our results identify and quantify the previously unreported but consequential serving conditions that must be frozen for reproducible text classification, and show that the quantization, reduced-precision, and batching choices that make compact classifiers efficient to deploy carry a measurable reproducibility cost."+}