Goto

Collaborating Authors

 schema


Schemas That Hold: Verified Agentic Ingestion of Heterogeneous Scientific Tables into Relational Databases

arXiv.org Artificial Intelligence

Public scientific datasets rarely arrive analysis-ready: they come as folders of matrices, tables, and per-cohort files whose keys and encodings differ. A coding agent can load them, but the database it builds may corrupt data silently, enforce no keys or links, differ from run to run, and leave no audit trail. We present an ingestion pipeline built on one rule: LLM agents propose, deterministic code verifies, and humans decide. Agents see compact, citable evidence, never the full data; a verifier with 39 check types tests each proposal in two loops, one for structure and one for meaning; a human approves the schema and the load; and code quarantines what it cannot place and reconciles every row. On five public biomedical datasets, two held out, with five runs each, 10 of 25 first proposals failed a check and every failure was caught: the loops repaired nine and a one-line reviewer edit fixed the tenth. All 45.4 million values were loaded or quarantined with zero reconciliation gap, no planted data error passed silently, and one pipeline built differently shaped schemas without dataset-specific code. A general-purpose coding agent given the same folders preserved every value it loaded, but enforced keys and links in only 17 of 25 runs, built a different schema almost every time, stored a planted conflicting label as valid, and once reported success after loading nothing. The pipeline enforced the same keys, grains, and links in every run and recorded every decision, at similar cost ($0.18-0.54 per run).


Tool-Relevance-Aware Cache Eviction with Conformal Guarantees for Agentic Inference

arXiv.org Artificial Intelligence

Agentic large language models equipped with many tools spend most of their KV cache on tool schemas, and this schema-dominated portion sets the practical compression ceiling. Existing compression methods are commonly tuned against cheap proxies such as perplexity, and how much of the schema cache a turn actually needs to preserve task success remains unknown. On the Berkeley Function Calling benchmark, a turn exposes about 28 tools while its reference calls invoke an average of 1.7. The schema cache of the uninvoked tools occupies 77\% to 86\% of the prefix, and removing it at prefill leaves task success essentially unchanged, whereas same-count random removal is catastrophic. We turn this finding into TRACE: a lightweight predictor ranks the tools of the current turn, a keep rule prefills the turn's cache with only their schemas, and a conformal layer calibrates the keep size against a risk budget. To our knowledge, this calibration gives the first distribution-free guarantee on the task success an agent loses to cache compression. The best-effort point retains 17\% of the base prefix and 25\% of the long-context prefix at a 3 to 5 point cost, and at risk budget $ฮฑ=0.10$ the certificate selects a compressed member of the deployed keep-size family in all four model--context settings, a 3.9--6.2$\times$ eviction-only reduction. Per-turn tool relevance, not removed volume, is what makes aggressive schema compression safe, and calibration is what makes it certifiable.


SchemaCaps: When a Compatible Tool Update Silently Widens an AI Agent's Authority

arXiv.org Artificial Intelligence

The tools users approve for their AI agents keep changing their JSON input schemas. Of 8 surveyed MCP clients and scanners, none is observed or documented to re-approve a tool whose input schema widens (two not determinable). We define non-amplification over the coordinates visible in the schema (declared arguments and undeclared fields, on effective values) and a re-binding rule decided by subschema inclusion, trusting no field labels by default and conservative up to its checker and tested case analysis. Evidence: a Coq proof of composition; 48 regression tests; an exact-reference benchmark, where the reviewed version of the rule silently re-bound 27 amplifying changes, now fixed; and a pilot on 604 releases of 39 public MCP servers. There, 412 of 580 compatible schema changes widen some coordinate, yet compatibility re-binds them silently. The authors' adjudicated double annotation finds at least 76 that add or widen an authority-bearing argument (66 of the 84 a name-based labeller flags, plus 10 it misses). On existing tools, the rule asks 645 re-approvals, against 1,197 for pinning the input schema (2,004 with descriptions) and 617 for compatibility. Behaviour change behind an identical schema remains out of reach.


What Quality Engineers Need to Know About Generative AI: Structured Data Extraction

arXiv.org Artificial Intelligence

In this expository paper, we explain how quality engineers can use large language models (LLMs) and vision-language models (VLMs) for structured data extraction. We introduce the relevant concepts, discuss structured extraction from a measurement-system perspective, and demonstrate its implementation in R and Python. We then present two freely available web-based applications (apps): (a) extracting information from automotive recall notices and (b) monitoring quality engineering research on arXiv. To ensure the accuracy of our AI-driven structured extraction, human evaluators validated the results. In the first app, four reviewers assessed information extracted from 30 recall notices using two models, with 98.6% of the 720 field-level ratings judged fully correct. In the second app, 21 authors evaluated information extracted from 45 of their arXiv papers. All paper summaries were rated mostly correct or correct, although the evaluations identified problems with some classification fields and mathematical expressions. These results demonstrate the practical potential of structured data extraction while emphasizing the need to validate the extracted information. We make both apps and their source code publicly available so that readers can adapt the approach to their own applications.


BreakFun: Jailbreaking LLMs via Object Instantiation under Simulated Code Execution

arXiv.org Artificial Intelligence

Large Language Models (LLMs) are widely used because they process structures, syntax and code well, but this same ability also makes them paradoxically vulnerable. We introduce BreakFun, a jailbreak method that frames a harmful request as code-execution simulation. The prompt gives the model a benign Python class definition, the "Trojan Schema", and asks what that code would print if it ran. To answer, the model must create an object from the class and invent a value for each field, and the adversarial field names steer those values toward the attacker's goal. The harmful content therefore appears as a side-effect of the simulated instantiation, not as a direct answer. A three-part prompt carries the attack: an innocent frame, the Trojan Schema, and a Chain-of-Thought distraction. On JailbreakBench, BreakFun reaches an average attack success rate of 89% across 13 open-weight and commercial models (open-weight ~98%, API systems ~78%), and 100% on several. An ablation identifies the Trojan Schema as the strongest contributing component. As a counter-ablation probe we introduce Adversarial Prompt Deconstruction (APD), in which a second LLM writes out all readable text in the prompt before it judges safety. APD improves detection across three model families, and a probe-specific ablation shows that the transcription step gives most of the gain. Our findings show that LLM safety must account for content that a simulation task produces as a side-effect, not only for content that a user requests directly.


How to "train" a surgeon? Benchmarking generalist agents in surgical scene understanding

arXiv.org Artificial Intelligence

Evaluating general-purpose multimodal large language models (MLLMs) for surgical scene understanding remains limited due to scarce surgical data and fragmented evaluation protocols. We address these challenges through a two-stage evaluation framework for surgical scene understanding. In Stage I, we introduce SurgKnowBench, a diagnostic benchmark that harmonizes public surgical datasets across procedures and tasks and evaluates proprietary and open-source MLLMs to map the boundary of pretrained surgical competence. SurgKnowBench reveals that current models retain partial visual priors but remain weak on relational and procedural understanding and workflow assessment. Building on this failure frontier and motivated by the scaffolded nature of surgical training, we introduce SurgAgentGym, an agentic environment where general-purpose MLLM agents can use bounded knowledge search over SurgWiki and general-purpose visual grounding for surgical tasks. SurgAgentGym evaluates whether generalist agents can improve surgical understanding at inference time through tool-mediated evidence use, without additional surgical training. Our results show that agentic inference narrows the gap mainly for perception-heavy tasks, while fine-grained localization and expert-style assessment remain persistent bottlenecks. This opens a path toward future studies of agentic surgical understanding.


AI Tour Meeting: Group Travel Planning by LLM Agents

arXiv.org Artificial Intelligence

This paper proposes AI Tour Meeting, a group travel planning framework powered by multiple Large Language Model (LLM)-based agents. The agents are instantiated with distinct personas and collaboratively seek an itinerary that satisfies their constraints and preferences through natural language discussion. The framework enables easy and flexible orchestration of such discussions by providing interfaces for configuring agent personas, discussion workflows, monitoring, and LLM deployment. Its primary use case is a simulation tool for analyzing the behavior of multiple LLM agents during tour planning discussions. This paper demonstrates the utility of the framework by presenting system validation and several analytical results obtained by the framework.


RGFC: Registry Grounded Function Calling with stage-decomposed evaluation

arXiv.org Artificial Intelligence

Tool-calling evaluations often report whether the final call matches a reference answer, but this single outcome merges different failures: choosing a function outside the available registry, violating the selected schema, or filling arguments with values not supported by the user request. These failures matter more when models must choose from larger tool registries. We introduce RFCD, a registry-scaled function-calling benchmark built from BFCL, Glaive Function Calling v2, and Tool-Call-Data, with standardized JSON-schema registries ranging from 5 to 3,000 functions. We also introduce TAAG, a deterministic stage-decomposed evaluator for registry conformance, structural completeness, and argument grounding. Across six locally served sub-4B models, three data sources, and four feedback modes, registry scale is the dominant source of degradation: single-pass TAAG pass rate drops sharply from small to large registries on all sources. Repeated feedback improves some grounding metrics but adds substantial token cost and does not consistently improve end-to-end F1. Requirement-level TAAG-R feedback gives modest gains over stage-only TAAG-S feedback, which indicates that TAAG signals are useful for analysis and correction probes but do not solve registry scaling by themselves. RFCD and TAAG provide an evaluation resource for measuring where tool-calling systems fail as registries grow.


When Tool Names Are Not Identities: Measuring Provider Misbinding in MCP-Based AI Agents

arXiv.org Artificial Intelligence

Large language model (LLM) applications increasingly act as agents that select and invoke external tools. The Model Context Protocol (MCP) standardizes this interaction by allowing clients to compose tools advertised by multiple servers. However, tool metadata used for discovery and selection is not, by itself, necessarily bound to a verified provider identity. This paper studies this gap as tool-provider misbinding: a failure in which a request intended for a legitimate provider is instead resolved to an attacker-controlled tool. The attacker does not compromise the host, LLM, legitimate server, or network channel; it only operates another MCP server that advertises tools with chosen metadata. We formulate tool provider misbinding as an attacker-controlled tool-selection optimization problem and evaluate it in a controlled MCP environment across five LLM-based clients. The results show that interactions drive misbinding. The strongest failures occur when exact-name collision, task-aligned description, and compatible schema reinforce one another, but authority-enhanced descriptions with compatible schema can also cause wrong-provider execution or unresolved provider ambiguity without name collision. Different models expose the same provider-binding weakness differently, including attacker-controlled provider selection, clarification requests, and unstable or inconsistent provider resolution.


SA-RAG: Structuring Noisy Conversations for Retrieval-Augmented Generation

arXiv.org Artificial Intelligence

Large Language Models (LLMs) have been widely adopted in conversational applications. However, their reliance on parametric knowledge limits reliability in real-world scenarios that require dynamic or domain-specific information. Retrieval-Augmented Generation (RAG) addresses this limitation by incorporating external knowledge during generation, but existing RAG methods often struggle with noisy or irrelevant contexts, as they typically assume that high-quality structures are already available. In this work, we propose Structure-aware Retrieval-Augmented Generation (SA-RAG), a principled structure induction and generation framework that constructs reliable intermediate structures directly from noisy conversational data. SA-RAG uses tables as compact and controllable structured representations. We introduce a quality-aware structure induction framework that jointly models semantic and structural consistency. Furthermore, we explore both training-free and training-based structure generation strategies to further improve structure quality while maintaining fidelity. Experiments on two noisy real-world datasets show that SA-RAG significantly outperforms existing RAG baselines. Further analysis highlights that high-quality structural representations are crucial for robust RAG applications.