---
title: Visibility Transformer Overview
url: https://www.emergentmind.com/topics/visibility-transformer
type: topic
---

# Visibility Transformer Overview

Searching arXiv for recent papers related to "Visibility Transformer" and the provided identifiers.
Visibility Transformer denotes a set of transformer-based formulations in which visibility is treated as a primary modeling target rather than a secondary by-product of representation learning. In recent arXiv usage, the term has been applied to online beyond-field-of-view scene reconstruction for autonomous vehicles, Generative Engine Optimization in LLM-mediated search, visualization of hidden-state and information flow inside decoder-only LLMs, adversary-aware navigation under partial observability, and skeleton action recognition under constrained field of view [2211.11293] [2507.03169] [2507.13858] [2512.00592] [2607.00716]. Across these settings, “visibility” refers respectively to unseen scene content, citation-grounded prominence in generated answers, interpretability of internal computation, line-of-sight exposure and cover, and joint-level observability under FoV dropout. This suggests an umbrella usage: transformers are being specialized to propagate, quantify, or expose information that is only partially available at inference time.

## 1. Scope and conceptual unification

The term is not used for a single canonical architecture. Instead, the literature associates it with distinct technical programs that elevate visibility into the objective, masking structure, memory mechanism, or evaluation protocol.

| Domain | Visibility target | Representative system |
|---|---|---|
| Autonomous driving video | Beyond-FoV scene content from past frames | FlowLens [2211.11293] |
| Generative search | How much and how early a source is cited in LLM output | BART-based GEO model [2507.03169] |
| LLM interpretability | Visibility of layerwise token predictions and information flow | InTraVisTo [2507.13858] |
| Adversary-aware navigation | Exposure, cover, and LoS under partial observability | HAVEN with DTQN [2512.00592] |
| Skeleton action recognition | Joint observability under constrained FoV | PartialVisGraph [2607.00716] |

A plausible implication is that “visibility transformer” functions more as a design orientation than as a fixed macro-architecture. In some papers, visibility is reconstructed from past observations; in others, it is optimized as salience in generated text, or injected directly as a prior into attention logits. The shared principle is explicit treatment of incomplete, hidden, delayed, or selectively observable information.

## 2. Beyond-field-of-view scene reconstruction

In autonomous driving, FlowLens operationalizes a visibility transformer by reconstructing regions outside the current camera FoV using only past video, under an online constraint that prohibits access to future frames [2211.11293]. The method frames the problem as online video inpainting for autonomous vehicles and couples explicit local motion propagation with implicit global clip-recurrent attention. Its architecture has four stages: a convolutional stem over Local Frames and Past Reference Frames, explicit flow-guided feature propagation, a Clip-Recurrent Transformer, and an output convolutional decoder.

The explicit branch completes optical flow in masked FoV regions and warps features across adjacent frames. With downsampling by $d_4$, the completed flow is
$$
\hat{V}_{i \to j} = F(d_4(X_i), d_4(X_j)),
$$
and warped features follow
$$
\tilde{f}_i(x) = f_j(x + \hat{V}_{i \to j}(x)).
$$
Residual misalignment is compensated with modulated DCN, and forward and backward features are fused with a $1 \times 1$ convolution. This branch is intended to preserve pixel-accurate local motion compensation and temporal coherence.

The implicit branch is the Clip-Recurrent Transformer. It soft-splits concatenated local and past-reference features into overlapping tokens, projects them to $Q$, $K$, and $V$, and caches keys and values from the previous clip with stop-gradient. Its Clip-Recurrent Hub uses 3D-Decoupled Cross Attention (DDCA): temporal attention is applied at fixed spatial positions, while spatial attention is factorized into horizontal and vertical strip attentions with non-local strip pooling. The temporal term is
$$
Z_t = \mathrm{Attn}(Q_t, K_t, V_t) = \mathrm{Softmax}(Q_t K_t^\top / \sqrt{d})V_t,
$$
and cross-clip fusion is applied through
$$
\bar{Z}'_{i+1} = \mathrm{DDCA}(Q_{i+1}, P_{kv}(\bar{K}_i), P_{kv}(\bar{V}_i)).
$$
MixF3N replaces the standard FFN with multi-branch depth-wise convolutions over overlapping tokens to strengthen fine-grained local detail flow.

Training uses a composite objective
$$
L = \lambda_{rec}L_{rec} + \lambda_{adv}L_{adv} + \lambda_{flow}L_{flow},
$$
with $\lambda_{rec}=0.01$, $\lambda_{adv}=0.01$, and $\lambda_{flow}=1$. The streaming setup uses $T_{lf}=5$ local frames and $T_{pf}=3$ past reference frames, with memory length $1$ reported as best. FlowLens runs at $0.049$ s/frame with $586.6$ GFLOPs, while FlowLens-s achieves $0.023$ s/frame at $207.2$ GFLOPs on RTX 3090; the Clip-Recurrent Hub adds $1.4\%$ FLOPs and $2.9\%$ parameters.

Evaluation is performed on a derived KITTI360 dataset with $5\%$, $10\%$, and $20\%$ FoV expansion masks, covering both outer-FoV and inner-FoV scenarios. On outer-FoV reconstruction, FlowLens reports PSNR $20.13$ dB, SSIM $0.9314$, VFID $0.281$, and Ewarp $0.5347 \times 10^{-2}$; FlowLens+ reaches $20.50/0.9322/0.300/0.3913 \times 10^{-2}$. On inner-FoV reconstruction, FlowLens reaches PSNR $36.69$ dB, SSIM $0.9916$, VFID $0.027$, and Ewarp $0.3672 \times 10^{-2}$; FlowLens+ reaches $37.38/0.9926/0.019/0.3589 \times 10^{-2}$. Beyond reconstruction, semantic segmentation on completed frames improves markedly: in pinhole outer-FoV settings, mIoU is reported as seen $82.42\%$ $(+2.30)$, unseen $45.04\%$ $(+18.99)$, and overall $69.29\%$ $(+9.96)$; in spherical inner-FoV settings, seen $73.93\%$ $(+4.10)$, unseen $39.62\%$ $(+13.63)$, and overall $69.71\%$ $(+6.83)$.

The paper explicitly states that FlowLens “embodies this concept concretely”: it transforms past visibility into current beyond-FoV reconstructions and context, and the quantitative gains indicate that visibility enhancement can improve both unseen-region completion and within-FoV perception. Its limitations are equally explicit: outward expansion is harder than inward expansion, fast ego or object motion and flow errors can degrade alignment, longer clip memories did not help due to mixed temporal distributions, and embedded deployment remains compute-constrained.

## 3. Generative Engine Optimization and content prominence

In Generative Engine Optimization, visibility is defined not by physical observability but by how much, how early, and how prominently a source’s content is surfaced inside an LLM-generated answer [2507.03169]. The task is to rewrite a source document $w$ into $w'$ so that, when the optimized document is included among the sources presented to an LLM, the resulting response contains more text grounded in that source and mentions it earlier.

The formulation introduces two citation-grounded extrinsic metrics. For a source $c_i$ and model response $r$, the absolute word count is
$$
wc(c_i, r) = \sum_{s \in S_{c_i}} |s|,
$$
where $S_{c_i}$ is the set of sentences in $r$ that explicitly cite $c_i$. The position-adjusted variant gives earlier citations more weight:
$$
wc_{adj}(c_i, r) = \sum_{s \in S_{c_i}} |s| \times \left(1 - \frac{pos(s)}{|S|}\right).
$$
Aggregated query-level improvements are computed as percentage changes after replacing $w$ with $w'$.

The proposed model is a fine-tuned BART-base, described as a $6$-layer encoder and $6$-layer decoder transformer with $12$ attention heads, hidden size $768$, FFN size $3072$, dropout $0.1$, shared embeddings, tied LM head, BPE tokenization, and support for up to $1{,}024$ tokens. Relative to the intrinsic baseline, the proposed configuration uses a larger encoder context window, with $\mathrm{MAX\_IN}=384$ versus $256$, and a capped decoder length, with $\mathrm{MAX\_OUT}=384$ versus $448$. The objective is token-level cross-entropy,
$$
L(\theta) = - \sum_{t=1}^{T}\log p_\theta(y_t \mid x, y_{<t}),
$$
optimized with AdamW at learning rate $3 \times 10^{-5}$, weight decay $\lambda = 0.01$, linear warmup for $250$ updates, and cosine decay. Decoding uses length penalty $\alpha = 1.1$ and $\texttt{no\_repeat\_ngram\_size}=3$.

Training data are synthetically constructed travel-domain pairs. The final dataset contains $1{,}905$ cleaned $(w, w')$ pairs. Query generation uses Meta-Llama-3-8B-Instruct at temperature $0.9$ across $11$ subcategories; optimized targets are produced by Llama-3.3-70B-Instruct-Turbo-Free in a three-stage pipeline that inserts credible-sounding citations, improves linguistic fluency while preserving key facts, and adds strategically placed statistics. The paper states that no hand-crafted citation insertion rules or explicit auxiliary labels are used during fine-tuning.

On the $250$-instance test set, baseline BART reports ROUGE-L $0.226$, BLEU $0.173$, PPL $1.71$, and length ratio $\approx 1.01$, whereas the proposed “Visibility Transformer” reports ROUGE-L $0.249$, BLEU $0.200$, PPL $1.50$, and length ratio $\approx 1.00$. In controlled experiments with Llama-3.3-70B, the optimized pages yield $+15.63\%$ average improvement in absolute word count and $+30.96\%$ average improvement in position-adjusted word count. The paper interprets these gains as higher salience in generative answers.

The work is explicit about its limits. The study normalizes results and excludes outliers, but the normalization rule is not specified in detail. The sample size is $n=50$ queries, confidence intervals and $p$-values are not reported, and no ablation isolates the contributions of citations versus statistics versus style changes. The training data are travel-specific, and the paper advises domain adaptation for healthcare, finance, or technical domains.

## 4. Making transformer computation itself visible

InTraVisTo redefines visibility as interpretability of the computational process that generates each token in a decoder-only LLM [2507.13858]. Rather than optimizing external observability, it exposes the internal state of the Transformer by decoding token embeddings at each layer, visualizing component-wise information flow with a Sankey diagram, and allowing interactive embedding injection to probe causal effects.

The tool assumes a Pre-LN causal Transformer. For residual stream $h^{(l)}$, attention and MLP updates are
$$
h^{(l+1/2)} = h^{(l)} + \mathrm{MHAttn}(z_{att}^{(l)}), \qquad
h^{(l+1)} = h^{(l+1/2)} + \mathrm{MLP}(z_{mlp}^{(l)}),
$$
with
$$
z_{att}^{(l)} = \mathrm{LN}(h^{(l)}), \qquad
z_{mlp}^{(l)} = \mathrm{LN}(h^{(l)} + \mathrm{MHAttn}(z_{att}^{(l)})).
$$
Standard unembedding decodes a hidden vector through
$$
\ell_t^{(l)} = W_U h_t^{(l)} + b_U, \qquad p_t^{(l)} = \mathrm{softmax}(\ell_t^{(l)}),
$$
but InTraVisTo modifies this with RMS normalization and depth-aware decoder choice:
$$
p(\text{token}) = \mathrm{softmax}\left((x/\mathrm{RMS}(x))W_{decoder}\right).
$$
The decoder matrix is interpolated across depth as
$$
W_{linear}^{(l)} = (1-l/L)W_{in}^\top + (l/L)W_{out}.
$$
For untied models, dual decoding with both $W_{in}^\top$ and $W_{out}$ is available.

The Sankey view decomposes each layer into attention, residual, and feed-forward branches. With
$$
\delta_{att}^{(l)} = \mathrm{MHAttn}(\mathrm{LN}(h^{(l)})), \qquad
x'^{(l)} = h^{(l)} + \delta_{att}^{(l)}, \qquad
\delta_{ff}^{(l)} = \mathrm{MLP}(\mathrm{LN}(x'^{(l)})),
$$
relative branch contributions are computed using vector norms:
$$
\%_{attention}^{(l)} = \frac{\|\delta_{att}^{(l)}\|_2}{\|\delta_{att}^{(l)}\|_2 + \|h^{(l)}\|_2}, \qquad
\%_{feed\text{-}forward}^{(l)} = \frac{\|\delta_{ff}^{(l)}\|_2}{\|\delta_{ff}^{(l)}\|_2 + \|x'^{(l)}\|_2}.
$$
Backward flow across layers uses averaged attention weights
$$
\mu_{att}^{(l,i)}[j] = \frac{1}{H}\sum_{h=1}^{H} A^{(l,h)}[i,j].
$$

The tool has been demonstrated on GPT-2, LLaMA/Llama 2, Mistral, and Gemma families. In the reverse-digits prompt “Write numbers in reverse order. Number: 13843234 Reverse:”, mistralai/Mistral-7B-Instruct-v0.2 produces “43234381” instead of “43234831”. The paper reports that $\delta_{ff}^{(l)}$ decoding shows an “8” emerging in the fourth-last layer, and that in the Sankey flow, the FF block at layer $29$ contributes $1.7\%$ flow, compared with other local contributions $\ge 1.8\%$. Embedding injection is defined by
$$
h_{inject} = h + (h \cdot e_{old})(e_{new} - e_{old}),
$$
and injecting an “8” flips the output to the correct digit sequence, though with the side effect of appending an extra digit rather than a newline. In a factual example, “Q: What is the capital of Italy? A:”, the heatmap shows early layers decoding generic continuations and higher layers converging to “Rome”.

The paper is explicit that these visualizations are heuristic rather than definitive causal proofs. It notes an “attention-as-explanation caveat,” sensitivity to normalization and decoder choice, ambiguity in mapping hidden states to tokens, and scalability issues for full-path Sankey diagrams. The stated role of the tool is lightweight, real-time visualization and hypothesis generation rather than replacement of formal mechanistic experiments.

## 5. Visibility-aware decision making under partial observability

In HAVEN, visibility is a control variable tied to cover utilization, enemy FoV, and line-of-sight exposure in a partially observable environment [2512.00592]. The problem is formulated as a POMDP
$$
M = (S, A, T, R, \Omega, O, \gamma),
$$
where observation aliasing arises because threats and cover may be outside the current FoV or temporarily occluded. The transformer therefore serves as a temporal memory and inference module that attends over short histories to infer latent visibility and select low-exposure subgoals.

The high-level policy is a Deep Transformer Q-Network. Each candidate subgoal $g_t^i$ is encoded by a tactical $16$-D feature vector containing agent state, goal-relative quantities, candidate geometry, and visibility cues: number of enemies $n_{enemy}$, minimum candidate-to-enemy distance $d_{min}^{enemy}$, number of enemies with LoS to the candidate $n_{vis}$, and current exposure indicator $1_{seen}$. The short history length is $k=3$ with causal attention; for each candidate, the input sequence $X_t^i \in \mathbb{R}^{k \times 16}$ is formed by tiling $f_t^i$ across $k$ positions. The scalar Q-value is read from the final token,
$$
Q_\theta(\tau_t, g_t^i) = [DTQN_\theta(X_t^i)]_{k,1}.
$$

Visibility enters the policy both structurally and through reward shaping. Candidates are masked by
$$
F_t = \{p \in \mathbb{R}^2 \mid p \notin O,\; p \notin \mathrm{FoV}(E)\},
$$
with
$$
M(g) = 1[g \in F_t] \in \{0,1\}, \qquad M_t = \{i \mid M(g_t^i)=1\}.
$$
The reported reward is
$$
r_t = w_p(d_{t-1}^{sub} - d_t^{sub}) - w_e 1_{exposed,t} - w_c 1_{collision,t} - w_t,
$$
plus bonuses for subgoal and goal completion. Low-level execution is handled by a potential-field controller combining attraction to the selected subgoal, obstacle repulsion, enemy-FoV avoidance, anti-trap, and escape terms:
$$
F_{tot}(\tau) = w_dF_{att} + w_oF_{rep} + w_eF_{enemy} + w_aF_{ant} + w_sF_{esc},
$$
followed by smoothing and saturation,
$$
u_\tau = \beta v_\tau + (1-\beta)F_{tot}(\tau), \qquad v_{\tau+1} = sat_{v_{max}}(u_\tau).
$$

Training uses temporal-difference learning with multi-step backup over $k=3$ low-level steps:
$$
R_t = \sum_{j=0}^{k-1}\gamma^j r_{t+j}, \qquad
L(\theta)=\frac{1}{2}\left(Q_\theta(\tau_t, g_t^{i^\ast}) - \hat{Q}_t\right)^2,
$$
optimized with Adam at learning rate $10^{-3}$ and $\epsilon$-greedy exploration with $\epsilon=0.1$. In $100$ randomized $2$D environments, averaged over $50$ episodes per environment, HAVEN reports Success $0.99$, Collision $0.04$, Exposure $2.38$, Path $30.7$, and Time $31.0$. The memory-less ablation reports Success $0.92$, Collision $0.20$, Exposure $4.20$, Path $42.7$, and Time $39.8$, while several classical and recurrent baselines perform worse on at least one of safety, exposure, or success.

The empirical claim is that short-horizon memory directly increases stealth and safety under partial observability. The paper also states that exact transformer hyperparameters are not disclosed, that feature tiling across the $k$ positions limits raw temporal richness, and that latency between perception and control in $3$D can yield unsmooth motion. These caveats matter because the method’s “visibility transformer” character lies less in an exotic attention block than in the integration of masking, visibility cues, and memory into value estimation.

## 6. Visibility priors in structured attention for action recognition

PartialVisGraph addresses constrained FoV in skeleton-based action recognition by making visibility an explicit prior inside a hypergraph-transformer architecture [2607.00716]. The input is a skeleton sequence
$$
X \in \mathbb{R}^{T \times V \times C_{in}},
$$
which is linearly projected with positional embedding to $X_e \in \mathbb{R}^{T \times V \times C_f}$ and processed by a Hybrid Graph–Hypergraph block followed by an MS-TCN stack and a classifier.

The hypergraph branch constructs a learnable soft incidence matrix from temporally pooled joint features and a bank of virtual hyperedges. With temporal summary $F_s \in \mathbb{R}^{V \times C_v}$ and learnable hyperedge tokens $E_v \in \mathbb{R}^{K_v \times C_v}$, where experiments use $K_v=10$, similarity is
$$
S_{j,k} = \cos(F_s(j,:), E_v(k,:)),
$$
and row-wise sparse normalization yields
$$
H_{soft} = sparsemax_{row}(S), \qquad H_{soft}(j,k)\in[0,1], \quad \sum_{k=1}^{K_v} H_{soft}(j,k)=1.
$$
Sparsemax produces exact zeros, allowing inactive memberships and identically zero columns.

The Single-Head Sample-Adaptive Transformer (SHSAT) concatenates replicated hyperedge tokens and joint tokens per frame,
$$
F_i^{(t)} = concat(E_v, X^{(t)}) \in \mathbb{R}^{(K_v+V)\times C_v},
$$
and derives a sample-adaptive mask $M$ from $H_{soft}$ so that joints attend only to hyperedges with nonzero incidence. Visibility is injected as an additive logit bias. With $\mathrm{vis}\in[0,1]^{T\times V}$,
$$
B_{vis} = \log(\mathrm{vis} + \epsilon),
$$
broadcast onto joint-to-hyperedge attention entries. The per-frame attention is
$$
Q = W_QF_i^{(t)}, \quad K = W_KF_i^{(t)}, \quad V = W_VF_i^{(t)},
$$
$$
A = QK^\top/\sqrt{d}, \qquad \hat{W} = softmax(A + M + B_{vis}), \qquad Z = \hat{W}V,
$$
and the updated hyperedge tokens are the first $K_v$ rows of $Z$. Joint features are reconstructed through
$$
\hat{X}^{(t)} = H_{soft}E^{(t)}.
$$
The paper emphasizes that visibility is applied at the attention-logit level rather than multiplied into $H_{soft}$.

Training combines cross-entropy classification with three regularizers: a hyperedge diversity loss $L_{pool}$ based on the Gram matrix of normalized hyperedges, an assignment regularizer $L_{assign}$ combining balance and max-hinge terms, and a class-centre clustering loss $L_{cluster}$. The schedule uses curriculum learning over visibility, starting with $95$–$100\%$ visible joints and gradually reducing to $20$–$80\%$ visible by epoch $70$, plus Temporal CutMix with probability $0.3$. Optimization uses SGD with Nesterov momentum $0.9$, weight decay $4\times 10^{-4}$, batch size $64$, total $200$ epochs, and learning rate $0.05$ reduced by $\times 0.1$ at epochs $110$ and $120$.

FoV-constrained benchmarks are defined on NTU RGB+D 60 and 120 with Easy, Medium, and Hard splits corresponding to approximately $75\%$, $50\%$, and $25\%$ visible joints. Under severe FoV restriction, base-of-spine centre, the reported gains are large: on NTU 60 X-View, Hyperformer $9.5\% \rightarrow$ PartialVisGraph $76.5\%$ $(+67.0$ pp$)$; on NTU 60 X-Sub, $10.8\% \rightarrow 71.4\%$ $(+60.6$ pp$)$; on NTU 120 X-Set, $3.4\% \rightarrow 67.4\%$ $(+64.0$ pp$)$; and on NTU 120 X-Sub, $4.7\% \rightarrow 66.7\%$ $(+62.0$ pp$)$. The paper states that gains are “up to $68.8\%$” on severely restricted subsets. Under full FoV with a $4$-stream ensemble, the method reports NTU 60 accuracies of $93.7\%$ (X-Sub) and $97.8\%$ (X-View), and NTU 120 accuracies of $90.9\%$ (X-Sub) and $92.0\%$ (X-Set).

Ablations show that removing the visibility bias $B_{vis}$ reduces constrained-FoV accuracy from $78.8$ to $78.4$, and removing curriculum learning yields the same drop. Removing $L_{assign}+L_{cluster}$ in full-FoV single-stream experiments reduces accuracy from $92.0$ to $91.2$ and causes $H_{soft}$ to collapse to a single active hyperedge. The result is a clear example of a visibility-aware transformer in which observability is encoded as a first-class logit prior.

## 7. Terminological boundaries and related uses

A recurring source of ambiguity is the proximity between “visibility transformer” and “vision transformer.” The quadrotor paper on end-to-end obstacle avoidance explicitly states that the term is “likely a misnomer for Vision Transformer in this context” [2405.10391]. There, the model is a SegFormer-inspired hierarchical ViT for depth image-to-control, optionally combined with an LSTM head, rather than a system whose objective is to reconstruct, quantify, or expose visibility itself.

That work maps depth image $x_t \in [0,1]^{60\times 90}$, attitude quaternion $q_t$, and forward speed $v_t$ to world-frame velocity commands $u_t=v_{pred,t}\in\mathbb{R}^3$. It reports that ViT models are more effective than convolutional, U-Net, and recurrent baselines as speed increases, and that ViT+LSTM further improves performance while reducing energy cost. The hardware and simulation evaluations reach speeds up to $7$ m/s, with model sizes near $3$M parameters and real-time inference; for example, ViT+LSTM reports $3{,}563{,}663$ parameters and $1.61$ ms/frame on an RTX 3060 GPU. Attention visualizations show obstacle edges and surrounding context rather than explicit visibility masks or visibility-grounded rewards.

This contrast is useful for delimiting the term. In FlowLens, HAVEN, PartialVisGraph, GEO, and InTraVisTo, visibility is the quantity being reconstructed, optimized, masked, or displayed. In the quadrotor ViT paper, the transformer processes visual input effectively, but visibility is not formalized as a separate state variable or evaluation objective. A reasonable conclusion is that current usage distinguishes between transformers that merely operate on visible input and transformers that explicitly reason about visibility as a problem-specific signal.

Across the literature, the strongest common thread is explicit handling of partial information. In one branch, recurrent memory and motion alignment transform past observations into current beyond-FoV reconstructions; in another, citation-grounded metrics reshape documents for prominence in generated answers; in another, internal hidden-state dynamics are made visible to the analyst; and in robotics and action recognition, masks, priors, and temporal context convert partial observability into structured attention. The term therefore denotes a broad but technically coherent family of transformer adaptations centered on visibility as an operational variable rather than a generic synonym for transformer-based vision.

Source: https://www.emergentmind.com/topics/visibility-transformer