{"arxiv_id":"2612.03102","title":"BiLoopFormer: Reusing a Shared Transformer Stack Forward and Backward for Vision","abstract":"Looped transformers reuse one block across depth, but they still traverse it in one direction. Making such a model bidirectional is harder than it looks: reversing the token order between passes, the way a bi-LSTM does, is close to a no-op, because self-attention is permutation-equivariant and both passes then compute the same function. What breaks the symmetry is masking. We run the shared stack forward under a prefix mask and backward, in reverse block order, under a suffix mask, so that every token receives a prefix summary and a suffix summary, and concatenate the two pooled states in a bi-LSTM read-out. At matched FLOPs this model carries $3.6\\times$ fewer parameters than a ViT and reaches \\mainCifarOurs\\% on CIFAR-10, against \\mainCifarVit\\% for the ViT and \\mainCifarCnn\\% for a compute-matched ResNet. The masked second sweep is worth \\ablUniGap\\ points over unidirectional looping, while transposed weights and swapped query/value roles both fall short of plain weight tying. On a synthetic underwater-restoration probe it lands within 0.5\\,dB of a compute-matched UNet; on polyp segmentation and two MedMNIST datasets the same pattern holds, with BLF the most parameter-efficient encoder and never the most accurate. We make no claim of state-of-the-art accuracy: at this compute scale the convolutional prior still wins on every dataset, and what bidirectionality buys is parameter efficiency rather than accuracy. The contribution is a cheap way to give a looped transformer two directions, plus an explanation of why the obvious version of it fails.","primary_cat":"cs.CV","cross_cats":[],"submitted_at":"2026-12-02T03:57:57+00:00","latest_version":2,"source":"arxiv","source_label":"arXiv","source_url":null,"has_pdf":true,"has_source":false,"verdict":"ACCEPT","confidence":"HIGH","one_line_summary":"BiLoopFormer uses a shared transformer block with directional masks to give each token both a prefix and a suffix summary, achieving 3.6x parameter reduction over ViT at matched FLOPs.","novelty_score":7.0,"correctness_risk":"low","formal_verification":"none","upvotes":0,"downvotes":0,"pith_score":0,"inbound_count":0,"_links":{"html":"https://pith.science/paper/2612.03102","verdict":"/api/v1/verdicts/2612.03102"}}