SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.19407 · NeurIPS · 2024

Brain-JEPA: Brain Dynamics Foundation Model with Gradient Positioning and Spatiotemporal Masking

Jie Tong, Ruilin Li, Zijian Dong, Yilei Wu, Tinh Nguyen, Joanna Su, Xian Chong, Nathanael Ren, Christopher Li, Hsian Chen, Juan Zhou

arXiv · PDF · Open in the Atlas

Code that ran

7 of 10 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 3 no recorded run), measured 2026-11-22; 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/2409.19407.json · badge: /api/ran/2409.19407.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
Eric-LRL/Brain-JEPA canonical (classifier label)
classifier basis: census
7 ran · 3 no recorded run
FunctionStatusWhere it lives
get_1d_sincos_pos_embed Ran
ran, honoured the contract we drafted
Eric-LRL/Brain-JEPA/src/models/vision_transformer.py
pointer only (licence: NONE) · get_code("b57acd5274ccfe23")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric-LRL/Brain-JEPA 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_2d_sincos_pos_embed Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Eric-LRL/Brain-JEPA/src/models/vision_transformer.py
pointer only (licence: NONE) · get_code("a68afae5536bb319")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric-LRL/Brain-JEPA 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.

init_distributed Ran
ran, honoured the contract we drafted
Eric-LRL/Brain-JEPA/src/utils/distributed.py
pointer only (licence: NONE) · get_code("142ac3204d76d27b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric-LRL/Brain-JEPA 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.

load_args_from_yaml Ran
ran; our contract draft was wrong, not the code
Eric-LRL/Brain-JEPA/downstream_eval.py
pointer only (licence: NONE) · get_code("b3c9a99c1df3c4ab")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric-LRL/Brain-JEPA 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.

load_checkpoint Ran
ran; our contract draft was wrong, not the code
Eric-LRL/Brain-JEPA/src/helper.py
pointer only (licence: NONE) · get_code("78f313762992b6bc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric-LRL/Brain-JEPA 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.

make_hca_sex Ran
ran; our contract draft was wrong, not the code
Eric-LRL/Brain-JEPA/src/datasets/hca_sex_datasets.py
pointer only (licence: NONE) · get_code("917371e2de32db40")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric-LRL/Brain-JEPA 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.

update_config_with_args Ran
ran; our contract draft was wrong, not the code
Eric-LRL/Brain-JEPA/downstream_eval.py
pointer only (licence: NONE) · get_code("05a5dd11cdd4da08")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric-LRL/Brain-JEPA 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_masks Not yet run
unverified (harvested, no recorded run)
Eric-LRL/Brain-JEPA/src/masks/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from LeapLabTHU/CheXWorld, is pointer only (licence: NONE) · get_code("8e6b06075e39c310")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric-LRL/Brain-JEPA 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.

get_2d_sincos_pos_embed_from_grid Not yet run
unverified (harvested, no recorded run)
Eric-LRL/Brain-JEPA/src/models/vision_transformer.py
pointer only (licence: NONE); the stored copy get_code serves, from naver/croco, is pointer only (licence: NOASSERTION) · get_code("4fd80de79832745d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric-LRL/Brain-JEPA 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.

make_ukbiobank1k Not yet run
unverified (harvested, no recorded run)
Eric-LRL/Brain-JEPA/src/datasets/ukbiobank_scale.py
pointer only (licence: NONE) · get_code("a19dbf5709918cc3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric-LRL/Brain-JEPA 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 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 3 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 3 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
get_2d_sincos_pos_embed_from_grid 190 other papers
111 dated earlier, 8 the same month, 70 later, 1 same year, order not determinable · 65 only as an assembly brick
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
and 187 more not named here
apply_masks 3 other papers
1 dated earlier, 2 later · 1 only as an assembly brick
2301.08243 (2023-01)
Self-Supervised Learning from Images with a Joint-Embedding Predictive Architecture
2410.06940 (2024-10)
Representation Alignment for Generation: Training Diffusion Transformers Is Easier Than You Think
2504.13820 (2025-04)
CheXWorld: Exploring Image World Modeling for Radiograph Representation Learning
get_1d_sincos_pos_embed 2 other papers
2 later
2509.24693 (2025-09)
Brain Harmony: A Multimodal Foundation Model Unifying Morphology and Function into 1D Tokens
2511.16315 (2025-11)
BioBench: A Blueprint to Move Beyond ImageNet for Scientific ML Benchmarks

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-22.

Repositories linked to this paper

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

Abstract

We introduce Brain-JEPA, a brain dynamics foundation model with the Joint-Embedding Predictive Architecture (JEPA). This pioneering model achieves state-of-the-art performance in demographic prediction, disease diagnosis/prognosis, and trait prediction through fine-tuning. Furthermore, it excels in off-the-shelf evaluations (e.g., linear probing) and demonstrates superior generalizability across different ethnic groups, surpassing the previous large model for brain activity significantly. Brain-JEPA incorporates two innovative techniques: Brain Gradient Positioning and Spatiotemporal Masking. Brain Gradient Positioning introduces a functional coordinate system for brain functional parcellation, enhancing the positional encoding of different Regions of Interest (ROIs). Spatiotemporal Masking, tailored to the unique characteristics of fMRI data, addresses the challenge of heterogeneous time-series patches. These methodologies enhance model performance and advance our understanding of the neural circuits underlying cognition. Overall, Brain-JEPA is paving the way to address pivotal questions of building brain functional coordinate system and masking brain activity at the AI-neuroscience interface, and setting a potentially new paradigm in brain activity analysis through downstream adaptation. Code is available at: https://github.com/Eric-LRL/Brain-JEPA.

For agents

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

get_harvested_code_for_paper("2409.19407")
get_code_for_paper("2409.19407")
have("2409.19407")

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

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

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

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

Connect an agent — have() is free.