high-dim-intuition-rebuild

诊断学习者在高维情境中因以三维几何直觉产生的误导性认知(如测度集中、高斯壳层、距离度量失效、流形假设、体积集中于角落、随机投影保持性等),并用正确概念替换错误直觉。当用户在思考嵌入向量、潜在向量、神经网络激活、大规模数据云或优化景观等高维问题,且其在三维成立但在千维不成立或对“本不应发生”的高维现象感到困惑时,应使用此技能。

仓库最近推送
GitHub Stars
206
Forks
28
Issues / PRs
3

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "high-dim-intuition-rebuild":https://skillpi.com/zh/skills/deepskill-ee9bf58b12eec06fb319be2720fc107cd7da0dc19d19dc3188670176c6e426a8。安装前核对上游来源和版本:https://github.com/lyndonkl/claude。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

诊断学习者在高维情境中因以三维几何直觉产生的误导性认知(如测度集中、高斯壳层、距离度量失效、流形假设、体积集中于角落、随机投影保持性等),并用正确概念替换错误直觉。当用户在思考嵌入向量、潜在向量、神经网络激活、大规模数据云或优化景观等高维问题,且其在三维成立但在千维不成立或对“本不应发生”的高维现象感到困惑时,应使用此技能。

0 下载

介绍来源: third_party · lyndonkl · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: high-dim-intuition-rebuild
description: Diagnoses where a learner's 3D geometric intuition is misleading them in a high-dimensional context (concentration of measure, Gaussian shells, distance-metric breakdown, manifold hypothesis, volume-in-corners, random-projection preservation), then surgically replaces the false picture with the correct one. Use when the user is reasoning about high-dim spaces (embeddings, latent vectors, neural net activations, large-scale data clouds, optimization landscapes) and either makes a claim that's true in 3D but false in 1000D, or expresses confusion at a high-dim phenomenon that "shouldn't" happen.

High-Dim Intuition Rebuild

Table of Contents

  1. Workflow
  2. The Five Big Lies of 3D Intuition
  3. Repair Patterns
  4. Common Patterns
  5. Guardrails
  6. Quick Reference

3D intuition is the user's most powerful asset for low-dim geometry — and their most dangerous liability for high-dim geometry. In 1000 dimensions, the unit ball is mostly empty, samples from any rotation-invariant distribution live on a thin shell, "nearest neighbor" stops being meaningful, and most of a hypercube's volume is in its corners. None of these are intuitive from 3D, and learners who don't know to expect them will reason wrongly about embeddings, latent spaces, and data clouds.

This skill is the surgical version of that repair: name the false intuition, demonstrate where it breaks, install the correct picture.

Quick example (concentration of measure):

Claim from learner: "If I sample from a high-dimensional Gaussian, I should expect samples near the origin — that's where the density peaks."

The false 3D intuition: In 2D or 3D, samples do cluster near the origin. The density peak there gives a strong gravitational pull on samples.

Why it breaks in high D: Density is per unit volume. The amount of volume at radius r grows as r^(d−1). In high d, even though density falls off near r = √d (the "shell"), the volume available there grows fast enough that density × volume is maximized on the shell, not at the origin.

Correct picture: In d dimensions, almost all the mass of a standard Gaussian is on a thin shell at radius √d. The 3D mental image of "Gaussian = blob centered at the origin" is wrong in high D; the right image is "Gaussian = thin spherical shell of radius √d, very little mass anywhere else".

Verify: numpy: np.linalg.norm(np.random.randn(10000, 1000), axis=1).mean() ≈ 31.6 ≈ √1000. The samples really do all live at that radius.

Workflow

Copy this checklist and track your progress:

Rebuild Progress:
- [ ] Step 1: Identify the misleading 3D intuition the learner is using
- [ ] Step 2: Name the high-dim phenomenon that contradicts it
- [ ] Step 3: Show *why* it breaks (the mechanism, not just the fact)
- [ ] Step 4: Install the correct high-dim picture
- [ ] Step 5: Verify with a numpy / sympy demonstration when possible
- [ ] Step 6: Generalize — what other 3D intuitions does this break?

Step 1: Identify the misleading 3D intuition the learner is using

Most high-dim confusions trace to one of five universal 3D intuitions (see The Five Big Lies of 3D Intuition below). Diagnose which:

  • "Samples cluster near the mean / mode." → concentration of measure.
  • "Nearest neighbors are meaningful." → distance metric breakdown.
  • "Random vectors point in random directions." → angle concentration.
  • "A ball fills most of its bounding cube." → volume in corners.
  • "I can losslessly compress this 1000-D vector to 10-D and back." → ignores intrinsic dimension / manifold hypothesis.

Sometimes the learner doesn't state the intuition; they just express confusion at a phenomenon ("why is cosine similarity always ~0?"). Reverse-engineer to find which intuition would have predicted the wrong answer.

Step 2: Name the high-dim phenomenon that contradicts it

Each false intuition has a corresponding true high-dim phenomenon. Name it explicitly:

  • "Concentration of measure" — for any reasonable function on a high-dim sphere or Gaussian, the function's value is almost constant (concentrated around its mean).
  • "Curse of dimensionality" — distance metrics lose discriminative power.
  • "Angle concentration" — random unit vectors are nearly orthogonal.
  • "Cube-corner dominance" — the unit hypercube has almost all its volume in the corners.
  • "Manifold hypothesis" — real data lives on a low-dim manifold inside the high-dim ambient space.

Naming matters. The learner who can name the phenomenon can look it up later and recognize it in new contexts.

Step 3: Show why it breaks (the mechanism, not just the fact)

This is the load-bearing step. Don't just assert that the 3D intuition is wrong — show the mechanism.

For concentration of measure:

"Density × volume is what determines where samples land. In d dimensions, a thin shell at radius r has volume proportional to r^(d-1). For Gaussian density e^(-r²/2), the product r^(d-1)·e^(-r²/2) is maximized at r = √(d−1) ≈ √d. In 3D, that's just √3 ≈ 1.7 — close to the origin, intuition holds. In 1000D, that's √1000 ≈ 31.6 — far from the origin, intuition collapses."

The mechanism explanation always involves how does the dimension d enter the formula? — and the answer reveals what fights what (density vs. volume, here).

Step 4: Install the correct high-dim picture

Replace the broken 3D picture with one that's correct in any dimension:

  • Bad picture: "Gaussian = bell-shaped blob at the origin."
  • Correct picture: "Gaussian in d dim = thin spherical shell at radius √d. The blob picture only works for d ≤ 3."

The new picture should be visualizable — use 1D or 2D analogies that survive the dimension change:

  • For Gaussian: "imagine a thin spherical shell" — this is a 3D image but it's the correct 3D image.
  • For nearly-orthogonal vectors: "imagine two random pencils on a desk; they have almost any angle equally likely. Now imagine that almost all angles are 90°. That's high-D."

Step 5: Verify with a numpy / sympy demonstration when possible

A 3-line numpy script is worth a thousand words of intuition repair. Examples:

import numpy as np
# Concentration of measure
samples = np.random.randn(10000, 1000)
print(np.linalg.norm(samples, axis=1).mean())  # ≈ √1000 ≈ 31.6
print(np.linalg.norm(samples, axis=1).std())   # very small

# Angle concentration
v1 = np.random.randn(10000, 1000)
v2 = np.random.randn(10000, 1000)
cos = (v1 * v2).sum(axis=1) / (np.linalg.norm(v1, axis=1) * np.linalg.norm(v2, axis=1))
print(cos.mean(), cos.std())  # ≈ 0, ≈ 1/√1000

If you have Bash access, run the script and report the actual numbers. Concrete numbers anchor the new intuition.

Step 6: Generalize — what other 3D intuitions does this break?

Each of the Five Big Lies has cascading consequences. The user who learns about concentration of measure should also be told:

  • Their mental model of Gaussian sampling is wrong (most samples ≠ near origin).
  • Distance from origin is not a useful "outlier score" in high D — most samples are at the same distance.
  • Reasoning about "the mode" or "the center of mass" of a high-dim distribution is suspect.
  • Latent-space sampling for VAEs is more subtle than 3D intuition suggests.

The generalization step is what makes the rebuild durable — it teaches the user to flag similar misuses of 3D intuition in the future.

For one full rebuild per phenomenon, see resources/phenomena.md. For numpy demonstration scripts, see resources/demos.md.

The Five Big Lies of 3D Intuition

Almost every high-dim confusion is a version of one of these.

Lie 1: "Samples cluster near the mean."

True in 3D: Yes — samples from a Gaussian or uniform on a ball do concentrate near the mean. False in high D: Samples concentrate on a thin shell at distance √d from the mean. The "near the mean" zone is empty. Phenomenon: Concentration of measure. Why it matters: Any reasoning about "typical" samples being "near the center" is wrong in high D. Latent-space interpolation, sampling, mode-seeking optimization all need rethinking.

Lie 2: "Nearest neighbors are well-defined."

True in 3D: The nearest neighbor of a query is meaningfully closer than the others. False in high D: The ratio of nearest-distance to farthest-distance approaches 1. Every point is approximately the same distance from any query. Phenomenon: Curse of dimensionality (specifically, distance concentration). Why it matters: Vanilla k-NN, vanilla similarity search, and naive distance-based clustering all degrade in high D. This is why learned embeddings (which break the concentration by introducing structure) are essential.

Lie 3: "Random vectors point in random directions."

True in 3D: Two random unit vectors can have any angle from 0° to 180° with reasonable probability. False in high D: Two random unit vectors are nearly orthogonal (angle ≈ 90°) with high probability. Variance of cos θ is ~1/d. Phenomenon: Angle concentration. Why it matters: This is why cosine similarity for random embeddings is uninformative — and why learned embeddings, which break angle concentration, can produce meaningful similarities.

Lie 4: "A ball fills most of its bounding cube."

True in 3D: The unit ball occupies ~52% of the volume of the unit cube. False in high D: The volume of the unit ball goes to zero relative to the unit cube as d → ∞. Almost all the cube's volume is in the corners. Phenomenon: Cube-corner dominance. Why it matters: Uniformly sampling in a hypercube almost never lands inside the inscribed hypersphere. Bounding-box analyses and "is this in the ball?" tests behave very differently than 3D suggests.

Lie 5: "If a vector has 1000 dimensions, it has 1000 degrees of freedom."

True in 3D: A point in 3D really does have 3 degrees of freedom. False in high D — for real data: Real-world high-dim data (images, text embeddings, speech) lives on a low-dim manifold embedded in the ambient space. A 1000-D image vector might have only 50 effective degrees of freedom. Phenomenon: Manifold hypothesis. Why it matters: This is why ML works at all. Generative models, dimensionality reduction, autoencoders, and self-supervised learning all exploit this — they learn the manifold, not the ambient space.

Repair Patterns

Pattern A: Single-lie repair

Used when the learner has one specific misintuition and needs the corresponding rebuild. Structure: name the lie → show the mechanism → install the correct picture → numpy verify → generalize. Length: 5-10 minutes.

Pattern B: Cascading repair

Used when one false intuition has produced multiple downstream confusions. Structure: full repair of the root lie → enumerate downstream consequences the learner has been confused about → quick repair of each. Length: 15-20 minutes.

Pattern C: Anticipatory repair

Used when the user is about to do something where high-dim weirdness will bite (e.g., "I'm going to use Euclidean distance to compare these 2048-D embeddings"). Structure: warn that 3D intuition will fail here → name the phenomenon they're about to hit → suggest the correct alternative (e.g., cosine similarity instead of Euclidean) → explain why. Length: 5 minutes.

For one example of each pattern, see resources/phenomena.md.

Common Patterns

When the user is reasoning about embeddings

Most embedding misintuitions are versions of Lie 3 (angle concentration). Embeddings work because learning breaks the angle concentration — semantically similar tokens get angles much smaller than the random baseline of 90°. The user who knows this can read embedding cosine similarities correctly.

When the user is reasoning about generative model latents

Most latent-space misintuitions are versions of Lie 1 (concentration of measure). VAE latents are forced toward a standard normal, but standard normals in high D are shells, not blobs. Interpolating along the shell (e.g., spherical interpolation) is much more sensible than interpolating across the empty interior.

When the user is reasoning about loss landscapes

Loss landscapes inherit high-dim weirdness. The 3D bowl picture is especially misleading — in high D, almost all critical points are saddle points, not minima. SGD's apparent ability to "escape local minima" is partly because local minima are rarer than saddle points.

When the user is choosing a distance metric

Default to flagging Lie 2 (nearest-neighbor breakdown). Euclidean distance often works much worse than cosine similarity in high D for real data. The reason: cosine survives the angle structure that learned embeddings impose; Euclidean is dominated by magnitude artifacts that say nothing.

Guardrails

  • Don't claim 3D intuition is always wrong. It's wrong about specific things in high D. The picture of a vector as an arrow, of a matrix as a transformation, of a dot product as alignment — these all transfer fine. The five lies are specific.
  • Show the mechanism, not just the fact. "Concentration of measure happens" is not a repair. "Density × volume crosses over because volume scales as r^(d-1) and density falls off, and the product peaks at √d" is.
  • Use numpy. A 3-line numpy script that prints the actual concentration radius is far more convincing than any prose. If you have Bash, run it.
  • Don't oversell the manifold hypothesis. It's a hypothesis, not a theorem. Some high-dim data really does fill its ambient space. Use the hypothesis as a heuristic, not a guarantee.
  • Match repair to actual confusion. If the user has the correct intuition for a phenomenon, don't lecture them about it — that's wasted attention.

Quick Reference

Lie (3D intuition) Phenomenon (high-D truth) Quick repair sentence numpy demo
"Samples cluster near the mean" Concentration of measure "Samples concentrate on a thin shell at radius √d, not near the origin." np.linalg.norm(np.random.randn(N, d), axis=1).mean() ≈ √d
"Nearest neighbor is meaningful" Distance concentration "Nearest and farthest distances converge — k-NN loses discriminative power." Compute min, max distances from a query in random points; ratio → 1
"Random vectors point random directions" Angle concentration "Two random unit vectors are nearly orthogonal in high D; cos θ has std ≈ 1/√d." Compute pairwise cos of random vectors; mean ≈ 0, std ≈ 1/√d
"A ball fills its bounding cube" Cube-corner dominance "The unit ball occupies essentially 0% of the unit cube in high D." Sample from unit cube, check what fraction land inside unit ball: → 0
"1000 dim = 1000 degrees of freedom" Manifold hypothesis "Real high-D data lives on a low-D manifold inside the ambient space." Run PCA on an image dataset; explained variance saturates fast

For full worked rebuilds per phenomenon, see resources/phenomena.md. For numpy demonstration scripts, see resources/demos.md.

版本历史

  1. 0.1 GitHub ↗
    原版更新说明

    ## What's Changed * Improve writer skill navigation and structure by @lyndonkl in https://github.com/lyndonkl/claude/pull/1 * Consolidate stickiness content and reduce revision to 3 passes by @lyndonkl in https://github.com/lyndonkl/claude/pull/2 * Update README.md to reflect current writer skill structure by @lyndonkl in https://github.com/lyndonkl/claude/pull/3 * Add explicit instructions for AI agents to follow resource file workf… by @lyndonkl in https://github.com/lyndonkl/claude/pull/4 * Change analysis files from /tmp/ to project directory by @lyndonkl in https://github.com/lyndonkl/claude/pull/5 * Add five refined skills to production by @lyndonkl in https://github.com/lyndonkl/claude/pull/6 * Add causal-inference-root-cause skill and fix missing methodology files by @lyndonkl in https://github.com/lyndonkl/claude/pull/7 * Add workflow pattern to 6 completed skills by @lyndonkl in https://github.com/lyndonkl/claude/pull/8 * Add chain-estimation and roleplay-debate skills with optimizations by @lyndonkl in https://github.com/lyndonkl/claude/pull/9 * Add 3 new skills and update writer skill workflow pattern by @lyndonkl in https://github.com/lyndonkl/claude/pull/10 * Add skills #12-13: constraint-based-creativity and data-schema-knowle… by @lyndonkl in https://github.com/lyndonkl/claude/pull/11 * Add skills #14-16: decision-matrix, decomposition-reconstruction, deliberation-debate-red-teaming by @lyndonkl in https://github.com/lyndonkl/claude/pull/12 * Add skills #17-19: design-of-experiments, dialectical-mapping-steelmanning, discovery-interviews-surveys by @lyndonkl in https://github.com/lyndonkl/claude/pull/13 * Add chef-assistant skill and update README by @lyndonkl in https://github.com/lyndonkl/claude/pull/14 * Fix README: Remove links to gitignored scratchpad files by @lyndonkl in https://github.com/lyndonkl/claude/pull/15 * Add skills #14-22: 9 new production-ready skills by @lyndonkl in https://github.com/lyndonkl/claude/pull/16 * Add skills #20-24 and workflow pattern updates by @lyndonkl in https://github.com/lyndonkl/claude/pull/17 * Add skill #25: expected-value by @lyndonkl in https://github.com/lyndonkl/claude/pull/18 * Add skills #26-28: facilitation-patterns, financial-unit-economics, focus-timeboxing-8020 by @lyndonkl in https://github.com/lyndonkl/claude/pull/19 * Add skills #29-30: heuristics-and-checklists, hypotheticals-counterfactuals by @lyndonkl in https://github.com/lyndonkl/claude/pull/20 * Add skills #31-33: information-architecture, kill-criteria-exit-ramps, layered-reasoning by @lyndonkl in https://github.com/lyndonkl/claude/pull/21 * Add Claude Code plugin support by @lyndonkl in https://github.com/lyndonkl/claude/pull/22 * Fix plugin marketplace source path by @lyndonkl in https://github.com/lyndonkl/claude/pull/23 * Add skill #34: mapping-visualization-scaffolds by @lyndonkl in https://github.com/lyndonkl/claude/pull/24 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/25 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/26 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/27 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/28 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/29 * Add skill #59: skill-extraction by @lyndonkl in https://github.com/lyndonkl/claude/pull/30 * Add skill-creator: Transform documents into actionable skills by @lyndonkl in https://github.com/lyndonkl/claude/pull/31 * Update skill count from 58 to 61 in README by @lyndonkl in https://github.com/lyndonkl/claude/pull/32 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/33 * Add d3-visualization skill: comprehensive D3.js implementation guide by @lyndonkl in https://github.com/lyndonkl/claude/pull/34 * Add comprehensive Superforecasting Toolkit with 4 skills and orchestr… by @lyndonkl in https://github.com/lyndonkl/claude/pull/35 * Add "Run in Smithery" badge by @gurdasnijor in https://github.com/lyndonkl/claude/pull/36 * Add Scientific Writing Toolkit with 6 skills and orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/37 * Improve skill invocation rules and update README by @lyndonkl in https://github.com/lyndonkl/claude/pull/38 * Add Geometric Deep Learning skill suite and orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/39 * Decompose writer skill into 4 focused skills + orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/40 * Add GraphRAG skill suite with 5 skills + orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/41 * Decompose cognitive-design skill into 3 focused skills + orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/42 ## New Contributors * @lyndonkl made their first contribution in https://github.com/lyndonkl/claude/pull/1 * @gurdasnijor made their first contribution in https://github.com/lyndonkl/claude/pull/36 **Full Changelog**: https://github.com/lyndonkl/claude/commits/0.1

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值78/100

亮点

  • 系统性地识别并修复高维空间中的五大常见直觉误区
  • 提供可操作的6步工作流,结合数学机制与代码验证
  • 适用于嵌入向量、潜在空间、优化景观等关键AI场景
触发精准92/100

亮点

  • 触发条件清晰:用户在三维直觉成立但高维失效时,或对高维现象困惑时使用
  • 覆盖多种高维场景(嵌入、latent vectors、neural activations等)
  • 边界明确,避免与其他教学类Skill混淆
结构规范94/100

待提升项

  • description重复 原报告严重程度:轻微

    顶层frontmatter与skill_body内部均包含description字段,内容重复

    改进建议:建议移除skill_body内部的description,保留顶层frontmatter中的定义

亮点

  • 结构完整:含工作流、核心误区、修复模式、常见场景、防护措施、速查表
  • 步骤清晰:6步重建流程,每步有具体指导和示例
  • 包含端到端numpy验证示例,增强可操作性
执行可靠88/100

待提升项

  • 引用文件缺失 原报告严重程度:重大

    SKILL.md中多次引用resources/phenomena.md和resources/demos.md,但未传入对应文件

    改进建议:请补充resources/phenomena.md和resources/demos.md文件,或移除相关引用

亮点

  • 强调机制解释而非断言,提升用户理解深度
  • 提供可运行的numpy代码片段,支持实证验证
  • 设置Guardrails防止过度推广流形假设等概念
证据可验 (前四项均值)88/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。