How AI Finds Errors in Seismic Data Workflows

Image for Analyzing seismic workflows with large language models: A case study on error detection

🎯 Defined Learning Outcomes

After studying this material, students should be able to:

  1. Explain how LLMs can be applied to analyze graph-based seismic workflows
  2. Distinguish between embedding-based and fine-tuned LLM approaches for error detection
  3. Evaluate the trade-offs between precision and explanation capability in AI workflow validation
  4. Understand why pre-execution error detection matters in geophysical processing

πŸ“š Step-by-Step Teaching Guide


STEP 1: Understanding the Problem Domain

What is Seismic Data Processing?

Raw Seismic Signal
        ↓
   [Filter 1] β†’ [Filter 2] β†’ [Filter 3] β†’ Geological Information
        ↓
   This sequence = a WORKFLOW

Key concepts to grasp:

TermSimple Definition
Seismic DataVibration signals recorded underground to map geology
Processing WorkflowA carefully ordered sequence of computational steps/filters
Workflow GraphA visual/mathematical map showing how data flows between steps

Why does this matter?

  • Workflows can have hundreds of connected steps
  • One misconfiguration can invalidate the entire process
  • Running a broken workflow wastes significant computing resources

πŸ’‘ Think of it like this: Imagine baking a cake but putting it in the oven before mixing ingredients. The error is obvious to humans early on, but in complex computational workflows, errors hide until execution.


STEP 2: Understanding the Core Challenge

Traditional Problem Flow

Design Workflow β†’ Submit for Execution β†’ FAIL β†’ Diagnose β†’ Fix β†’ Repeat
     (hours)          (hours/days)      ❌        (hours)

Problems with this approach:

  • ❌ Errors only discovered after expensive computation begins
  • ❌ Expert diagnosis is time-consuming
  • ❌ No automatic explanation of what went wrong
  • ❌ Project delays accumulate

The Research Question

"Can LLMs predict workflow failures before execution and explain why they will fail?"


STEP 3: The Two AI Approaches Explained

Approach 1: Embedding-Based Supervised Contrastive Learning

What is an embedding?

Workflow Graph β†’ [Embedding Model] β†’ Vector [0.2, 0.8, -0.3, ...]
                                          ↓
                                   Numerical representation
                                   that captures meaning

What is contrastive learning?

Working Workflow  ──────────────────────────────→ [CLUSTER A] βœ…
Broken Workflow   ──────────────────────────────→ [CLUSTER B] ❌

The model learns to PUSH these apart in vector space

Step-by-step process:

  1. Convert workflow graph β†’ numerical embedding
  2. Train model to cluster valid vs invalid workflows
  3. New workflow submitted β†’ model classifies it
  4. Output: "This workflow will likely fail" (Yes/No)

Performance: 59% precision across diverse error types


Approach 2: Fine-Tuned LLM for Error Explanation

What is fine-tuning?

Pretrained LLM                    Fine-Tuned LLM
(General Knowledge)    β†’β†’β†’β†’β†’β†’β†’    (Seismic Workflow Expert)
     GPT-like model    Training        Domain-specific
                       on domain
                         data

Step-by-step process:

  1. Take a pretrained LLM (already knows language/reasoning)
  2. Further train it on seismic workflow examples
  3. Feed it a workflow graph representation
  4. Output: "This workflow fails because Filter 3 receives incompatible data format from Filter 2"

STEP 4: Comparing the Two Approaches

Performance Comparison Table

MetricEmbedding ApproachFine-Tuned LLMPretrained LLM (Baseline)
Failure Detection Precision59%52.87%49.32%
Error Explanation Accuracy❌ Not designed for this32.61%0%
Primary StrengthClassificationExplanationGeneral reasoning

Visual Trade-off Analysis

HIGH  β”‚  Embedding ●
      β”‚              
Prec- β”‚                    Fine-Tuned ●
ision β”‚                    
      β”‚                                    Pretrained ●
LOW   └─────────────────────────────────────────────────
      No Explanation    Some Explanation    No Explanation
      
                    EXPLANATION ABILITY β†’

πŸ’‘ Key Insight: Fine-tuned LLM trades some detection precision for explanation capability β€” going from 0% to 32.61% explanation accuracy is a massive practical gain


STEP 5: Understanding Why This Matters

The Value Proposition

WITHOUT AI Validation:
Cost = Computation Time + Expert Diagnosis Time + Delay Cost
     = HIGH πŸ’Έ

WITH AI Validation:
Cost = Quick AI Check (seconds) + Targeted Fix
     = LOWER πŸ’°

Real-World Impact Chain

Better Error Detection
        ↓
Fewer Failed Workflow Executions
        ↓
Less Wasted Computing Resources
        ↓
Faster Geophysical Data Processing
        ↓
Accelerated Geological Discoveries

STEP 6: Critical Evaluation of Results

What the Numbers Tell Us

59% precision β€” Is this good?

Baseline (random guess for binary): ~50%
Embedding approach:                  59%
Improvement:                        +9 percentage points
  • βœ… Better than random
  • ⚠️ Still room for improvement
  • βœ… Valuable for pre-screening before expensive execution

32.61% explanation accuracy β€” Is this meaningful?

Pretrained model:    0%  β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
Fine-tuned model: 32.61% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
  • βœ… Infinitely better than baseline (0% β†’ 32.61%)
  • βœ… Proves fine-tuning adds domain-specific value
  • ⚠️ Still needs improvement for production reliability

STEP 7: Synthesizing the Concepts

Complete System Architecture

Seismic Workflow (Graph)
         β”‚
         β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Graph Representationβ”‚  ← Convert workflow to LLM-readable format
β”‚  (Text/Structured)  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚
    β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”
    β–Ό         β–Ό
[Embedding  [Fine-Tuned
 Approach]   LLM]
    β”‚         β”‚
    β–Ό         β–Ό
"Will Fail" "Will Fail BECAUSE..."
    ↓         ↓
    β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜
         β–Ό
  Expert Reviews AI Prediction
         β–Ό
  Fix BEFORE Execution βœ…

🧠 Concept Check Questions

Test your understanding:

  1. Why is pre-execution error detection valuable in seismic workflows?
  2. What is the key difference between what the embedding approach and fine-tuned LLM provide?
  3. Why does the fine-tuned LLM outperform the pretrained model in explanation accuracy?
  4. How does contrastive learning help classify valid vs. invalid workflows?
  5. What does 32.61% explanation accuracy vs. 0% tell us about the value of domain fine-tuning?

πŸ“ Summary Card

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚           KEY TAKEAWAYS                             β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 1. Seismic workflows are complex graph structures   β”‚
β”‚    prone to hard-to-detect errors                   β”‚
β”‚                                                     β”‚
β”‚ 2. LLMs can analyze these graphs BEFORE execution   β”‚
β”‚                                                     β”‚
β”‚ 3. Embedding approach = better at DETECTION (59%)   β”‚
β”‚                                                     β”‚
β”‚ 4. Fine-tuned LLM = better at EXPLANATION (32.61%)  β”‚
β”‚                                                     β”‚
β”‚ 5. Both approaches outperform baseline models       β”‚
β”‚                                                     β”‚
β”‚ 6. AI validation = less waste + faster processing   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

More to study