{"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/arxiv-2604-11628","title":"Back to Basics: Let Conversational Agents Remember with Just Retrieval and Generation","arxiv_id":"2604.11628","date":"2026-04-13","proceeding":null,"authors":["Yuqian Wu","Wei Chen","Zhengjun Huang","Junle Chen","Qingxiang Liu","Kai Wang","Xiaofang Zhou","Yuxuan Liang"],"abstract":"Existing conversational memory systems rely on complex hierarchical summarization or reinforcement learning to manage long-term dialogue history, yet remain vulnerable to context dilution as conversations grow. In this work, we offer a different perspective: the primary bottleneck may lie not in memory architecture, but in the \\textit{Signal Sparsity Effect} within the latent knowledge manifold. Through controlled experiments, we identify two key phenomena: \\textit{Decisive Evidence Sparsity}, where relevant signals become increasingly isolated with longer sessions, leading to sharp degradation in aggregation-based methods; and \\textit{Dual-Level Redundancy}, where both inter-session interference and intra-session conversational filler introduce large amounts of non-informative content, hindering effective generation. Motivated by these insights, we propose \\method, a minimalist framework that brings conversational memory back to basics, relying solely on retrieval and generation via Turn Isolation Retrieval (TIR) and Query-Driven Pruning (QDP). TIR replaces global aggregation with a max-activation strategy to capture turn-level signals, while QDP removes redundant sessions and conversational filler to construct a compact, high-density evidence set. Extensive experiments on multiple benchmarks demonstrate that \\method achieves robust performance across diverse settings, consistently outperforming strong baselines while maintaining high efficiency in tokens and latency, establishing a new minimalist baseline for conversational memory.","url_abs":"https://arxiv.org/abs/2604.11628","url_pdf":"https://arxiv.org/pdf/2604.11628","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":null,"mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.11628"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/microsoft/MPNet","reach":null},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/facebookresearch/contriever","reach":null},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/qingyue2014/Rsum","reach":null}],"summary":{"ran_fixture":3,"ran_honours":1,"ran_violates":1,"unverified":15},"by_repo_kind":{"found_in_text":{"samples":20,"ran":5,"repositories":2}},"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":20,"samples":[{"code_sha256_prefix":"bc7a7a194c238080","entry":"add_embeddings","repo":"facebookresearch/contriever","repo_kind":"found_in_text","path":"passage_retrieval.py","file_url":"https://github.com/facebookresearch/contriever/blob/HEAD/passage_retrieval.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bc7a7a194c238080"}},{"code_sha256_prefix":"d7b6dcfe63bfe59b","entry":"apply_rotary_emb","repo":"qingyue2014/Rsum","repo_kind":"found_in_text","path":"llama/model.py","file_url":"https://github.com/qingyue2014/Rsum/blob/HEAD/llama/model.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d7b6dcfe63bfe59b"}},{"code_sha256_prefix":"01971cc37e6fe583","entry":"gather_nograd","repo":"facebookresearch/contriever","repo_kind":"found_in_text","path":"src/dist_utils.py","file_url":"https://github.com/facebookresearch/contriever/blob/HEAD/src/dist_utils.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"01971cc37e6fe583"}},{"code_sha256_prefix":"04a1fa63d6d4b8e4","entry":"precompute_freqs_cis","repo":"qingyue2014/Rsum","repo_kind":"found_in_text","path":"llama/model.py","file_url":"https://github.com/qingyue2014/Rsum/blob/HEAD/llama/model.py","link_basis":"plan_row","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"04a1fa63d6d4b8e4"}},{"code_sha256_prefix":"5a639d78ada17fee","entry":"reshape_for_broadcast","repo":"qingyue2014/Rsum","repo_kind":"found_in_text","path":"llama/model.py","file_url":"https://github.com/qingyue2014/Rsum/blob/HEAD/llama/model.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5a639d78ada17fee"}},{"code_sha256_prefix":"7a4988952dd3a127","entry":"calculate_matches","repo":"facebookresearch/contriever","repo_kind":"found_in_text","path":"src/evaluation.py","file_url":"https://github.com/facebookresearch/contriever/blob/HEAD/src/evaluation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"7a4988952dd3a127"}},{"code_sha256_prefix":"637b51b8df78832a","entry":"check_answer","repo":"facebookresearch/contriever","repo_kind":"found_in_text","path":"src/evaluation.py","file_url":"https://github.com/facebookresearch/contriever/blob/HEAD/src/evaluation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"637b51b8df78832a"}},{"code_sha256_prefix":"afea9beadf818cbd","entry":"collate_fn","repo":"qingyue2014/Rsum","repo_kind":"found_in_text","path":"dataloader.py","file_url":"https://github.com/qingyue2014/Rsum/blob/HEAD/dataloader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"afea9beadf818cbd"}},{"code_sha256_prefix":"4983ed16d0ae5b05","entry":"count_data","repo":"qingyue2014/Rsum","repo_kind":"found_in_text","path":"dataloader.py","file_url":"https://github.com/qingyue2014/Rsum/blob/HEAD/dataloader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4983ed16d0ae5b05"}},{"code_sha256_prefix":"f1fc213a9dcef7f9","entry":"count_data","repo":"qingyue2014/Rsum","repo_kind":"found_in_text","path":"chatgpt/data_loader.py","file_url":"https://github.com/qingyue2014/Rsum/blob/HEAD/chatgpt/data_loader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f1fc213a9dcef7f9"}},{"code_sha256_prefix":"9fb6e57668661c38","entry":"gather","repo":"facebookresearch/contriever","repo_kind":"found_in_text","path":"src/dist_utils.py","file_url":"https://github.com/facebookresearch/contriever/blob/HEAD/src/dist_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"9fb6e57668661c38"}},{"code_sha256_prefix":"1fa4185c309e6ea7","entry":"get_logger","repo":"qingyue2014/Rsum","repo_kind":"found_in_text","path":"config.py","file_url":"https://github.com/qingyue2014/Rsum/blob/HEAD/config.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1fa4185c309e6ea7"}},{"code_sha256_prefix":"fa4ecbff4b9a354b","entry":"has_answer","repo":"facebookresearch/contriever","repo_kind":"found_in_text","path":"src/evaluation.py","file_url":"https://github.com/facebookresearch/contriever/blob/HEAD/src/evaluation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"fa4ecbff4b9a354b"}},{"code_sha256_prefix":"f4b5e87a3622586d","entry":"prepare_test_data","repo":"qingyue2014/Rsum","repo_kind":"found_in_text","path":"llama/data_loader.py","file_url":"https://github.com/qingyue2014/Rsum/blob/HEAD/llama/data_loader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f4b5e87a3622586d"}},{"code_sha256_prefix":"e037474365501512","entry":"randomcrop","repo":"facebookresearch/contriever","repo_kind":"found_in_text","path":"src/data.py","file_url":"https://github.com/facebookresearch/contriever/blob/HEAD/src/data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"e037474365501512"}},{"code_sha256_prefix":"bbba85f47058078f","entry":"read_care_data","repo":"qingyue2014/Rsum","repo_kind":"found_in_text","path":"chatgpt/data_loader.py","file_url":"https://github.com/qingyue2014/Rsum/blob/HEAD/chatgpt/data_loader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bbba85f47058078f"}},{"code_sha256_prefix":"bcb778518f2447c8","entry":"read_care_data","repo":"qingyue2014/Rsum","repo_kind":"found_in_text","path":"llama/data_loader.py","file_url":"https://github.com/qingyue2014/Rsum/blob/HEAD/llama/data_loader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bcb778518f2447c8"}},{"code_sha256_prefix":"da4f33935b401bf5","entry":"read_msc_data","repo":"qingyue2014/Rsum","repo_kind":"found_in_text","path":"chatgpt/data_loader.py","file_url":"https://github.com/qingyue2014/Rsum/blob/HEAD/chatgpt/data_loader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"da4f33935b401bf5"}},{"code_sha256_prefix":"e28848558038eee4","entry":"sample_top_p","repo":"qingyue2014/Rsum","repo_kind":"found_in_text","path":"llama/generation.py","file_url":"https://github.com/qingyue2014/Rsum/blob/HEAD/llama/generation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e28848558038eee4"}},{"code_sha256_prefix":"b1ad8cd3a7168b7f","entry":"varsize_gather_nograd","repo":"facebookresearch/contriever","repo_kind":"found_in_text","path":"src/dist_utils.py","file_url":"https://github.com/facebookresearch/contriever/blob/HEAD/src/dist_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b1ad8cd3a7168b7f"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}