{"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-2509-18577","title":"Prior-based Noisy Text Data Filtering: Fast and Strong Alternative For Perplexity","arxiv_id":"2509.18577","date":"2025-09-23","proceeding":"ICLR","authors":["Yeongbin Seo","Gayoung Kim","Jaehyung Kim","Jinyoung Yeo"],"abstract":"As large language models (LLMs) are pretrained on massive web corpora, careful selection of data becomes essential to ensure effective and efficient learning. While perplexity (PPL)-based filtering has shown strong performance, it suffers from drawbacks: substantial time costs and inherent unreliability of the model when handling noisy or out-of-distribution samples. In this work, we propose a simple yet powerful alternative: a prior-based data filtering method that estimates token priors using corpus-level term frequency statistics, inspired by linguistic insights on word roles and lexical density. Our approach filters documents based on the mean and standard deviation of token priors, serving as a fast proxy to PPL while requiring no model inference. Despite its simplicity, the prior-based filter achieves the highest average performance across 20 downstream benchmarks, while reducing time cost by over 1000x compared to PPL-based filtering. We further demonstrate its applicability to symbolic languages such as code and math, and its dynamic adaptability to multilingual corpora without supervision","url_abs":"https://arxiv.org/abs/2509.18577","url_pdf":"https://arxiv.org/pdf/2509.18577","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=2509.18577","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2509.18577"}},"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/ybseo-ac/prior_filter","reach":{"status":"ok"}}],"summary":{"ran":4,"ran_honours":1,"unverified":8},"by_repo_kind":{"found_in_text":{"samples":13,"ran":5,"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":13,"samples":[{"code_sha256_prefix":"dec1de00023a923b","entry":"fsspec_exists","repo":"ybseo-ac/prior_filter","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/ybseo-ac/prior_filter/blob/HEAD/utils.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dec1de00023a923b"}},{"code_sha256_prefix":"1e29cd51c516016f","entry":"hash_buckets","repo":"ybseo-ac/prior_filter","repo_kind":"found_in_text","path":"dsir/data_selection/hashed_ngram_dsir.py","file_url":"https://github.com/ybseo-ac/prior_filter/blob/HEAD/dsir/data_selection/hashed_ngram_dsir.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1e29cd51c516016f"}},{"code_sha256_prefix":"576e1b9b9bcae8ff","entry":"lm1b_detokenizer","repo":"ybseo-ac/prior_filter","repo_kind":"found_in_text","path":"dataloader.py","file_url":"https://github.com/ybseo-ac/prior_filter/blob/HEAD/dataloader.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"576e1b9b9bcae8ff"}},{"code_sha256_prefix":"9f7fbdbe7ca280e0","entry":"ptb_detokenizer","repo":"ybseo-ac/prior_filter","repo_kind":"found_in_text","path":"dataloader.py","file_url":"https://github.com/ybseo-ac/prior_filter/blob/HEAD/dataloader.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9f7fbdbe7ca280e0"}},{"code_sha256_prefix":"46c10627206a7795","entry":"wt_detokenizer","repo":"ybseo-ac/prior_filter","repo_kind":"found_in_text","path":"dataloader.py","file_url":"https://github.com/ybseo-ac/prior_filter/blob/HEAD/dataloader.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"46c10627206a7795"}},{"code_sha256_prefix":"ae07ec2d7d17e654","entry":"calcul_ppl","repo":"ybseo-ac/prior_filter","repo_kind":"found_in_text","path":"s2_ppl.py","file_url":"https://github.com/ybseo-ac/prior_filter/blob/HEAD/s2_ppl.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":"ae07ec2d7d17e654"}},{"code_sha256_prefix":"ce518b52ffd5e239","entry":"count_examples","repo":"ybseo-ac/prior_filter","repo_kind":"found_in_text","path":"run_dsir.py","file_url":"https://github.com/ybseo-ac/prior_filter/blob/HEAD/run_dsir.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":"ce518b52ffd5e239"}},{"code_sha256_prefix":"f5a5bd23613c626f","entry":"default_parse_example_fn","repo":"ybseo-ac/prior_filter","repo_kind":"found_in_text","path":"dsir/data_selection/base.py","file_url":"https://github.com/ybseo-ac/prior_filter/blob/HEAD/dsir/data_selection/base.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":"f5a5bd23613c626f"}},{"code_sha256_prefix":"db0136eb80a50383","entry":"fsspec_listdir","repo":"ybseo-ac/prior_filter","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/ybseo-ac/prior_filter/blob/HEAD/utils.py","link_basis":"plan_row","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":"db0136eb80a50383"}},{"code_sha256_prefix":"60dbd956810fafb6","entry":"get_logger","repo":"ybseo-ac/prior_filter","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/ybseo-ac/prior_filter/blob/HEAD/utils.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":"60dbd956810fafb6"}},{"code_sha256_prefix":"62ea960f9c749fc1","entry":"get_ngram_counts_from_ids","repo":"ybseo-ac/prior_filter","repo_kind":"found_in_text","path":"dsir/data_selection/hashed_ngram_dsir.py","file_url":"https://github.com/ybseo-ac/prior_filter/blob/HEAD/dsir/data_selection/hashed_ngram_dsir.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":"62ea960f9c749fc1"}},{"code_sha256_prefix":"f843d42053071093","entry":"parallelize","repo":"ybseo-ac/prior_filter","repo_kind":"found_in_text","path":"dsir/data_selection/utils.py","file_url":"https://github.com/ybseo-ac/prior_filter/blob/HEAD/dsir/data_selection/utils.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":"f843d42053071093"}},{"code_sha256_prefix":"413567937d98a31b","entry":"parse_example","repo":"ybseo-ac/prior_filter","repo_kind":"found_in_text","path":"run_dsir.py","file_url":"https://github.com/ybseo-ac/prior_filter/blob/HEAD/run_dsir.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":"413567937d98a31b"}}]},"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_api"},"syntology_extracted_results":null}