AI Agents · บทเรียน

แนวหน้าการวิจัย: AGI และก้าวต่อไป

ปัญหาที่ยังเปิดอยู่ด้านความทนทานของเอเจนต์ ความจำระยะยาว และการประสานงานระหว่างเอเจนต์หลายตัว

บทเรียน 4 จาก 413 ขั้นตอน

แนวหน้าการวิจัย: AGI และก้าวต่อไป เป็นบทเรียน AI Agents ฟรีบน CoddyKit นี่คือบทเรียนที่ 4 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน AI Agents และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส AI Agents มีบทเรียนทั้งหมด 4 บทเรียน

สถานะของเอเจนต์เอไอในปี 2025

ณ ปี 2025 เอเจนต์เอไอที่ขับเคลื่อนด้วยโมเดลภาษาขนาดใหญ่สามารถทำงานหลายขั้นตอนที่ซับซ้อนได้อย่างน่าเชื่อถือ ใช้เครื่องมือ ให้เหตุผลข้ามรูปแบบข้อมูล และทำงานโดยมีการกำกับดูแลจำกัด อย่างไรก็ตาม ยังมีความท้าทายพื้นฐานอีกหลายประการที่ต้องแก้ไขก่อนที่เอเจนต์จะมีความสามารถทั่วไปอย่างแท้จริง

บทเรียนนี้สำรวจแนวหน้าของการวิจัยที่ยังเปิดอยู่ ซึ่งกำหนดทิศทางของเอไอรุ่นถัดไป

ปัญหาที่ยังเปิดอยู่ข้อที่ 1: ความจำสำหรับงานระยะยาว

LLM ในปัจจุบันมีหน้าต่างบริบทขนาด 128K–1M โทเค็น ซึ่งน่าประทับใจแต่ยังจำกัดสำหรับงานที่ดำเนินต่อเนื่องหลายเดือน ปัญหาที่ยังเปิดอยู่คือ จะบีบอัด เรียกคืน และให้เหตุผลกับความจำที่ครอบคลุมช่วงเวลายาวนานได้อย่างน่าเชื่อถือได้อย่างไร โดยไม่สูญเสียรายละเอียดสำคัญหรือสร้างข้อมูลหลอน

# Illustration of long-horizon memory challenges:

LONG_HORIZON_CHALLENGES = {
    'compression': {
        'problem': 'Summarising months of interactions loses nuance',
        'current_approach': 'Hierarchical summarisation (recent detail, old summary)',
        'limitation': 'Important details get compressed away; hallucination risk in summaries'
    },
    'retrieval': {
        'problem': 'Finding the relevant memory among millions of entries',
        'current_approach': 'Embedding-based similarity search (vector databases)',
        'limitation': 'Semantic similarity does not always match relevance; false negatives'
    },
    'reasoning_over_time': {
        'problem': 'Connecting observations from 6 months apart',
        'current_approach': 'Temporal indexing + LLM reasoning',
        'limitation': 'LLMs struggle with precise temporal ordering of distant events'
    }
}

for challenge, details in LONG_HORIZON_CHALLENGES.items():
    print(f'{challenge}: {details["limitation"][:80]}')

ปัญหาที่ยังเปิดอยู่ข้อที่ 2: ความทนทานข้ามสาขา

เอเจนต์ในปัจจุบันเปราะบาง: เอเจนต์ที่ปรับแต่งเพิ่มเติมสำหรับงานบริการลูกค้าอาจล้มเหลวกับงานที่คล้ายกันในสาขาใหม่ เช่น การแพทย์ กฎหมาย หรือเทคนิค ความทนทานอย่างแท้จริงหมายถึงการทำงานในงานและสาขาที่เอเจนต์ไม่เคยได้รับการฝึกอบรมโดยตรง ซึ่งเป็นข้อกำหนดสำคัญสำหรับ AGI

# Measuring domain robustness
import statistics

def measure_domain_robustness(agent_fn, test_suite: dict) -> dict:
    """
    test_suite: {domain: [(input, expected_output)]}
    Returns per-domain accuracy and overall robustness score.
    """
    domain_scores = {}
    for domain, cases in test_suite.items():
        correct = 0
        for inp, expected in cases:
            result = agent_fn(inp)
            # Simplified scoring: check if expected phrase is in result
            if expected.lower() in result.lower():
                correct += 1
        domain_scores[domain] = round(correct / len(cases), 3)

    scores = list(domain_scores.values())
    return {
        'domain_scores': domain_scores,
        'mean_accuracy': round(statistics.mean(scores), 3),
        'min_accuracy': min(scores),  # robustness = performance on worst domain
        'variance': round(statistics.variance(scores), 4)
    }

# High variance = brittle (good at some domains, bad at others)
# Low variance + high mean = robust

if __name__ == '__main__':
    def toy_agent(inp):
        return {
            '2+2': 'The answer is 4',
            'capital of France': 'Paris is the capital'
        }.get(inp, 'I do not know')

    test_suite = {
        'math': [('2+2', '4')],
        'geography': [('capital of France', 'paris')],
    }
    result = measure_domain_robustness(toy_agent, test_suite)
    print('Domain scores:', result['domain_scores'])
    print('Mean accuracy:', result['mean_accuracy'])

ปัญหาที่ยังเปิดอยู่ข้อที่ 3: การประสานงานระหว่างหลายเอเจนต์

เครือข่ายเอเจนต์เฉพาะทางสามารถรับมือกับงานที่เกินขีดความสามารถของเอเจนต์เพียงตัวเดียวได้ แต่การประสานงานระหว่างเอเจนต์เหล่านี้ยากมาก เพราะเอเจนต์ต้องสื่อสารกันอย่างมีประสิทธิภาพ หลีกเลี่ยงการทำงานซ้ำซ้อน แก้ไขความขัดแย้ง และแบ่งปันความคืบหน้าโดยไม่เกิดคอขวดจากศูนย์กลาง

import anthropic
import json

client = anthropic.Anthropic(api_key='YOUR_API_KEY')

# Simple task negotiation between two agents
def negotiate_task_division(
    task: str,
    agent1_capabilities: list,
    agent2_capabilities: list
) -> dict:
    prompt = (
        f'Task: {task}\n\n'
        f'Agent A capabilities: {agent1_capabilities}\n'
        f'Agent B capabilities: {agent2_capabilities}\n\n'
        'How should this task be divided between Agent A and Agent B?\n'
        'Minimise handoffs. Assign subtasks to the best-suited agent.\n'
        'Return JSON: {"agent_a_tasks": [str], "agent_b_tasks": [str], '
        '"shared_tasks": [str], "handoffs": int}'
    )
    response = client.messages.create(
        model='claude-opus-4-5', max_tokens=512,
        messages=[{'role': 'user', 'content': prompt}]
    )
    return json.loads(response.content[0].text)

# Open research challenge:
# How do agents coordinate without a central planner
# when each has only partial information?

ปัญหาที่ยังเปิดอยู่ข้อที่ 4: ความสามารถในการตีความ

เรายังไม่สามารถอธิบายได้อย่างน่าเชื่อถือว่าเหตุใดโครงข่ายประสาทเทียมขนาดใหญ่จึงตัดสินใจแบบใดแบบหนึ่ง การวิจัยด้านความสามารถในการตีความมีเป้าหมายเพื่อระบุวงจร แนวคิด และรูปแบบการให้เหตุผลภายในแบบจำลอง หากขาดความสามารถในการตีความ การจัดแนวและความปลอดภัยจะต้องพึ่งพาการทดสอบพฤติกรรมทั้งหมด ซึ่งไม่สามารถตรวจจับรูปแบบความล้มเหลวได้ครบถ้วน

# Practical interpretability techniques available today:

INTERPRETABILITY_TECHNIQUES = {
    'chain_of_thought': {
        'description': 'Ask model to show reasoning steps',
        'limitation': 'CoT may not reflect true internal computation',
        'example': 'Q: Why did you choose action X? A: Because...'
    },
    'attention_visualisation': {
        'description': 'Show which input tokens the model attended to most',
        'limitation': 'Attention != causation; incomplete explanation',
        'example': 'Highlight most attended tokens in a response'
    },
    'logit_lens': {
        'description': 'Read out predictions at each transformer layer',
        'limitation': 'Requires model internals access (not API-accessible)',
        'example': 'Prediction at layer 12 vs layer 24'
    },
    'activation_patching': {
        'description': 'Intervene on specific neurons to find causal circuits',
        'limitation': 'Research technique, not yet practical in production',
        'example': 'Anthropic mechanistic interpretability research'
    }
}

for technique, info in INTERPRETABILITY_TECHNIQUES.items():
    print(f'{technique}: {info["limitation"][:80]}')

สถานะปัจจุบัน: สิ่งที่แบบจำลองทำได้ในปี 2025

แบบจำลองแนวหน้าของปี 2025 (GPT-4o, โคลด โอปุส 4, เจมิไน 1.5 โปร) แสดงความสามารถด้านการให้เหตุผลหลายขั้นตอนในบริบทขนาดยาว การใช้เครื่องมืออย่างน่าเชื่อถือ ความเข้าใจภาพและเสียง ประสิทธิภาพใกล้เคียงมนุษย์ในชุดทดสอบมาตรฐานวิชาชีพหลายรายการ และความสามารถในการสร้างและแก้จุดบกพร่องของโค้ดที่ยังมีข้อจำกัดแต่ใช้งานได้จริง

CAPABILITY_MAP_2025 = {
    'strengths': [
        'Multi-step reasoning (GSM8K, MATH near human performance)',
        'Code generation (HumanEval >90%)',
        'Instruction following (complex multi-part prompts)',
        'Tool use (reliable function calling)',
        'Vision understanding (OCR, chart analysis, scene description)',
        'Context: 128K-1M tokens',
        'Multi-agent orchestration (AutoGen, CrewAI frameworks)'
    ],
    'limitations': [
        'Long-horizon planning (>20 steps degrades significantly)',
        'Reliable factual grounding without hallucination',
        'Consistent reasoning in out-of-distribution domains',
        'True causal reasoning (vs pattern matching)',
        'Self-knowledge of own uncertainty',
        'Physical world understanding without embodiment'
    ]
}

print('Strengths:', len(CAPABILITY_MAP_2025['strengths']))
print('Active limitations:', len(CAPABILITY_MAP_2025['limitations']))

เส้นทางสู่ AGI: ประเด็นการวิจัยสำคัญ

นักวิจัยส่วนใหญ่เห็นพ้องกันว่าระบบจะต้องมีความสามารถใดบ้างจึงจะเข้าข่ายปัญญาประดิษฐ์ทั่วไป: ระบบต้องเรียนรู้จากตัวอย่างจำนวนน้อยได้อย่างมีประสิทธิภาพ นำความรู้ไปใช้ทั่วไปข้ามสาขาได้อย่างกว้างขวาง ให้เหตุผลเชิงสาเหตุ ไม่ใช่เพียงเชิงสหสัมพันธ์ และทำงานได้อย่างทนทานในสภาพแวดล้อมที่เปิดกว้างและคาดเดาไม่ได้

AGI_RESEARCH_AREAS = {
    'sample_efficiency': {
        'question': 'How to learn from 10 examples what LLMs need 10M for?',
        'approaches': ['meta-learning', 'few-shot learning', 'in-context learning']
    },
    'causal_reasoning': {
        'question': 'How to distinguish correlation from causation reliably?',
        'approaches': ['causal graphs', 'do-calculus integration', 'intervention-based training']
    },
    'open_world_operation': {
        'question': 'How to act effectively in environments not seen during training?',
        'approaches': ['world models', 'imagination-based planning', 'transfer learning']
    },
    'recursive_self_improvement': {
        'question': 'Can an agent improve its own architecture safely?',
        'approaches': ['neural architecture search', 'prompt optimisation', 'constrained self-modification']
    }
}

for area, info in AGI_RESEARCH_AREAS.items():
    print(f'{area}: {info["question"][:70]}')

ผลเชิงปฏิบัติสำหรับผู้พัฒนาเอเจนต์

การเข้าใจแนวหน้าของการวิจัยช่วยให้คุณตัดสินใจด้านวิศวกรรมได้ดีขึ้น: ใช้การคิดเป็นลำดับขั้นเพื่อให้ตรวจสอบการให้เหตุผลได้ ออกแบบเอเจนต์ให้รับมือกับความล้มเหลวอย่างเหมาะสมในสาขาใหม่ สร้างการกำกับดูแลโดยมนุษย์ไว้สำหรับงานระยะยาว และเลือกสถาปัตยกรรมที่เรียบง่ายกว่าเมื่อเป็นไปได้ เพราะระบบที่เรียบง่ายมักล้มเหลวในรูปแบบที่คาดการณ์ได้มากกว่า

ENGINEERING_PRINCIPLES_FROM_RESEARCH = {
    'long_horizon_memory': (
        'Use hierarchical summaries + vector retrieval. '
        'Set a hard context age limit and revalidate critical facts. '
        'Never trust old memories without verification.'
    ),
    'domain_robustness': (
        'Evaluate your agent on held-out domains before production. '
        'Monitor domain distribution of production inputs. '
        'Fall back to human when input is out-of-distribution.'
    ),
    'multi_agent': (
        'Minimise inter-agent communication. '
        'Use shared state (not message passing) where possible. '
        'Assign clear non-overlapping scopes to each agent.'
    ),
    'interpretability': (
        'Always request chain-of-thought for high-stakes decisions. '
        'Log all tool calls and intermediate reasoning steps. '
        'Build anomaly detection on the CoT stream, not just final output.'
    )
}

for principle, guidance in ENGINEERING_PRINCIPLES_FROM_RESEARCH.items():
    print(f'{principle}: {guidance[:80]}...')

ความสามารถอุบัติใหม่และเรื่องที่คาดไม่ถึง

ความสามารถอุบัติใหม่คือความสามารถที่ปรากฏขึ้นอย่างไม่คาดคิดในแบบจำลองขนาดใหญ่ ทั้งที่ไม่ได้ฝึกมาโดยตรง ตัวอย่างเช่น การเรียนรู้จากบริบท การคำนวณเลข และการให้เหตุผลแบบคิดเป็นลำดับขั้น สิ่งเหล่านี้ทำให้การคาดการณ์ขีดความสามารถเป็นเรื่องยาก เพราะความก้าวหน้าครั้งถัดไปอาจทำให้ทุกคนประหลาดใจ

# Historical emergent capability timeline (approximate):
EMERGENCE_TIMELINE = [
    {'year': 2020, 'scale': 'GPT-3 (175B)',
     'emergent': 'Few-shot in-context learning without fine-tuning'},
    {'year': 2022, 'scale': 'PaLM (540B)',
     'emergent': 'Chain-of-thought reasoning with step-by-step prompts'},
    {'year': 2023, 'scale': 'GPT-4',
     'emergent': 'Reliable code generation, bar exam performance'},
    {'year': 2024, 'scale': 'Claude 3 Opus, GPT-4o',
     'emergent': 'Reliable multi-step tool use, vision-language integration'},
    {'year': 2025, 'scale': 'Claude Opus 4, GPT-4o class',
     'emergent': 'Extended multi-agent task delegation, agentic autonomy'}
]

for entry in EMERGENCE_TIMELINE:
    print(f'{entry["year"]} ({entry["scale"]}): {entry["emergent"]}')

print('\nKey insight: capabilities can appear suddenly as scale increases — '
      'current limitations may not be permanent.')

ภาพรวมงานวิจัยด้านความปลอดภัย

งานวิจัยด้านความปลอดภัยดำเนินไปควบคู่กับงานวิจัยด้านขีดความสามารถ ประเด็นสำคัญที่กำลังศึกษา ได้แก่ การกำกับดูแลที่ขยายขนาดได้ (วิธีกำกับดูแลเอเจนต์ที่ฉลาดกว่าเรา) การโต้วาที (เอเจนต์สองตัวโต้แย้งกัน โดยมีมนุษย์เป็นผู้ตัดสิน) การขยายความสามารถ (ใช้เอไอช่วยมนุษย์ประเมินเอไอแบบวนซ้ำ) และความสามารถในการตีความ (ทำความเข้าใจสิ่งที่แบบจำลองกำลังทำอยู่ภายใน)

SAFETY_RESEARCH_AREAS = {
    'scalable_oversight': (
        'Challenge: how do humans supervise agents that are better than us at the task?\n'
        'Approach: break tasks into verifiable sub-problems humans can check\n'
        'Status: active research at Anthropic, DeepMind, OpenAI'
    ),
    'debate': (
        'Challenge: finding truth when the agent is more capable than the evaluator\n'
        'Approach: two AI agents argue for different answers; human judges quality of argument\n'
        'Status: theoretical framework, limited empirical results'
    ),
    'weak_to_strong_generalization': (
        'Challenge: a weak supervisor training a stronger model\n'
        'Approach: show strong model responses can be elicited by weak supervision\n'
        'Status: OpenAI 2024 paper showed promising early results'
    ),
    'interpretability': (
        'Challenge: understanding neural network internals\n'
        'Approach: mechanistic interp, sparse autoencoders, circuit analysis\n'
        'Status: Anthropic found emotion-like representations in Claude'
    )
}

for area, desc in SAFETY_RESEARCH_AREAS.items():
    print(f'{area}:')
    print(f'  {desc.split(chr(10))[0]}')

เส้นทางข้างหน้าของคุณในฐานะผู้พัฒนาเอเจนต์

วงการเอเจนต์เอไอกำลังพัฒนาอย่างรวดเร็ว ผู้พัฒนาที่ประสบความสำเร็จจะเป็นผู้ที่ติดตามงานวิจัยล่าสุด สร้างระบบอย่างมีความรับผิดชอบโดยคำนึงถึงการกำกับดูแลและการจัดแนว ออกแบบให้ระบบค่อย ๆ ลดความสามารถลงได้อย่างเหมาะสมเมื่อเกิดปัญหา และมองเอเจนต์เป็นระบบเชิงสังคมเทคนิค ไม่ใช่เพียงซอฟต์แวร์

DEVELOPER_ROADMAP = {
    'immediate': [
        'Master prompt engineering + few-shot design',
        'Build reliable tool-use agents with retry + error handling',
        'Implement proper logging, monitoring, and human oversight',
        'Study agent frameworks: LangChain, AutoGen, CrewAI'
    ],
    'next_6_months': [
        'Build multi-agent systems with clear agent scopes',
        'Implement vector memory + episodic reflection',
        'Contribute to open-source agent tooling',
        'Run proper evals: domain robustness, alignment red-teaming'
    ],
    'long_term': [
        'Follow interpretability research (Anthropic, DeepMind papers)',
        'Engage with alignment research community',
        'Build agents that remain human-overseen as capability grows',
        'Contribute to safety-conscious deployment standards'
    ]
}

for horizon, items in DEVELOPER_ROADMAP.items():
    print(f'{horizon}:')
    for item in items:
        print(f'  - {item}')

ทดสอบความรู้

คำว่าความสามารถอุบัติใหม่หมายถึงอะไรในบริบทของโมเดลภาษาขนาดใหญ่

สรุป: แนวหน้าการวิจัย AGI และสิ่งที่เหนือกว่านั้น

ขอแสดงความยินดีที่เรียนจบชุดหลักสูตรเอเจนต์เอไอทั้งหมด! ประเด็นสำคัญสุดท้ายจากบทเรียนนี้:

  • ปัญหาที่ยังเปิดอยู่: ความจำสำหรับงานระยะยาว ความทนทานข้ามสาขา การประสานงานระหว่างหลายเอเจนต์ และความสามารถในการตีความ
  • จุดแข็งในปัจจุบัน (2025): การใช้เครื่องมือ การมองเห็น การให้เหตุผล และบริบทขนาด 1M โทเค็น
  • เส้นทางสู่ AGI: ประสิทธิภาพในการเรียนรู้จากตัวอย่างจำนวนน้อย การให้เหตุผลเชิงสาเหตุ และการทำงานในโลกเปิด
  • งานวิจัยด้านความปลอดภัย: การกำกับดูแลที่ขยายขนาดได้ การโต้วาที การทำให้ใช้ได้ทั่วไปจากระบบที่อ่อนกว่าสู่ระบบที่แข็งแกร่งกว่า และความสามารถในการตีความ
  • บทบาทของคุณ: สร้างระบบอย่างมีความรับผิดชอบ ตรวจติดตามอย่างต่อเนื่อง และออกแบบให้มีการกำกับดูแลโดยมนุษย์ในทุกระดับ

ขอบคุณที่เรียนจบหลักสูตรเอเจนต์เอไอ ตอนนี้คุณพร้อมสร้างระบบเอเจนต์ที่ซับซ้อน ปลอดภัย และมีความสามารถแล้ว

เริ่มต้นได้ฟรี

เรียนรู้ AI Agents ด้วย AI tutor — ฟรี

เขียนและเรียกใช้โค้ดจริงในเบราว์เซอร์ของคุณ รับความช่วยเหลือทันทีจาก AI tutor 24/7 และเรียนรู้ต่อจากที่คุณหยุดบนเว็บหรือในแอป

คอร์ส
60
บทเรียน
239

คำถามที่พบบ่อย

บทเรียน “แนวหน้าการวิจัย: AGI และก้าวต่อไป” ฟรีหรือไม่

ใช่ — ข้อความเต็มของ “แนวหน้าการวิจัย: AGI และก้าวต่อไป” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส AI Agents ให้อัปเกรดเป็น CoddyKit PRO คอร์ส AI Agents มีบทเรียนทั้งหมด 4 บทเรียน

คุณจะเรียนรู้อะไรในบทเรียน “แนวหน้าการวิจัย: AGI และก้าวต่อไป”

ปัญหาที่ยังเปิดอยู่ด้านความทนทานของเอเจนต์ ความจำระยะยาว และการประสานงานระหว่างเอเจนต์หลายตัว คุณปฏิบัติ AI Agents ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน

คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน AI Agents หรือไม่

ไม่จำเป็นต้องมีประสบการณ์มาก่อน AI Agents บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 4 จากทั้งหมด 4 บทเรียน

บทเรียน “แนวหน้าการวิจัย: AGI และก้าวต่อไป” ใช้เวลานานแค่ไหน

บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย

ฉันเขียนและรันโค้ดในบทเรียน AI Agents นี้ได้ไหม

ได้ บทเรียน AI Agents ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. จากผู้ช่วยสู่เอเจนต์อัตโนมัติ
  2. โมเดลโลกและการวางแผนเชิงคาดการณ์
  3. ความท้าทายด้านการจัดแนวในเอเจนต์อัตโนมัติ
  4. แนวหน้าการวิจัย: AGI และก้าวต่อไป
← กลับไปที่ AI Agents