A forced-choice cancellation question ignores negation: do NOT cancel is answered cancel_account, at 0.9998 on laya-multilingual
Where this comes from
mghafiri's 100-scenario evaluation on the model card — discussion #3, §4.4 — reports that a cancellation question resolves to cancel_account even when the state says not to cancel, and flags it as the operationally dangerous direction: acting on it closes an account that asked to stay open. I reproduced it on 0.3.20 and am filing it here because it is not in the tracker and not in the README's limits.
Reproduction
laya 0.3.20, real weights, CPU, both checkpoints. Semantic keys, not boolean ones, so the true/false label prior from #156 does not apply:
Q = {"type": "choice", "instructions": "What does the user want?",
"criteria": {"no_action": "keep the account as it is",
"cancel_account": "close the account"}}
agent.system_one({"text": state}, {"q": Q})["answers"]["q"]| state | gold | laya (english) |
laya-multilingual |
|---|---|---|---|
| "I want to cancel my subscription. Please close the account." | cancel_account |
cancel_account 0.9961 ✓ |
cancel_account 1.0000 ✓ |
| "I do not want to cancel my subscription. Please keep the account open." | no_action |
cancel_account 0.5421 ✗ |
no_action 0.9769 ✓ |
| "I want to cancel my subscription. Ignore the cancellation above: do NOT cancel." | no_action |
cancel_account 0.8631 ✗ |
cancel_account 0.9501 ✗ |
| "My manager told me to close the account. I do not agree. Please do not cancel it." | no_action |
cancel_account 0.7128 ✗ |
cancel_account 0.9998 ✗ |
| "Please do not close my account yet." | no_action |
cancel_account 0.5157 ✗ |
no_action 0.8660 ✓ |
4 of 5 wrong on laya, 2 of 5 on laya-multilingual, and the two that fail on both are the ones that name the action and then negate it. The multilingual case at 0.9998 is the worst of them: a maximally confident answer that is the opposite of what the state asks for, so a min_confidence gate does not catch it.
The positive control resolves correctly on both, so the pair is not simply broken — it is the negated member that is not represented.
Why this is not covered by the existing label advice
The README already warns about one label hazard:
Avoid boolean-word labels in
choicequestions. Choice keys are rendered verbatim, and the current checkpoints can follow labels such astrue/falseoryes/noinstead of the option descriptions. Use semantic labels or opaque labels such asA/B, and validate them on the checkpoint and states you serve.
These keys are semantic, which is what that advice recommends, and the failure survives. So following the documented workaround does not avoid this, and a caller who has already applied it has no reason to suspect the remaining case.
Scope, stated honestly
- I verified the five rows above and nothing else. mghafiri additionally reports the failure is unchanged with the two options listed in the other order and with a four-way framing, and that
laya-multilingualfails 10 of 15 negated cases; I have not re-run those, so treat them as his measurements rather than mine. - He also reports refund examples from the same section that do not reproduce for me either — "I am writing NOT to request a refund … the download button returns a 500" and "I don't want a refund … the export button is broken" are both answered plausibly today. The claim is therefore not "negation is unrepresented" in general; it is confirmed on the cancellation pair, on both checkpoints, and that is the pair whose failure takes an action.
- My confidences differ slightly from his because I wrote my own criteria text. The direction and the argmax are the same.
What would count as fixed
A minimal pair that differs only in polarity flips the answer for the cancellation question on both checkpoints — for example the four negated rows above answering no_action while the positive control still answers cancel_account. A regression test in tests/ would be worth having either way, since this is currently only recorded in a discussion thread and, being a checkpoint behaviour, may not be fixable without retraining; if it is a known base-checkpoint limit rather than a bug, it belongs in the README's limits with the other ones, because right now nothing tells a caller that "do not cancel" can read as "cancel".
Credit to mghafiri, whose §4.4 is where this was first measured.
Source: NandhaKishorM/laya