SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.11628 · 2026

Back to Basics: Let Conversational Agents Remember with Just Retrieval and Generation

Wei Chen, Kai Wang, Yuxuan Liang, Xiaofang Zhou, Qingxiang Liu, Zhengjun Huang, Junle Chen, Yuqian Wu

arXiv · PDF

Code that ran

16 of 20 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 3 violated it and 0 have no contract verdict; 9 failures of our instrument; 4 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2604.11628.json · badge: /api/ran/2604.11628.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
qingyue2014/Rsum canonical (classifier label)
classifier basis: census
9 ran · 3 no recorded run
facebookresearch/contriever canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
add_embeddings Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
facebookresearch/contriever/passage_retrieval.py
pointer only (licence: NONE); the stored copy get_code serves, from FenQQQ/Fusion-in-decoder, is pointer only (licence: NOASSERTION) · get_code("bc7a7a194c238080")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/contriever when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

apply_rotary_emb Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
qingyue2014/Rsum/llama/model.py
pointer only (licence: NONE) · get_code("d7b6dcfe63bfe59b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingyue2014/Rsum when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

check_answer Ran
ran, violated the contract we drafted
facebookresearch/contriever/src/evaluation.py
pointer only (licence: NOASSERTION) · get_code("637b51b8df78832a")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/contriever (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

collate_fn Ran
ran; our contract draft was wrong, not the code
qingyue2014/Rsum/dataloader.py
pointer only (licence: NONE) · get_code("afea9beadf818cbd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingyue2014/Rsum when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

count_data Ran
ran, honoured the contract we drafted
qingyue2014/Rsum/dataloader.py
pointer only (licence: NONE) · get_code("4983ed16d0ae5b05")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingyue2014/Rsum when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gather Ran
ran, honoured the contract we drafted
facebookresearch/contriever/src/dist_utils.py
pointer only (licence: NOASSERTION) · get_code("9fb6e57668661c38")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/contriever (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gather_nograd Ran
ran, honoured the contract we drafted
facebookresearch/contriever/src/dist_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from agwaBom/TPOUR, is pointer only (licence: NONE) · get_code("01971cc37e6fe583")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/contriever when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_logger Ran
ran; our contract draft was wrong, not the code
qingyue2014/Rsum/config.py
pointer only (licence: NONE) · get_code("1fa4185c309e6ea7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingyue2014/Rsum when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

has_answer Ran
ran, violated the contract we drafted
facebookresearch/contriever/src/evaluation.py
pointer only (licence: NOASSERTION) · get_code("fa4ecbff4b9a354b")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/contriever (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

precompute_freqs_cis Ran
ran, violated the contract we drafted
qingyue2014/Rsum/llama/model.py
pointer only (licence: NONE) · get_code("04a1fa63d6d4b8e4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingyue2014/Rsum when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

randomcrop Ran
ran; our contract draft was wrong, not the code
facebookresearch/contriever/src/data.py
pointer only (licence: NOASSERTION) · get_code("e037474365501512")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/contriever (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

read_care_data Ran
ran; our contract draft was wrong, not the code
qingyue2014/Rsum/chatgpt/data_loader.py
pointer only (licence: NONE) · get_code("bbba85f47058078f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingyue2014/Rsum when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

read_msc_data Ran
ran; our contract draft was wrong, not the code
qingyue2014/Rsum/chatgpt/data_loader.py
pointer only (licence: NONE) · get_code("da4f33935b401bf5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingyue2014/Rsum when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

reshape_for_broadcast Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
qingyue2014/Rsum/llama/model.py
pointer only (licence: NONE); the stored copy get_code serves, from aleksandarpetrov/prefix-tuning-theory, is pointer only (licence: NONE) · get_code("5a639d78ada17fee")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingyue2014/Rsum when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_top_p Ran
ran; our contract draft was wrong, not the code
qingyue2014/Rsum/llama/generation.py
pointer only (licence: NONE) · get_code("e28848558038eee4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingyue2014/Rsum when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

varsize_gather_nograd Ran
ran, honoured the contract we drafted
facebookresearch/contriever/src/dist_utils.py
pointer only (licence: NOASSERTION) · get_code("b1ad8cd3a7168b7f")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/contriever (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_matches Not yet run
unverified (harvested, no recorded run)
facebookresearch/contriever/src/evaluation.py
pointer only (licence: NOASSERTION) · get_code("7a4988952dd3a127")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/contriever (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

count_data Not yet run
unverified (harvested, no recorded run)
qingyue2014/Rsum/chatgpt/data_loader.py
pointer only (licence: NONE) · get_code("f1fc213a9dcef7f9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingyue2014/Rsum when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

prepare_test_data Not yet run
unverified (harvested, no recorded run)
qingyue2014/Rsum/llama/data_loader.py
pointer only (licence: NONE) · get_code("f4b5e87a3622586d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingyue2014/Rsum when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

read_care_data Not yet run
unverified (harvested, no recorded run)
qingyue2014/Rsum/llama/data_loader.py
pointer only (licence: NONE) · get_code("bcb778518f2447c8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingyue2014/Rsum when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 12 are also present in other papers whose code we hold (12 with at least one paper dated earlier, 1 the same month, 4 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
reshape_for_broadcast 58 other papers
57 dated earlier, 1 later · 2 only as an assembly brick
2023.emnlp-main.534 (2023 (year only))
Disentangling Transformer Language Models as Superposed Topic Models
2303.09736 (2023-03)
Dynamic Structure Pruning for Compressing CNNs
2307.09288 (2023-07)
Llama 2: Open Foundation and Fine-Tuned Chat Models
and 55 more not named here
apply_rotary_emb 55 other papers
52 dated earlier, 3 later · 1 only as an assembly brick
2023.emnlp-main.534 (2023 (year only))
Disentangling Transformer Language Models as Superposed Topic Models
2303.09736 (2023-03)
Dynamic Structure Pruning for Compressing CNNs
2307.09288 (2023-07)
Llama 2: Open Foundation and Fine-Tuned Chat Models
and 52 more not named here
precompute_freqs_cis 47 other papers
47 dated earlier · 1 only as an assembly brick
2023.emnlp-main.534 (2023 (year only))
Disentangling Transformer Language Models as Superposed Topic Models
2303.09736 (2023-03)
Dynamic Structure Pruning for Compressing CNNs
2307.09288 (2023-07)
Llama 2: Open Foundation and Fine-Tuned Chat Models
and 44 more not named here
sample_top_p 26 other papers
25 dated earlier, 1 later
2023.emnlp-main.534 (2023 (year only))
Disentangling Transformer Language Models as Superposed Topic Models
2305.08322 (2023-05)
C-EVAL: A Multi-Level Multi-Discipline Chinese Evaluation Suite for Foundation Models
2305.11554 (2023-05)
ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddings
and 23 more not named here
calculate_matches 13 other papers
13 dated earlier
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2401.03568 (2024-01)
Agent AI: Surveying the Horizons of Multimodal Interaction
2401.16979 (2024-01)
Re3val: Reinforced and Reranked Generative Retrieval
and 10 more not named here
check_answer 13 other papers
13 dated earlier
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2401.03568 (2024-01)
Agent AI: Surveying the Horizons of Multimodal Interaction
2401.16979 (2024-01)
Re3val: Reinforced and Reranked Generative Retrieval
and 10 more not named here
has_answer 11 other papers
11 dated earlier
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2401.03568 (2024-01)
Agent AI: Surveying the Horizons of Multimodal Interaction
2401.16979 (2024-01)
Re3val: Reinforced and Reranked Generative Retrieval
and 8 more not named here
varsize_gather_nograd 10 other papers
10 dated earlier
2402.03216 (2024-02)
M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation
2402.07867 (2024-02)
PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models
2403.06840 (2024-03)
RA-ISF: Learning to Answer and Understand from Retrieval Augmentation via Iterative Self-Feedback
and 7 more not named here
gather_nograd 9 other papers
8 dated earlier, 1 later
2402.03216 (2024-02)
M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation
2402.07867 (2024-02)
PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models
2403.06840 (2024-03)
RA-ISF: Learning to Answer and Understand from Retrieval Augmentation via Iterative Self-Feedback
and 6 more not named here
gather 8 other papers
8 dated earlier
2402.03216 (2024-02)
M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation
2402.07867 (2024-02)
PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models
2403.06840 (2024-03)
RA-ISF: Learning to Answer and Understand from Retrieval Augmentation via Iterative Self-Feedback
and 5 more not named here
randomcrop 7 other papers
7 dated earlier
2310.11511 (2023-10)
Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection
2402.03216 (2024-02)
M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation
2402.07867 (2024-02)
PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models
and 4 more not named here
add_embeddings 6 other papers
5 dated earlier, 1 the same month
2012.04584 (2020-12)
Distilling Knowledge from Reader to Retriever for Question Answering
2311.09805 (2023-11)
DocMath-Eval: Evaluating Math Reasoning Capabilities of LLMs in Understanding Long and Specialized Documents
2401.16979 (2024-01)
Re3val: Reinforced and Reranked Generative Retrieval
and 3 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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 Signal Sparsity Effect within the latent knowledge manifold. Through controlled experiments, we identify two key phenomena: Decisive Evidence Sparsity, where relevant signals become increasingly isolated with longer sessions, leading to sharp degradation in aggregation-based methods; and Dual-Level Redundancy, where both intersession interference and intra-session conversational filler introduce large amounts of non-informative content, hindering effective generation. Motivated by these insights, we propose Nano-Memory, 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 Nano-Memory 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2604.11628")
get_code_for_paper("2604.11628")
have("2604.11628")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2604.11628.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2604.11628.svg)](https://syntology.ai/paper/2604.11628)

Connect an agent — have() is free.