Neuro-symbolic Syntactic Parsing: Shaping a Neural Network with the CYK Algorithm

Fabio Massimo Zanzotto, Federico Ranaldi, Giorgio Satta
5/29/2026
cs.CLcs.AIcs.DS

No confident code implementation found for this paper.

Abstract

In this paper, we show the possibility of a direct injection of algorithms into neural network architecture. We focus on a complex algorithm, that is, Cocke-Youger-Kasami (CYK) for parsing context-free grammars in Chomsky Normal Form and we propose CYKNN, a simple recurrent neural network architecture for encoding the CYK algorithm in trainable matrix-vector multiplications.We experimented with a very simple grammar with 4 variations showing that our approach outperforms existing LLMs with more than 20B parameters with an in-context learning setting and smaller LLMs of the Qwen family fine-tuned with LoRA. Our attempt paves the way to a different approach to neuro-symbolic methodologies.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zanzotto2026neurosymbolic,
  title  = {Neuro-symbolic Syntactic Parsing: Shaping a Neural Network with the CYK Algorithm},
  author = {Fabio Massimo Zanzotto and Federico Ranaldi and Giorgio Satta},
  year   = {2026},
  eprint = {2605.31421},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.31421v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.31421.svg)](https://codeofpaper.com/paper/2605.31421)

Discussion