---
title: UnsolvableQA Paradigm for LLM Calibration
url: https://www.emergentmind.com/topics/unsolvableqa-paradigm
type: topic
---

# UnsolvableQA Paradigm for LLM Calibration

The UnsolvableQA paradigm refers to a class of benchmarks and learning objectives designed to train and evaluate large language models (LLMs) on their ability to solve problems, detect objectively unsolvable instances (i.e., those with internal contradictions), and calibrate their refusal behavior on instances that are solvable in principle but beyond their current capability. The paradigm is operationalized via the UnsolvableQA dataset and the UnsolvableRL framework, which jointly drive LLM alignment on solvability detection and prudent refusal [2512.01661].

## 1. Motivation and Formalization

Traditional language model evaluation focuses on instance accuracy, but LLMs frequently hallucinate confident answers to unsolvable or contradictory tasks, leading to reliability failures. The UnsolvableQA paradigm addresses this limitation by explicitly pairing solvable and unsolvable problems and constructing multi-faceted objectives that encourage correct problem-solving, high-precision rejection on inherently unsolvable instances, and careful refusal on exceptionally difficult but technically solvable cases.

Formally, given an input $x$ drawn from a dataset $\mathcal{D}$, there are three instance categories:
- $x \in \mathcal{S}$: objectively solvable, with a ground truth answer set;
- $x \in \mathcal{U}$: unsolvable, containing inherent contradictions;
- $x \in \mathcal{C}$ (implied): solvable in principle but outside current model capacity.

The model’s policy $\pi_\theta$ must produce:
- a correct solution when $x \in \mathcal{S}$;
- a canonical “$\langle$unsolvable$\rangle$” tag on $x \in \mathcal{U}$;
- a “$\langle$beyond_capacity$\rangle$” tag when feasible, but the model’s accuracy is empirically low on $x$’s cohort.

## 2. Construction of UnsolvableQA Data

UnsolvableQA consists of paired solvable and unsolvable instances across diverse domains such as Game24, Hamiltonian paths, Hitori, Mazes, and AIME-style mathematics problems [2512.01661]. Its construction involves two main methodologies:
- **Programmatic Generation**: For logic puzzles, solvable/unsolvable instances are created via constraint-based enumeration and contradiction injection.
- **Reverse Construction**: For mathematical domains, valid reasoning chains are perturbed to deliberately introduce contradictions, ensuring objective unsolvability.

The dataset for Qwen3 experiments includes 637 training instances (348 solvable, 289 unsolvable) and 699 test instances, carefully balanced across domains to prevent bias and to distinguish between unsolvability and incapability.

## 3. UnsolvableRL Framework

The UnsolvableRL framework aligns LLMs for the UnsolvableQA task by optimizing reinforcement learning objectives that integrate accuracy, unsolvability detection, and capability-calibrated refusal [2512.01661]. The joint per-trajectory reward is defined as:

\[
R(y|x) = R_{\rm acc}(y|x) + R_{\rm detect}(y|x) + R_{\rm cal}(y|x)
\]
where:
- $R_{\rm acc}(y|x)$ rewards correct answers $(+1)$ on $x \in \mathcal{S}$,
- $R_{\rm detect}(y|x)$ rewards correct $\langle$unsolvable$\rangle$ tags $(+1)$ for $x \in \mathcal{U}$ and imposes a penalty $\rho=-0.5$ for false rejections on $x \in \mathcal{S}$,
- $R_{\rm cal}(y|x)$ encourages $\langle$beyond_capacity$\rangle$ only when the model’s empirical batch accuracy $\beta$ falls below a dynamic threshold $\tau$:
\[
\beta = \frac{1}{N}\sum_{i=1}^N \mathbf{1}[y_i \text{ correct}]
\]
\[
R_{\rm cal}(y) = \lambda(\tau - \beta)\,\mathbf{1}[y = \langle \text{beyond\_capacity} \rangle]
\]
with $\lambda > 0$ and $\tau$ annealed upward toward $1$ during training.

## 4. Learning Algorithm: Group-Relative Policy Optimization

UnsolvableRL employs Group-Relative Policy Optimization (GRPO) [2512.01661], which uses within-group normalization of rewards to handle heterogeneous objectives and stabilize training across diverse instance types. For group size $G$, the approach samples $G$ outputs per prompt, computes trajectory rewards, and normalizes advantages:

\[
A_i = \frac{R_i - \mu_R}{\sigma_R + \epsilon}
\]
with
\[
\mu_R = \frac{1}{G}\sum_j R_j, \ \sigma_R^2 = \frac{1}{G}\sum_j (R_j-\mu_R)^2
\]

The surrogate objective takes the PPO-style clipped form:
\[
\mathcal{J}(\theta) = \mathbb{E}_{x, \{y_i\}} \left[ \frac{1}{G}\sum_{i=1}^G \min(r_i(\theta) A_i, \ \mathrm{clip}(r_i(\theta), 1-\varepsilon, 1+\varepsilon)\,A_i) \right]
\]
This is optimized by stochastic gradient ascent without a separate value network, facilitating direct handling of the composite reward.

## 5. Capability Collapse and Negative Supervision

A critical empirical finding is the **capability collapse** phenomenon: if an LLM is trained on only solvable instances, it loses the ability to detect unsolvability—unsolvable detection accuracy collapses to near zero [2512.01661]. This is attributed to gradient interference at the refusal head; if the features for solvable and unsolvable instances are correlated, negative updates on solvable data suppress refusal on all inputs. The UnsolvableRL protocol prevents collapse by:
- ensuring every RL batch contains both solvable and unsolvable data,
- employing a negative false-rejection penalty ($\rho < 0$) to avoid universal refusal,
- dynamically tuning the refusal threshold $\tau$ to incentivize prudent, data-driven calibration.

Ablation experiments confirm the indispensability of these components; even the use of a fixed $\tau$ leads to either zero or universal refusal in the limit.

## 6. Key Empirical Results

In Qwen3-4B experiments:
- The baseline instruct model achieves a combined score (mean of solvable accuracy $S$ and unsolvability-rejection $U$) of $\approx 49.2\%$.
- UnsolvableRL achieves a combined score of $\approx 88.3\%$ ($S \approx 69.5\%,\ U \approx 90.9\%$).
- Unsolvable instance rejection rises from $36.3\%$ to $90.9\%$; solvable accuracy for some domains (e.g., Game24) increases from $49.0\%$ to $95.5\%$.

Ablation on "Solvable-Only" training collapses U-detection to $\leq 1.5\%$. Fixed-$\tau$ ablations confirm worse trade-offs compared to a dynamic schedule. The approach establishes that (i) negative-data exposure, (ii) a negative false-rejection penalty, and (iii) a dynamic refusal threshold are all necessary for robust boundary-of-solvability alignment.

## 7. Limitations and Directions for Future Work

Primary limitations of the UnsolvableQA framework and its associated RL protocol include:
- **Dependence on High-Quality Contradictory Data**: Constructing paired unsolvable examples in open-ended domains remains labor-intensive [2512.01661].
- **Sensitivity to Threshold Scheduling**: The dynamic $\tau$ schedule and calibration scaling parameters require careful selection.
- **Limited Generalization Evidence**: Extensions are needed for out-of-distribution (OOD) unsolvable benchmarks, further feature-space diagnostics, application to alternative policy optimization methods (e.g., PPO, DPO), and to multi-agent/self-play regimes.

Potential enhancements involve incorporating human feedback on refusal calibration, uncertainty-aware token-level rewards, and broader stress-testing for generalization beyond current synthetic datasets.

---

In sum, the UnsolvableQA paradigm operationalizes and evaluates LLMs’ ability to distinguish between solvability, unsolvability, and incapability, using a principled reinforcement learning alignment framework and a synthetic paired dataset [2512.01661]. This approach provides a rigorous, scalable testbed for research on reliable model refusal and rejection calibration in high-stakes reasoning domains.

Source: https://www.emergentmind.com/topics/unsolvableqa-paradigm