{"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/tempoformer-a-transformer-for-temporally","title":"TempoFormer: A Transformer for Temporally-aware Representations in Change Detection","arxiv_id":"2408.15689","date":"2024-08-28","proceeding":null,"authors":["Talia Tseriotou","Adam Tsakalidis","Maria Liakata"],"abstract":"Dynamic representation learning plays a pivotal role in understanding the evolution of linguistic content over time. On this front both context and time dynamics as well as their interplay are of prime importance. Current approaches model context via pre-trained representations, which are typically temporally agnostic. Previous work on modelling context and temporal dynamics has used recurrent methods, which are slow and prone to overfitting. Here we introduce TempoFormer, the first task-agnostic transformer-based and temporally-aware model for dynamic representation learning. Our approach is jointly trained on inter and intra context dynamics and introduces a novel temporal variation of rotary positional embeddings. The architecture is flexible and can be used as the temporal representation foundation of other models or applied to different transformer-based architectures. We show new SOTA performance on three different real-time change detection tasks.","url_abs":"https://arxiv.org/abs/2408.15689v2","url_pdf":"https://arxiv.org/pdf/2408.15689v2.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":[],"tasks":[{"task_slug":"change-detection","task_name":"Change Detection"},{"task_slug":"representation-learning","task_name":"Representation Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2408.15689","atlas_url":"https://app.syntology.ai/?focus=2408.15689","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2408.15689"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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":"deterministic:regex_extraction","url":"https://github.com/ttseriotou/tempoformer","reach":{"status":"ok"}}],"summary":{"ran":5},"by_repo_kind":{"found_in_text":{"samples":5,"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":5,"samples":[{"code_sha256_prefix":"f8e7f6458d0c02ff","entry":"apply_rotary_emb","repo":"ttseriotou/tempoformer","repo_kind":"found_in_text","path":"models/rope_mha.py","file_url":"https://github.com/ttseriotou/tempoformer/blob/HEAD/models/rope_mha.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":"f8e7f6458d0c02ff"}},{"code_sha256_prefix":"e9daf89ef84b1379","entry":"precompute_freqs_cis","repo":"ttseriotou/tempoformer","repo_kind":"found_in_text","path":"models/rope_mha.py","file_url":"https://github.com/ttseriotou/tempoformer/blob/HEAD/models/rope_mha.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":"e9daf89ef84b1379"}},{"code_sha256_prefix":"d6cb55b5f03929f4","entry":"reshape_for_broadcast","repo":"ttseriotou/tempoformer","repo_kind":"found_in_text","path":"models/rope_mha.py","file_url":"https://github.com/ttseriotou/tempoformer/blob/HEAD/models/rope_mha.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":"d6cb55b5f03929f4"}},{"code_sha256_prefix":"238a46bd04ca901e","entry":"simplify_label","repo":"ttseriotou/tempoformer","repo_kind":"found_in_text","path":"experiments/lrs/ro-tempoformer.py","file_url":"https://github.com/ttseriotou/tempoformer/blob/HEAD/experiments/lrs/ro-tempoformer.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":"238a46bd04ca901e"}},{"code_sha256_prefix":"9bbe8be53c967ff4","entry":"tree2timeline","repo":"ttseriotou/tempoformer","repo_kind":"found_in_text","path":"experiments/lrs/ro-tempoformer.py","file_url":"https://github.com/ttseriotou/tempoformer/blob/HEAD/experiments/lrs/ro-tempoformer.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":"9bbe8be53c967ff4"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}