Chuyển đến nội dung
tinAI
Quay lại

Constraint Decay: agent LLM fragility trong backend code generation

Bản dịch tiếng Việt của tinAI · Từ Constraint Decay: The Fragility of LLM Agents in Backend Code Generation (arxiv.org) · Ngày gốc: · Dịch ngày:

Bài gốc: Constraint Decay: The Fragility of LLM Agents in Backend Code Generation (arxiv.org)

Tác giả: Paolo Papotti et al

Ngày đăng: Dịch ngày:

TL;DR

Paper systematic study trên 80 task greenfield + 20 task feature-implementation cross 8 framework backend, đo cách agent xử lý structural constraint. Khi requirement tăng dần (architectural pattern, DB, ORM), capable config rớt trung bình 30 điểm assertion pass rate; config yếu xuống gần 0. Flask thắng FastAPI/Django; data-layer (ORM, query) là root cause hàng đầu.

Ước tính đọc: 2 phút

Tóm tắt

LLM agent thể hiện perf mạnh trong code generation autonomous dưới spec lỏng. Tuy nhiên production-grade software đòi adherence chặt với structural constraint: architectural pattern, database, ORM. Benchmark hiện tại thường bỏ qua non-functional requirement này, reward solution functionally correct nhưng structurally arbitrary.

Paper present systematic study đánh giá agent xử lý structural constraint thế nào trong multi-file backend generation. Fix unified API contract qua 80 task greenfield generation và 20 task feature-implementation, span 8 web framework, isolate effect của structural complexity bằng dual evaluation: end-to-end behavioral test + static verifier.

Phát hiện chính

Ý nghĩa với Dev

Nếu agent của bạn fail nhiều trên repo lớn, không phải do model dở — đó là constraint decay. Cách rẻ nhất để claim lại 30 điểm pass rate đó:

  1. Inject explicit context về DB schema, ORM convention, architectural pattern trước khi spawn agent
  2. Ưu tiên framework minimal/explicit (như Flask) cho task agent tự chủ; convention-heavy framework cần human-in-the-loop
  3. Static verify data-layer trước: query composition và ORM violation là silent killer
  4. Đo agent của bạn bằng dual evaluation (behavioral + static), không chỉ functional pass

Citation

From: Paolo Papotti. [v1] Thu, 7 May 2026. arXiv:2605.06445 [cs.SE]. DOI: 10.48550/arXiv.2605.06445


Đường dẫn nguồn

tinAI dịch bài này sang tiếng Việt từ Constraint Decay: The Fragility of LLM Agents in Backend Code Generation (arxiv.org) · Loại nguồn: web và giữ bối cảnh từ bản tin tinAI đã giới thiệu bài này .

Bản tin này có 3 bài dịch liên quan từ cùng bản tin.