{"url":"/sota/roomenv-v0-on-roomenv-v0","task":{"name":"RoomEnv-v0","url":"/task/roomenv-v0","note":null},"dataset":{"name":"RoomEnv-v0","url":"/dataset/roomenv"},"category":"Computer Vision","categories":["Computer Code","Computer Vision","Knowledge Base","Methodology"],"category_note":null,"description":"# The Room environment - v0\r\n\r\n[![DOI](https://img.shields.io/badge/Paper-PDF-red.svg)](https://arxiv.org/abs/2204.01611)\r\n\r\nWe have released a challenging [Gymnasium](https://www.gymlibrary.dev/) compatible\r\nenvironment. The best strategy for this environment is to have both episodic and semantic\r\nmemory systems. See the paper for more information.\r\n\r\n## Prerequisites\r\n\r\n1. A unix or unix-like x86 machine\r\n1. python 3.10 or higher.\r\n1. Running in a virtual environment (e.g., conda, virtualenv, etc.) is highly recommended so that you don't mess up with the system python.\r\n1. This env is added to the PyPI server. Just run: `pip install room-env`\r\n\r\n## Data collection\r\n\r\nData is collected from querying ConceptNet APIs. For simplicity, we only collect triples\r\nwhose format is (`head`, `atlocation`, `tail`). Here `head` is one of the 80 MS COCO\r\ndataset categories. This was kept in mind so that later on we can use images as well.\r\n\r\nIf you want to collect the data manually, then run below:\r\n\r\n```\r\npython collect_data.py\r\n```\r\n\r\n## How does this environment work?\r\n\r\nThe Gymnasium-compatible Room environment is one big room with\r\n_N_<sub>_people_</sub> number of people who can freely move\r\naround. Each of them selects one object, among\r\n_N_<sub>_objects_</sub>, and places it in one of the\r\n_N_<sub>_locations_</sub> locations.\r\n_N_<sub>_agents_</sub> number of agent(s) are also in this\r\nroom. They can only observe one human placing an object, one at a time;\r\n**x**<sup>(_t_)</sup>. At the same time, they are given one question\r\nabout the location of an object; **q**<sup>(_t_)</sup>.\r\n**x**<sup>(_t_)</sup> is given as a quadruple,\r\n(**h**<sup>(_t_)</sup>,**r**<sup>(_t_)</sup>,**t**<sup>(_t_)</sup>,_t_),\r\nFor example, `<James’s laptop, atlocation, James’s desk, 42>` accounts\r\nfor an observation where an agent sees James placing his laptop on his\r\ndesk at *t* = 42. **q**<sup>(_t_)</sup> is given as a double,\r\n(**h**,**r**). For example, `<Karen’s cat, atlocation>` is asking where\r\nKaren’s cat is located. If the agent answers the question correctly, it\r\ngets a reward of  + 1, and if not, it gets 0.\r\n\r\nThe reason why the observations and questions are given as\r\nRDF-triple-like format is two folds. One is that this structured format\r\nis easily readable / writable by both humans and machines. Second is\r\nthat we can use existing knowledge graphs, such as ConceptNet .\r\n\r\nTo simplify the environment, the agents themselves are not actually\r\nmoving, but the room is continuously changing. There are several random\r\nfactors in this environment to be considered:\r\n\r\n1. With the chance of _p_<sub>commonsense</sub>,\r\n   a human places an object in a commonsense location (e.g., a laptop\r\n   on a desk). The commonsense knowledge we use is from ConceptNet.\r\n   With the chance of\r\n   1 − *p*<sub>_commonsense_</sub>, an object is\r\n   placed at a non-commonsense random location (e.g., a laptop on the\r\n   tree).\r\n\r\n1. With the chance of\r\n   _p_<sub>_new_\\__location_</sub>, a human changes\r\n   object location.\r\n\r\n1. With the chance of _p_<sub>_new_\\__object_</sub>, a\r\n   human changes his/her object to another one.\r\n\r\n1. With the chance of\r\n   _p_<sub>_switch_\\__person_</sub>, two people\r\n   switch their locations. This is done to mimic an agent moving around\r\n   the room.\r\n\r\nAll of the four probabilities account for the Bernoulli distributions.\r\n\r\nConsider there is only one agent. Then this is a POMDP, where _S_<sub>_t_</sub> = (**x**<sup>(_t_)</sup>, **q**<sup>(_t_)</sup>), _A_<sub>_t_</sub> = (do something with **x**<sup>(_t_)</sup>, answer **q**<sup>(_t_)</sup>), and _R_<sub>_t_</sub> ∈ *{0, 1}*.\r\n\r\nCurrently there is no RL trained for this. We only have some heuristics. Take a look at the paper for more details.\r\n\r\n## RoomEnv-v0\r\n\r\n```python\r\nimport gymnasium as gym\r\n\r\nenv = gym.make(\"room_env:RoomEnv-v0\")\r\n(observation, question), info = env.reset()\r\nrewards = 0\r\n\r\nwhile True:\r\n    (observation, question), reward, done, truncated, info = env.step(\"This is my answer!\")\r\n    rewards += reward\r\n    if done:\r\n        break\r\n\r\nprint(rewards)\r\n```\r\n\r\nEvery time when an agent takes an action, the environment will give you an observation\r\nand a question to answer. You can try directly answering the question,\r\nsuch as `env.step(\"This is my answer!\")`, but a better strategy is to keep the\r\nobservations in memory systems and take advantage of the current observation and the\r\nhistory of them in the memory systems.\r\n\r\nTake a look at [this repo](https://github.com/humemai/humemai) for an actual\r\ninteraction with this environment to learn a policy.\r\n\r\n## Contributing\r\n\r\nContributions are what make the open source community such an amazing place to be learn,\r\ninspire, and create. Any contributions you make are **greatly appreciated**.\r\n\r\n1. Fork the Project\r\n1. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\r\n1. Run `make test && make style && make quality` in the root repo directory,\r\n   to ensure code quality.\r\n1. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\r\n1. Push to the Branch (`git push origin feature/AmazingFeature`)\r\n1. Open a Pull Request\r\n\r\n## [Cite our paper](https://arxiv.org/abs/2204.01611)\r\n\r\n```bibtex\r\n@misc{https://doi.org/10.48550/arxiv.2204.01611,\r\n  doi = {10.48550/ARXIV.2204.01611},\r\n  url = {https://arxiv.org/abs/2204.01611},\r\n  author = {Kim, Taewoon and Cochez, Michael and Francois-Lavet, Vincent and Neerincx,\r\n  Mark and Vossen, Piek},\r\n  keywords = {Artificial Intelligence (cs.AI), FOS: Computer and information sciences,\r\n  FOS: Computer and information sciences},\r\n  title = {A Machine With Human-Like Memory Systems},\r\n  publisher = {arXiv},\r\n  year = {2022},\r\n  copyright = {Creative Commons Attribution 4.0 International}\r\n}\r\n```\r\n\r\n## Authors\r\n\r\n- [Taewoon Kim](https://taewoon.kim/)\r\n- [Michael Cochez](https://www.cochez.nl/)\r\n- [Vincent Francois-Lavet](http://vincent.francois-l.be/)\r\n- [Mark Neerincx](https://ocw.tudelft.nl/teachers/m_a_neerincx/)\r\n- [Piek Vossen](https://vossen.info/)\r\n\r\n## License\r\n\r\n[MIT](https://choosealicense.com/licenses/mit/)","description_from":"task","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","rank":"the archive's row order at snapshot; not re-ranked","rows_end_at":"2025-07-28","rows_withheld_as_spam":0,"metric_values":"the archive's strings, untouched"},"metrics":["final agent reward"],"metric_direction":{"note":"inferred from the metric name only (the archive records no direction); null = not inferred, chart draws points only","by_metric":{"final agent reward":null}},"counts":{"rows":1,"rows_with_code":1,"rows_with_paper_page":1,"rows_dated":1,"rows_using_additional_data":0},"rows":[{"rank_in_archive_order":1,"model":"HumemAI-v0-handcrafted-capacity=32","metrics":{"final agent reward":"700"},"uses_additional_data":false,"paper_date":"2022-04-04","paper":"/paper/a-machine-with-human-like-memory-systems","paper_url":"https://arxiv.org/abs/2204.01611v2","paper_title":"A Machine With Human-Like Memory Systems","code":"https://github.com/humemai/agent-room-env-v0","n_code_links":1,"syntology":null}],"since_archive":{"claim":"Results that newer papers report for their own method, placed here by Syntology. A model pointed at the cell in the paper's own table; the number was read from that cell and checked against this leaderboard's metric, dataset, split and scale; an independent check that saw this leaderboard's other rows and every other leaderboard on the same dataset accepted it. Not reviewed by the paper's authors or by the archive's editors, and not ranked against the archive rows.","extraction_file_present":true,"measurement":{"test_papers":883,"papers_with_output":881,"judged_true":108,"judged":110,"wilson95_lower":0.9361,"measured_on":"2026-09-24","frozen_commit":"0e3de0df94"},"measurement_note":"blind adjudication of accepted entries on a held-out split of archive papers, rules frozen before the test","coverage":{"sentence":"Syntology has checked 6,885 of the 9,623 papers on this site that are newer than the archive; results from the others appear after they are checked.","complete":false,"papers_newer_than_archive":9623,"papers_checked":6885,"papers_extracted_not_yet_verified":0,"boards_without_verdict":2,"papers_not_yet_extracted":2737},"order":"newest first by month (arXiv date, else the arXiv-id month), then arXiv id descending","columns":[],"entries":[]},"syntology":{"read_at":"2026-09-25T09:33:49+00:00","claim":"Per row: N of M harvested code samples from that row's paper executed on a synthesized fixture; the other M-N are unverified. Not a reproduction of the row's number; not a correctness claim. n_pointer_only_licence counts samples the site points at rather than redistributes (a licence axis, independent of ran/unverified).","rows_with_graph_line":0,"rows_with_any_sample_ran":0,"distinct_papers_with_graph_line":0,"distinct_papers_with_any_sample_ran":0,"samples_over_distinct_papers":{"n_ran":0,"n_unverified":0,"n_samples":0,"n_pointer_only_licence":0,"note":"each paper (arXiv id) counted once, however many rows it is behind; this is the page-level figure"},"samples_row_weighted":{"n_ran":0,"n_unverified":0,"n_samples":0,"n_pointer_only_licence":0,"note":"row-weighted: a paper behind several rows is counted once per row; inflated relative to samples_over_distinct_papers by design, kept for readers summing the per-row syntology blocks"}}}