{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/a-machine-with-short-term-episodic-and","title":"A Machine with Short-Term, Episodic, and Semantic Memory Systems","arxiv_id":"2212.02098","date":"2022-12-05","proceeding":null,"authors":["Taewoon Kim","Michael Cochez","Vincent François-Lavet","Mark Neerincx","Piek Vossen"],"abstract":"Inspired by the cognitive science theory of the explicit human memory systems, we have modeled an agent with short-term, episodic, and semantic memory systems, each of which is modeled with a knowledge graph. To evaluate this system and analyze the behavior of this agent, we designed and released our own reinforcement learning agent environment, \"the Room\", where an agent has to learn how to encode, store, and retrieve memories to maximize its return by answering questions. We show that our deep Q-learning based agent successfully learns whether a short-term memory should be forgotten, or rather be stored in the episodic or semantic memory systems. Our experiments indicate that an agent with human-like memory systems can outperform an agent without this memory structure in the environment.","url_abs":"https://arxiv.org/abs/2212.02098v4","url_pdf":"https://arxiv.org/pdf/2212.02098v4.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"a-machine-with-short-term-episodic-and","repo_url":"https://github.com/humemai/agent-room-env-v1","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"q-learning","task_name":"Q-Learning"},{"task_slug":"reinforcement-learning-1","task_name":"Reinforcement Learning (RL)"},{"task_slug":"roomenv-v1","task_name":"RoomEnv-v1"}],"methods":[{"method_slug":"q-learning","method_name":"Q-Learning"}],"datasets_introduced":[{"slug":"roomenv-v1","name":"RoomEnv-v1","full_name":"The Room environment - v1"}],"methods_introduced":[],"results":[{"leaderboard":"/sota/roomenv-v1-on-roomenv-v1","task":"RoomEnv-v1","dataset":"RoomEnv-v1","model":"HumemAI-v0-capacity=32-semantic-pretrained","rank_in_archive_order":1,"of":2,"metrics":{"final agent reward":"116.5"},"uses_additional_data":false},{"leaderboard":"/sota/roomenv-v1-on-roomenv-v1","task":"RoomEnv-v1","dataset":"RoomEnv-v1","model":"HumemAI-v0-capacity=32-semantic-scratch","rank_in_archive_order":2,"of":2,"metrics":{"final agent reward":"109"},"uses_additional_data":false}],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2212.02098","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2212.02098"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/humemai/agent-room-env-v1","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":10},"by_repo_kind":{"official":{"samples":10,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"095f68d3628f0df1","entry":"compute_gae","repo":"humemai/agent-room-env-v1","repo_kind":"official","path":"agent/ppo/utils.py","file_url":"https://github.com/humemai/agent-room-env-v1/blob/HEAD/agent/ppo/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"095f68d3628f0df1"}},{"code_sha256_prefix":"16559d8f2cc916ae","entry":"compute_loss","repo":"humemai/agent-room-env-v1","repo_kind":"official","path":"agent/dqn/utils.py","file_url":"https://github.com/humemai/agent-room-env-v1/blob/HEAD/agent/dqn/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"16559d8f2cc916ae"}},{"code_sha256_prefix":"231b2904c290d630","entry":"load_training_val_test_results","repo":"humemai/agent-room-env-v1","repo_kind":"official","path":"plotting.py","file_url":"https://github.com/humemai/agent-room-env-v1/blob/HEAD/plotting.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"231b2904c290d630"}},{"code_sha256_prefix":"60c58b20152f06b8","entry":"read_json","repo":"humemai/agent-room-env-v1","repo_kind":"official","path":"agent/utils.py","file_url":"https://github.com/humemai/agent-room-env-v1/blob/HEAD/agent/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"60c58b20152f06b8"}},{"code_sha256_prefix":"a6496700c0e2a21b","entry":"read_yaml","repo":"humemai/agent-room-env-v1","repo_kind":"official","path":"agent/utils.py","file_url":"https://github.com/humemai/agent-room-env-v1/blob/HEAD/agent/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a6496700c0e2a21b"}},{"code_sha256_prefix":"750debd5365bc34e","entry":"select_action","repo":"humemai/agent-room-env-v1","repo_kind":"official","path":"agent/dqn/utils.py","file_url":"https://github.com/humemai/agent-room-env-v1/blob/HEAD/agent/dqn/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"750debd5365bc34e"}},{"code_sha256_prefix":"8ee60ab856ea7100","entry":"select_action","repo":"humemai/agent-room-env-v1","repo_kind":"official","path":"agent/ppo/utils.py","file_url":"https://github.com/humemai/agent-room-env-v1/blob/HEAD/agent/ppo/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8ee60ab856ea7100"}},{"code_sha256_prefix":"d9cf8ca093d58d34","entry":"split_by_possessive","repo":"humemai/agent-room-env-v1","repo_kind":"official","path":"agent/utils.py","file_url":"https://github.com/humemai/agent-room-env-v1/blob/HEAD/agent/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d9cf8ca093d58d34"}},{"code_sha256_prefix":"83251feeaee5549b","entry":"update_model","repo":"humemai/agent-room-env-v1","repo_kind":"official","path":"agent/dqn/utils.py","file_url":"https://github.com/humemai/agent-room-env-v1/blob/HEAD/agent/dqn/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"83251feeaee5549b"}},{"code_sha256_prefix":"f152566ebadd51ec","entry":"update_model","repo":"humemai/agent-room-env-v1","repo_kind":"official","path":"agent/ppo/utils.py","file_url":"https://github.com/humemai/agent-room-env-v1/blob/HEAD/agent/ppo/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f152566ebadd51ec"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}