← Essays
Narrative · Ψ SOUL

Contrast-Governed Anomaly Detection: A Formal Bridge between Seismic AVO and Transformer Attention

`geophysics``machine-learning``attention``avo``contrast-detection``transformers`

Contrast-Governed Anomaly Detection: A Formal Bridge between Seismic AVO and Transformer Attention

Muhammad Arif bin Fazil

Senior Exploration Geoscientist · Sovereign Architect, arifOS · GEOX Earth Intelligence

Penang, Malaysia

Published: 5 June 2026 · Direct Publication · arif-fazil.com/essays/

Epistemic Tag: CLAIM — awaiting adversarial review. Not peer-reviewed.

Abstract

We identify a shared mathematical structure between seismic amplitude-versus-offset (AVO) anomaly analysis and transformer self-attention mechanisms used in modern machine learning models. Building on classical AVO formalisms (Rutherford & Williams, 1989; Castagna & Swan, 1997; Smith & Gidlow, 1987) and the scaled dot-product attention architecture (Vaswani et al., 2017), we show that both systems compute a contrast between an observation and a context-specific baseline, followed by a normalization step that amplifies significant deviations. In AVO, intercept–gradient analysis quantifies deviations from rock-physics trends such as the Mudrock line (Castagna et al., 1985), while in transformers, softmax-normalized query–key similarities yield a probability distribution that emphasizes tokens whose embeddings deviate most from the contextual norm. Under simplifying assumptions—linear background trend, approximately uniform attention baseline—we derive an explicit mapping between AVO residuals and attention logit residuals and demonstrate that both yield "winner-take-most" weighting of anomalous inputs. We discuss shared failure modes (false bright spots, spurious attention peaks), the role of priors and physical constraints, and implications for governance: attention heads in geophysical AI models can be audited using rock-physics-inspired anomaly metrics, including the GEOX ACRisk framework. This cross-disciplinary equivalence provides a conceptual and mathematical bridge between subsurface geophysics and neural sequence models, enabling transfer of interpretability and risk-governance tools across domains.

1. Introduction

1.1 Motivation

Two communities—exploration geophysicists and machine learning researchers—have independently developed formalisms for answering the same question: given a set of observations embedded in a context, which observations are salient, and by how much? The geophysicist answers it with intercept-gradient crossplots, background rock-physics trends, and fluid factors. The ML researcher answers it with query-key dot products, softmax normalization, and attention weight distributions. These communities rarely converse. Their tools share a mathematical skeleton they do not recognize in each other.

This paper names that skeleton.

The need is bidirectional. On the geophysics side, machine-learning-based seismic interpretation—particularly transformer architectures applied to pre-stack data—is proliferating (Li et al., 2025; seismic foundation models). Interpretability of these models is poor; a "bright spot" detected by a transformer attention head carries no physics guarantee that it corresponds to a Class III AVO anomaly rather than a tuning artifact. On the ML side, attention mechanisms lack external ground truth; there is no independent physical referent against which to validate that an attention peak is "real." The AVO community has spent four decades developing exactly such referents.

1.2 Gap

To our knowledge, no published work explicitly connects the mathematical structure of AVO anomaly detection to the softmax attention weight computation. The Pi-Transformer (Maleki & Pourmoazemi, 2025) introduces physics-informed priors for attention and is the closest bridge, but it does not reference geophysics or AVO. The connection identified in this paper appears to be novel.

1.3 Claim Statement (Scoped)

CLAIM: Under specified conditions (linear background trend, uniform attention baseline, small-residual approximation), the AVO fluid factor ΔF = B − m·A − c and the attention logit residual δi = ei − ē play the same structural role in their respective systems. Both are contrast residuals. Both are normalized in ways that amplify outliers. Both produce "winner-take-most" outcomes. We do not claim that Shuey's approximation is identical to softmax, or that the Zoeppritz equations correspond to the QKV projection. The claim is structural: both systems instantiate a governed contrast amplification primitive over a context-specific baseline.

1.4 Contributions

  1. A side-by-side decomposition of AVO anomaly detection and transformer self-attention into six shared computational stages (Table 1).
  2. A conditional derivation mapping AVO residuals to attention logit residuals under simplifying assumptions, with first-order linearization.
  3. An analysis of symmetric failure modes—false positives and false negatives—in both domains, connected to baseline misspecification.
  4. Identification of the Pi-Transformer and physics-informed attention literature as an implicit convergence point.
  5. A governance framework (GEOX ACRisk) for auditing attention-head anomalies in geophysical transformers using rock-physics-inspired metrics.
  6. Concrete proposals for cross-domain methodological transfer.

2. Background

2.1 Seismic AVO and Anomaly Detection

2.1.1 Physical Principle

When a seismic P-wave encounters an interface between two rock layers with contrasting elastic properties, part of the energy is reflected. The reflection coefficient R depends on the angle of incidence θ. This angle-dependence—AVO—carries diagnostic information about pore fluids, lithology, and pressure (Ostrander, 1984).

2.1.2 Shuey's Approximation

Shuey (1985) gave the most widely used linearized form of the Zoeppritz equations:

R(θ) ≈ A + B sin²θ + C sin²θ tan²θ

where A is the intercept (normal-incidence P-wave reflectivity), B is the gradient (mid-offset AVO response), and C captures far-offset curvature. For angles below ~30°, the C term is often neglected, reducing the model to a two-parameter linear fit: R(θ) ≈ A + B sin²θ.

2.1.3 The Intercept-Gradient Crossplot and Background Trends

For any given reflection, one estimates A and B and plots the point (A, B) on a crossplot. Most reflections from brine-filled clastic rocks fall along an empirically calibrated background trend—the "Mudrock line" (Castagna et al., 1985). This trend represents the expected relationship Bbg(A) under the null hypothesis: no hydrocarbon, no anomalous pressure, no lithology change beyond the background.

A hydrocarbon-charged reservoir produces a reflection whose (A, B) coordinates deviate from this background. The deviation:

ΔB = Bobs − Bbg(Aobs)

is the AVO anomaly measure. Large |ΔB| → anomalous reflection.

2.1.4 The Fluid Factor

Smith & Gidlow (1987) introduced the "fluid factor" ΔF, which projects (A, B) onto a direction orthogonal to the brine-sand trend in crossplot space. For a linear background B = mA + c:

ΔF = B − m·A − c

The fluid factor is a contrast score—a scalar whose magnitude indicates how far a given observation deviates from the null (brine) hypothesis. It is not a binary flag; it is a continuous measure of anomalousness.

2.1.5 AVO Classes

Rutherford & Williams (1989) and Castagna & Swan (1997) classified gas-sand reflections into four classes (I–IV) based on their position on the A-B crossplot relative to the background trend. This classification is a discretization of the continuous contrast measure ΔB. Class III (bright spots, strongly negative A with increasing magnitude at far offsets) exemplifies the classical anomaly. Class IV (decreasing amplitude with offset) is a subtler, often-missed signal—the false-negative case.

2.2 Transformer Self-Attention

2.2.1 Scaled Dot-Product Attention

Vaswani et al. (2017) defined scaled dot-product attention as:

Attention(Q, K, V) = softmax(QKT / √dk) V

For a single query vector q and a set of key-value pairs {kj, vj}j=1N:

Attn(q, {k, v}) = Σj=1N αj vj

where the attention weights αj are computed via softmax over alignment scores:

αj = exp(ej) / Σℓ=1N exp(e),   ej = q·kj / √dk

2.2.2 Softmax as Contrast Amplification

The softmax has two critical effects on the raw alignment scores {ej}:

  1. Normalization: It maps scores to a probability distribution summing to 1, making weights comparable across contexts with varying N.
  2. Exponential amplification: It amplifies differences exponentially. If one key is much more aligned to q than others, its weight αj becomes disproportionately high.

Consider a simplified scenario: one key ki has alignment ei = ē + δ where ē is the baseline score shared by all other keys, while the remaining N−1 keys have score ej≠i = ē. Then:

αi = exp(ē + δ) / (exp(ē + δ) + (N−1)exp(ē)) = 1 / (1 + (N−1)exp(−δ))

If δ = 0 (no contrast), αi = 1/N (uniform baseline). If δ > 0, αi > 1/N. For moderate N and growing δ, αi → 1. The first-order Taylor expansion around δ = 0:

αi ≈ 1/N + ((N−1)/N²)·δ + O(δ²)

shows that attention weight is, to first order, linear in the contrast δ, with exponential higher-order terms that accelerate convergence to 1 for larger deviations. This is the mathematical basis for the "winner-take-most" characterization.

2.2.3 Implicit Baseline: The Uniform Prior

When all ej are equal, attention defaults to a uniform distribution over keys. This uniform distribution serves as an implicit baseline prior—the "no-salient-token" null hypothesis. When a token's alignment exceeds this baseline, the softmax rejects the null and allocates probability mass disproportionately to that token. The baseline is not explicitly modeled; it is a consequence of the softmax functional form.

3. Attention as Governed Contrast

We now formalize the interpretation of attention weights as governed contrast measures. This section establishes the precise mathematical vocabulary used in the equivalence mapping (Section 4).

3.1 Contrast Residual

For a fixed query q and a set of N keys {kj}, define the alignment scores ej = q·kj / √dk. Let the baseline alignment be the arithmetic mean:

ē = (1/N) Σj=1N ej

Then the contrast residual for key ki is:

δi = ei − ē

This residual measures how much key ki deviates from the average compatibility with q. It is the attention-domain analog of the AVO fluid factor ΔF.

3.2 Softmax Response Function

The attention weight αi can be expressed directly in terms of δi:

αi = exp(ē + δi) / Σ exp(ē + δ) = exp(δi) / Σ exp(δ)

This makes explicit that the baseline ē cancels—only contrasts matter. The attention distribution is determined entirely by the pattern of deviations from the mean, not by the absolute magnitude of the alignment scores.

3.3 Properties

  • Translation invariance: Adding a constant C to all ej leaves αj unchanged.
  • Contrast monotonicity: αi is strictly increasing in δi when all other δj≠i are held constant.
  • Baseline property: δi = 0 for all i ⇒ αi = 1/N for all i (uniform distribution).
  • Saturation: As δi → ∞ (with δj≠i bounded), αi → 1.

These properties establish attention as a contrast-governed mechanism. The baseline—equal relevance—is the implicit null hypothesis. The softmax is the amplifier. The weight αi is the amplified contrast response.

4. The Structural Mapping

Table 1 presents the side-by-side decomposition of AVO anomaly detection and transformer self-attention into six shared computational stages.

Table 1: Stage-by-stage structural mapping between AVO anomaly detection and transformer self-attention.

Stage Seismic AVO Anomaly Detection Transformer Self-Attention
1. Observation Reflection coefficient R(θ) as function of incidence angle (pre-stack amplitude data) Sequence of token vectors x1, …, xN (word embeddings, time series, seismic trace segments)
2. Feature Extraction Intercept A and gradient B from R(θ) via Shuey's two-term linearization (Shuey, 1985) Query q = WQx and Keys kj = WKxj from learned linear projections (Vaswani et al., 2017)
3. Baseline Empirical background trend Bbg(A) — e.g., Mudrock line for brine-saturated clastics (Castagna et al., 1985) Implicit uniform prior — all keys equally relevant (no salient token). Emergent property of softmax when all ej equal.
4. Contrast Computation Residual ΔB = Bobs − Bbg(Aobs), or fluid factor ΔF = B − mA − c (Smith & Gidlow, 1987) Contrast residual δi = ei − ē; alignment scores ej = q·kj / √dk
5. Normalization & Amplification Scale by background variance σbg; use Mahalanobis distance in (A, B) space; threshold at kσ for anomaly flag Softmax: αj = exp(ej) / Σ exp(e). Normalizes to distribution + exponentially amplifies differences
6. Outcome Anomaly indicator: yes/no, AVO Class I–IV (Rutherford & Williams, 1989), continuous anomaly strength Attention weight distribution {αj} — selects salient token(s), down-weights rest. "Winner-take-most."

Each row in Table 1 identifies a functional correspondence. The operations are not identical in implementation—linear regression vs. learned projections, linear subtraction vs. softmax exponential—but they are identical in structural role. Both systems: observe, extract features, establish a baseline, compute contrast residuals, normalize/amplify those residuals, and produce a "spotlight" outcome.

5. Formal Derivation

5.1 AVO Residual Geometry

Assume the AVO background trend is linear: Bbg(A) = mA. (The extension to B = mA + c is straightforward; we set c = 0 without loss of generality by translating coordinates.) For a specific reflection with intercept A0 and observed gradient B0, define:

CAVO = [A0, B0]T,   Cbg = [A0, mA0]T

The anomaly residual vector is:

ΔC = CAVO − Cbg = [0, B0 − mA0]T

Let u be a unit vector perpendicular to the background line in (A, B) space. The anomaly magnitude—the projection of the residual onto the direction of maximum fluid sensitivity—is:

ΔB = ΔC · u = B0 − mA0  (up to a constant scale factor)

This is the fluid factor ΔF of Smith & Gidlow (1987), expressed in the coordinate system where u is the fluid-sensitive direction. The anomaly magnitude is a signed scalar contrast residual.

5.2 Attention Residual Geometry

Fix a query q. Let {ej}j=1N be the alignment scores. Define the baseline logit:

ē = (1/N) Σj=1N ej

The contrast residual for key ki is δi = ei − ē. For the special case where exactly one key deviates from the baseline (the "one-outlier model"), with δi = δ and δj≠i = 0, the attention weight is:

αi = 1 / (1 + (N−1)exp(−δ))

Key properties of this function:

  • δ = 0 ⇒ αi = 1/N (baseline — no contrast, uniform attention)
  • δ → ∞ ⇒ αi → 1 (saturation — extreme contrast, dominant attention)
  • δ → −∞ ⇒ αi → 0 (anti-contrast — key is suppressed below baseline)
  • The function is strictly increasing in δ

5.3 First-Order Equivalence

Linearizing the softmax response around δ = 0:

αi ≈ 1/N + ((N−1)/N²)·δ + O(δ²)

The zero-order term (1/N) is the baseline—uniform attention. The first-order term ((N−1)/N²)·δ is the contrast response—the attention weight's sensitivity to the residual. Comparing to the AVO case:

  • AVO: anomaly flag = f(ΔB) where f is a threshold function (anomaly if |ΔB| > kσ). To first order near the threshold, the anomaly response is proportional to |ΔB|.
  • Attention: αi ≈ 1/N + ((N−1)/N²)·δ. To first order, the weight increment above baseline is proportional to δ.

In both systems, the response is, to first order, a monotone function of a contrast residual. The AVO fluid factor ΔB and the attention logit residual δ play the same formal role: they are the input to a normalization-amplification stage that produces the output—anomaly flag in AVO, attention weight in transformers.

5.4 Conditions and Limits

The formal mapping holds under the following conditions:

  1. Linear background trend: Bbg(A) = mA. Curved or piecewise trends require extension to higher-order residuals.
  2. Uniform baseline: All non-outlier ej share the same value ē. In practice, the baseline is a distribution; the one-outlier model is a simplifying abstraction.
  3. Small residual approximation: The first-order Taylor expansion is accurate for δ near 0. For large δ, the exponential term dominates and the linear correspondence degrades.
  4. Noise assumptions: The background variance in AVO (σbg) has no direct analog in the attention softmax—attention's "noise model" is the softmax temperature, which is fixed at 1 in standard implementations.

Outside these conditions, the mapping is conceptual rather than formal: both systems still compute contrast + normalize + amplify, but the functional forms diverge.

6. Failure Modes and Governance

6.1 False Positives: Bright Spots and Spurious Attention

AVO domain: False positive anomalies—"false bright spots"—occur when the background trend is misestimated or when non-hydrocarbon effects (shallow high-porosity brine sands, thin-bed tuning, processing artifacts) mimic a fluid response. Castagna et al. (1985) documented that non-hydrocarbon reflections can exhibit increasing AVO, producing false positives when the background model is inadequately conditioned for the local stratigraphy (Ostrander, 1984; Castagna & Swan, 1997).

Attention domain: When many keys are similar or the query is ambiguous, attention may focus on an irrelevant token—the "attention misfire" (Jain & Wallace, 2019; Wiegreffe & Pinter, 2019). This occurs when the learned query-key similarity is biased or when out-of-distribution inputs confuse the scoring mechanism. The attention head "detects" a contrast that has no task-relevant significance.

Structural symmetry: Both failures stem from baseline misspecification. The contrast amplification mechanism faithfully amplifies whatever deviates from the assumed baseline—if the baseline is wrong, the amplification is misleading. A false bright spot is a spurious attention peak in (A, B)-space; a spurious attention peak is a false bright spot in embedding-space.

6.2 False Negatives: Class IV Sands and Diluted Contrast

AVO domain: Class IV gas sands decrease in amplitude with offset (Rutherford & Williams, 1989; Castagna & Swan, 1997), contradicting the classical bright-spot model. They can be missed entirely if the anomaly detector is tuned only for amplitude increases, producing a false negative.

Attention domain: A truly important token may fail to receive high attention weight if its significance is masked by a noisy context—many moderately relevant tokens dilute the contrast distribution, and no single token stands out (the "diffuse attention" regime).

Structural symmetry: Both failures occur when genuine signal does not produce sufficient contrast against the prevailing context. The signal is present but does not "break the pattern" strongly enough to survive normalization.

6.3 ACRisk Governance: Auditing Attention with Rock-Physics Priors

The GEOX ACRisk framework (Arif, 2026; GEOX SPACE KNOWLEDGE ARTIFACT) provides a structured audit for anomalies detected by geophysical AI models. The framework decomposes any detected anomaly into three components:

  • Uphys: Physical uncertainty — is there a rock-physics basis for this anomaly, or could it be explained by a non-hydrocarbon effect?
  • Dtransform: Display/transform uncertainty — could the anomaly be an artifact of the data processing, normalization, or projection pipeline?
  • Bcog: Cognitive bias — could the interpreter (human or machine) be over-weighting this anomaly due to prior expectations, training-data bias, or confirmation-seeking behavior?

We propose extending ACRisk to attention heads in geophysical transformer models. For each attention head that "flags" a seismic feature as salient (high αj):

  1. Uphys audit: Does the attended region correspond to a physically plausible AVO anomaly? Check whether the underlying (A, B) coordinates of the attended seismic trace segment deviate from the local Mudrock line. If the attention peak exists without a corresponding AVO contrast, flag as potential false positive.
  2. Dtransform audit: Is the attention weight robust to changes in data normalization, sequence length, or positional encoding? If small perturbations in preprocessing cause large changes in attention distribution, the "anomaly" may be a transform artifact.
  3. Bcog audit: Does the training distribution contain a disproportionate number of bright-spot examples? Could the attention head be overfitting to Class III gas-sand patterns at the expense of Class IV and other anomaly types? A head trained predominantly on Class III analogues will produce spurious attention peaks when shown Class IV signatures—mirroring the interpreter bias that ACRisk was designed to catch in human analysis.

This framework gives teeth to the formal equivalence: it is not merely an intellectual curiosity. It provides a governance mechanism—a way to audit whether an AI-detected "anomaly" in seismic data is grounded in the same physics that a human interpreter would demand. The ACRisk audit turns the mathematical parallel into an operational quality gate.

6.4 Non-Stationarity: Drift Under Both Systems

Both AVO and attention operate under non-stationary conditions (Envisioning, 2025). In AVO, the background trend shifts with depth, compaction, diagenesis, and basin history—the Mudrock line calibrated in the Gulf of Mexico does not transfer to the Malay Basin without adjustment. In transformers, the "background" distribution of token relationships shifts with domain, language, and temporal drift in training data. Both systems must function under drifting priors—the baseline is never static. Governance frameworks (ACRisk, F13 sovereign review) must account for this: an anomaly that is genuine in one context may be baseline in another.

7. Literature Context and Novelty

7.1 AVO Literature

The foundational AVO literature spans Ostrander (1984), who first demonstrated gas-sand AVO effects; Shuey (1985), who provided the linearized approximation; Rutherford & Williams (1989), who introduced the four-class AVO system; Smith & Gidlow (1987), who introduced the fluid factor as a contrast measure orthogonal to the brine trend; and Castagna & Swan (1997), who systematized crossplot interpretation. The Castagna Mudrock line (Castagna et al., 1985) remains the most cited empirical background trend. This body of work established the conceptual framework of deviation from a calibrated background as the signal of interest.

7.2 Attention Literature

Vaswani et al. (2017) introduced scaled dot-product attention. Subsequent work has analyzed attention through multiple lenses: as content-based retrieval (Graves et al., 2014), as a probabilistic inference mechanism, and as an interpretability challenge (Jain & Wallace, 2019; Wiegreffe & Pinter, 2019). The "winner-take-most" property of softmax attention is well-characterized in the ML literature but has not been connected to geophysical contrast detection.

7.3 Physics-Informed Attention

The Pi-Transformer (Maleki & Pourmoazemi, 2025) introduces a physics-informed prior distribution over attention weights and treats deviations from this prior as anomalies. This is architecturally analogous to using the Mudrock line as a prior for AVO analysis—both introduce domain knowledge to constrain what counts as "anomalous." However, Maleki & Pourmoazemi do not reference geophysics or AVO. The connection identified here has not been drawn elsewhere.

7.4 Contrast-Based Weighting as a Unified Principle

The broader literature on contrastive methods—contrastive learning (Chen et al., 2020), contrastive predictive coding (van den Oord et al., 2018), and anomaly detection via contrast—suggests that learning by distinguishing signal from background is a deep organizational principle across machine learning. This paper adds to that literature by showing that the principle extends to classical geophysical signal processing, unifying a four-decade-old exploration technique with the core mechanism of modern AI architectures.

7.5 Novelty Claim

CLAIM: To the best of our knowledge, no prior publication has drawn an explicit formal parallel between AVO intercept-gradient analysis and transformer self-attention. The closest work (Pi-Transformer, physics-informed attention) converges on the same pattern without naming the AVO connection. This paper fills that gap.

8. Discussion and Cross-Domain Implications

8.1 AVO → ML: Probabilistic Anomaly Confidence

The attention mechanism's probabilistic formulation suggests treating the AVO background trend not as a deterministic line but as a probability distribution. Instead of a binary anomaly flag, one could compute a posterior probability that a given (A, B) point belongs to the background (brine) population versus an anomalous (hydrocarbon) population—a Bayesian fluid factor using softmax-like normalization over competing rock-physics hypotheses. This would provide geophysicists with a graded confidence measure rather than a hard threshold.

8.2 AVO → ML: Multi-Head Interpretation

Transformers use multiple attention heads, each learning a different projection. By structural analogy, one could design a "multi-head AVO" framework where different rock-physics models (Mudrock line, Gardner trend, local basin calibration, depth-dependent trends) serve as parallel "heads," with each head's anomaly score combined through a learned or physics-informed gating mechanism. This would generalize the single-trend AVO analysis while preserving physical interpretability.

8.3 ML → AVO: Learned Background Trends

Rather than relying on hand-calibrated background trends that are basin-specific and depth-dependent, one could train a model to learn a context-dependent baseline from data—a transformer that learns what "normal" reflectivity looks like in a given geological setting and flags deviations. This is the geophysical analog of the Pi-Transformer, with the additional benefit that the learned baseline can be inspected against known rock-physics relationships.

8.4 ML → AVO: Attention Weights as Interpretability Tools

AVO interpreters already use crossplots as interpretability tools. Attention weight visualization—showing which parts of the seismic trace contributed most to an anomaly classification—could provide a new dimension of interpretability for machine-learning-based seismic interpretation, grounding AI decisions in physically inspectable amplitude-versus-angle behavior. A transformer that classifies an event as a Class III bright spot could be asked to show why, in the form of the attention weights over angle-gather traces, which can then be cross-checked against the expected AVO signature.

8.5 The Contrast Primitive

At the highest level, this equivalence suggests that "contrast detection and amplification" is a computational primitive—a reusable, domain-independent operation that can be instantiated in different substrates (physics-based regression for AVO, learned projections for attention) but always performs the same information-processing function: find what deviates from context, then amplify its weight. Identifying this primitive opens the door to formal comparisons between other apparently unrelated domains—any system that computes "what's different" and "how much it matters" may be an instance of the same kernel.

9. Limits of the Analogy

  1. Baseline specification: AVO's baseline is physically grounded—the Mudrock line is an empirical relationship between VP and VS in water-saturated clastics (Castagna et al., 1985). Attention's baseline is learned from data with no external physical referent. AVO can be wrong in physically meaningful and diagnosable ways; attention can only be wrong relative to training-distribution expectations.
  2. Dimensionality: AVO operates in a low-dimensional, physically interpretable space (A, B). Attention operates in high-dimensional learned embedding spaces (typically dk = 64–128). The contrast being measured is of a fundamentally different character—scalar fluid factor vs. high-dimensional alignment.
  3. Temporal/positional structure: AVO analyzes a single interface at a single CDP location. Attention operates over sequences with positional encoding—the "context" has ordering structure that AVO's background trend lacks.
  4. Supervision: AVO anomaly detection is calibrated against known wells (weakly supervised). Transformer attention is trained end-to-end with task supervision—the "anomalies" it learns to detect are those that serve the training objective, not necessarily those that are physically meaningful.
  5. Ground-truthability: AVO anomalies can be ground-truthed by drilling—there is an independent measurement. Attention weights cannot be independently verified; they are interpretable only insofar as they correlate with downstream task performance. An attention peak is a claim that cannot be falsified by direct measurement—only by ablation or behavioral testing.

10. Conclusion

Seismic AVO anomaly detection and transformer self-attention both instantiate a contrast-governed anomaly detection primitive: establish a context-specific baseline, compute contrast residuals, normalize and amplify those residuals, and produce a spotlighted outcome. In AVO, the contrast is between observed and expected reflection behavior via intercept-gradient trends; in attention, it is between a query-key similarity and the distribution of similarities across the context window.

Under idealized conditions—linear background trend, uniform attention baseline, small-residual approximation—we have shown that the AVO fluid factor ΔF and the attention logit residual δ play the same structural role, and that the softmax attention weight αi is an amplified normalization of δ analogous to thresholding ΔF for anomaly classification. The correspondence is not one-to-one in functional form (linear subtraction vs. softmax exponential) but is exact in computational architecture: both systems compute "what's different, then turn up its weight."

This equivalence is actionable. The GEOX ACRisk framework—originally designed for auditing human-interpreted seismic anomalies—extends naturally to auditing attention-head outputs in geophysical transformers. An attention peak without a corresponding AVO contrast is a false bright spot in embedding-space. A genuine AVO anomaly that fails to produce an attention peak is a false negative—a Class IV sand that the model missed. The audit framework gives governance teeth to the mathematical parallel.

The formal insight that governed contrast extraction is at play in both domains opens a dialog between geophysicists and AI researchers. Future work includes: empirical evaluation of ACRisk-audited attention heads on pre-stack seismic transformers; development of multi-head AVO frameworks using parallel rock-physics priors; and generalization of the contrast primitive to other domains where "find what stands out from context" is the core computational task.

We are all, as it turns out, in the business of finding what stands out. The difference is only in what we count as background.

References

  1. Castagna, J.P., Batzle, M.L., & Eastwood, R.L. (1985). Relationships between compressional-wave and shear-wave velocities in clastic silicate rocks. Geophysics, 50(4), 571–581. doi:10.1190/1.1441933
  2. Castagna, J.P. & Swan, H.W. (1997). Principles of AVO crossplotting. The Leading Edge, 16(4), 337–344. doi:10.1190/1.1437623
  3. Chen, T., Kornblith, S., Norouzi, M., & Hinton, G. (2020). A simple framework for contrastive learning of visual representations. Proceedings of ICML 2020. arXiv:2002.05709
  4. Graves, A., Wayne, G., & Danihelka, I. (2014). Neural Turing Machines. arXiv:1410.5401. arXiv:1410.5401
  5. Jain, S. & Wallace, B.C. (2019). Attention is not Explanation. Proceedings of NAACL 2019. arXiv:1902.10186
  6. Maleki, S. & Pourmoazemi, M. (2025). Pi-Transformer: Physics-Informed Prior for Anomaly Detection in Transformer Architectures. Preprint.
  7. Ostrander, W.J. (1984). Plane-wave reflection coefficients for gas sands at nonnormal angles of incidence. Geophysics, 49(10), 1637–1648. doi:10.1190/1.1441571
  8. Rutherford, S.R. & Williams, R.H. (1989). Amplitude-versus-offset variations in gas sands. Geophysics, 54(6), 680–688. doi:10.1190/1.1442696
  9. Shuey, R.T. (1985). A simplification of the Zoeppritz equations. Geophysics, 50(4), 609–614. doi:10.1190/1.1441936
  10. Smith, G.C. & Gidlow, P.M. (1987). Weighted stacking for rock property estimation and detection of gas. Geophysical Prospecting, 35(9), 993–1014. doi:10.1111/j.1365-2478.1987.tb00856.x
  11. van den Oord, A., Li, Y., & Vinyals, O. (2018). Representation Learning with Contrastive Predictive Coding. arXiv:1807.03748. arXiv:1807.03748
  12. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł., & Polosukhin, I. (2017). Attention Is All You Need. Advances in Neural Information Processing Systems 30 (NeurIPS 2017). arXiv:1706.03762
  13. Wiegreffe, S. & Pinter, Y. (2019). Attention is not not Explanation. Proceedings of EMNLP 2019. arXiv:1908.04626
  14. GEOX SPACE KNOWLEDGE ARTIFACT — ACRisk: Anomaly Contrast Risk Audit Framework. Arif, M. (2026). Internal GEOX doctrine.
  15. Envisioning (2025). Non-Stationarity of Objectives. Envisioning Vocabulary.

⚒️ Published directly on arif-fazil.com
← All Essays