Object Aligner: A Configurable JSON Schema Similarity Score for Graphs, Applied to LLM Prompt Optimization
On the map: LLM agents and tool use → Tool learning and function calling
Abstract (arXiv)
Large language models (LLMs) are often asked to produce JSON conforming to a fixed schema, powering information extraction, tool calling, agentic planning, and knowledge-graph construction. Measuring how closely an output matches a gold reference is essential yet surprisingly hard: exact match is brittle, text similarity ignores structure, and an LLM judge is expensive, opaque, and non-deterministic. We address this with Object Aligner (OA), an open-source Python library that scores two JSON objects deterministically by recursively aligning their trees (the Hungarian algorithm for unordered collections, sequence alignment for ordered ones) and awarding partial credit at the granularity the schema declares. The Object Aligner is configured entirely through a set of JSON Schema extensions, so adapting it to a new task involves annotating a schema rather than writing code. Complex structured data, however, are rarely flat trees: records may form graphs or hypergraphs keyed by arbitrary identifiers, breaking the assumptions of prior similarity metrics. Our central contribution, referential alignment, closes this gap by inferring a bijection between gold and candidate identifiers and scoring every reference through it, so the score is invariant to relabeling. Since recovering this bijection exactly is graph isomorphism, the Object Aligner approximates it with Weisfeiler-Leman color refinement. An order-sensitive sequence regime targets ranking and planning. Since the same alignment localizes every mismatch, the Object Aligner emits ranked repair suggestions at no extra cost. Used as a reward inside the GEPA prompt optimizer, Object Aligner helps or stays neutral across all datasets.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 32 of its 67 references that are in the map. First posted on arXiv 2 Jul 2026.
Builds on
32 of 67 references.
References · 32
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
- 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,205
- 2020BLEURT: Learning Robust Metrics for Text Generationcited by 1,196
- 2020COMET: A Neural Framework for MT Evaluationcited by 1,024
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2018Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networkscited by 878
- 2023Large Language Models as Optimizerscited by 830
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 521
- 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 449
- 2016A Corpus and Evaluation Framework for Deeper Understanding of Commonsense Storiescited by 413
- 2018Multi-Task Identification of Entities, Relations, and Coreference for Scientific Knowledge Graph Constructioncited by 321
20 more
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 270
- 2024NATURAL PLAN: Benchmarking LLMs on Natural Language Planningcited by 125
- 2022BioRED: A Rich Biomedical Relation Extraction Datasetcited by 84
- 2025A Systematic Survey of Automatic Prompt Optimization Techniquescited by 61
- 2016On Valid Optimal Assignment Kernels and Applications to Graph Classificationcited by 49
- 2024Symbolic Prompt Program Search: A Structure-Aware Approach to Efficient Compile-Time Prompt Optimizationcited by 29
- 2021Maximum Bayes Smatch Ensemble Distillation for AMR Parsingcited by 27
- 2019Rewarding Smatch: Transition-Based AMR Parsing with Reinforcement Learningcited by 25
- 2020AMR Similarity Metrics from Principlescited by 21
- 2023SMATCH++: Standardized and Extended Evaluation of Semantic Graphscited by 19
- 2021Is Everything in Order? A Simple Way to Order Sentencescited by 15
- 2021Weisfeiler-Leman in the BAMBOO: Novel AMR Graph Metrics and a Benchmark for AMR Graph Similaritycited by 15
- 2022Iterative Document-level Information Extraction via Imitation Learningcited by 11
- 2026ExtractBench: A Benchmark and Evaluation Methodology for Complex Structured Extractioncited by 8
- 2025Automatic Prompt Optimization for Knowledge Graph Construction: Insights from an Empirical Studycited by 6
- 2025STRuCT-LLM: Unifying Tabular and Graph Reasoning with Reinforcement Learning for Semantic Parsingcited by 5
- 2025STED and Consistency Scoring: A Framework for Evaluating LLM Structured Output Reliabilitycited by 5
- 2025Error-Driven Prompt Optimization for Arithmetic Reasoningcited by 1
- 2026Assessment of Generative Named Entity Recognition in the Era of Large Language Modelscited by 1
- 2026FMI@SU ToxHabits: Evaluating LLMs Performance on Toxic Habit Extraction in Spanish Clinical Textscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025jXBW: A Compressed Index Enabling Structure-Aware JSONL Retrieval for Structured RAG
- 2025PARSE: LLM Driven Schema Optimization for Reliable Entity Extraction
- 2026ONTO: A Token-Efficient Columnar Notation for LLM Input Optimization
- 2024Efficient Alignment of Large Language Models via Data Sampling
- 2025Principled Data Selection for Alignment: The Hidden Risks of Difficult Examples
- 2026Alignment Tuning for Large Language Models: A Data-Centric Lens on Alignment Data Pipelines
- 2025Towards Efficient and Effective Alignment of Large Language Models
- 2026AlignTune: Modular Toolkit for Post-Training Alignment of Large Language Models