{"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-2604-21349","title":"Trust-SSL: Additive-Residual Selective Invariance for Robust Aerial Self-Supervised Learning","arxiv_id":"2604.21349","date":"2026-04-23","proceeding":null,"authors":["Wadii Boulila","Adel Ammar","Bilel Benjdira","Maha Driss"],"abstract":"Self-supervised learning (SSL) is a standard approach for representation learning in aerial imagery. Existing methods enforce invariance between augmented views, which works well when augmentations preserve semantic content. However, aerial images are frequently degraded by haze, motion blur, rain, and occlusion that remove critical evidence. Enforcing alignment between a clean and a severely degraded view can introduce spurious structure into the latent space. This study proposes a training strategy and architectural modification to enhance SSL robustness to such corruptions. It introduces a per-sample, per-factor trust weight into the alignment objective, combined with the base contrastive loss as an additive residual. A stop-gradient is applied to the trust weight instead of a multiplicative gate. While a multiplicative gate is a natural choice, experiments show it impairs the backbone, whereas our additive-residual approach improves it. Using a 200-epoch protocol on a 210,000-image corpus, the method achieves the highest mean linear-probe accuracy among six backbones on EuroSAT, AID, and NWPU-RESISC45 (90.20% compared to 88.46% for SimCLR and 89.82% for VICReg). It yields the largest improvements under severe information-erasing corruptions on EuroSAT (+19.9 points on haze at s=5 over SimCLR). The method also demonstrates consistent gains of +1 to +3 points in Mahalanobis AUROC on a zero-shot cross-domain stress test using BDD100K weather splits. Two ablations (scalar uncertainty and cosine gate) indicate the additive-residual formulation is the primary source of these improvements. An evidential variant using Dempster-Shafer fusion introduces interpretable signals of conflict and ignorance. These findings offer a concrete design principle for uncertainty-aware SSL. Code is publicly available at https://github.com/WadiiBoulila/trust-ssl.","url_abs":"https://arxiv.org/abs/2604.21349","url_pdf":"https://arxiv.org/pdf/2604.21349","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=2604.21349","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.21349"}},"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/WadiiBoulila/trust-ssl","reach":null}],"summary":{"ran":3,"ran_draft_wrong":4,"unverified":1},"by_repo_kind":{"found_in_text":{"samples":8,"ran":7,"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":8,"samples":[{"code_sha256_prefix":"d331aef483cfdfc1","entry":"EvidentialHead","repo":"WadiiBoulila/trust-ssl","repo_kind":"found_in_text","path":"trust_ssl/models/trust_ssl.py","file_url":"https://github.com/WadiiBoulila/trust-ssl/blob/HEAD/trust_ssl/models/trust_ssl.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":"d331aef483cfdfc1"}},{"code_sha256_prefix":"e77d6aa53068f026","entry":"FactorHead","repo":"WadiiBoulila/trust-ssl","repo_kind":"found_in_text","path":"trust_ssl/models/trust_ssl.py","file_url":"https://github.com/WadiiBoulila/trust-ssl/blob/HEAD/trust_ssl/models/trust_ssl.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":"e77d6aa53068f026"}},{"code_sha256_prefix":"ecbdcf4c6893b1f0","entry":"MLPProjector","repo":"WadiiBoulila/trust-ssl","repo_kind":"found_in_text","path":"trust_ssl/models/trust_ssl.py","file_url":"https://github.com/WadiiBoulila/trust-ssl/blob/HEAD/trust_ssl/models/trust_ssl.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":"ecbdcf4c6893b1f0"}},{"code_sha256_prefix":"d44addf4891198c9","entry":"build_backbone","repo":"WadiiBoulila/trust-ssl","repo_kind":"found_in_text","path":"trust_ssl/models/trust_ssl.py","file_url":"https://github.com/WadiiBoulila/trust-ssl/blob/HEAD/trust_ssl/models/trust_ssl.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d44addf4891198c9"}},{"code_sha256_prefix":"d2c36f522cccd54f","entry":"dempster_fusion","repo":"WadiiBoulila/trust-ssl","repo_kind":"found_in_text","path":"trust_ssl/models/trust_ssl.py","file_url":"https://github.com/WadiiBoulila/trust-ssl/blob/HEAD/trust_ssl/models/trust_ssl.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d2c36f522cccd54f"}},{"code_sha256_prefix":"8c5c1503083fe087","entry":"evidential_gate","repo":"WadiiBoulila/trust-ssl","repo_kind":"found_in_text","path":"trust_ssl/models/trust_ssl.py","file_url":"https://github.com/WadiiBoulila/trust-ssl/blob/HEAD/trust_ssl/models/trust_ssl.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8c5c1503083fe087"}},{"code_sha256_prefix":"08fc69f23577e6f9","entry":"info_nce","repo":"WadiiBoulila/trust-ssl","repo_kind":"found_in_text","path":"trust_ssl/models/trust_ssl.py","file_url":"https://github.com/WadiiBoulila/trust-ssl/blob/HEAD/trust_ssl/models/trust_ssl.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"08fc69f23577e6f9"}},{"code_sha256_prefix":"970db43fd6287d3c","entry":"TrustSSL","repo":"WadiiBoulila/trust-ssl","repo_kind":"found_in_text","path":"trust_ssl/models/trust_ssl.py","file_url":"https://github.com/WadiiBoulila/trust-ssl/blob/HEAD/trust_ssl/models/trust_ssl.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":"970db43fd6287d3c"}}]},"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":null}