GithubHelp home page GithubHelp logo

neuro-symbolic-ai / latent_mathematical_reasoning Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 515 KB

Multi-Operational Mathematical Derivations in Latent Space

Home Page: https://arxiv.org/abs/2311.01230

License: MIT License

Python 100.00%
convolutional-neural-networks equational-reasoning graph-neural-networks latent-space machine-learning mathematical-expressions recurrent-neural-networks transformers

latent_mathematical_reasoning's Introduction

This paper investigates the possibility of approximating multiple mathematical operations in latent space for expression derivation. To this end, we introduce different multi-operational representation paradigms, modelling mathematical operations as explicit geometric transformations. By leveraging a symbolic engine, we construct a large-scale dataset comprising 1.7M derivation steps stemming from 61K premises and 6 operators, analysing the properties of each paradigm when instantiated with state-of-the-art neural encoders.

Specifically, we investigate how different encoding mechanisms can approximate equational reasoning in latent space, exploring the trade-off between learning different operators and specialising within single operations, as well as the ability to support multi-step derivations and out-of-distribution generalisation. Our empirical analysis reveals that the multi-operational paradigm is crucial for disentangling different operators, while discriminating the conclusions for a single operation is achievable in the original expression encoder. Moreover, we show that architectural choices can heavily affect the training dynamics, structural organisation, and generalisation of the latent space, resulting in significant variations across paradigms and classes of encoders.

Image description

Reproducibility

Welcome! :)

In this repository, you can find the code (latent_reasoning.py and latent_reasoning_multistep.py) to reproduce the results obtained in our paper with different neural encoders and multi-operational paradigms.

Note that this repository contains experimental code subject to continuous optimisation and changes. If you have any questions, feel free to send an email to [email protected].

Synthetic Data

The complete dataset generated using our methodology (premises_dataset.json) is available here: https://drive.google.com/file/d/1YnTyE9KVSGonTSa2LzU3q0E4ntK8q-8u/view?usp=sharing

The multi-step derivation data (multiple_steps.json) is available here: https://drive.google.com/file/d/1chHdyLVCwNxCvuEQ9n13yRVUWDspGp2g/view?usp=sharing

To start the experiments, download the datasets and store them in ./data.

If you find this repository useful, please consider citing our paper.

@misc{valentino2023multioperational,
      title={Multi-Operational Mathematical Derivations in Latent Space}, 
      author={Marco Valentino and Jordan Meadows and Lan Zhang and André Freitas},
      year={2023},
      eprint={2311.01230},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}

latent_mathematical_reasoning's People

Contributors

lanzhang128 avatar mvalentino91 avatar wenqian-zhang avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.