{"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/scandl-a-diffusion-model-for-generating","title":"ScanDL: A Diffusion Model for Generating Synthetic Scanpaths on Texts","arxiv_id":"2310.15587","date":"2023-10-24","proceeding":null,"authors":["Lena S. Bolliger","David R. Reich","Patrick Haller","Deborah N. Jakobi","Paul Prasse","Lena A. Jäger"],"abstract":"Eye movements in reading play a crucial role in psycholinguistic research studying the cognitive mechanisms underlying human language processing. More recently, the tight coupling between eye movements and cognition has also been leveraged for language-related machine learning tasks such as the interpretability, enhancement, and pre-training of language models, as well as the inference of reader- and text-specific properties. However, scarcity of eye movement data and its unavailability at application time poses a major challenge for this line of research. Initially, this problem was tackled by resorting to cognitive models for synthesizing eye movement data. However, for the sole purpose of generating human-like scanpaths, purely data-driven machine-learning-based methods have proven to be more suitable. Following recent advances in adapting diffusion processes to discrete data, we propose ScanDL, a novel discrete sequence-to-sequence diffusion model that generates synthetic scanpaths on texts. By leveraging pre-trained word representations and jointly embedding both the stimulus text and the fixation sequence, our model captures multi-modal interactions between the two inputs. We evaluate ScanDL within- and across-dataset and demonstrate that it significantly outperforms state-of-the-art scanpath generation methods. Finally, we provide an extensive psycholinguistic analysis that underlines the model's ability to exhibit human-like reading behavior. Our implementation is made available at https://github.com/DiLi-Lab/ScanDL.","url_abs":"https://arxiv.org/abs/2310.15587v1","url_pdf":"https://arxiv.org/pdf/2310.15587v1.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":"scandl-a-diffusion-model-for-generating","repo_url":"https://github.com/dili-lab/scandl","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2310.15587","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.15587"}},"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/dili-lab/scandl","reach":{"status":"ok"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/DiLi-Lab/ScanDL","reach":{"status":"ok"}}],"summary":{"ran":6,"ran_draft_wrong":3,"ran_honours":2,"unverified":9},"by_repo_kind":{"official":{"samples":20,"ran":11,"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":20,"samples":[{"code_sha256_prefix":"f378e3c2e0e7259f","entry":"SiLU","repo":"DiLi-Lab/ScanDL","repo_kind":"official","path":"scandl/sp_transformer_model.py","file_url":"https://github.com/DiLi-Lab/ScanDL/blob/HEAD/scandl/sp_transformer_model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f378e3c2e0e7259f"}},{"code_sha256_prefix":"cfd76fd0d89574a4","entry":"approx_standard_normal_cdf","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/utils/losses.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/utils/losses.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cfd76fd0d89574a4"}},{"code_sha256_prefix":"2ab2316ac6fdd869","entry":"betas_for_alpha_bar","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/sp_gaussian_diffusion.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/sp_gaussian_diffusion.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2ab2316ac6fdd869"}},{"code_sha256_prefix":"ec3425eb7cd519f7","entry":"betas_for_alpha_bar_left","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/sp_gaussian_diffusion.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/sp_gaussian_diffusion.py","link_basis":"first_harvest_node","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":"ec3425eb7cd519f7"}},{"code_sha256_prefix":"561d61dd0e3e3459","entry":"denoised_fn_round","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/sp_rounding.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/sp_rounding.py","link_basis":"first_harvest_node","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":"561d61dd0e3e3459"}},{"code_sha256_prefix":"cd33283d615fb3d7","entry":"discretized_gaussian_log_likelihood","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/utils/losses.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/utils/losses.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cd33283d615fb3d7"}},{"code_sha256_prefix":"4b8663c67f958eca","entry":"get_efficient_knn","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/sp_rounding.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/sp_rounding.py","link_basis":"first_harvest_node","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":"4b8663c67f958eca"}},{"code_sha256_prefix":"7c426de92b7ed6df","entry":"get_named_beta_schedule","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/sp_gaussian_diffusion.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/sp_gaussian_diffusion.py","link_basis":"first_harvest_node","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":"7c426de92b7ed6df"}},{"code_sha256_prefix":"bcd8b4acab199405","entry":"make_output_format","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/utils/logger.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/utils/logger.py","link_basis":"harvester_set","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":"bcd8b4acab199405"}},{"code_sha256_prefix":"cf2798b666b231ca","entry":"normal_kl","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/utils/losses.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/utils/losses.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cf2798b666b231ca"}},{"code_sha256_prefix":"129b804760b3115f","entry":"zero_module","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/utils/nn.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/utils/nn.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"129b804760b3115f"}},{"code_sha256_prefix":"35e096f40fc8ed50","entry":"TransformerNetModel","repo":"DiLi-Lab/ScanDL","repo_kind":"official","path":"scandl/sp_transformer_model.py","file_url":"https://github.com/DiLi-Lab/ScanDL/blob/HEAD/scandl/sp_transformer_model.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":"35e096f40fc8ed50"}},{"code_sha256_prefix":"ecd0fc28815b65ae","entry":"avg_pool_nd","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/utils/nn.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/utils/nn.py","link_basis":"harvester_set","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":"ecd0fc28815b65ae"}},{"code_sha256_prefix":"b6fb1c1dab4fdbf7","entry":"create_named_schedule_sampler","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/step_sample.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/step_sample.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":"b6fb1c1dab4fdbf7"}},{"code_sha256_prefix":"9906cf99104415ef","entry":"get_knn","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/sp_rounding.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/sp_rounding.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":"9906cf99104415ef"}},{"code_sha256_prefix":"a863803cdd5f3ce6","entry":"make_master_params","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/utils/fp16_util.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/utils/fp16_util.py","link_basis":"harvester_set","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":"a863803cdd5f3ce6"}},{"code_sha256_prefix":"e515a67f7f32e76d","entry":"mpi_weighted_mean","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/utils/logger.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/utils/logger.py","link_basis":"harvester_set","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":"e515a67f7f32e76d"}},{"code_sha256_prefix":"474a3911f75068af","entry":"profile","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/utils/logger.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/utils/logger.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":"474a3911f75068af"}},{"code_sha256_prefix":"9136b5f9b735334b","entry":"scale_module","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/utils/nn.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/utils/nn.py","link_basis":"harvester_set","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":"9136b5f9b735334b"}},{"code_sha256_prefix":"30e43bcf12d042b0","entry":"unflatten_master_params","repo":"dili-lab/scandl","repo_kind":"official","path":"scandl/utils/fp16_util.py","file_url":"https://github.com/dili-lab/scandl/blob/HEAD/scandl/utils/fp16_util.py","link_basis":"harvester_set","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":"30e43bcf12d042b0"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}