ASSESS: A Semantic and Structural Evaluation Framework for Statement Similarity

Xiaoyang Liu, Tao Zhu, Zineng Dong, Yuntian Liu, Guo qingfeng, Liu ZhaoXuan, Yu Chen, Tao Luo

Introduction: The Evaluation Bottleneck in Autoformalization

Autoformalization—the task of translating informal mathematical statements in natural language into formal code (like Lean or Isabelle)—is essential for building large-scale, machine-verifiable formal libraries. However, evaluating the quality of these translations remains a notoriously difficult challenge.

Currently, researchers rely on two flawed extremes:

  1. String-based metrics (e.g., BLEU): These rely on $n$-gram overlaps. They often fail because mathematics is semantically flexible; a perfectly correct translation might use different variable names or a slightly different logical structure than the ground truth, resulting in an unfairly low score.
  2. Proof-based metrics: These check if a theorem prover can verify that the translation is equivalent to the ground truth. While rigorous, they are highly brittle. If a prover fails due to a minor technicality or a missing lemma, the score drops to zero, providing no graded feedback on how "close" the translation actually was.

To address this "semantic-structural trade-off," researchers introduce ASSESS (A Semantic and Structural Evaluation Framework for Statement Similarity). ASSESS bridges the gap between surface-level string matching and "all-or-nothing" proof verification by understanding both the hierarchical structure of math and basic semantic equivalences.

The ASSESS Framework

Overview of the ASSESS Framework, showing the EPLA benchmark, TED baseline, and the TransTED search process

The core of the ASSESS framework is the TransTED (Transformation Tree Edit Distance) Similarity metric. It provides a graded similarity score that aligns much more closely with human expert judgment than existing methods. The process works in two main stages:

1. Operator Tree (OPT) Construction

Instead of treating formal code as a flat string, ASSESS uses the Lean Language Server to parse statements into hierarchical trees. Operators (like $+$ or $\sum$) become parent nodes, and operands become their children. This structural representation captures the mathematical syntax far better than a sequence of tokens.

An example of an operator tree (OPT) for a formal statement

Standard Tree Edit Distance (TED) only measures how many nodes you must change to make two trees identical. TransTED improves upon this by conducting a heuristic search. It applies a curated set of Lean "tactics" (semantic transformations) to try and unify the two statements.

  • Tactics used: These include rw (rewrite), norm_cast (type coercion), and congr (congruence).
  • Goal: The search tries to find a path that minimizes the TED. If the statements are proven equivalent, the distance becomes zero. If not, it still returns a "graded" score based on the remaining structural differences.

The EPLA Benchmark

To rigorously validate their metric, the authors introduce EPLA (Evaluating Provability and Likeness for Autoformalization), a new benchmark tailored for this field:

  • Source: Derived from the miniF2F and ProofNet datasets.
  • Content: 1,247 pairs of formal statements generated by four different LLMs (including Gemini 2.5 Pro and Qwen3-Max).
  • Annotation: Every pair was cross-validated by seven experts with mathematical backgrounds. They labeled pairs for Provability (semantic equivalence), Likeness before transformation (structural similarity), and Likeness after transformation.

Key Insights and Results

TransTED Similarity achieved state-of-the-art performance on the EPLA benchmark, significantly outperforming traditional baselines:

Metric EPLA-miniF2F Accuracy EPLA-miniF2F Kappa
Identity Match 32.61% 0.05
BLEU 68.96% 0.26
BEq (Proof-based) 59.45% 0.29
TransTED (Ours) 70.16% 0.35

The higher Kappa score is particularly important. It indicates that TransTED's scores align much more closely with the nuances of human expert judgment than either string-matching or brittle provers.

Why this matters: * Graded Feedback is King: Unlike proof-based methods that return a binary "Correct/Incorrect," TransTED provides a real-valued score. This is vital for "human-in-the-loop" debugging, where a researcher needs to know if a model is getting closer to the right answer. * Pseudometric Space: The authors formally define TransTED within a pseudometric space, ensuring it satisfies mathematical properties like the triangle inequality while allowing structurally different but semantically identical statements to have a distance of zero. * Efficiency: Unlike LLM-as-a-judge approaches, TransTED is reproducible and runs exclusively on CPU resources, making it much cheaper and faster to deploy at scale.

Limitations and Future Work

While highly effective, TransTED has a few limitations. It relies on a curated set of 7 structural tactics and the rw? tactic. In very complex cases requiring "creative" mathematical leaps or intermediate lemmas, the heuristic search might fail to find a path, leading to a false negative (a lower score for an equivalent statement). Furthermore, because the metric still has a structural component, it can occasionally give high scores to "near misses" that are semantically distinct, such as a statement with a subtle off-by-one error in a summation index.

Future work will focus on optimizing the configuration of tactic commands and exploring ways to further bridge the gap between variable definitions in hypotheses and their usage in conclusions.

Summary updated

BibTeX
@inproceedings{liu2026assess,
  author = {Xiaoyang Liu and Tao Zhu and Zineng Dong and Yuntian Liu and Guo qingfeng and Liu ZhaoXuan and Yu Chen and Tao Luo},
  title = {{ASSESS: A Semantic and Structural Evaluation Framework for Statement Similarity}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=avwNGWtiHF},
}
Figure