[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-327387-105":59,"doc-detail-327387-en":130,"doc-similar-327387":163},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","object-aligner-a-configurable-json-schema-similarity-score-for-graphs-applied-to-llm-prompt-optimization","Object Aligner - A Configurable JSON Schema Similarity Score for Graphs - Applied to LLM Prompt Optimization","","Large language models often output JSON that must match a fixed schema for extraction, tool calling, agentic planning, and knowledge-graph construction. Exact matching is brittle, text similarity ignores structure, and LLM-based judging is costly, opaque, and non-deterministic. OBJECT ALIGNER provides a deterministic, schema-aware scoring method that aligns JSON trees recursively and supports reference-sensitive graphs via referential alignment and identifier relabel invariance. It also produces ranked repair suggestions and can act as a reward in prompt optimization.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/object-aligner-a-configurable-json-schema-similarity-score-for-graphs-applied-to-llm-prompt-optimization/327387/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/object-aligner-a-configurable-json-schema-similarity-score-for-graphs-applied-to-llm-prompt-optimization/327387.png","ImageObject",300,407,{"name":92,"@type":93},"Eliana","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30","2026-09-21",true,{"@type":102,"interactionType":103,"userInteractionCount":52},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Why is deterministic schema-aware scoring needed for LLM JSON outputs?","Question",{"text":112,"@type":113},"Exact match is brittle, text similarity discards structure, and LLM-based judging is expensive, noisy, non-deterministic, and hard to audit. Deterministic scoring compares directly to a gold object and credits structurally correct parts.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does OBJECT ALIGNER score similarity between two JSON objects?",{"text":117,"@type":113},"It performs recursive, schema-driven alignment of gold and candidate trees. Unordered collections use the Hungarian algorithm, while ordered parts use sequence alignment, yielding partial credit at schema-defined granularity.",{"name":119,"@type":110,"acceptedAnswer":120},"What is referential alignment and why is it important for graphs?",{"text":121,"@type":113},"Complex structured data often include records connected through identifiers. Referential alignment infers a bijection between gold and candidate identifiers so scores are invariant to relabeling, approximating identifier mapping similar to graph isomorphism via Weisfeiler–Leman refinement.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},327387,1790102712,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":52,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},4398048949847,"https://ap-avatar.wpscdn.com/avatar/400002536579ef2da7f?_k=1778318612642679267","Object Aligner: A Configurable JSON Schema Similarity Score for Graphs, Applied to LLM  \nPrompt Optimization  \nJan Drchal  \narXiv :2607 .0 1972v 1 [ cs .CL] 2 Jul 2026  \nAbstract—Large language models (LLMs) are often asked to produce JSON conforming to a fixed schema, powering information extraction, tool calling, agentic planning, and knowledgegraph 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 ALIGNERis 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, closesthis 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.  \nIndex Terms—Object Aligner, complex structured data, large language models, prompt optimization, graph similarity score, JSON schema  \nI. INTRODUCTION COMPARING complex structured data, i.e., measuring  \nhow closely two structured objects agree, is a basic operation in many settings: automated testing, change detection between versions, record linkage, and the evaluation of machine-learning systems against reference outputs. It has become more urgent with large language models (LLMs) . Along with free-form text, an LLM is often asked to return data conforming to a fixed schema (most often JSON) so that its output can be parsed, stored, and consumed directly by downstream systems: information extraction, document understanding, tool and function calling, agentic planning, and  \nJ. Drchal is with the Artificial Intelligence Center, Faculty of Electrical Engineering, Czech Technical University in Prague, Czech Republic (e-mail: [drchajan@fel.cvut.cz](drchajan@fel.cvut.cz)).  \nThis work was created with the state support of the Technology Agency of the Czech Republic within the Sigma Programme, Project No. TQ01000100 .  \nPreprint. This is a submitted version of a manuscript under review at IEEE Access; it has not been peer reviewed.  \nknowledge-graph construction all rely on it. JSON is among the most widely used data formats in practice, and although it is essentially a tree, cross-references between records allow it to encode general graphs and hypergraph structures (Fig. 1) . Judging whether two such objects agree (for instance a model prediction against a gold reference) is therefore both common and hard: the comparison must look past cosmetic differences such as reordering or identifier renumbering and credit what is structurally correct.  \nWhen the scoring procedure itself must be controlled—reproducible and auditable—LLM-based judging is not a solution. LLM-as-a-judge [1] replaces a human evaluator with another model, but it inherits the very difficulty we are trying to escape: the judge must itself be prompted, calibrated, and validated; it is costly, noisy, and non-determin","cbCaieT2U1DKFrPN","https://ap.wps.com/l/cbCaieT2U1DKFrPN","pdf",896700,28,"English","# Introduction\n## Structured-output comparison problems\n## Limits of LLM-as-judge and text similarity\n# Object Aligner (OA)\n## Schema-driven recursive alignment\n## Unordered and ordered alignment regimes\n## Referential alignment for graphs and hypergraphs\n# Prompt Optimization Use Case\n## Rewarding structured correctness","[{\"question\":\"Why is deterministic schema-aware scoring needed for LLM JSON outputs?\",\"answer\":\"Exact match is brittle, text similarity discards structure, and LLM-based judging is expensive, noisy, non-deterministic, and hard to audit. Deterministic scoring compares directly to a gold object and credits structurally correct parts.\"},{\"question\":\"How does OBJECT ALIGNER score similarity between two JSON objects?\",\"answer\":\"It performs recursive, schema-driven alignment of gold and candidate trees. Unordered collections use the Hungarian algorithm, while ordered parts use sequence alignment, yielding partial credit at schema-defined granularity.\"},{\"question\":\"What is referential alignment and why is it important for graphs?\",\"answer\":\"Complex structured data often include records connected through identifiers. Referential alignment infers a bijection between gold and candidate identifiers so scores are invariant to relabeling, approximating identifier mapping similar to graph isomorphism via Weisfeiler–Leman refinement.\"}]","Object Aligner - A Configurable JSON Schema Similarity Score for Graphs - Applied to LLM Prompt Optimization | PDF",1789977117,71,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/c9ed8e4b8136016b631d0debef7eaca6.webp",983,1272,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/86b674d3b758b07b27508c8c1a5b1c3d.webp",982,1270,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/1a799a39095419b0c0380baea680940d.webp",981,1269,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/caeb1c0159a5ff55e10d2bdd93a8fe11.webp",980,1268,{"list":164,"token":66},[165,172,178,185,192,199,206,213,220,227],{"doc_id":166,"doc_title":167,"file_type":137,"home_preview_img_url":168,"slug":169,"view_count":170,"category_name":40,"create_tm":171},81730,"Making Failure Safe: A Constrained, Verifiable Agent Framework for Open-Web Data Collection","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808475340/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=F3MCn8NjVE3YGbKggH9fHr0HPyw%3D","making-failure-safe-a-constrained-verifiable-agent-framework-for-open-web-data-collection",37,1784175687,{"doc_id":173,"doc_title":174,"file_type":137,"home_preview_img_url":175,"slug":176,"view_count":24,"category_name":40,"create_tm":177},680017,"AgentCyTE - Leveraging Agentic AI to Generate Cybersecurity Training and Experimentation Scenarios","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229997717412/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=TMJZY4SAhJmwwwSytUJlJEiy2H0%3D","agentcyte-leveraging-agentic-ai-to-generate-cybersecurity-training-and-experimentation-scenarios",1793913302,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":183,"category_name":40,"create_tm":184},234,"XNX Gas Detector Calibration Guide 2023","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727733/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=pnclOm8WProIS9E%2BFc8sYFwbWMA%3D","xnx-gas-detector-calibration-2023",7896,1776136863,{"doc_id":186,"doc_title":187,"file_type":137,"home_preview_img_url":188,"slug":189,"view_count":190,"category_name":40,"create_tm":191},227,"Sridevi Matka Chart Full Guide to Panel, Jodi & Pana Records","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727553/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=d8C3dcPZ4ZYiTNS%2BhD077KsDHV0%3D","sridevi-matka-chart-full-guide-to-panel-jodi-pana-records",6932,1776136851,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":197,"category_name":40,"create_tm":198},167314,"Linear Algebra and Its Applications 6th edition Textbook by david c. lay","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229876163444/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=uELvLY4jwOotRxrZtXkTSXergEM%3D","linear-algebra-and-its-applications-sixth-edition-david-c-lay-steven-r-lay-judi-j-mcdonald",5865,1788211707,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":204,"category_name":40,"create_tm":205},32070,"Blueprint Pengelolaan Sumber Daya Manusia Kesehatan (SDMK) Tahun 2025–2029","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229758685683/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=ydeyFfiVatRJGmzwMYngBmgi018%3D","healthcare-human-resources-management-blueprint-sdmk-20252029",1292,1780779716,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":211,"category_name":40,"create_tm":212},148514,"Developmental Biology - Twelfth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229868853261/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=Y2mXh4nyP0mO4TS7G2awjd%2Biav4%3D","developmental-biology-twelfth-edition",1250,1787780705,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":218,"category_name":40,"create_tm":219},121,"Letter of Intent Sample for School","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693418846/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=mx98KdONs4sNE2jWhn7vbseX5i4%3D","letter-of-intent-sample-for-school",1059,1776135210,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":225,"category_name":40,"create_tm":226},129209,"Laboratory Manual for Principles of General Chemistry - J. A. Beran - 11th Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840760175/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=mcsyITorL6AHzaxn1T1syBNI1oE%3D","laboratory-manual-for-principles-of-general-chemistry-j-a-beran-11th-edition",885,1786011673,{"doc_id":228,"doc_title":229,"file_type":137,"home_preview_img_url":230,"slug":231,"view_count":232,"category_name":40,"create_tm":233},117724,"The Trading Edge - Vivek Bajaj","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834707110/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=s8DLZGXO5Lkjw%2FcA%2B0yxPSAdqhU%3D","the-trading-edge-vivek-bajaj",874,1785678693]