File size: 13,884 Bytes
908f811 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 | # InfoSeek fact coverage
이 문서는 InfoSeek 질문에서 필요한 positive fact를 어디서 복원할 수 있는지 정리한다.
현재 기준:
```text
train/val:
gold QID exists via *_withkb.jsonl
fact coverage analysis is reliable
test/human:
no explicit *_withkb file locally
latest OVEN test/human files also have no entity_id
fact coverage analysis is not reliable yet
```
Raw structural stats:
```text
dataset_explanation/infoseek/fact_coverage_structural.json
dataset_explanation/infoseek/infoseek_stats_full.json
```
Generated fact-store artifacts:
```text
codebook-contrastive/build_fact_store/output_facts/infoseek_facts.jsonl
codebook-contrastive/build_fact_store/output_facts/qid_to_fact_ids.json
codebook-contrastive/build_fact_store/output_facts/pid_to_fact_ids.json
codebook-contrastive/build_fact_store/output_facts/qid_label_alias_cache.json
codebook-contrastive/build_fact_store/output_facts/infoseek_train_question_fact_map.jsonl
codebook-contrastive/build_fact_store/output_facts/infoseek_val_question_fact_map.jsonl
codebook-contrastive/build_fact_store/output_facts/infoseek_question_fact_map_summary.json
codebook-contrastive/build_fact_store/output_facts/fact_coverage_by_qtype.json
codebook-contrastive/build_fact_store/output_facts/infoseek_numeric_facts.jsonl
codebook-contrastive/build_fact_store/output_facts/infoseek_train_numeric_question_fact_map.jsonl
codebook-contrastive/build_fact_store/output_facts/infoseek_val_numeric_question_fact_map.jsonl
codebook-contrastive/build_fact_store/output_facts/infoseek_numeric_fact_summary.json
codebook-contrastive/build_fact_store/output_facts/wikidata_claim_cache/
```
Current label cache status:
```text
qid_label_alias_cache entries: 16,786
entries with label: 16,605
fact store unique object QIDs: 18,584
object QIDs with label: 16,743
object QIDs without label: 1,841
fact rows missing object label: 28,785 / 1,141,235
```
---
## 1. What counts as fact coverage?
There are two different levels.
### Entity-level KG coverage
```text
Does the gold entity QID exist in our entity universe?
```
For train/val, all explicit InfoSeek entities are in KnowCoL:
```text
train unique entities: 5,549 / 5,549 in KnowCoL
val unique entities: 1,794 / 1,794 in KnowCoL
```
### Query-specific positive fact coverage
```text
Does the KG contain the exact fact needed to answer this question?
```
Example:
```text
question: What country does this river belong to?
gold entity: Q214924 / Rhine Falls
answer: Switzerland
positive fact:
(Q214924, P17, Q39)
Rhine Falls --country--> Switzerland
```
This is the useful coverage for `FactHead` training.
---
## 2. KnowCoL local KG limitation
KnowCoL local KG stores triples like:
```text
(subject_qid, property_pid, object_qid)
```
So it is naturally useful for entity-valued facts:
```text
(Q214924, P17, Q39)
Rhine Falls --country--> Switzerland
```
But it does not directly store literal quantity/time values such as:
```text
height = 23 metre
date of birth = 1901-01-01
average flow = 600 m^3/s
```
For those, we need full Wikidata claims:
```text
wikibase-item claims
quantity claims
time claims
```
Therefore:
```text
STRING:
often recoverable from KnowCoL local KG if object label/alias matches answer_eval
NUMERICAL:
usually requires full Wikidata quantity claims
TIME:
usually requires full Wikidata time claims
```
---
## 3. Train structural coverage
Gold entity source:
```text
infoseek_train_withkb.jsonl
```
```text
rows: 934,048
resolved rows with entity: 934,048
unique entities: 5,549
entities in KnowCoL entity.txt: 5,549
entities not in KnowCoL entity.txt: 0
entities with local outgoing KnowCoL facts: 5,544
entities without local outgoing KnowCoL facts: 5
rows whose entity has no local head entry: 948
```
Answer type:
```text
list[str] / string-or-time style: 743,065
numerical dict: 190,983
```
Interpretation:
```text
Most train samples have a local entity-object fact pool.
But 190,983 numerical rows need full Wikidata quantity matching for real positive fact recovery.
```
Current local positive matching result:
```text
rows: 934,048
rows with matched local positive fact: 240,946
positive rate: 25.80%
positive_status:
matched_local_tail_surface: 240,946
no_match_local_tail_surface: 692,154
no_local_head_entry: 948
entity-level:
unique entities: 5,549
entities with at least one local positive: 1,921
entity-major status:
matched_local_tail_surface: 1,394
no_match_local_tail_surface: 4,150
no_local_head_entry: 5
average negatives per row:
same_entity_different_fact: 15.62
same_property_different_subject_object: 15.90
```
This is still conservative. A local positive is counted only when an object QID label/alias exactly matches `answer_eval`.
Type-level breakdown:
```text
train total:
rows: 934,048
matched: 240,946
rate: 25.80%
Numerical:
rows: 190,983
matched: 0
rate: 0.00%
reason: local KnowCoL KG does not encode quantity literals
StringOrTime:
rows: 743,065
matched: 240,946
rate: 32.43%
note: train qtype file is not used here, so String and Time are not separated
```
---
## 4. Validation structural coverage
Gold entity source:
```text
infoseek_val_withkb.jsonl
```
Question type source:
```text
infoseek_val_qtype.jsonl
```
Overall:
```text
rows: 73,620
resolved rows with entity: 73,620
unique entities: 1,794
entities in KnowCoL entity.txt: 1,794
entities not in KnowCoL entity.txt: 0
entities with local outgoing KnowCoL facts: 1,794
entities without local outgoing KnowCoL facts: 0
rows whose entity has no local head entry: 0
```
Question type:
```text
String: 54,319
Numerical: 15,896
Time: 3,405
```
### val_unseen_entity
```text
rows: 54,964
unique entities: 1,192
entities with local outgoing KnowCoL facts: 1,192
question type:
String: 40,864
Numerical: 11,509
Time: 2,591
```
### val_unseen_question
```text
rows: 18,656
unique entities: 602
entities with local outgoing KnowCoL facts: 602
question type:
String: 13,455
Numerical: 4,387
Time: 814
```
Interpretation:
```text
Val is fully usable for fact coverage evaluation because gold QID exists.
Local KnowCoL gives a fact pool for every val entity.
However, query-specific positive matching still requires answer-to-claim matching.
```
Current local positive matching result:
```text
rows: 73,620
rows with matched local positive fact: 14,445
positive rate: 19.62%
positive_status:
matched_local_tail_surface: 14,445
no_match_local_tail_surface: 59,175
entity-level:
unique entities: 1,794
entities with at least one local positive: 813
entity-major status:
matched_local_tail_surface: 371
no_match_local_tail_surface: 1,423
average negatives per row:
same_entity_different_fact: 15.78
same_property_different_subject_object: 15.95
```
The previous `no_object_label_cache` issue is mostly resolved for InfoSeek train/val tails. Remaining unmatched rows are now mostly true `no_match_local_tail_surface`: the local entity-object KG fact pool exists, but no object label/alias exactly matches the answer.
Type-level breakdown:
```text
val total:
rows: 73,620
matched: 14,445
rate: 19.62%
String:
rows: 54,319
matched: 14,445
rate: 26.59%
Numerical:
rows: 15,896
matched: 0
rate: 0.00%
Time:
rows: 3,405
matched: 0
rate: 0.00%
```
Split-level type breakdown:
```text
val_unseen_entity:
String: 10,864 / 40,864 = 26.59%
Numerical: 0 / 11,509 = 0.00%
Time: 0 / 2,591 = 0.00%
val_unseen_question:
String: 3,581 / 13,455 = 26.61%
Numerical: 0 / 4,387 = 0.00%
Time: 0 / 814 = 0.00%
```
---
## 5. Full Wikidata numeric-like claim coverage
For the next stage, `Numerical` and `Time` are merged into one numeric-like group.
```text
numeric-like = quantity claims + time claims
```
Reason:
```text
The retriever does not need to treat time and quantity as fundamentally different classes.
Both are structured value facts attached to a subject entity and property.
```
Generated artifacts:
```text
infoseek_numeric_facts.jsonl
infoseek_train_numeric_question_fact_map.jsonl
infoseek_val_numeric_question_fact_map.jsonl
infoseek_numeric_fact_summary.json
wikidata_claim_cache/{QID}.json
```
Numeric-like fact schema:
```text
quantity fact:
subject_qid
property_id
amount
unit / unit_qid
lower_bound / upper_bound if available
time fact:
subject_qid
property_id
time
year
precision
```
Positive matching:
```text
Numerical:
match Wikidata quantity amount to InfoSeek answer_eval range
Time:
match Wikidata time year to answer_eval year variants
```
Negative facts:
```text
same_entity_different_numeric_time_fact:
another quantity/time claim from the same gold entity
same_property_different_subject_value:
same property, different subject/value
```
Combined train+val Wikidata claim store:
```text
unique InfoSeek train/val entities: 6,741
numeric-like facts: 7,939
quantity: 6,296
time: 1,643
```
### Train numeric-like coverage
Train currently uses only explicit Numerical rows because no train qtype file is available locally.
```text
Numerical rows: 190,983
matched Wikidata numeric-like positive: 158,870
coverage: 83.19%
status:
matched_wikidata_numeric_like_claim: 158,870
no_wikidata_numeric_time_claims: 27,796
no_match_wikidata_numeric_like_claim: 4,317
```
### Validation numeric-like coverage
Validation uses `infoseek_val_qtype.jsonl`, so Numerical and Time are both included.
```text
Numeric-like rows: 19,301
matched Wikidata numeric-like positive: 18,912
coverage: 97.98%
status:
matched_wikidata_numeric_like_claim: 18,912
no_match_wikidata_numeric_like_claim: 369
no_wikidata_numeric_time_claims: 20
```
Breakdown:
```text
Numerical:
rows: 15,896
matched: 15,526
coverage: 97.67%
Time:
rows: 3,405
matched: 3,386
coverage: 99.44%
```
Interpretation:
```text
Local KnowCoL KG cannot cover Numerical/Time because it mostly stores QID-object triples.
Full Wikidata claims recover most numeric-like positives.
```
Remaining misses are mostly:
```text
1. the entity has no quantity/time claim of the required kind
2. the answer value is present in Wikipedia text but not structured Wikidata
3. the matching rule is too strict for ranges, units, or temporal precision
```
---
## 6. Test and human status
Current local files do not support reliable fact coverage for test/human.
Reason:
```text
InfoSeek test/human:
no local test_withkb / human_withkb file
latest OVEN test/human:
no entity_id field
```
Weak image-id overlap with labeled OVEN train/val resolves only a tiny subset:
```text
test:
rows: 347,980
weakly resolved rows: 5,679
missing entity rows: 342,301
human:
rows: 8,931
weakly resolved rows: 116
missing entity rows: 8,815
```
Therefore:
```text
Do not report test/human fact coverage from current local files.
Use test/human for QA-only evaluation unless official QID mappings are restored.
```
---
## 7. Positive fact recovery logic
For each InfoSeek train/val sample:
```text
input:
gold entity QID S
question q
answer / answer_eval A
```
Candidate facts:
```text
local KnowCoL facts:
all triples with subject S
full Wikidata claims:
all wikibase-item / quantity / time claims for S
```
Positive fact matching:
```text
STRING:
match answer_eval against object label / alias / normalized surface
NUMERICAL:
match answer_eval numeric range against quantity claim amount
TIME:
match answer_eval string/date/year against time claim value
```
Property-question filtering:
```text
Use property label/description and question text to rank or filter candidates.
```
Example:
```text
question:
What is the height of this river in metre?
gold entity:
Q214924 / Rhine Falls
answer_eval:
{"wikidata": 23.0, "range": [20.7, 25.3]}
positive fact source:
full Wikidata quantity claim, not KnowCoL local entity-object KG
```
---
## 8. FactHead training data
For reliable MVP construction, use train/val with gold QID.
Fact item input:
```text
subject:
QID
title / label
short text metadata if available
property:
PID
property description from KnowCoL relation file when available
Wikidata property label/description when using full claims
object/value:
if wikibase-item:
object QID
object label / aliases
if quantity:
amount
unit QID if available
normalized numeric value
if time:
timestamp
precision
```
Positive:
```text
the matched claim/triple answering the sample
```
Negatives:
```text
same entity, different fact
same property, different subject/object or different value
same datatype, different value
same-code-prefix hard fact
```
---
## 9. What to report in experiments
Report fact recovery separately from final QA.
Recommended metrics:
```text
Fact Recall@K:
whether a matched positive fact appears in top-K retrieved facts
Positive construction coverage:
how many samples have at least one high-confidence positive fact
Coverage by question type:
String
Numerical
Time
Coverage by source:
KnowCoL local KG
full Wikidata claims
not matched / text evidence needed
```
Important:
```text
KnowCoL local KG coverage is not the same as positive fact coverage.
The real metric is whether the query-specific answer fact can be matched.
```
---
## 10. Immediate next implementation target
Do this first:
```text
InfoSeek train/val only
gold QID from *_withkb.jsonl
qtype from infoseek_val_qtype.jsonl for val
```
Then build:
```text
1. object QID -> label/alias cache
2. property PID -> label/description cache
3. full Wikidata claim cache for unique train/val entities
4. positive_fact_candidates.jsonl
5. fact coverage report by qtype and source
```
Do not spend time on test/human fact coverage until QID mappings are restored.
|