paper-with-me

홈 › Papers

Equivalence of Dataflow Graphs via Rewrite Rules Using a Graph-to-Sequence Neural Model

2020-02-17 · Steve Kommrusch, Théo Barollet, Louis-Noël Pouchet

In this work we target the problem of provably computing the equivalence between two programs represented as dataflow graphs. To this end, we formalize the problem of equivalence between two programs as finding a set of semantics-preserving rewrite rules from one into the other, such that after the rewrite the two programs are structurally identical, and therefore trivially equivalent. We then develop the first graph-to-sequence neural network system for program equivalence, trained to produce such rewrite sequences from a carefully crafted automatic example generation algorithm. We extensively evaluate our system on a rich multi-type linear algebra expression language, using arbitrary combinations of 100+ graph-rewriting axioms of equivalence. Our system outputs via inference a correct rewrite sequence for 96% of the 10,000 program pairs isolated for testing, using 30-term programs. And in all cases, the validity of the sequence produced and therefore the provable assertion of program equivalence is computable, in negligible time.

📄 PDF Abstract BibTeX arXiv:2002.06799

Code (0)

등록된 구현이 없습니다.

Tasks

Graph-to-Sequence

Similar Papers 제목 키워드 기반

Proving Equivalence Between Complex Expressions Using Graph-to-Sequence Neural Models

2021-06-01 · Steve Kommrusch, Théo Barollet, Louis-Noël Pouchet

We target the problem of provably computing the equivalence between two complex expression trees. To this end, we formalize the problem of equivalence between two such programs as finding a set of semantics-preserving re…

Graph-to-Sequencevalid

E3-Rewrite: Learning to Rewrite SQL for Executability, Equivalence,and Efficiency

2025-08-12 · Dongjie Xu, Yue Cui, Weijie Shi, Qingzhi Ma 외 arxiv

SQL query rewriting aims to reformulate a query into a more efficient form while preserving equivalence. Most existing methods rely on predefined rewrite rules. However, such rule-based approaches face fundamental limita…

Reinforcement Learning

LLM-R2: A Large Language Model Enhanced Rule-based Rewrite System for Boosting Query Efficiency

2024-04-19 · Zhaodonghui Li, Haitao Yuan, Huiming Wang, Gao Cong 외

Query rewrite, which aims to generate more efficient queries by altering a SQL query's structure without changing the query result, has been an important research problem. In order to maintain equivalence between the rew…

Language ModelingLanguage ModellingLarge Language Model

Self-Supervised Learning to Prove Equivalence Between Straight-Line Programs via Rewrite Rules

2021-09-22 · Steve Kommrusch, Martin Monperrus, Louis-Noël Pouchet

We target the problem of automatically synthesizing proofs of semantic equivalence between two programs made of sequences of statements. We represent programs using abstract syntax trees (AST), where a given set of seman…

Self-Supervised Learningvalid

A novel framework for systematic propositional formula simplification based on existential graphs

2024-05-27 · Jordina Francès de Mas, Juliana Bowles

This paper presents a novel simplification calculus for propositional logic derived from Peirce's existential graphs' rules of inference and implication graphs. Our rules can be applied to propositional logic formulae in…