{"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-08554","title":"Drift and selection in LLM text ecosystems","arxiv_id":"2604.08554","date":"2026-03-15","proceeding":null,"authors":["Søren Riis"],"abstract":"The public text record -- the material from which both people and AI systems now learn -- is increasingly shaped by its own outputs. Generated text enters the public record, later agents learn from it, and the cycle repeats. Here we develop an exactly solvable mathematical framework for this recursive process, based on variable-order $n$-gram agents, and separate two forces acting on the public corpus. The first is drift: unfiltered reuse progressively removes rare forms, and in the infinite-corpus limit we characterise the stable distributions exactly. The second is selection: publication, ranking and verification filter what enters the record, and the outcome depends on what is selected. When publication merely reflects the statistical status quo, the corpus converges to a shallow state in which further lookahead brings no benefit. When publication is normative -- rewarding quality, correctness or novelty -- deeper structure persists, and we establish an optimal upper bound on the resulting divergence from shallow equilibria. The framework therefore identifies when recursive publication compresses public text and when selective filtering sustains richer structure, with implications for the design of AI training corpora.","url_abs":"https://arxiv.org/abs/2604.08554","url_pdf":"https://arxiv.org/pdf/2604.08554","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":"https://app.syntology.ai/?focus=2604.08554","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.08554"}},"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/SR123/LLM-text-ecosystems","reach":null},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/SR123/LLM","reach":{"status":"gone","observed_at":"2026-09-16","how":"tree_404+repo_404"}},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/SR123/L","reach":{"status":"gone","observed_at":"2026-09-16","how":"tree_404+repo_404"}}],"summary":{"unverified":27},"by_repo_kind":{"found_in_text":{"samples":27,"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":"8e5fc93aea48cae9","entry":"clean_literary_text","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/corpus.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/corpus.py","link_basis":"first_harvest_node","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":"8e5fc93aea48cae9"}},{"code_sha256_prefix":"1b6456251fc3b160","entry":"clean_text","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/cleaning.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/cleaning.py","link_basis":"first_harvest_node","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":"1b6456251fc3b160"}},{"code_sha256_prefix":"ab35f17bdda388e6","entry":"default_output_root","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/ngram_regeneration_lab.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/ngram_regeneration_lab.py","link_basis":"first_harvest_node","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":"ab35f17bdda388e6"}},{"code_sha256_prefix":"3192911a149d9849","entry":"distinct_n","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/metrics.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/metrics.py","link_basis":"first_harvest_node","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":"3192911a149d9849"}},{"code_sha256_prefix":"9d574c3fb904a4c1","entry":"doob_h_transform","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/markov.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/markov.py","link_basis":"first_harvest_node","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":"9d574c3fb904a4c1"}},{"code_sha256_prefix":"07331ada1aa91236","entry":"environment_summary","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/environments.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/environments.py","link_basis":"first_harvest_node","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":"07331ada1aa91236"}},{"code_sha256_prefix":"1e3d2b319c17f814","entry":"file_sha256","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/manifests.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/manifests.py","link_basis":"first_harvest_node","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":"1e3d2b319c17f814"}},{"code_sha256_prefix":"56564335fd7b8444","entry":"find_project_root","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/ngram_regeneration_lab.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/ngram_regeneration_lab.py","link_basis":"first_harvest_node","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":"56564335fd7b8444"}},{"code_sha256_prefix":"47eaf6cae2094346","entry":"load_environment_tokens","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/environments.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/environments.py","link_basis":"first_harvest_node","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":"47eaf6cae2094346"}},{"code_sha256_prefix":"84a5e93fb6de5139","entry":"load_json","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/checkpoints.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/checkpoints.py","link_basis":"first_harvest_node","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":"84a5e93fb6de5139"}},{"code_sha256_prefix":"4a5ed63cca3d14bd","entry":"load_json_checkpoint","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/checkpoints.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/checkpoints.py","link_basis":"first_harvest_node","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":"4a5ed63cca3d14bd"}},{"code_sha256_prefix":"2bb9b3fd39a07247","entry":"load_manifest","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/manifests.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/manifests.py","link_basis":"first_harvest_node","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":"2bb9b3fd39a07247"}},{"code_sha256_prefix":"190ae407f3792fbb","entry":"load_text_file","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/corpus.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/corpus.py","link_basis":"first_harvest_node","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":"190ae407f3792fbb"}},{"code_sha256_prefix":"30acd7161d4a8d38","entry":"load_text_files","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/corpus.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/corpus.py","link_basis":"first_harvest_node","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":"30acd7161d4a8d38"}},{"code_sha256_prefix":"503006c62a3e8bb1","entry":"manifest_with_hashes","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/manifests.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/manifests.py","link_basis":"first_harvest_node","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":"503006c62a3e8bb1"}},{"code_sha256_prefix":"65b509daa33381f3","entry":"normalize_rows","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/markov.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/markov.py","link_basis":"first_harvest_node","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":"65b509daa33381f3"}},{"code_sha256_prefix":"7987ba488637f64c","entry":"normalize_text","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/cleaning.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/cleaning.py","link_basis":"first_harvest_node","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":"7987ba488637f64c"}},{"code_sha256_prefix":"f6f4cde455f4fb61","entry":"register_run","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/database.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/database.py","link_basis":"first_harvest_node","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":"f6f4cde455f4fb61"}},{"code_sha256_prefix":"de6ef20b34337186","entry":"repetition_n","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/metrics.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/metrics.py","link_basis":"first_harvest_node","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":"de6ef20b34337186"}},{"code_sha256_prefix":"63fc35dc28e4afca","entry":"resume_generation_state","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/checkpoints.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/checkpoints.py","link_basis":"first_harvest_node","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":"63fc35dc28e4afca"}},{"code_sha256_prefix":"9fc8299e527871b4","entry":"run_figure3_reproduction","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/conan_doyle_figure3.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/conan_doyle_figure3.py","link_basis":"first_harvest_node","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":"9fc8299e527871b4"}},{"code_sha256_prefix":"8c87d68d800d586f","entry":"save_environment_tokens","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/environments.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/environments.py","link_basis":"first_harvest_node","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":"8c87d68d800d586f"}},{"code_sha256_prefix":"fd2d7bf93d16321f","entry":"snapshot_path","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/ngram_regeneration_lab.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/ngram_regeneration_lab.py","link_basis":"first_harvest_node","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":"fd2d7bf93d16321f"}},{"code_sha256_prefix":"ea5df48f840de685","entry":"strip_gutenberg_boilerplate","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/cleaning.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/cleaning.py","link_basis":"first_harvest_node","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":"ea5df48f840de685"}},{"code_sha256_prefix":"dbd466fd97fcf021","entry":"support_dropout_rate","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/ngram.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/ngram.py","link_basis":"first_harvest_node","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":"dbd466fd97fcf021"}},{"code_sha256_prefix":"4ed08b3715922160","entry":"support_rate","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/metrics.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/metrics.py","link_basis":"first_harvest_node","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":"4ed08b3715922160"}},{"code_sha256_prefix":"ff10d1918cbb28d2","entry":"survival_probabilities","repo":"SR123/LLM-text-ecosystems","repo_kind":"found_in_text","path":"src/drift_selection/markov.py","file_url":"https://github.com/SR123/LLM-text-ecosystems/blob/HEAD/src/drift_selection/markov.py","link_basis":"first_harvest_node","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":"ff10d1918cbb28d2"}}]},"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":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,264 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6264},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}