{"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-2605-24523","title":"MindAlign: Bridging EEG, Vision, and Language for Zero-Shot Visual Decoding","arxiv_id":"2605.24523","date":"2026-05-23","proceeding":null,"authors":["Zexuan Chen","Sichao Liu","Runhao Lu","Huichao Qi","Alexandra Woolgar","Xi Vincent Wang","Lihui Wang"],"abstract":"Visual decoding from brain signals is a key challenge at the intersection of computer vision and neuroscience, requiring methods that bridge neural representations and computational models of vision. We introduce a tri-modal contrastive framework for EEG-based visual decoding that aligns EEG, visual, and textual representations within a unified latent space. Our approach follows a two-stage design. First, we pre-train an EEG encoder via masked reconstruction on unlabeled trials, learning spatio-temporal regularities that transfer robustly to downstream tasks. Second, we jointly align EEG, image, and LLM-generated textual descriptions through contrastive learning, where text supervision acts as a semantic regularizer that injects linguistic structure into the shared space without overwhelming the primary EEG-image signal. The encoder integrates subject-specific adaptation, graph-attention over channels, and temporal-spatial convolutional embeddings. On the Things-EEG2 200-way zero-shot benchmark, our framework achieves 54.1% Top-1 and 83.4% Top-5 accuracy, substantially exceeding the strongest prior baseline (32.4% / 64.0%), with paired Wilcoxon tests confirming significance (p < 0.01) over all in-subject baselines. We validate generalization on Things-MEG. Analysis reveals that compact embedding geometries (CN-CLIP) outperform much larger backbones, and that decoding aligns with established neurophysiology of visual processing. This work is a critical step towards robust, semantically-grounded visual decoding from non-invasive temporal neural signals. The source code is publicly available in https://github.com/anon-eeg/eeg_image_decoding.","url_abs":"https://arxiv.org/abs/2605.24523","url_pdf":"https://arxiv.org/pdf/2605.24523","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":"2605.24523"}},"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/anon-eeg/eeg_image_decoding","reach":null}],"summary":{"ran":12,"unverified":4},"by_repo_kind":{"found_in_text":{"samples":16,"ran":12,"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":16,"samples":[{"code_sha256_prefix":"dbd2eb84ce320586","entry":"ChannelPositionEmbedding","repo":"anon-eeg/eeg_image_decoding","repo_kind":"found_in_text","path":"eeg_encoders.py","file_url":"https://github.com/anon-eeg/eeg_image_decoding/blob/HEAD/eeg_encoders.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dbd2eb84ce320586"}},{"code_sha256_prefix":"3abbbf074e72af48","entry":"EEG_GAT","repo":"anon-eeg/eeg_image_decoding","repo_kind":"found_in_text","path":"eeg_encoders.py","file_url":"https://github.com/anon-eeg/eeg_image_decoding/blob/HEAD/eeg_encoders.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3abbbf074e72af48"}},{"code_sha256_prefix":"8bb49fb2c690af9d","entry":"Enc_eeg","repo":"anon-eeg/eeg_image_decoding","repo_kind":"found_in_text","path":"eeg_encoders.py","file_url":"https://github.com/anon-eeg/eeg_image_decoding/blob/HEAD/eeg_encoders.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8bb49fb2c690af9d"}},{"code_sha256_prefix":"05e26630554bd79d","entry":"FixedEmbedding","repo":"anon-eeg/eeg_image_decoding","repo_kind":"found_in_text","path":"eeg_encoders.py","file_url":"https://github.com/anon-eeg/eeg_image_decoding/blob/HEAD/eeg_encoders.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"05e26630554bd79d"}},{"code_sha256_prefix":"c53a0a01a2ff454a","entry":"FlattenHead","repo":"anon-eeg/eeg_image_decoding","repo_kind":"found_in_text","path":"eeg_encoders.py","file_url":"https://github.com/anon-eeg/eeg_image_decoding/blob/HEAD/eeg_encoders.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c53a0a01a2ff454a"}},{"code_sha256_prefix":"095dc438a1d36fdd","entry":"FullAttention","repo":"anon-eeg/eeg_image_decoding","repo_kind":"found_in_text","path":"eeg_encoders.py","file_url":"https://github.com/anon-eeg/eeg_image_decoding/blob/HEAD/eeg_encoders.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"095dc438a1d36fdd"}},{"code_sha256_prefix":"66341cd008e93aab","entry":"PatchEmbedding","repo":"anon-eeg/eeg_image_decoding","repo_kind":"found_in_text","path":"eeg_encoders.py","file_url":"https://github.com/anon-eeg/eeg_image_decoding/blob/HEAD/eeg_encoders.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"66341cd008e93aab"}},{"code_sha256_prefix":"90905fc24416c36b","entry":"PositionalEmbedding","repo":"anon-eeg/eeg_image_decoding","repo_kind":"found_in_text","path":"eeg_encoders.py","file_url":"https://github.com/anon-eeg/eeg_image_decoding/blob/HEAD/eeg_encoders.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"90905fc24416c36b"}},{"code_sha256_prefix":"8699de043da11ee6","entry":"Proj_eeg","repo":"anon-eeg/eeg_image_decoding","repo_kind":"found_in_text","path":"eeg_encoders.py","file_url":"https://github.com/anon-eeg/eeg_image_decoding/blob/HEAD/eeg_encoders.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8699de043da11ee6"}},{"code_sha256_prefix":"8aaa75bba3172ab9","entry":"SubjectEmbedding","repo":"anon-eeg/eeg_image_decoding","repo_kind":"found_in_text","path":"eeg_encoders.py","file_url":"https://github.com/anon-eeg/eeg_image_decoding/blob/HEAD/eeg_encoders.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8aaa75bba3172ab9"}},{"code_sha256_prefix":"4693df0aac1c4c52","entry":"SubjectLayers","repo":"anon-eeg/eeg_image_decoding","repo_kind":"found_in_text","path":"eeg_encoders.py","file_url":"https://github.com/anon-eeg/eeg_image_decoding/blob/HEAD/eeg_encoders.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4693df0aac1c4c52"}},{"code_sha256_prefix":"012adc88a0f646a5","entry":"TemporalEmbedding","repo":"anon-eeg/eeg_image_decoding","repo_kind":"found_in_text","path":"eeg_encoders.py","file_url":"https://github.com/anon-eeg/eeg_image_decoding/blob/HEAD/eeg_encoders.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"012adc88a0f646a5"}},{"code_sha256_prefix":"9a15e21dcc927e91","entry":"Config","repo":"anon-eeg/eeg_image_decoding","repo_kind":"found_in_text","path":"eeg_encoders.py","file_url":"https://github.com/anon-eeg/eeg_image_decoding/blob/HEAD/eeg_encoders.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":"9a15e21dcc927e91"}},{"code_sha256_prefix":"de3a521327a94430","entry":"DataEmbedding","repo":"anon-eeg/eeg_image_decoding","repo_kind":"found_in_text","path":"eeg_encoders.py","file_url":"https://github.com/anon-eeg/eeg_image_decoding/blob/HEAD/eeg_encoders.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":"de3a521327a94430"}},{"code_sha256_prefix":"f29cf30e1cde35f9","entry":"HYBRID","repo":"anon-eeg/eeg_image_decoding","repo_kind":"found_in_text","path":"eeg_encoders.py","file_url":"https://github.com/anon-eeg/eeg_image_decoding/blob/HEAD/eeg_encoders.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":"f29cf30e1cde35f9"}},{"code_sha256_prefix":"dd1390dfbf9865d4","entry":"iTransformer","repo":"anon-eeg/eeg_image_decoding","repo_kind":"found_in_text","path":"eeg_encoders.py","file_url":"https://github.com/anon-eeg/eeg_image_decoding/blob/HEAD/eeg_encoders.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":"dd1390dfbf9865d4"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","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}}}