• Home
  • Search
  • Inductive Program Synthesis Guided by Observational Program Similarity
  • Cite Icon5
  • https://doi.org/10.1145/3622830Copy DOI Icon

Inductive Program Synthesis Guided by Observational Program Similarity

Show More
  • Abstract
  • Highlights & Summary
  • PDF
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

We present a new general-purpose synthesis technique for generating programs from input-output examples. Our method, called metric program synthesis, relaxes the observational equivalence idea (used widely in bottom-up enumerative synthesis) into a weaker notion of observational similarity, with the goal of reducing the search space that the synthesizer needs to explore. Our method clusters programs into equivalence classes based on an expert-provided distance metric and constructs a version space that compactly represents “approximately correct” programs. Then, given a “close enough” program sampled from this version space, our approach uses a distance-guided repair algorithm to find a program that exactly matches the given input-output examples. We have implemented our proposed metric program synthesis technique in a tool called SyMetric and evaluate it in three different domains considered in prior work. Our evaluation shows that SyMetric outperforms other domain-agnostic synthesizers that use observational equivalence and that it achieves results competitive with domain-specific synthesizers that are either designed for or trained on those domains.

Loading PDF

Similar Papers
  • Research Article
  • Citations120

Synthesizing data structure transformations from input-output examples

  • Jun 03, 2015
  • ACM SIGPLAN Notices
  • John K Feser +2
  • Conference Article
  • Citations22

Inductive program synthesis over noisy data

  • Nov 08, 2020
  • Shivam Handa +1
  • Research Article
  • Citations2

A Systematic Literature Review of 10 years of Research on Program Synthesis and Natural Language Processing

  • Dec 01, 2024
  • Programming and Computer Software
  • Rolando Ramírez-Rueda +3
  • PDF
  • Research Article
  • Citations1

Neural-Guided Inductive Synthesis of Functional Programs on List Manipulation by Offline Supervised Learning

  • Jan 01, 2021
  • IEEE Access
  • Yuhong Wang +1
  • Conference Article
  • Citations258

Dimensions in program synthesis

  • Jul 26, 2010
  • Sumit Gulwani
  • PDF
  • Research Article
  • Citations14

Inductive Program Synthesis via Iterative Forward-Backward Abstract Interpretation

  • Jun 06, 2023
  • Proceedings of the ACM on Programming Languages
  • Yongho Yoon +2
  • Research Article
  • Citations8

AP: Artificial Programming

  • Jun 06, 2017
  • DROPS (Schloss Dagstuhl – Leibniz Center for Informatics)
  • Rishabh Singh +1
  • PDF
  • Conference Article
  • Citations14

Optimal Neural Program Synthesis from Multimodal Specifications

  • Jan 01, 2021
  • Xi Ye +3
  • Conference Article
  • Citations33

An analytical inductive functional programming system that avoids unintended programs

  • Jan 23, 2012
  • Susumu Katayama
  • Conference Article
  • Citations214

Type-and-example-directed program synthesis

  • Jun 03, 2015
  • Peter-Michael Osera +1
  • Supplementary Content

Synthesis of Protocols and Discrete Controllers

  • Nov 16, 2017
  • University of Liverpool
  • Im Husien
  • PDF
  • Research Article
  • Citations14

Trace-Guided Inductive Synthesis of Recursive Functional Programs

  • Jun 06, 2023
  • Proceedings of the ACM on Programming Languages
  • Yongwei Yuan +2
  • Research Article

GENESYS: A novel evolutionary program synthesis tool with continuous optimization

  • Nov 13, 2025
  • ACM Transactions on Probabilistic Machine Learning
  • Shantanu Mandal +4
  • Research Article
  • Citations28

Three new-generation software environments

  • Jun 01, 1991
  • Communications of the ACM
  • Enn Tyugu
  • Book Chapter
  • Citations11

Look for the Proof to Find the Program: Decorated-Component-Based Program Synthesis

  • Jan 01, 2017
  • Adrià Gascón +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.