cap2: the groundedness judge fails gold answers it can't verify, and some wrong answers pass
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- ai, testing-qa
Direzione di ricerca
Start with evaluator/judge.py around lines 112–113 and evaluator/scorer.py around lines 170–204; inspect how JudgeInput.pred_tool_calls is built in evaluator/utils.py around line 169. Reproduce the reported cap2 train cases using the task ids and compare groundedness inputs and scoring decisions. Done means supported gold answers can be judged with their calls in context and incorrect answers are not accepted solely because a gold output is present.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
On the cap2 train split, the groundedness judge fails 40 answers that are the gold answer, given after the agent retrieved the gold tool output. In 30 of them, the judge says the document doesn't show the question's condition or ranking. The judge sees the tool outputs but not the calls that produced them. In 6 others, the gold answer doesn't answer the question. In the other direction, 7 answers that differ from the gold answer passed, and 6 of them are wrong. They passed because the correctness check is skipped once the gold output appears among the agent's tool outputs.
Setup
- One pass of the CUGA agent (gpt-oss-120b) over cap2 train, scored with this repo's evaluator. The prompts, the judges and the cap2 scoring path are the same as
mainat 00dc68f. The judge was gpt-oss-120b at temperature 0, on an Azure deployment rather than RITS. - 1,841 tasks were scored. In 1,404 of them, every gold tool output was among the agent's tool outputs (exact match = 1). 118 of those 1,404 failed groundedness.
- We compared each answer with the train ground truth and read every case below by hand.
- To avoid contaminating the benchmark, this issue leaves out the questions, tool names and gold values. XXX and YYY stand in for them, and the task ids are listed at the end.
1. Gold answers fail groundedness (40 tasks)
In all 40 tasks, the answer is the gold answer and exact match = 1. In 32 of them, the agent made no calls beyond the gold ones. Of the 1,123 tasks with no extra calls and an answer that matches the gold answer, those 32 (2.8%) failed.
30 tasks: the judge can't see the call. The groundedness document is the query plus the tool outputs (judge.py#L112-L113). In cap2, the call is what applies the question's condition or ranking. For example, the question asks which item has the highest XXX. The gold tool's name says it returns that item, but its output is only the item's name, YYY. The agent answers YYY, and the judge fails it because the document doesn't show that YYY has the highest XXX. In all 30, what the judge says is missing is a condition or a ranking that the call applies. JudgeInput already carries pred_tool_calls (utils.py#L169), but the groundedness judge doesn't use them.
6 tasks: the gold answer doesn't answer the question. The gold tool computes something other than what the question asks, so the judge is right to fail the gold answer. A correct answer differs from the ground truth, so it fails too, unless the agent also made the gold call and the comparison was skipped (section 2). For example:
- The question asks for a total, and the gold tool computes a difference.
- The question asks for a time, and the gold tool returns the id of a record.
- The question asks for names, and the gold answer is a placeholder label.
4 tasks: the judge misread the tool output. For example, the output had a null that the agent relayed as None, and the judge called it unsupported. In another task, the judge said the document held only the question, although the output with the answer came right after it.
2. Answers that differ from the gold answer pass when the gold output is present (7 tasks)
When exact match = 1, the scorer skips the correctness judge and checks only groundedness (scorer.py#L170-L204). In all 7 tasks, the agent also made other calls, to other tools or to the gold tool with other arguments. The answer came from those outputs, or was computed with them, so the judge found it grounded. In 6 of the 7, the answer is wrong. For example, the agent called the gold tool a second time with the opposite filter and answered with that output. In the 7th, the gold answer doesn't answer the question, and the agent's answer may be right.
Related
- #25: judge errors are scored as fails.
- #48: 32 of 533 recorded gpt-oss judge calls changed verdict across 5 re-runs with identical inputs.
- #55: adds pass@k for groundedness.
Possible directions
- Show each tool call, with its name and arguments, next to its output in the groundedness document.
- When exact match holds, still compare the answer with the ground truth, or check groundedness against the matching output only.
- Review the 7 tasks in the last list below.
Task ids (cap2 train)
Gold answer failed: the judge can't see the call (30)
d80c9bf910f1-4a65b6b595dd840942187214-3f6ad31e86ef10050cfaf017-1a8f9c58cda45661cd917583-f298d9da33fe5661cd917583-7ccf7f4c53016e317bcd6839-e89042010cba1960f609e439-8c29a9ac482d39a28b2592a2-c90a53d704ca39a28b2592a2-99276e319b87ec134bf7bda5-7b96d79bf163ec134bf7bda5-3d1978878783ec134bf7bda5-f5b0578391ca34a533dfd727-236dd00a69706d05804bb8d7-db7faa3112303683085b75b9-48f8a7c2897fe71440999ce8-252522252bea398991009da1-c5821d5008a755b7e50368aa-f0debefdf2f655b7e50368aa-7f6c4eab868f55b7e50368aa-55f82f2d686831d9743578dc-0d9d4cf2131231d9743578dc-b5ccbd62724031d9743578dc-180d3ca3a29331d9743578dc-735c4987861e31d9743578dc-efffa40cb092afabd538bbfe-cab83d89cc1fafabd538bbfe-fe812b84ba95d14bbb0be92d-c03834b7dd692ffd766bcf59-1d20582dd55255b7e50368aa-f0d261dc4ce3
Gold answer failed: the judge misread the tool output (4)
308738b8195d-6429b9d5106ce71440999ce8-e8a6332f2a99afabd538bbfe-f721b88944126d05804bb8d7-6dc5733d9d94
A wrong answer passed (6)
6d05804bb8d7-1bb41a1a44fa3683085b75b9-955d139ffe9655b7e50368aa-5baf75cc18fe55b7e50368aa-215d22c96d294bbb5c2b3439-bd115d6718eabc9218680ed5-c535bb1f8a8e
The gold answer doesn't answer the question (7: the gold answer failed in 6, and a different answer passed in 1, the last one)
34a533dfd727-8ee83d291f88308738b8195d-bfec8a12cb4f308738b8195d-5244f99b14c2bda6fb7cb839-4c35784c2e36398991009da1-ab3d8dd250b64bbb5c2b3439-14e0d4457d8ffe971e7f850a-396ac6f21ac7
We can share the per-task verdicts and judge explanations privately.
- Lingua principale
- Python
- Stelle
- 79
- Fork
- 23
- Merge medio
- 2g 7h
- PR unite (30g)
- 3
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di IBM/vakra
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
accepted
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
future-agi/future-agi#5908 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
eclipse-score/coverage_tool#101 ·
I maintainer di solito rispondono entro 2 giorni
-
Placeholder export disables HTML image input for picture descriptionForse già presa @cloudiful l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
docling-project/docling-serve#817 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
Techiebutler/freeframe#687 ·
I maintainer di solito rispondono entro 1 giorno
-
Parse truncated verbose GC logs up to the first XML errorForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug verbose GC
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
IBM/javacore-analyser#677 ·
I maintainer di solito rispondono entro 1 giorno