Arrow Research search

Author name cluster

Antoine Amarilli

Possible papers associated with this exact author name in Arrow. This page groups case-insensitive exact name matches and is not a full identity disambiguation profile.

15 papers
2 author rows

Possible papers

15

MFCS Conference 2025 Conference Paper

Dynamic Membership for Regular Tree Languages

  • Antoine Amarilli
  • Corentin Barloy
  • Louis Jachiet
  • Charles Paperman

We study the dynamic membership problem for regular tree languages under relabeling updates: we fix an alphabet Σ and a regular tree language L over Σ (expressed, e. g. , as a tree automaton), we are given a tree T with labels in Σ, and we must maintain the information of whether the tree T belongs to L while handling relabeling updates that change the labels of individual nodes in T. Our first contribution is to show that this problem admits an O(log n / log log n) algorithm for any fixed regular tree language, improving over known O(log n) algorithms. This generalizes the known O(log n / log log n) upper bound over words, and it matches the lower bound of Ω(log n / log log n) from dynamic membership to some word languages and from the existential marked ancestor problem. Our second contribution is to introduce a class of regular languages, dubbed almost-commutative tree languages, and show that dynamic membership to such languages under relabeling updates can be decided in constant time per update. Almost-commutative languages generalize both commutative languages and finite languages: they are the analogue for trees of the ZG languages enjoying constant-time dynamic membership over words. Our main technical contribution is to show that this class is conditionally optimal when we assume that the alphabet features a neutral letter, i. e. , a letter that has no effect on membership to the language. More precisely, we show that any regular tree language with a neutral letter which is not almost-commutative cannot be maintained in constant time under the assumption that the prefix-U1 problem from [Antoine Amarilli et al. , 2021] also does not admit a constant-time algorithm.

MFCS Conference 2025 Conference Paper

Linear Time Subsequence and Supersequence Regex Matching

  • Antoine Amarilli
  • Florin Manea
  • Tina Ringleb
  • Markus L. Schmid

It is well-known that checking whether a given string w matches a given regular expression r can be done in quadratic time O(|w|⋅ |r|) and that this cannot be improved to a truly subquadratic running time of O((|w|⋅ |r|)^{1-ε}) assuming the strong exponential time hypothesis (SETH). We study a different matching paradigm where we ask instead whether w has a subsequence that matches r, and show that regex matching in this sense can be solved in linear time O(|w| + |r|). Further, the same holds if we ask for a supersequence. We show that the quantitative variants where we want to compute a longest or shortest subsequence or supersequence of w that matches r can be solved in O(|w|⋅ |r|), i. e. , asymptotically no worse than classical regex matching; and we show that O(|w| + |r|) is conditionally not possible for these problems. We also investigate these questions with respect to other natural string relations like the infix, prefix, left-extension or extension relation instead of the subsequence and supersequence relation. We further study the complexity of the universal problem where we ask if all subsequences (or supersequences, infixes, prefixes, left-extensions or extensions) of an input string satisfy a given regular expression.

Highlights Conference 2024 Conference Abstract

Dynamic membership for regular tree languages

  • Antoine Amarilli

The dynamic membership problem for a formal language L asks the following: given some input data D, check whether D belongs to the language L, and then receive updates to apply to D and maintain after every update the information of whether the current version of D belongs to L or not. Among other contexts, dynamic membership has been studied for regular languages over words (in the RAM model with logarithmic word size), for substitution updates that change one letter of the word each time. Specifically, our ICALP'21 article with Louis Jachiet and Charles Paperman has identified three main complexity regimes: languages for which dynamic membership can be solved in constant time per update; languages with a complexity of Theta(log n / log log n) on words of length n; and languages with an intermediate complexity of O(log log n) and (conditionally) no O(1) algorithm. However, this works leaves open the complexity of the dynamic membership problem over different kinds of data. One interesting setting is that of trees. In particular, dynamic membership for trees generalizes the existential marked ancestor problem that has already received some attention: we have a tree whose nodes can be marked or unmarked by updates, and we receive queries that ask whether a specific node has a marked ancestor. It is known that updates and queries must take time at least Omega(log n / log log n) for this problem, which gives a similar bound for dynamic membership for some specific languages. What is striking is that the word languages corresponding to existential marked ancestor are very tame: over words, the analogous language would be aperiodic and enjoy a O(log log n) algorithm. Hence, the complexity landscape for trees is different than for words: it cannot be understood simply by looking at the horizontal and vertical monoids in isolation, and requires new algebraic tools. In this work-in-progress talk, we will present our ongoing efforts to understand the complexity of the dynamic membership problem for fixed regular languages on trees (rooted, ordered, and unranked). We focus on the simple case of relabeling updates (the tree structure is fixed), and on languages featuring a neutral letter (corresponding to tree nodes that can be replaced by the ordered list of their children). In this setting, we aim at understanding, for each fixed regular tree language, what is the best achievable worst-case complexity to maintain membership to the language after each relabeling. We will present our current results giving a conditional characterization of languages maintainable in constant time, and our ongoing efforts to understand which languages can be maintained in sublogarithmic time. The talk will in particular present some of the tantalizing open problems and specific tree languages that prevent us from achieving a complete classification. This work is a collaboration which has involved (at various degrees and at various times) Corentin Barloy, Paweł Gawrychowski, Louis Jachiet, and Charles Paperman.

Highlights Conference 2023 Conference Abstract

Enumerating Regular Languages with Bounded Delay

  • Antoine Amarilli

We study the task, for a given language L, of enumerating the (generally infinite) sequence of its words, without repetitions, while bounding the delay between two consecutive words. To allow for delay boundsthat do not depend on the current word length, we assume a model where we produce each word by editingthe preceding word with a small edit script, rather than writing out the word from scratch. In particular, this witnesses that the language is orderable, i. e. , we can write its words as an infinite sequence such that theLevenshtein edit distance between any two consecutive words is bounded by a value that depends only on thelanguage. For instance, (a + b)∗ is orderable (with a variant of the Gray code), but a∗ + b∗ is not. We characterize which regular languages are enumerable in this sense, and show that this can be decided inPTIME in an input deterministic finite automaton (DFA) for the language. In fact, we show that, given aDFA A, we can compute in PTIME automata A1, .. ., At such that L(A) is partitioned as L(A1 ) ⊔. .. ⊔ L(At )and every L(Ai ) is orderable in this sense. Further, we show that the value of t obtained is optimal, i. e. , wecannot partition L(A) into less than t orderable languages. In the case where L(A) is orderable (i. e. , t = 1), we show that the ordering can be produced by a bounded-delayalgorithm: specifically, the algorithm runs in a suitable pointer machine model, and produces a sequence ofbounded-length edit scripts to visit the words of L(A) without repetitions, with bounded delay – exponentialin |A| – between each script. In fact, we show that we can achieve this while only allowing the edit operationspush and pop at the beginning and end of the word, which implies that the word can in fact be maintained ina double-ended queue. By contrast, when fixing the distance bound d between consecutive words and the number of classes of thepartition, it is NP-hard in the input DFA A to decide if L(A) is orderable in this sense, already for finitelanguages. Last, we study the model where push-pop edits are only allowed at the end of the word, corresponding to acase where the word is maintained on a stack. We show that these operations are strictly weaker and that theslender languages are precisely those that can be partitioned into finitely many languages that are orderablein this sense. For the slender languages, we can again characterize the minimal number of languages in thepartition, and achieve bounded-delay enumeration. This is joint work with Mikaël Monet, and was presented at STACS’23. Contributed talk given by Antoine Amarilli

MFCS Conference 2022 Conference Paper

Weighted Counting of Matchings in Unbounded-Treewidth Graph Families

  • Antoine Amarilli
  • Mikaël Monet

We consider a weighted counting problem on matchings, denoted PrMatching(𝒢), on an arbitrary fixed graph family 𝒢. The input consists of a graph G ∈ 𝒢 and of rational probabilities of existence on every edge of G, assuming independence. The output is the probability of obtaining a matching of G in the resulting distribution, i. e. , a set of edges that are pairwise disjoint. It is known that, if 𝒢 has bounded treewidth, then PrMatching(𝒢) can be solved in polynomial time. In this paper we show that, under some assumptions, bounded treewidth in fact characterizes the tractable graph families for this problem. More precisely, we show intractability for all graph families 𝒢 satisfying the following treewidth-constructibility requirement: given an integer k in unary, we can construct in polynomial time a graph G ∈ 𝒢 with treewidth at least k. Our hardness result is then the following: for any treewidth-constructible graph family 𝒢, the problem PrMatching(𝒢) is intractable. This generalizes known hardness results for weighted matching counting under some restrictions that do not bound treewidth, e. g. , being planar, 3-regular, or bipartite; it also answers a question left open in [Amarilli et al. , 2016]. We also obtain a similar lower bound for the weighted counting of edge covers.

Highlights Conference 2021 Conference Abstract

Dynamic Membership for Regular Languages

  • Antoine Amarilli

We study the dynamic membership problem for regular languages: fix a language L, read a word w, build in time O(|w|) a data structure indicating if w is in L, and maintain this structure efficiently under letter substitutions on w. We consider this problem on the unit cost RAM model with logarithmic word length, where the problem always has a solution in O(log |w| / log log |w|) per operation. We show that the problem is in O(log log |w|) for languages in an algebraically-defined, decidable class QSG, and that it is in O(1) for another such class QLZG. We show that languages not in QSG admit a reduction from the prefix problem for a cyclic group, so that they require Ω(log |w| / log log |w|) operations in the worst case; and that QSG languages not in QLZG admit a reduction from the prefix problem for the multiplicative monoid U 1 = {0, 1}, which we conjecture cannot be maintained in O(1). This yields a conditional trichotomy. We also investigate intermediate cases between O(1) and O(log log |w|). Our results are shown via the dynamic word problem for monoids and semigroups, for which we also give a classification. We thus close gaps that were left open by the 1997 JACM paper of Skovbjerg Frandsen, Miltersen, and Skyum. Our results on monoids are summarized in Figure 1. This talk will present our results on the dynamic word problem for monoids and semigroups and on the dynamic membership problem for regular languages. It follows our work with Louis Jachiet and Charles Paperman which will appear at ICALP’21: http: //arxiv. org/ abs/2102. 07728.

Highlights Conference 2020 Conference Abstract

A Dichotomy for Homomorphism-Closed Queries on Probabilistic Graphs

  • Antoine Amarilli

We study the evaluation of queries over relational databases containing uncertain information. We represent these as tuple-independent probabilistic databases (TIDs): this is a model where the data consists of a relational database where each tuple is annotated with a probability of existence, and the semantics is that each tuple is present with the indicated probability, assuming independent across all tuples. In this context, the probabilistic query evaluation (PQE) problem for a Boolean query Q is to compute, given such a TID instance, the total probability of its possible worlds that satisfy Q. We study this task in data complexity, i. e. , the query is fixed and the input is the probabilistic database. A foundational result in this context is the dichotomy of Dalvi and Suciu [2] on unions of conjunctive queries (UCQs). A UCQ is a finite disjunction of conjunctive queries, which are existentially quantified conjunctions of atoms. Dalvi and Suciu show that the UCQs can be partitioned between the safe UCQs, for which the PQE problem can be solved in polynomial time; and the unsafe UCQs, for which it is #P-hard. In this work, we extend this dichotomy to the more general class UCQ ∞ of queries that are closed under homomorphisms: a query Q is in UCQ ∞ iff, for any databases I and I 0, if I satisfies Q and I has a homomorphism to I 0, then I 0 also satisfies Q. This natural class contains all UCQs, and also includes recursive query languages studied in database theory, e. g. , Regular Path Queries (RPQs), Datalog queries (without negation or inequalities), and a large class of ontology-mediated queries. Equivalently, the queries in UCQ ∞ can be characterized as possibly infinite disjunctions of conjunctive queries, hence the notation. For technical reasons, we restrict our study to arity-two signatures, i. e. , probabilistic graphs. Our contribution is to show that, in this context, for any UCQ ∞ query Q which is unbounded, i. e. , not equivalent to a UCQ, then the PQE problem is #P-hard. This implies an extension of the dichotomy of Dalvi and Suciu to all UCQ ∞ queries in the arity-two case: the queries that are equivalent to a safe UCQ enjoy tractable PQE, and the task is #P-hard for all other queries. Our result is shown by reducing from counting the valuations of positive partitioned 2-DNF formulae (#PP2DNF) for some queries, or from the source-to-target reliability problem in an undirected graph (#U-ST-CON) for other queries, depending on properties of minimal models. Talk. The talk will briefly present the context of the work as above, state the result, and say a few words about the proof. Joint wor with İsmail İlkan Ceylan that will be presented at ICDT’2020. See https: //av. tib. eu/media/46843.

TCS Journal 2019 Journal Article

Computing possible and certain answers over order-incomplete data

  • Antoine Amarilli
  • Mouhamadou Lamine Ba
  • Daniel Deutch
  • Pierre Senellart

This paper studies the complexity of query evaluation for databases whose relations are partially ordered; the problem commonly arises when combining or transforming ordered data from multiple sources. We focus on queries in a useful fragment of SQL, namely positive relational algebra with aggregates, whose bag semantics we extend to the partially ordered setting. Our semantics leads to the study of two main computational problems: the possibility and certainty of query answers. We show that these problems are respectively NP-complete and coNP-complete, but identify tractable cases depending on the query operators or input partial orders. We further introduce a duplicate elimination operator and study its effect on the complexity results.

NeurIPS Conference 2019 Conference Paper

Smoothing Structured Decomposable Circuits

  • Andy Shih
  • Guy Van den Broeck
  • Paul Beame
  • Antoine Amarilli

We study the task of smoothing a circuit, i. e. , ensuring that all children of a plus-gate mention the same variables. Circuits serve as the building blocks of state-of-the-art inference algorithms on discrete probabilistic graphical models and probabilistic programs. They are also important for discrete density estimation algorithms. Many of these tasks require the input circuit to be smooth. However, smoothing has not been studied in its own right yet, and only a trivial quadratic algorithm is known. This paper studies efficient smoothing for structured decomposable circuits. We propose a near-linear time algorithm for this task and explore lower bounds for smoothing decomposable circuits, using existing results on range-sum queries. Further, for the important case of All-Marginals, we show a more efficient linear-time algorithm. We validate experimentally the performance of our methods.

JAIR Journal 2018 Journal Article

Query Answering with Transitive and Linear-Ordered Data

  • Antoine Amarilli
  • Michael Benedikt
  • Pierre Bourhis
  • Michael Vanden Boom

We consider entailment problems involving powerful constraint languages such as frontier-guarded existential rules in which we impose additional semantic restrictions on a set of distinguished relations. We consider restricting a relation to be transitive, restricting a relation to be the transitive closure of another relation, and restricting a relation to be a linear order. We give some natural variants of guardedness that allow inference to be decidable in each case, and isolate the complexity of the corresponding decision problems. Finally we show that slight changes in these conditions lead to undecidability.

TIME Conference 2017 Conference Paper

Possible and Certain Answers for Queries over Order-Incomplete Data

  • Antoine Amarilli
  • Mouhamadou Lamine Ba
  • Daniel Deutch
  • Pierre Senellart

To combine and query ordered data from multiple sources, one needs to handle uncertainty about the possible orderings. Examples of such "order-incomplete" data include integrated event sequences such as log entries; lists of properties (e. g. , hotels and restaurants) ranked by an unknown function reflecting relevance or customer ratings; and documents edited concurrently with an uncertain order on edits. This paper introduces a query language for order-incomplete data, based on the positive relational algebra with order-aware accumulation. We use partial orders to represent order-incomplete data, and study possible and certain answers for queries in this context. We show that these problems are respectively NP-complete and coNP-complete, but identify many tractable cases depending on the query operators or input partial orders.

Highlights Conference 2016 Conference Abstract

Probabilities and Provenance on Trees and Treelike Instances

  • Antoine Amarilli
  • Pierre Bourhis
  • Pierre Senellart

We present our recent results at PODS 2016 and ICALP 2015 about the evaluation of queries on probabilistic databases and graphs. Our upper bound result shows that this task can be efficiently performed (in data complexity, i. e. , for a fixed query) for Boolean Monadic Second-Order (MSO) queries, on databases of treewidth bounded by a constant. We do so using Courcelle’s method of compiling MSO to tree automata, and extend it to compute probabilities, via a provenance representation that describes which possible worlds satisfy the query. Our lower bound shows that, on graphs, there is a first-order query which is always intractable to evaluate on database families of unbounded treewidth (under a constructibility assumption), no matter which other restrictions we impose on the databases.

IJCAI Conference 2016 Conference Paper

Query Answering with Transitive and Linear-Ordered Data

  • Antoine Amarilli
  • Michael Benedikt
  • Pierre Bourhis
  • Michael Vanden Boom

We consider entailment problems involving powerful constraint languages such as guarded existential rules, in which additional semantic restrictions are put on a set of distinguished relations. We consider restricting a relation to be transitive, restricting a relation to be the transitive closure of another relation, and restricting a relation to be a linear order. We give some natural generalizations of guardedness that allow inference to be decidable in each case, and isolate the complexity of the corresponding decision problems. Finally we show that slight changes in our conditions lead to undecidability.

IJCAI Conference 2015 Conference Paper

Combining Existential Rules and Description Logics

  • Antoine Amarilli
  • Michael Benedikt

Query answering under existential rules — implications with existential quantifiers in the head — is known to be decidable when imposing restrictions on the rule bodies such as frontier-guardedness [Baget et al. , 2010; 2011a]. Query answering is also decidable for description logics [Baader, 2003], which further allow disjunction and functionality constraints (assert that certain relations are functions); however, they are focused on ER-type schemas, where relations have arity two. This work investigates how to get the best of both worlds: having decidable existential rules on arbitrary arity relations, while allowing rich description logics, including functionality constraints, on arity-two relations. We first show negative results on combining such decidable languages. Second, we introduce an expressive set of existential rules (frontier-one rules with a certain restriction) which can be combined with powerful constraints on aritytwo relations (e. g. GC2, ALCQIb) while retaining decidable query answering. Further, we provide conditions to add functionality constraints on the higher-arity relations.

Highlights Conference 2014 Conference Abstract

Tractable Query Answering under Probabilistic Constraints

  • Antoine Amarilli

Large knowledge bases such as YAGO or DBpedia can be used to answer queries in various domains. However, as they are automatically harvested from Web sources, they may be incomplete: important facts may be missing because they were not materialized in the original sources, or could not be extracted correctly. To mitigate this problem, approaches such as association rule mining can extract statistical rules from the data which hold in most situations. For instance, people are usually nationals of the country where they are born; people who died in a place are often buried there. The application of such rules allows us to infer some of the missing facts, which may help mitigate the issue of incompleteness. Hence, we study the problem of query answering on large-scale knowledge bases under the constraints of such probabilistic deduction rules. As such rules only represent statistical tendencies, one needs to keep track of uncertainty on rule consequences when reasoning about them. There is a large body of work on probabilistic data management; yet, in that setting, many important tasks are intractable. For example, fixed conjunctive queries may be #P-hard to evaluate on a probabilistic instance, even in the very simple tuple-independent database (TID) model. To work around such hardness results, existing work has already investigated which query classes are tractable over all data instances, with a complex dichotomy between safe and unsafe queries. Yet, there has been no attempt to generalize the observation that query evaluation is tractable, for all queries and for much more expressive query languages, on some instances such as probabilistic XML trees. Our work follows this intuition and revisits the probabilistic inference problem by studying instance classes that ensure tractability. More precisely, we study complexity as a function of instance treewidth, which is motivated by well-known tractability results on evaluating monadic second-order (MSO) queries on non-probabilistic bounded-treewidth instances and counting queries on bounded-treewidth graphs. This approach is also practically relevant, as the treewidth of real-world data is usually much less than its size. We thus show that, for the TID model, MSO query evaluation has linear data complexity if the treewidth of the instance is fixed. The TID model is not sufficient to represent the consequences of uncertain deduction rules, however: it assumes independence of all facts, whereas rule application imposes correlations between cause and consequence facts. Correlations are usually represented by probabilistic events shared between multiple facts, yet their presence makes it generally intractable to evaluate even the simplest queries, both in the relational and XML settings. However, we show that query evaluation is tractable if the instance has bounded width under a new notion of tree decomposition that accounts for probabilistic events; intuitively, we enforce their compatibility with the tree structure. This result implies, for example, that it is tractable to evaluate queries on the block-independent disjoint probabilistic relational model, if the underlying instance has bounded treewidth in the usual sense and if the size of blocks is bounded by a constant. In the XML setting, it implies that query evaluation is tractable whenever there are only a bounded number of relevant events to propagate at any point along the tree. We last turn to our original problem of query evaluation on probabilistic instances under uncertain deduction rules: the goal is to determine the answers of a query on a knowledge base, annotated by their probability, when some of the instance facts are uncertain, and when new uncertain facts can be generated using the provided rules. We formally define this problem as computing the probability of query answers in the universal model obtained by a probabilistic version of the standard chase procedure. We then show its tractability for the language of guarded tuple-generating dependencies under the assumption that the chase terminates, which may be enforced, e. g. , by syntactic conditions such as weak acyclicity. Indeed, we show that the rule consequences and resulting correlation events have a bounded-width decomposition in this case. A possible avenue for future work is to generalize the rule language to non-terminating guarded rules, or to, e. g. , disjunctive rules. Another important extension for practical knowledge bases would be to account for equality-generating dependencies, or for possible element reuse among the nulls created during the chase; however, we suspect that such extensions would lead to undecidability. Last, it would be useful to study how to implement the proposed methods in practice, including techniques such as sampling or pruning irrelevant facts. 13: 00 14: 30 Lunch

v2026.09.13