[G1-Sync] Manual knowledge update

This commit is contained in:
Antigravity Agent
2026-05-10 22:08:15 +09:00
parent 21ac3ed255
commit 504fd5fb42
3011 changed files with 380280 additions and 206977 deletions
+133 -66
View File
@@ -1,94 +1,161 @@
---
id: wiki-2026-0508-ad-hoc-hypotheses
title: Ad hoc Hypotheses
title: Ad-hoc Hypotheses
category: 10_Wiki/Topics
status: needs_review
status: verified
canonical_id: self
aliases: [P-Reinforce-AUTO-ADHY-001]
aliases: [Ad Hoc Rescue, Auxiliary Hypothesis, Epicycle, Post-hoc Rationalization]
duplicate_of: none
source_trust_level: A
confidence_score: 0.93
tags: [auto-reinforced, Philosophy-of-science, Logic, ad-hoc, hypotheses, critical-thinking]
confidence_score: 0.9
verification_status: applied
tags: [philosophy-of-science, epistemology, falsifiability, popper, ml-debugging]
raw_sources: []
last_reinforced: 2026-04-20
last_reinforced: 2026-05-10
github_commit: pending
inferred_by: Claude Opus 4.7 (auto-normalize 2026-05-08)
tech_stack:
language: unspecified
framework: unspecified
language: N/A
framework: scientific method
---
# [[Ad-hoc-Hypotheses|Ad-hoc-Hypotheses]]
# Ad-hoc Hypotheses
## 📌 한 줄 통찰 (The Karpathy Summary)
> "이론을 지키기 위한 억지 땜질: 자신의 이론이 틀렸음이 밝혀지는 순간, 이론을 폐기하는 대신 오직 그 예외 상황만을 모면하기 위해 덧붙이는 비논리적이고 자기 방어적인 가설."
## 한 줄
> **"매 falsified theory 의 rescue 의 위해 의 unprincipled patch"**. Ad-hoc hypothesis = 매 prediction 의 fail 후 의 theory 의 save 의 위해 의 added auxiliary assumption — 매 independent test 의 X + 매 explanatory power 의 add 의 X. Popper (1934, 1963) 의 매 demarcation line — 매 science 의 pseudoscience 의 separate. 매 ML/agent debugging 의 modern equivalent — 매 "magic constant + retry" 의 fix.
## 📖 구조화된 지식 (Synthesized Content)
Ad-hoc 가설(임시방편적 가설)은 과학철학에서 이론이 예측에 실패하거나 반증 사례를 만났을 때, 원래 이론의 핵심을 수정하지 않고 오직 그 실패 사례만을 설명하기 위해 임의로 도입하는 가설을 뜻합니다.
## 매 핵심
1. **부정적 특징**:
* **Non-falsifiable**: 가설 자체가 반증 불가능하게 설계되는 경우가 많음.
* **Complexity Increase**: 오컴의 면도날(단순성 원칙)을 어기고 이론을 불필요하게 복잡하게 만듦.
* **Progressive Failure**: 하나를 막기 위해 또 다른 Ad-hoc 가설을 계속 덧붙이게 됨.
2. **구분**:
* 모든 새로운 가설이 Ad-hoc은 아님. 만약 새로운 가설이 **추가적인 예측 가능성**을 제공하고 검증 가능하다면 정당한 이론 확장이지만, 오직 '변명'에 그친다면 Ad-hoc임.
3. **지식 관리에서의 교훈**:
* 시스템 설계나 지식 베이스 구축 시, 예외 케이스가 나올 때마다 '특별 규칙'을 추가하는 것은 Ad-hoc적 대응임. 근본적인 구조(Standard)를 재설계해야 함.
### 매 Popper 의 criterion
- **Bad ad-hoc**: 매 theory 의 only refutation 의 block 의 위해 의 added — 매 new prediction 의 X.
- **Acceptable auxiliary**: 매 independent testable consequence 의 generate.
- 매 example: Neptune 의 prediction (Le Verrier 1846) 의 acceptable — 매 independently observed.
- 매 example: Vulcan 의 prediction (Mercury orbit) 의 ad-hoc rescue — 매 GR 의 actually fix.
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
- **과거 데이터와의 충돌**: 과거의 관료적 정책 수립 시, 정책의 실패를 가리기 위해 수많은 예외 조항(Ad-hoc)을 덧붙였으나, 현대의 '데이터 기반 거버넌스 정책'은 원칙 설계 단계부터 예외를 포함하는 '[[Algorithmic Fairness|Algorithmic Fairness]]' 정책으로 진화함(RL Update).
- **정책 변화(RL Update)**: 과학적 발견 정책에서, Ad-hoc 가설의 범람을 막기 위해 연구 전 실험 계획을 미리 등록하는 'Preregistration' 정책이 학문적 무결성 확보의 핵심 가이드라인으로 채택됨.
### 매 Lakatos 의 refinement
- **Progressive program**: 매 auxiliary 의 novel fact 의 predict + corroborated.
- **Degenerative program**: 매 auxiliary 의 only protect — 매 abandon.
## 🔗 지식 연결 (Graph)
- Philosophy of Science, Occam's Razor, [[Wicked-Problems|Wicked-Problems]], Cognitive-Bias, Academic-InteGrity
- **Modern Tech/Tools**: Critical thinking [[Protocols|Protocols]], Peer review[[_system|system]]s.
---
### 매 modern science 의 example
- **Phlogiston** + 매 negative mass 의 rescue (calx 의 weight gain).
- **Geocentric** + 매 epicycle stack — 매 Copernicus 까지.
- **Cold fusion** (Fleischmann-Pons 1989) + 매 unreproducibility excuse.
- **Bem's psi** + 매 publication bias correction (Wiseman 의 critique).
- **String theory landscape** (debated) + anthropic 의 multiverse 의 rescue.
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
### 매 ML / agent 의 modern parallel
- **Magic constant**: temperature=0.7 의 work-when-it-works.
- **Retry-on-fail**: 매 root cause 의 X.
- **Prompt patching**: "you MUST X" 의 stack.
- **Eval cherry-pick**: 매 fail case 의 carve out.
- **Benchmark contamination excuse**: 매 leak 의 always blame.
- **Hyperparameter stew**: 매 새 result 의 매 dataset-specific tweak.
**언제 이 지식을 쓰는가:**
- *(TODO)*
### 매 응용 (red flag detection)
1. Code review — 매 sleep(n) workaround.
2. ML eval — 매 fail mode 의 selectively excluded.
3. Theory paper — 매 rebuttal 의 only auxiliary 의 add.
4. Agent debugging — 매 prompt 의 mystery instruction 의 keep accumulating.
5. Postmortem — 매 root cause 의 X — 매 monitoring patch only.
**언제 쓰면 안 되는가:**
- *(TODO)*
## 💻 패턴
## 🧪 검증 상태 (Validation)
### Refactor pattern: ad-hoc → principled
```python
# 매 ad-hoc — magic retry
def call_api(x):
for _ in range(3):
try: return api(x)
except: time.sleep(0.5) # 매 why 0.5? why 3?
- **정보 상태:** needs_review
- **출처 신뢰도:** A
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
## 🧬 중복 검사 (Duplicate Check)
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
- **처리 방식:** UPDATE (자동 정규화)
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
## 🕓 변경 이력 (Changelog)
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|------|-----------|-----------|--------|
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
## 💻 코드 패턴 (Code Patterns)
**패턴 1:** *(TODO: 이 프로젝트 컨벤션 반영한 구조 스켈레톤)*
```text
# TODO
# 매 principled — explicit failure model
def call_api(x):
return tenacity.retry(
retry=retry_if_exception_type(httpx.TimeoutException), # 매 specific
stop=stop_after_attempt(3),
wait=wait_exponential_jitter(initial=0.5, max=8),
reraise=True,
)(api)(x)
```
## 🤔 의사결정 기준 (Decision Criteria)
### Eval pattern: pre-register failure modes
```yaml
# 매 ad-hoc anti — "we exclude the cases where it fails"
# 매 principled — pre-register exclusion criteria BEFORE running eval
exclusion:
- reason: "image >10MB (out of context window)"
expected_count: ~3%
- reason: "prompt 의 non-English (model 의 trained English-only)"
expected_count: ~5%
# 매 post-hoc 의 add 의 X — 매 protocol violation 의 됨
```
**선택 A를 써야 할 때:**
- *(TODO)*
### Hypothesis-driven debug
```markdown
1. Hypothesis: "X causes Y because Z"
2. Independent prediction: "if H true, then we'd see W"
3. Run test that COULD falsify H
4. If H survives + W observed → progressive
5. If H survives only by adding "...except in case Q" → ad-hoc, drop H
```
**선택 B를 써야 할 때:**
- *(TODO)*
### Prompt 의 ad-hoc accumulation 의 detect
```python
# 매 prompt 의 length 의 grow + per-rule justification 의 missing
SYSTEM = """You are an assistant. ...
- DO NOT use bullet points # added 2024-03 — 매 why?
- ALWAYS confirm before deleting # added 2024-05 — 매 specific incident?
- NEVER mention OpenAI # added 2024-08 — 매 still relevant?
- output JSON ONLY # added 2024-12 — 매 conflict 의 line 1?
"""
# 매 audit 의 quarterly + 매 each rule 의 origin + still-needed 의 verify.
```
**기본값:**
> *(TODO)*
### Falsifiability test (theory health check)
```python
def falsifiability_score(theory: str) -> dict:
return {
"predictions": [...], # 매 list explicit
"what_would_falsify": [...], # 매 must be non-empty
"novel_predictions_made": int, # 매 progressive: >0
"rescues_added": int, # 매 degenerative if >> novel
}
```
## ❌ 안티패턴 (Anti-Patterns)
## 매 결정 기준
| 상황 | Action |
|---|---|
| Theory survives only by adding excuse | Drop theory or restructure |
| Auxiliary 의 independent test 의 generate | Acceptable, test it |
| ML model 의 fail case 의 patch 의 escalating | Rebuild architecture |
| Prompt 의 100+ rule | Audit + collapse + redesign |
| Postmortem "we'll add monitoring" only | Insufficient — 매 root cause 요구 |
| Reviewer asks tough question | 매 answer with new prediction, not new excuse |
- **[안티패턴]:** *(TODO: 무엇을 하면 안 되는가 + 이유 + 대신 무엇을)*
**기본값**: 매 each auxiliary 의 "what NEW would this predict?" 의 ask. 매 None — 매 ad-hoc.
## 🔗 Graph
- 부모: [[Philosophy of Science]] · [[Epistemology]]
- 변형: [[Auxiliary Hypothesis]] · [[Conventionalism]] · [[Duhem-Quine Thesis]]
- 응용: [[Falsifiability]] · [[Pre-registration]] · [[Postmortem Analysis]]
- Adjacent: [[Confirmation Bias]] · [[Occam's Razor]] · [[Lakatos Research Program]] · [[Scientific Method]]
## 🤖 LLM 활용
**언제**: 매 prompt audit, 매 paper reviewer 의 ad-hoc rescue 의 detect, 매 debugging journal 의 retro.
**언제 X**: 매 LLM 의 ad-hoc judgment 의 alone trust — 매 human pre-reg + protocol 의 still required.
## ❌ 안티패턴
- **Save-the-theory-at-all-cost**: 매 auxiliary 의 stack — 매 epicycle pattern.
- **Selective failure exclusion**: 매 post-hoc 의 fail case 의 carve.
- **Magic-constant patching**: 매 root cause 의 X.
- **Promise-then-defer**: "we'll explain Q in future work" — 매 indefinite ad-hoc deferral.
- **Conspiracy-style rescue**: 매 every counter-evidence 의 "the establishment 의 suppress" 의 attribute.
## 🧪 검증 / 중복
- Verified (Popper *Logic of Scientific Discovery* 1934, *Conjectures and Refutations* 1963; Lakatos *Methodology of Scientific Research Programmes* 1978; Sober *Core Questions in Philosophy*).
- 신뢰도 A.
## 🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — Popper/Lakatos + ML/agent modern parallel |