ELVIA analysis of: TypyBench: Evaluating LLM Type Inference for Untyped Python Repositories — Problem 2: Local symbol names do not equal supported inherited operations
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: PDF p. 4; released type_similarity.py:get_type_attributes,_get_type_info_similarity,get_type_similarity
Question: What does the recorded analysis establish about “Local symbol names do not equal supported inherited operations”?
Bounded finding:
Base local names {read}, Child local names empty, effective attributes equal. Local-name score0 versus supported-operation score1. Distinct type strings bypass exact-string shortcut.
Recorded check:
Section 4.1.1 (p. 4) defines base similarity using supported methods and operations. The released |get_type_attributes| returns `TypeInfo.names`, a class’s local symbol table, without traversing its method-resolution order. Consider
Code:
class Base:
def read(self) -> int:
return 1
class Child(Base):
pass
Both types support the same inherited operation `read`; the subclass neither adds nor overrides behavior. Excluding common `object` operations, the intended supported-operation sets are both \(\{\mathrm{read}\}\) and their Jaccard score is \(1\). In the independently checked Mypy representation, the local names are respectively \(\{\mathrm{read}\}\) and \(\varnothing\). The released formula on those sets yields \[1-\frac{|\{\mathrm{read}\}\triangle\varnothing|}
{|\{\mathrm{read}\}\cap\varnothing\setminus O|
+|\{\mathrm{read}\}\triangle\varnothing|}=0,\] where \(O\) is the excluded common-operation set. The string-equality shortcut in |get_type_similarity| does not apply because the two named classes differ. The independent fixture confirms equal effective MRO attribute sets but a local-name score of zero.
An alternative definition based strictly on declarations would make the calculation internally coherent, but would not be the paper’s stated supported-operation definition. Method-name overlap also omits signatures and effects; that separate design limitation is not needed for this counterexample. Assessment: Minor for the demonstrated bounded implementation discrepancy. The extent to which inherited user-defined classes contributed to the historical aggregate scores is not established. Computing effective supported attribute sets would address this specific mismatch; complete semantic similarity and historical numerical recovery are not thereby verified.
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: p2
Source report index: 2
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-2
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.