Proceedings

Learning Tree Automata with Term Rewriting

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 3926-3934.

https://doi.org/10.24963/ijcai.2026/437

Abstract

We present an extension of the Angluin-style learning algorithm for tree automata that incorporates deductive inference.

The learning algorithm is provided with a term rewriting system that specifies properties of the target tree language (e.g., the order of subtrees under a symbol f is irrelevant).

This term rewriting system is used to infer answers to some queries, which reduces the query complexity of the learning algorithm.

We present examples of rewrite systems that express natural properties of tree-structured data, which yield a significant reduction in the number of queries.

  1. [Aho et al., 1972] A. V. Aho, M. R. Garey, and J. D. Ullman. The transitive reduction of a directed graph. SIAM Journal on Computing, 1(2):131-137, 1972.
  2. [Anantharaman et al., 2005] Siva Anantharaman, Paliath Narendran, and Michaël Rusinowitch. Closure properties and decision problems of dag automata. Inf. Process. Lett., 94(5):231-240, 2005.
  3. [Angluin, 1987] Dana Angluin. Learning regular sets from queries and counterexamples. Information and computa- tion, 75(2):87-106, 1987.
  4. [Baader and Narendran, 1998] Franz Baader and Paliath Narendran. Unification of concept terms in description logics. In Henri Prade, editor, ECAI 1998, pages 331-335.
  5. [Baader and Nipkow, 1998] Franz Baader and Tobias Nip- kow. Term rewriting and all that. Cambridge University Press, 1998.
  6. [Barbot et al., 2021] Benoît Barbot, Benedikt Bollig, Alain Finkel, Serge Haddad, Igor Khmelnitsky, Martin Leucker, Daniel Neider, Rajarshi Roy, and Lina Ye. Extracting context-free grammars from recurrent neural networks us- ing tree-automata learning and a* search. In ICGI 2021, pages 113-129. PMLR, 2021.
  7. [Berlinkov, 2014] Mikhail V. Berlinkov. Approximating the minimum length of synchronizing words is hard. Theory Comput. Syst., 54(2):211-223, 2014.
  8. [Bhattamishra et al., 2026] Satwik Bhattamishra, Michael Hahn, and Varun Kanade. Automata learning and iden- tification of the support of language models. In The Four- teenth International Conference on Learning Representa- tions, 2026.
  9. [Björklund et al., 2017] Henrik Björklund, Johanna Björklund, and Petter Ericson. On the regularity and learnability of ordered DAG languages. In Arnaud Carayol and Cyril Nicaud, editors, CIAA 2017, volume 10329 of Lecture Notes in Computer Science, pages 27-39. Springer, 2017.
  10. [Boneva and Talbot, 2005] Iovka Boneva and Jean-Marc Talbot. Automata and logics for unranked and unordered trees. In Jürgen Giesl, editor, RTA 2005, volume 3467 of Lecture Notes in Computer Science, pages 500-515. Springer, 2005.
  11. [Černỳ, 1964] Ján Černỳ. Poznámka k homogénnym exper- imentom s konečnỳmi automatmi. Matematicko-fyzikálny časopis, 14(3):208-216, 1964.
  12. [Charatonik, 1999] Witold Charatonik. Automata on dag representations of finite trees, 1999. [Comon et al., 2008] Hubert Comon, Max Dauchet, Rémi Gilleron, Florent Jacquemard, Denis Lugiez, Christof Löding, Sophie Tison, and Marc Tommasi. Tree Automata Techniques and Applications. 2008.
  13. [Dierl et al., 2024] Simon Dierl, Paul Fiterau-Brostean, Falk Howar, Bengt Jonsson, Konstantinos Sagonas, and Fredrik Tåquist. Scalable tree-based register automata learning. In TACAS 2024, pages 87-108, 2024.
  14. [Drewes and Högberg, 2003] Frank Drewes and Johanna Högberg. Learning a regular tree language from a teacher. In Zoltán Ésik and Zoltán Fülöp, editors, DLT 2003, vol- ume 2710 of Lecture Notes in Computer Science, pages 279-291. Springer, 2003.
  15. [Drewes and Högberg, 2007] Frank Drewes and Johanna Högberg. Query learning of regular tree languages: How to avoid dead states. Theory Comput. Syst., 40(2):163- 185, 2007.
  16. [Eppstein, 1990] David Eppstein. Reset sequences for mono- tonic automata. SIAM J. Comput., 19(3):500-510, 1990.
  17. [Fica and Otop, 2025] Michal Fica and Jan Otop. Active au- tomata learning with advice. In ECAI 2025, volume 413 of Frontiers in Artificial Intelligence and Applications, pages 1655-1662. IOS Press, 2025.
  18. [Frohme, 2019] Markus Theo Frohme. Active automata learning with adaptive distinguishing sequences. CoRR, abs/1902.01139, 2019.
  19. [Grienenberger and Ritzert, 2019] Émilie Grienenberger and Martin Ritzert. Learning definable hypotheses on trees. In Pablo Barceló and Marco Calautti, editors, ICDT 2019, volume 127 of LIPIcs, pages 24:1-24:18. Schloss Dagstuhl -Leibniz-Zentrum für Informatik, 2019.
  20. [Habrard and Oncina, 2006] Amaury Habrard and José Oncina. Learning multiplicity tree automata. In Yasubumi Sakakibara, Satoshi Kobayashi, Kengo Sato, Tetsuro Nishino, and Etsuji Tomita, editors, ICGI 2006, volume 4201 of Lecture Notes in Computer Science, pages 268-280. Springer, 2006.
  21. [Isberner et al., 2014] Malte Isberner, Falk Howar, and Bern- hard Steffen. The TTT algorithm: A redundancy-free ap- proach to active automata learning. In RV 2014, pages 307-322, 2014.
  22. [Kasprzik, 2013] Anna Kasprzik. Four one-shot learners for regular tree languages and their polynomial characteriz- ability. Theor. Comput. Sci., 485:85-106, 2013.
  23. [Kopystiański and Otop, 2026a] Jakub Kopystiański and Jan Otop. Learning tree automata with term rewriting, 2026.
  24. [Kopystiański and Otop, 2026b] Jakub Kopystiański and Jan Otop. Learning tree automata with term rewriting: code and data. https://github.com/jotop/LearnDFTAwithTRS, 2026. Link
  25. [Kosala et al., 2003] Raymond Kosala, Maurice Bruynooghe, Jan Van den Bussche, and Hendrik Blockeel. Information extraction from web documents based on local unranked tree automaton inference. In IJCAI 2003, pages 403-408. IJCAI
  26. Morgan Kaufmann, 2003.
  27. [Kruger et al., 2024] Loes Kruger, Sebastian Junges, and Ju- rriaan Rot. Small test suites for active automata learning. In TACAS 2024, pages 109-129, 2024.
  28. [Magnini et al., 2025] Matteo Magnini, Riccardo Squar- cialupi, Martin Tunge Sterri, Ana Ozaki, and Rivera Castillo. Actively learning el terminologies from large lan- guage models. In ECAI 2025, volume 413 of Frontiers in Artificial Intelligence and Applications, pages 1792-1799. IOS Press, 2025.
  29. [Marusic and Worrell, 2015] Ines Marusic and James Wor- rell. Complexity of equivalence and learning for multiplic- ity tree automata. Journal of Machine Learning Research, 16:2465-2500, 2015.
  30. [Nardi et al., 2003] Daniele Nardi, Ronald J Brachman, et al. An introduction to description logics. Description logic handbook, 1:40, 2003.
  31. [Nitay et al., 2021] Dolav Nitay, Dana Fisman, and Michal Ziv-Ukelson. Learning of structurally unambiguous prob- abilistic grammars. In AAAI 2021, pages 9170-9178. AAAI Press, 2021.
  32. [Raselimo and Fischer, 2021] Moeketsi Raselimo and Bernd Fischer. Automatic grammar repair. In Eelco Visser, Dim- itris S. Kolovos, and Emma Söderberg, editors, SLE 2021, pages 126-142. ACM, 2021.
  33. [Tirnȃucȃ and Tirnȃucȃ, 2007] Catalin Ionut Tirnȃucȃ and Cristina Tirnȃucȃ. Learning regular tree languages from correction and equivalence queries. J. Autom. Lang. Comb., 12(4):501-524, 2007.
  34. [Vaandrager et al., 2022] Frits W. Vaandrager, Bharat Garhe- wal, Jurriaan Rot, and Thorsten Wißmann. A new ap- proach for active automata learning based on apartness. In TACAS 2022, pages 223-243, 2022.
  35. [Vaandrager, 2017] Frits Vaandrager. Model learning. Com- munications of the ACM, 60(2):86-95, 2017.
  36. [van Heerdt et al., 2021] Gerco van Heerdt, Tobias Kappé, Jurriaan Rot, and Alexandra Silva. Learning pomset au- tomata. In Stefan Kiefer and Christine Tasson, editors, ETAPS 2021, volume 12650, pages 510-530. Springer, 2021.
  37. [Vazquez-Chanlatte et al., 2025] Marcell Vazquez- Chanlatte, Karim Elmaaroufi, Stefan J. Witwicki, Matei Zaharia, and Sanjit A. Seshia. l * lm: Learning automata from examples using natural language oracles, 2025.
  38. [Yaghmazadeh et al., 2016] Navid Yaghmazadeh, Christian Klinger, Isil Dillig, and Swarat Chaudhuri. Synthesiz- ing transformations on hierarchically structured data. In Chandra Krintz and Emery D. Berger, editors, PLDI 2016, pages 508-521. ACM, 2016.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards