ELVIA.Evidence Atlas
← Back to analysis

AI context

ELVIA analysis of: TypyBench: Evaluating LLM Type Inference for Untyped Python Repositories — Problem 3: Cached exact-match-without-missing loads the TypeSim key

Original paper: Honghua Dong; Jiacheng Yang; Xun Deng; Yuhe Jiang; Gennady Pekhimenko; Fan Long; Xujie Si. TypyBench: Evaluating LLM Type Inference for Untyped Python Repositories. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/dong25l.html
Source version: Published ICML 2025 proceedings PDF (PMLR 267)
Source location: scripts/evaluation.py:evaluate cache load and cache save blocks, CSV overall_score_wo_missing_exact output

Question: What does the recorded analysis establish about “Cached exact-match-without-missing loads the TypeSim key”?
Bounded finding:
Reload emits0.9 as exact score instead of 0.6, absoluteerror0.3.

Recorded check:
In |scripts/evaluation.py|, `evaluate` saves both |repo_overall_score_wo_missing| and |repo_overall_score_wo_missing_exact|. On a cache hit, however, the variable for the latter is assigned the former dictionary key. The resulting CSV and printed exact-match-without-missing output can change merely because the evaluation is repeated.
For a cache containing TypeSim-without-missing \(u=0.9\) and exact-match-without-missing \(v=0.6\), a cold evaluation correctly stores \(v\), whereas the reload branch assigns \(u\) to the exact field. Its absolute error is \(0.3\). The example needs only a valid cache containing the separately computed fields with \(u\ne v\); the same synthetic score pair is permitted by a partial-credit metric versus exact matching. No author pickle was loaded and no author function was executed.
The cold branch calculates and saves the correct field; the defect is specifically the reload branch. The published main exact-match-by-depth results do not automatically inherit this error, since their depth dictionaries are loaded separately. Assessment: Minor. Replacing the lookup with the exact-match key repairs this local dataflow, but no full author evaluation was rerun and no claim is made that the published tables used the faulty cached scalar.

Case-wide limitations:
- Stub-only checker counts omit original implementation obligations — Counterevidence: Stubs retain useful declaration/import/inheritance checks. Missing-rate is also reported. Neither addresses the complete-signature counterexample. Historical prediction directory contents/experiment commit are not supplied, so historical rankings are not declared reversed.
- Local symbol names do not equal supported inherited operations — Counterevidence: A declaration-only similarity is mathematically coherent but differs from the paper's stated supported-operation semantics. Paper's experiment environment was Mypy1.11.1; no exact-environment empirical rerun claimed.
- Cached exact-match-without-missing loads the TypeSim key — Counterevidence: Fresh computation/saved exact field is correct. Exact-match depth arrays are loaded separately. Historical usage of faulty cached scalar is unknown.
- Limitations: Historical experiment commit and prediction folders not verified
- Limitations: No author code, dataset, model APIs or empirical benchmark rerun
- Limitations: Independent synthetic mypy tests used1.14.1/Python3.13.5 versus paper1.11.1/Python3.12
- Limitations: Separate OpenReview attachment unavailable (403 acquisition)
- Limitations: Source plots checked through extracted context and numerical tables; parent inspects rendered key pages
- Limitations: Completed by parent; see provenance execution_facts.compile and visual_qa.
- The original report's complete scope, counterevidence and unresolved questions are retained below.
- This import checks publication format and identity; it does not repeat scientific review.
- Independent human scientific review is pending; author adoption has not been requested.
Source problem ID: p3
Source report index: 3

Original source excerpts (verbatim):
We then use the Jaccard index to measure functional similarity, where two types are similar if they share most of the same methods and operations.
Source: Published ICML 2025 proceedings PDF (PMLR 267)
Locator: PDF p. 4
Source PDF SHA-256: cedd43736ab0bfe6fc28e917e93aab07e1f8aec4353c01f8a0ef7d6aa9c868bc

Review status: Independent review pending
Case: icml2025-0197-typybench-evaluating-llm-type-inference-for-untyped-python-reposit
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0197-typybench-evaluating-llm-type-inference-for-untyped-python-reposit.html#problem-3
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0197-typybench-evaluating-llm-type-inference-for-untyped-python-reposit/records/icml2025-0197-typybench-evaluating-llm-type-inference-for-untyped-python-reposit.r1.json
Canonical record SHA-256: 8dd416ef88cd70afe40888b9f481e1af97152200e21f6b3be66bbb2829763136
The page follows the latest revision; the versioned record identifies this snapshot.