MBPP+ Reveals Three Key Semantic Failure Modes

MBPP+ exposes specific LLM weaknesses in semantic robustness through deliberately introduced task description flaws: ambiguous (allowing multiple interpretations), incomplete (omitting essential requirements), and contradictory (containing internal inconsistencies). These lead to a phenomenon termed 'detrimental semantic collapse,' where models consistently commit to a single, incorrect interpretation.

The top 3

  1. LLMs' Top Semantic Flaw: Misinterpreting User Intent: Larger language models primarily fail on semantic assertions, generating code that is syntactically correct but does not fully capture the user's intended program behavior, a key limitation revealed by MBPP+ error analysis.
  2. Underspecification's Pitfall: LLMs' Detrimental Semantic Collapse: When given underspecified task descriptions, LLMs frequently 'collapse' onto a single, incorrect interpretation rather than providing diverse, semantically distinct solutions or signaling ambiguity, a detrimental failure mode affecting over 10% of MBPP tasks.
  3. Complex Logic's Downfall: LLMs Struggle with Multi-Step Reasoning: MBPP+ analysis reveals that LLMs consistently face challenges with complex problems requiring multi-step reasoning, such as tasks involving subsequences or multiple constraints, leading to persistent semantic errors in generated code.

Sources

Open the full topic