Giter VIP home page Giter VIP logo

measuring-emergent-comm's Introduction

Measuring emergent communication

This repo contains the code used to run the experiments in our paper "On the Pitfalls of Measuring Emergent Communication", AAMAS 2019. We include both code for training RL agents on matrix communication games (MCGs), and code to evaluate their performance and calculate the causal influence of communication (CIC).

Dependencies

  • Python 3.6
  • Pytorch >= 0.4.1
  • Numpy

Get started

To train REINFORCE agents on random MCGs, simply run main.py. You can adjust the training parameters by passing the appropriate arguments (see the parse_args() function). By default, this will print out each agent's reward and the speaker consistency (SC) value. You can view more outputs, including the instantaneous coordination (IC), and the action prediction accuracy, by using the option --verbose.

If you want to calculate the causal influence of communication, see the code provided in eval.py, specifically the calc_model_cic function.

If you are just interested in using MCGs as an environment to train other agents, see the mcg.py file.

License

Measuring-emergent-comm is released under Creative Commons Attribution 4.0 International (CC BY 4.0) license, as found in the LICENSE file.

Bibliography

If you found this code useful, please cite the following paper:

"On the Pitfalls of Measuring Emergent Communication", Ryan Lowe, Jakob Foerster, Y-Lan Boureau, Joelle Pineau, and Yann Dauphin, AAMAS 2019.

@inproceedings{lowe2019on, title = {On the pitfalls of measuring emergent communication}, author = {Lowe, Ryan and Foerster, Jakob and Boureau, Y-Lan and Pineau, Joelle and Dauphin, Yann}, booktitle = {International Conference on Autonomous Agents and Multiagent Systems (AAMAS)}, year = {2019} }

measuring-emergent-comm's People

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.