9148c358d0
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를 Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류. - 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로 자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거, 동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거. - 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming, Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business, Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로, 나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는 title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백). 원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지. - 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서. - 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는 지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지. - Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경. - 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
5.6 KiB
5.6 KiB
id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
| id | title | category | status | canonical_id | aliases | duplicate_of | source_trust_level | confidence_score | verification_status | tags | raw_sources | last_reinforced | github_commit | tech_stack | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| wiki-2026-0508-test-time-compute-scaling-추론-시간- | Test Time Compute Scaling (추론 시간 계산 스케일링) | 10_Wiki/Topics | verified | self |
|
none | A | 0.9 | applied |
|
2026-05-10 | pending |
|
Test Time Compute Scaling (추론 시간 계산 스케일링)
매 한 줄
"매 think longer, get smarter". Test-time compute scaling 매 inference 시 더 많은 compute (매 longer chain-of-thought, sampling, search) 로 quality 의 trade off. OpenAI o1 (2024-09) → o3 / DeepSeek-R1 (2025-01) → Claude 4.x extended thinking (2025+) 의 paradigm. 매 training-time scaling laws 의 보완.
매 핵심
매 두 axes
- More thinking (long CoT) — 매 single sample 안 더 긴 reasoning trace. o1, R1, Claude extended thinking.
- Search / sampling — 매 multiple samples + verifier (best-of-N, MCTS, beam). AlphaCode, ReST, MathShepherd.
매 modern (2025-2026)
- RL on reasoning — 매 RLHF + RL on verifiable rewards (math, code) → 매 long CoT 의 emerge. R1-zero, R1.
- Extended thinking budgets — 매 Claude 의
thinking_budgetparameter, OpenAI 의reasoning_effort. - Scaling law — 매 log compute ↔ accuracy linear (Snell 2024, OpenAI o-series chart).
- Cost shift — 매 training 1x 의 inference Nx — 매 economics 의 reshape.
매 응용
- Math (AIME, IMO).
- Code (SWE-bench, competition).
- Agentic planning (deep tool-use chains).
- Scientific reasoning (GPQA).
💻 패턴
Claude extended thinking
from anthropic import Anthropic
client = Anthropic()
resp = client.messages.create(
model="claude-opus-4-7",
max_tokens=8000,
thinking={"type": "enabled", "budget_tokens": 16000},
messages=[{"role": "user", "content": "Solve: ..."}],
)
for block in resp.content:
if block.type == "thinking":
print("THINK:", block.thinking[:200])
elif block.type == "text":
print("ANS:", block.text)
OpenAI reasoning effort
from openai import OpenAI
client = OpenAI()
resp = client.responses.create(
model="o3",
input="Prove the AM-GM inequality.",
reasoning={"effort": "high"}, # low / medium / high
)
print(resp.output_text)
Best-of-N + verifier
def best_of_n(prompt, n=8, verifier=None):
samples = [client.messages.create(
model="claude-opus-4-7",
max_tokens=2000,
temperature=0.8,
messages=[{"role": "user", "content": prompt}],
).content[0].text for _ in range(n)]
return max(samples, key=verifier) # 매 verifier: unit test pass count, etc.
Self-consistency (majority vote)
from collections import Counter
answers = [extract_answer(s) for s in samples]
final = Counter(answers).most_common(1)[0][0]
MCTS-style search (sketch)
def expand(node):
children = [llm.continue_from(node.partial, temp=0.9) for _ in range(k)]
return [Node(c, score=verifier(c)) for c in children]
def search(root, depth=4):
frontier = [root]
for _ in range(depth):
candidates = sum((expand(n) for n in frontier), [])
frontier = sorted(candidates, key=lambda n: -n.score)[:beam]
return max(frontier, key=lambda n: n.score)
Budget controller
def adaptive_thinking(prompt, easy_budget=2000, hard_budget=32000):
# 매 difficulty classifier 의 first
diff = client.messages.create(model="claude-haiku-4", ...).content[0].text
budget = hard_budget if "hard" in diff else easy_budget
return client.messages.create(
model="claude-opus-4-7",
thinking={"type": "enabled", "budget_tokens": budget},
messages=[{"role": "user", "content": prompt}],
)
매 결정 기준
| 상황 | Approach |
|---|---|
| Math / code with verifier | RL-trained reasoning model (o3, R1) + search |
| Open-ended reasoning | Extended thinking (Claude 4.x) |
| Latency-critical | Skip — use small fast model |
| Cost-critical batch | Self-consistency 4-8 samples |
| Search exploitable | Best-of-N + verifier |
| Fuzzy quality | Reasoning model > base model |
기본값: 매 reasoning model (o3 / Claude extended thinking) 매 hard task, base model 매 easy task — 매 difficulty router 로 split.
🔗 Graph
- 부모: Scaling-Laws
- 변형: Chain-of-Thought · Self-Consistency · Best-of-N · MCTS
- 응용: Code-Generation
- Adjacent: RLHF
🤖 LLM 활용
언제: 매 hard reasoning task, verifiable output (math/code), agent planning, quality > latency. 언제 X: 매 simple lookup / chat — 매 thinking 매 cost waste.
❌ 안티패턴
- Always max thinking budget: 매 easy task 의 32k thinking 매 cost burn — 매 router 사용.
- No verifier in best-of-N: 매 random sample 매 noise — 매 verifier (unit test, math check) 의 essential.
- Stream thinking to user: 매 thinking content 매 internal — 매 user UI 에 final text 만.
- Caching invalidation: 매 thinking budget 변경 시 cache miss — 매 stable budget 권장.
🧪 검증 / 중복
- Verified (OpenAI o1/o3 system cards, DeepSeek-R1 paper 2025-01, Anthropic extended thinking docs, Snell et al. 2024).
- 신뢰도 A.
🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — o-series / R1 / Claude extended thinking patterns |