Towards Corpus-Grounded Agentic LLMs for Multilingual Grammatical Analysis

📅 2025-11-28
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the limited interpretability and poor cross-lingual generalizability of grammar induction methods relying on annotated corpora. We propose the first proxy-based large language model (LLM) framework tailored for Universal Dependencies (UD) treebanks. Our approach integrates natural language understanding, programmatic code generation, and data-driven reasoning to tightly couple LLMs’ symbolic reasoning capabilities with structured syntactic trees, enabling end-to-end, traceable, multilingual grammatical feature extraction. Evaluated on 13 core word-order typological features across 170+ languages, our system achieves state-of-the-art performance in dominant order accuracy, corpus coverage completeness, and distributional fidelity. To our knowledge, this is the first LLM-based framework that simultaneously delivers interpretability, scalability, and robust cross-lingual syntactic analysis.

Technology Category

Application Category

📝 Abstract
Empirical grammar research has become increasingly data-driven, but the systematic analysis of annotated corpora still requires substantial methodological and technical effort. We explore how agentic large language models (LLMs) can streamline this process by reasoning over annotated corpora and producing interpretable, data-grounded answers to linguistic questions. We introduce an agentic framework for corpus-grounded grammatical analysis that integrates concepts such as natural-language task interpretation, code generation, and data-driven reasoning. As a proof of concept, we apply it to Universal Dependencies (UD) corpora, testing it on multilingual grammatical tasks inspired by the World Atlas of Language Structures (WALS). The evaluation spans 13 word-order features and over 170 languages, assessing system performance across three complementary dimensions - dominant-order accuracy, order-coverage completeness, and distributional fidelity - which reflect how well the system generalizes, identifies, and quantifies word-order variations. The results demonstrate the feasibility of combining LLM reasoning with structured linguistic data, offering a first step toward interpretable, scalable automation of corpus-based grammatical inquiry.
Problem

Research questions and friction points this paper is trying to address.

Automating multilingual grammatical analysis using agentic LLMs
Streamlining corpus-based linguistic research with data-driven reasoning
Evaluating word-order variations across languages via structured corpora
Innovation

Methods, ideas, or system contributions that make the work stand out.

Agentic LLMs reasoning over annotated corpora
Integrating natural-language interpretation and code generation
Multilingual evaluation across 13 word-order features
M
Matej Klemen
University of Ljubljana, Faculty of Computer and Information Science, Večna pot 113, 1000 Ljubljana, Slovenia
T
Tjaša Arčon
University of Ljubljana, Faculty of Computer and Information Science, Večna pot 113, 1000 Ljubljana, Slovenia
L
Luka Terčon
University of Ljubljana, Faculty of Arts, Aškerčeva cesta 2, 1000 Ljubljana, Slovenia
Marko Robnik-Šikonja
Marko Robnik-Šikonja
Professor of Computer Science, University of Ljubljana, Head of ML & LT Lab
Machine LearningArtificial IntelligenceNatural Language ProcessingExplainable AI
K
Kaja Dobrovoljc
University of Ljubljana, Faculty of Arts, Aškerčeva cesta 2, 1000 Ljubljana, Slovenia; Jožef Stefan Institute, Jamova cesta 39, 1000 Ljubljana, Slovenia