#38470·openvino

Phi-3-mini-instruct (NPU INT4) degenerates into repeated characters on a specific prompt — reproduces across devices, does not occur on Llama-2-7b-chat

Author: VaibMittal7Created Sep 29, 2026Updated Sep 29, 2026

Environment

  • OpenVINO GenAI, LLMPipeline, DEVICE="NPU"
  • Model A (affected): phi-3-mini-instruct-npu-int4
  • Model B (unaffected, same prompt): llama-2-chat-7b-FP16
  • Devices tested: Intel Core Ultra 5 228V / Arc 130V (SHINGL112), Intel Core Ultra 7 268V / Arc 140V (SHINGL136)
  • do_sample=False (greedy decoding), max_new_tokens=1024

Description

One specific prompt in our fixed 10-prompt test suite reliably causes phi-3-mini-instruct-npu-int4 to abandon coherent generation partway through and collapse into a long run of the repeated character 0, continuing until max_new_tokens is reached. The same prompt, run against llama-2-chat-7b-FP16 on the same hardware, produces a normal, complete, coherent response with no degeneration.

Reproduction

Prompt: Imagine three friends, Mia, Noah, and Olivia, each running a race. Mia finishes ahead of Noah, and Noah finishes ahead of Olivia. Analyze the race results and elaborate on the relationship between Mia's position and Olivia's, discussing possible scenarios. (In 500 words)

Observed behavior (Phi-3-mini-instruct-npu-int4)

Generation starts normally — a coherent short story about a race in "Green Meadows" — then partway through (after roughly 40–50 words) it stops producing real text and outputs an unbroken run of the digit 0 for the remainder of the token budget:

Solution 1

In the small town of Green Meadows the annual community race was always a highlight drawing participants from all around This year three friends Mia Noah and Olivia were among the competitors Mia known for her agility finished first Noah with his unmatched endurance came in second and O[...]

Full response: 1,570 characters, of which 820 are the repeated 0 character.

Cross-validation performed

  • Reproduces identically across 2 unrelated devices (SHINGL112, SHINGL136) and across all 5 repeat runs on each — same story opening, same collapse point, same output, every time. Fully deterministic given greedy decoding.
  • Does not reproduce on llama-2-chat-7b-FP16 with the identical prompt, on the identical hardware — that model produces a complete, on-topic answer with no anomaly, and its per-prompt timing shows no outlier either.
  • This rules out the prompt itself, the device, and the harness as the cause — it isolates to something specific to this INT4-quantized checkpoint (or its NPU compilation), not the request or the platform.

Expected behavior

A complete, on-topic response of comparable length/quality to the model's other responses in the same test suite, with no degeneration into repeated-character output.

Additional context

Happy to share the full JSON transcripts (prompt/response pairs across all 5 runs, both devices) and the exact hyperparameters used if that helps narrow this down.

Source: openvinotoolkit/openvino