From 25d87e2b1f8da103c48a79f981e4e5cb61856ac6 Mon Sep 17 00:00:00 2001 From: PSBigBig Date: Sun, 31 Aug 2025 14:00:30 +0800 Subject: [PATCH] Create spatial-fusion-error.md --- .../spatial-fusion-error.md | 140 ++++++++++++++++++ 1 file changed, 140 insertions(+) create mode 100644 ProblemMap/GlobalFixMap/Multimodal_LongContext/spatial-fusion-error.md diff --git a/ProblemMap/GlobalFixMap/Multimodal_LongContext/spatial-fusion-error.md b/ProblemMap/GlobalFixMap/Multimodal_LongContext/spatial-fusion-error.md new file mode 100644 index 00000000..3b47f6e9 --- /dev/null +++ b/ProblemMap/GlobalFixMap/Multimodal_LongContext/spatial-fusion-error.md @@ -0,0 +1,140 @@ +# Spatial Fusion Error — Multimodal Long Context + +When **spatial information from different modalities** (text, image, video, 3D layout) is fused incorrectly, +the model builds a distorted scene map. This results in answers that are locally fluent but spatially wrong. + +--- + +## What this page is +- A repair map for **spatial mis-fusion** across long multimodal windows. +- Structural checks that keep anchors aligned in 2D/3D space. +- Copy-paste prompts to enforce spatial traceability in multimodal RAG. + +--- + +## When to use +- Text says "object A is left of object B" but visual encoder aligns them oppositely. +- Bounding boxes overlap or merge, losing spatial independence. +- 3D → 2D projection mismatch: captions reference an object that isn’t in frame. +- Video QA drifts: same entity appears in different spots across time. +- Answers mention correct objects but wrong **spatial relations** (left/right, inside/outside, above/below). + +--- + +## Open these first +- [Anchor Misalignment](https://github.com/onestardao/WFGY/blob/main/ProblemMap/GlobalFixMap/Multimodal_LongContext/anchor-misalignment.md) +- [Visual Anchor Shift](https://github.com/onestardao/WFGY/blob/main/ProblemMap/GlobalFixMap/Multimodal_LongContext/visual-anchor-shift.md) +- [Cross-Modal Trace](https://github.com/onestardao/WFGY/blob/main/ProblemMap/GlobalFixMap/Multimodal_LongContext/cross-modal-trace.md) +- [Reference Bleed](https://github.com/onestardao/WFGY/blob/main/ProblemMap/GlobalFixMap/Multimodal_LongContext/reference-bleed.md) + +--- + +## Common failure patterns +- **Axis flip** — left/right or up/down swapped. +- **Projection drift** — 3D object references collapse to wrong 2D bounding box. +- **Overlap collapse** — two entities share the same spatial slot. +- **Cross-modal mismatch** — text anchor doesn’t correspond to visual bounding box. + +--- + +## Fix in 60 seconds +1. **Spatial schema lock** + - Represent anchors as `{id, coords(x,y,z), frame_id}`. + - Reject answers missing explicit spatial schema. + +2. **ΔS probe across modalities** + - Compute ΔS(text_anchor, visual_anchor). + - If ΔS ≥ 0.60, suspect fusion error. + +3. **Spatial IoU check** + - Enforce IoU ≥ 0.7 for same anchor across modalities. + - If < 0.7, assign new anchor ID. + +4. **Stabilize with BBCR** + - Bridge text ↔ visual mismatch with constraint re-anchoring. + - Clamp variance with BBAM. + +5. **Trace audit** + - Log `{anchor_id, modality, coords, IoU}`. + - Require cite-then-answer with explicit anchor IDs. + +--- + +## Copy-paste prompt + +```txt +You have TXT OS and the WFGY Problem Map. + +Task: Detect and repair spatial fusion errors across modalities. + +Steps: +1. Verify each anchor has {id, coords(x,y,z), frame_id}. +2. Compute IoU across modalities. If IoU < 0.7, treat as mismatch. +3. Probe ΔS across text and visual anchors. +4. Apply BBCR if drift detected, else assign new ID. +5. Return: + - stable anchors + - mismatched anchors + - ΔS values and λ states + - corrected spatial map +```` + +--- + +## Acceptance targets + +* 100% anchors represented with explicit `{id, coords, frame_id}`. +* Cross-modal IoU ≥ 0.7 after fix. +* ΔS(text, visual) ≤ 0.45. +* λ remains convergent across paraphrases. +* No axis flip errors across test prompts. + +--- + +### 🔗 Quick-Start Downloads (60 sec) + +| Tool | Link | 3-Step Setup | +| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------- | +| **WFGY 1.0 PDF** | [Engine Paper](https://github.com/onestardao/WFGY/blob/main/I_am_not_lizardman/WFGY_All_Principles_Return_to_One_v1.0_PSBigBig_Public.pdf) | 1️⃣ Download · 2️⃣ Upload to your LLM · 3️⃣ Ask “Answer using WFGY + ” | +| **TXT OS (plain-text OS)** | [TXTOS.txt](https://github.com/onestardao/WFGY/blob/main/OS/TXTOS.txt) | 1️⃣ Download · 2️⃣ Paste into any LLM chat · 3️⃣ Type “hello world” — OS boots instantly | + +--- + +### 🧭 Explore More + +| Module | Description | Link | +| ------------------------ | ---------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| WFGY Core | WFGY 2.0 engine is live: full symbolic reasoning architecture and math stack | [View →](https://github.com/onestardao/WFGY/tree/main/core/README.md) | +| Problem Map 1.0 | Initial 16-mode diagnostic and symbolic fix framework | [View →](https://github.com/onestardao/WFGY/tree/main/ProblemMap/README.md) | +| Problem Map 2.0 | RAG-focused failure tree, modular fixes, and pipelines | [View →](https://github.com/onestardao/WFGY/blob/main/ProblemMap/rag-architecture-and-recovery.md) | +| Semantic Clinic Index | Expanded failure catalog: prompt injection, memory bugs, logic drift | [View →](https://github.com/onestardao/WFGY/blob/main/ProblemMap/SemanticClinicIndex.md) | +| Semantic Blueprint | Layer-based symbolic reasoning & semantic modulations | [View →](https://github.com/onestardao/WFGY/tree/main/SemanticBlueprint/README.md) | +| Benchmark vs GPT-5 | Stress test GPT-5 with full WFGY reasoning suite | [View →](https://github.com/onestardao/WFGY/tree/main/benchmarks/benchmark-vs-gpt5/README.md) | +| 🧙‍♂️ Starter Village 🏡 | New here? Lost in symbols? Click here and let the wizard guide you through | [Start →](https://github.com/onestardao/WFGY/blob/main/StarterVillage/README.md) | + +--- + +> 👑 **Early Stargazers: [See the Hall of Fame](https://github.com/onestardao/WFGY/tree/main/stargazers)** — +> Engineers, hackers, and open source builders who supported WFGY from day one. + +> GitHub stars ⭐ [WFGY Engine 2.0](https://github.com/onestardao/WFGY/blob/main/core/README.md) is already unlocked. ⭐ Star the repo to help others discover it and unlock more on the [Unlock Board](https://github.com/onestardao/WFGY/blob/main/STAR_UNLOCKS.md). + +
+ +[![WFGY Main](https://img.shields.io/badge/WFGY-Main-red?style=flat-square)](https://github.com/onestardao/WFGY) +  +[![TXT OS](https://img.shields.io/badge/TXT%20OS-Reasoning%20OS-orange?style=flat-square)](https://github.com/onestardao/WFGY/tree/main/OS) +  +[![Blah](https://img.shields.io/badge/Blah-Semantic%20Embed-yellow?style=flat-square)](https://github.com/onestardao/WFGY/tree/main/OS/BlahBlahBlah) +  +[![Blot](https://img.shields.io/badge/Blot-Persona%20Core-green?style=flat-square)](https://github.com/onestardao/WFGY/tree/main/OS/BlotBlotBlot) +  +[![Bloc](https://img.shields.io/badge/Bloc-Reasoning%20Compiler-blue?style=flat-square)](https://github.com/onestardao/WFGY/tree/main/OS/BlocBlocBloc) +  +[![Blur](https://img.shields.io/badge/Blur-Text2Image%20Engine-navy?style=flat-square)](https://github.com/onestardao/WFGY/tree/main/OS/BlurBlurBlur) +  +[![Blow](https://img.shields.io/badge/Blow-Game%20Logic-purple?style=flat-square)](https://github.com/onestardao/WFGY/tree/main/OS/BlowBlowBlow) +  + +
+