{"id":5823,"date":"2025-03-24T15:47:18","date_gmt":"2025-03-24T07:47:18","guid":{"rendered":"https:\/\/nullthought.net\/?p=5823"},"modified":"2025-03-24T15:47:20","modified_gmt":"2025-03-24T07:47:20","slug":"textgrad%ef%bc%9a%e6%96%87%e6%9c%ac%e5%8f%8d%e9%a6%88%e4%bd%9c%e4%b8%ba%e6%a2%af%e5%ba%a6%ef%bc%8c%e5%b9%b6%e5%8f%8d%e5%90%91%e4%bc%a0%e6%92%ad%e4%bc%98%e5%8c%96","status":"publish","type":"post","link":"https:\/\/nullthought.net\/?p=5823","title":{"rendered":"TextGrad\uff1a\u201c\u6587\u672c\u53cd\u9988\u201d\u4f5c\u4e3a\u201c\u68af\u5ea6\u201d\uff0c\u5e76\u53cd\u5411\u4f20\u64ad\u4f18\u5316"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u8bba\u6587<strong><a href=\"https:\/\/arxiv.org\/abs\/2406.07496\" target=\"_blank\" rel=\"noreferrer noopener\">TextGrad: Automatic &#8220;Differentiation&#8221; via Text<\/a><\/strong>\u63d0\u51fa\u4e86TextGrad\u6846\u67b6\uff0c\u8be5\u6846\u67b6\u4ee5\u201c\u6587\u672c\u53cd\u9988\u53cd\u5411\u4f20\u64ad\u201d\u4e3a\u6838\u5fc3\uff0c\u6a21\u62df\u81ea\u52a8\u5fae\u5206\u7684\u601d\u60f3\u5bf9AI\u590d\u5408\u7cfb\u7edf\u8fdb\u884c\u7cfb\u7edf\u6027\u4f18\u5316\u3002\u8be5\u65b9\u6cd5\u4e0d\u4ec5\u5728\u591a\u4e2a\u9886\u57df\u53d6\u5f97\u9886\u5148\u6027\u80fd\uff0c\u66f4\u5c55\u793a\u4e86LLM\u7ed3\u5408\u4f18\u5316\u7406\u8bba\u5728\u79d1\u7814\u3001\u5de5\u7a0b\u4e0e\u533b\u5b66\u4e2d\u7684\u5f3a\u5927\u6f5c\u529b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bba\u6587\u4f5c\u8005\u4e3aMert Yuksekgonul, Federico Bianchi, Joseph Boen, Sheng Liu, Zhi Huang, Carlos Guestrin, James Zou\uff0c\u6765\u81eaSTANFORD UNIVERSITY\u548cCHAN ZUCKERBERG BIOHUB\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"792\" src=\"https:\/\/nullthought.net\/wp-content\/uploads\/2025\/03\/image-14.png\" alt=\"\" class=\"wp-image-5824\" srcset=\"https:\/\/nullthought.net\/wp-content\/uploads\/2025\/03\/image-14.png 580w, https:\/\/nullthought.net\/wp-content\/uploads\/2025\/03\/image-14-220x300.png 220w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><figcaption class=\"wp-element-caption\"><strong><a href=\"https:\/\/arxiv.org\/abs\/2406.07496\" target=\"_blank\" rel=\"noreferrer noopener\">TextGrad: Automatic &#8220;Differentiation&#8221; via Text<\/a><\/strong><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e00\u3001\u5f15\u8a00<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u524d\u4eba\u5de5\u667a\u80fd\uff08AI\uff09\u7cfb\u7edf\u6b63\u7ecf\u5386\u8303\u5f0f\u8f6c\u53d8\u3002\u4ee5\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff08LLM\uff09\u4e3a\u6838\u5fc3\u7684\u7cfb\u7edf\u65e5\u76ca\u6210\u4e3a\u590d\u5408\u578bAI\u7cfb\u7edf\u7684\u57fa\u77f3\uff0c\u5178\u578b\u4f8b\u5b50\u5305\u62ec\u7ed3\u5408\u7b26\u53f7\u63a8\u7406\u5668\u3001\u641c\u7d22\u5f15\u64ce\u3001\u4ee3\u7801\u89e3\u91ca\u5668\u7b49\u6a21\u5757\u7684\u7cfb\u7edf\u3002\u8fd9\u7c7b\u7cfb\u7edf\u901a\u5e38\u4f9d\u8d56\u4e13\u5bb6\u624b\u5de5\u8c03\u4f18\uff0c\u4f7f\u5f97\u5176\u5f00\u53d1\u6548\u7387\u4f4e\u3001\u53ef\u8fc1\u79fb\u6027\u5dee\u3002\u56e0\u6b64\uff0c\u8feb\u5207\u9700\u8981\u4e00\u79cd\u901a\u7528\u3001\u53ef\u81ea\u52a8\u5316\u7684\u4f18\u5316\u6846\u67b6\u6765\u63d0\u5347\u8fd9\u7c7b\u7cfb\u7edf\u7684\u6027\u80fd\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u795e\u7ecf\u7f51\u7edc\u5728\u65e9\u671f\u4e5f\u9762\u4e34\u7c7b\u4f3c\u7684\u56f0\u5883\uff0c\u76f4\u5230\u53cd\u5411\u4f20\u64ad\uff08backpropagation\uff09\u4e0e\u81ea\u52a8\u5fae\u5206\uff08automatic differentiation\uff09\u6280\u672f\u7684\u51fa\u73b0\uff0c\u5b9e\u73b0\u4e86\u5bf9\u6a21\u578b\u53c2\u6570\u7684\u7cfb\u7edf\u5316\u4f18\u5316\uff0c\u5f7b\u5e95\u6539\u53d8\u4e86AI\u7684\u53d1\u5c55\u8f68\u8ff9\u3002\u501f\u9274\u8fd9\u4e00\u7406\u5ff5\uff0c\u672c\u6587\u63d0\u51fa\u4e86\u521b\u65b0\u4f18\u5316\u6846\u67b6\u2014\u2014TextGrad\u3002\u5b83\u4ee5\u201c\u6587\u672c\u53cd\u9988\u201d\u4f5c\u4e3a\u201c\u68af\u5ea6\u201d\u7684\u7c7b\u6bd4\uff0c\u4eceLLM\u4e2d\u83b7\u5f97\u81ea\u7136\u8bed\u8a00\u5efa\u8bae\u6765\u4f18\u5316\u7cfb\u7edf\u4e2d\u7684\u5404\u4e2a\u7ec4\u4ef6\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">TextGrad\u4ee5\u8ba1\u7b97\u56fe\u7684\u5f62\u5f0f\u5efa\u6a21\u590d\u6742AI\u7cfb\u7edf\uff0c\u5e76\u5c06\u81ea\u7136\u8bed\u8a00\u53cd\u9988\u4f5c\u4e3a\u53d8\u91cf\u7684\u201c\u6587\u672c\u68af\u5ea6\u201d\u4f20\u64ad\u7ed9\u76f8\u5173\u7ec4\u4ef6\u3002\u5176\u9002\u7528\u4e8e\u591a\u79cd\u8f93\u5165\u5f62\u5f0f\uff0c\u5982\u4ee3\u7801\u3001\u5206\u5b50\u7ed3\u6784\u3001\u63d0\u793a\u8bcd\u7b49\u3002\u8be5\u6846\u67b6\u4e0d\u4ec5\u4fdd\u6301\u4e86\u4e0ePyTorch\u7c7b\u4f3c\u7684\u8bed\u6cd5\u548c\u62bd\u8c61\u7ed3\u6784\uff0c\u4f7f\u5176\u6613\u4e8e\u4e0a\u624b\u548c\u6269\u5c55\uff0c\u8fd8\u5728\u65e0\u9700\u4eba\u5de5\u8c03\u6574\u63d0\u793a\u6216\u7ec4\u4ef6\u7684\u524d\u63d0\u4e0b\uff0c\u9002\u7528\u4e8e\u5404\u79cd\u5e94\u7528\u573a\u666f\uff0c\u5177\u6709\u6781\u5f3a\u7684\u901a\u7528\u6027\u548c\u5b9e\u7528\u6027\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e8c\u3001TextGrad\u6846\u67b6\u8bbe\u8ba1\uff1a\u901a\u8fc7\u6587\u672c\u53cd\u9988\u8fdb\u884c\u53cd\u5411\u4f20\u64ad\u4f18\u5316<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">TextGrad\u7684\u6838\u5fc3\u7406\u5ff5\u662f\u6a21\u62df\u81ea\u52a8\u5fae\u5206\u4e2d\u7684\u94fe\u5f0f\u6cd5\u5219\uff0c\u5c06LLM\u751f\u6210\u7684\u6587\u672c\u53cd\u9988\u4f5c\u4e3a\u68af\u5ea6\uff0c\u53cd\u5411\u4f20\u64ad\u81f3\u5404\u4e2a\u53ef\u4f18\u5316\u53d8\u91cf\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6846\u67b6\u793a\u4f8b\uff08\u53ccLLM\u8c03\u7528\u7684\u7cfb\u7edf\uff09\uff1a<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u8003\u8651\u4e00\u4e2a\u7531\u4e24\u4e2aLLM\u8c03\u7528\u7ec4\u6210\u7684\u7b80\u5355\u8ba1\u7b97\u56fe\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7b2c\u4e00\u6b65\uff1a\u751f\u6210\u56de\u7b54<br><code>Prediction = LLM(Prompt + Question)<\/code><\/li>\n\n\n\n<li>\u7b2c\u4e8c\u6b65\uff1a\u8bc4\u4f30\u56de\u7b54<br><code>Evaluation = LLM(Evaluation Instruction + Prediction)<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e3a\u4e86\u4f18\u5316Prompt\uff0c\u6211\u4eec\u9996\u5148\u83b7\u53d6Prediction\u5bf9Evaluation\u7684\u5f71\u54cd\uff08\u5373\u2202Evaluation\/\u2202Prediction\uff09\uff0c\u7136\u540e\u518d\u63a8\u5bfcPrompt\u7684\u66f4\u65b0\u65b9\u5411\uff08\u2202Evaluation\/\u2202Prompt\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728TextGrad\u4e2d\uff0c\u8fd9\u4e9b\u201c\u68af\u5ea6\u201d\u901a\u8fc7LLM\u8f93\u51fa\u7684\u81ea\u7136\u8bed\u8a00\u53cd\u9988\u83b7\u5f97\u3002\u4f8b\u5982\uff0c\u201c\u8fd9\u6bb5\u4ee3\u7801\u53ef\u4ee5\u901a\u8fc7\u5904\u7406X\u95ee\u9898\u6765\u6539\u8fdb\u2026\u2026\u201d\u7b49\u3002<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>\u6587\u672c\u68af\u5ea6\u7684\u83b7\u53d6\uff1a<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f7f\u7528\u4e00\u4e2a\u62bd\u8c61\u7684\u68af\u5ea6\u7b97\u5b50 \u2207LLM(x, y, \u2202L\/\u2202y)\uff0c\u901a\u8fc7\u5982\u4e0b\u63d0\u793a\u6a21\u677f\u8c03\u7528LLM\u83b7\u5f97\u53cd\u9988\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u201cHere is a conversation with an LLM: {x|y}. Below are the criticisms on {y}: {\u2202L\/\u2202y}. Explain how to improve {x}.\u201d<\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>\u6587\u672c\u68af\u5ea6\u4e0b\u964d\uff08Textual Gradient Descent, TGD\uff09\uff1a<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u7c7b\u4f3c\u4e8e\u4f20\u7edf\u7684SGD\u66f4\u65b0\u7b56\u7565\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>x_new = x - \u2202L\/\u2202x<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">TextGrad\u4e2d\u901a\u8fc7\u5982\u4e0bLLM\u8c03\u7528\u5b9e\u73b0\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u201cBelow are the criticisms on {x}: {\u2202L\/\u2202x}. Incorporate the criticisms, and produce a new variable.\u201d<\/p>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>\u4efb\u610f\u590d\u6742\u56fe\u7ed3\u6784\u7684\u901a\u7528\u5316\uff1a<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bf9\u4efb\u610f\u8ba1\u7b97\u56fe\u53d8\u91cf v\uff0c\u68af\u5ea6\u901a\u8fc7\u5176\u6240\u6709\u540e\u7ee7\u8282\u70b9 w \u805a\u5408\u5f97\u5230\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>\u2202L\/\u2202v = \u22c3_w\u2208Successors(v) \u2207f(v, w, \u2202L\/\u2202w)<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u53d8\u91cf\u7684\u66f4\u65b0\u5219\u7edf\u4e00\u7531TGD.step\u5b8c\u6210\u3002<\/p>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li>\u76ee\u6807\u51fd\u6570\u7684\u591a\u6837\u6027\uff1a<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">TextGrad\u4e2d\u7684\u76ee\u6807\u51fd\u6570\u4e0d\u4ec5\u9650\u4e8e\u4f20\u7edf\u7684\u6570\u503c\u635f\u5931\uff0c\u8fd8\u53ef\u4ee5\u7531LLM\u6839\u636e\u81ea\u7136\u8bed\u8a00\u751f\u6210\u3002\u4f8b\u5982\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>Loss(code, goal) = LLM(\"Here is a code snippet: {code}. Here is the goal: {goal}. Evaluate its correctness and runtime complexity.\")<br><\/code><\/pre>\n\n\n\n<ol start=\"6\" class=\"wp-block-list\">\n<li>\u4e24\u7c7b\u4f18\u5316\u4efb\u52a1\uff1a<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5b9e\u4f8b\u4f18\u5316\uff08Instance Optimization\uff09\uff1a\u76f4\u63a5\u4f18\u5316\u4ee3\u7801\u3001\u5206\u5b50\u7b49\u5b9e\u4f8b\u5bf9\u8c61\u3002<\/li>\n\n\n\n<li>\u63d0\u793a\u4f18\u5316\uff08Prompt Optimization\uff09\uff1a\u4f18\u5316\u7cfb\u7edf\u63d0\u793a\u4ee5\u63d0\u5347\u6a21\u578b\u6cdb\u5316\u6027\u80fd\u3002<\/li>\n<\/ul>\n\n\n\n<ol start=\"7\" class=\"wp-block-list\">\n<li>\u6279\u91cf\u4f18\u5316\u4e0e\u5176\u4ed6\u6280\u672f\uff1a<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">TextGrad\u652f\u6301\u7c7b\u4f3cPyTorch\u7684minibatch\u4f18\u5316\u3001\u81ea\u7136\u8bed\u8a00\u7ea6\u675f\u4f18\u5316\uff08constrained optimization\uff09\u3001\u4ee5\u53ca\u5e26\u52a8\u91cf\u7684\u66f4\u65b0\u7b56\u7565\u7b49\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e09\u3001\u5b9e\u9a8c\u7ed3\u679c<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">TextGrad\u5728\u4e94\u5927\u4efb\u52a1\u4e2d\u5c55\u73b0\u4e86\u5176\u5353\u8d8a\u7684\u901a\u7528\u6027\u4e0e\u6027\u80fd\u63d0\u5347\u80fd\u529b\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u7f16\u7a0b\u4ee3\u7801\u4f18\u5316\uff08LeetCode Hard\uff09<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4efb\u52a1\uff1a\u4f18\u5316LLM\u751f\u6210\u7684\u4ee3\u7801\uff0c\u4f7f\u5176\u901a\u8fc7LeetCode\u5e73\u53f0\u7684\u9690\u85cf\u6d4b\u8bd5\u7528\u4f8b\u3002<\/li>\n\n\n\n<li>\u6570\u636e\u96c6\uff1aLeetCode Hard\u3002<\/li>\n\n\n\n<li>\u57fa\u7ebf\u65b9\u6cd5\uff1aReflexion\uff08\u901a\u8fc7\u81ea\u53cd\u601d\u6539\u8fdb\u4ee3\u7801\uff09\u3002<\/li>\n\n\n\n<li>\u7ed3\u679c\uff1agpt-4o \u96f6\u6837\u672c\u4e3a26%\uff0cReflexion\u63d0\u5347\u81f331%\uff0cTextGrad\u65e0\u793a\u4f8b\u4f18\u5316\u8fbe\u523036%\uff0c\u63d0\u5347\u663e\u8457\u3002<\/li>\n<\/ul>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>\u79d1\u5b66\u95ee\u9898\u89e3\u7b54\u4f18\u5316\uff08Google-Proof QA &amp; MMLU\uff09<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4efb\u52a1\uff1a\u901a\u8fc7LLM\u81ea\u6211\u8bc4\u4f30\u53cd\u590d\u4fee\u6b63\u79d1\u5b66\u9886\u57df\u591a\u9009\u9898\u7684\u7b54\u6848\u3002<\/li>\n\n\n\n<li>\u65b9\u6cd5\uff1agpt-4o\u751f\u6210\u521d\u59cb\u56de\u7b54\uff0c\u901a\u8fc7TextGrad\u8fed\u4ee3\u4e09\u6b21\u4f18\u5316\u7b54\u6848\u3002<\/li>\n\n\n\n<li>\u7ed3\u679c\uff1aGPQA\u51c6\u786e\u7387\u4ece51%\u63d0\u5347\u523055%\uff1bMMLU\u7684\u673a\u5668\u5b66\u4e60\u548c\u7269\u7406\u5b50\u96c6\u51c6\u786e\u7387\u5206\u522b\u4ece85.7%\u63d0\u5347\u523088.4%\uff0c91.2%\u63d0\u5347\u523095.1%\u3002<\/li>\n<\/ul>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>\u63a8\u7406\u4efb\u52a1\u4e2d\u7684\u63d0\u793a\u4f18\u5316<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u76ee\u6807\uff1a\u63d0\u5347gpt-3.5-turbo\u5728Object Counting\u3001Word Sorting\u548cGSM8k\u4efb\u52a1\u4e0a\u7684\u6027\u80fd\u3002<\/li>\n\n\n\n<li>\u65b9\u6cd5\uff1a\u7528gpt-4o\u63d0\u4f9b\u68af\u5ea6\u53cd\u9988\uff0c\u901a\u8fc7TGD\u4f18\u5316\u7cfb\u7edf\u63d0\u793a\u3002<\/li>\n\n\n\n<li>\u7ed3\u679c\uff1a\u5728Object Counting\u4efb\u52a1\u4e2d\u4ece77.8%\u63d0\u5347\u81f391.9%\uff1b\u5176\u4ed6\u4e24\u4e2a\u4efb\u52a1\u63d0\u5347\u81f3\u4e0eDSPy\u6301\u5e73\uff0881.1%\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>\u5206\u5b50\u7ed3\u6784\u4f18\u5316\uff08\u836f\u7269\u8bbe\u8ba1\uff09<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u76ee\u6807\uff1a\u540c\u65f6\u4f18\u5316\u5206\u5b50\u7684\u7ed3\u5408\u4eb2\u548c\u529b\uff08Vina Score\uff09\u4e0e\u836f\u7269\u76f8\u5bb9\u6027\uff08QED\uff09\u3002<\/li>\n\n\n\n<li>\u65b9\u6cd5\uff1a\u4f7f\u7528SMILES\u5b57\u7b26\u4e32\u8868\u793a\u5206\u5b50\uff0c\u6bcf\u6b65\u7531LLM\u7ed9\u51fa\u4fee\u6539\u5efa\u8bae\uff0c\u7ed3\u5408Autodock Vina\u4e0eRDKit\u8ba1\u7b97\u6307\u6807\u3002<\/li>\n\n\n\n<li>\u7ed3\u679c\uff1a\u572858\u4e2a\u836f\u7269\u9776\u6807\u4e0a\u5747\u83b7\u5f97\u6301\u7eed\u63d0\u5347\u3002\u751f\u6210\u7684\u5206\u5b50\u5728\u7ed3\u5408\u4eb2\u548c\u529b\u548cQED\u6307\u6807\u4e0a\u4f18\u4e8e\u4e34\u5e8a\u836f\u7269\uff0c\u5e76\u5177\u6709\u65b0\u9896\u7ed3\u6784\u548c\u5408\u7406\u51e0\u4f55\u6784\u8c61\u3002<\/li>\n<\/ul>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li>\u653e\u5c04\u6cbb\u7597\u8ba1\u5212\u4f18\u5316\uff08\u533b\u5b66\u5e94\u7528\uff09<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4efb\u52a1\uff1a\u4f18\u5316\u524d\u5217\u817a\u764c\u60a3\u8005\u653e\u7597\u5242\u91cf\u8ba1\u5212\u4e2d\u7684\u6743\u91cd\u8d85\u53c2\u6570\uff0c\u4ee5\u540c\u65f6\u4fdd\u8bc1\u80bf\u7624\u7167\u5c04\u5145\u5206\u4e0e\u5065\u5eb7\u7ec4\u7ec7\u4fdd\u62a4\u3002<\/li>\n\n\n\n<li>\u65b9\u6cd5\uff1a\u5c06\u8d85\u53c2\u6570\u8f6c\u5316\u4e3a\u6587\u672c\u53d8\u91cf\uff0c\u901a\u8fc7LLM\u5bf9matRad\u751f\u6210\u7684\u6cbb\u7597\u8ba1\u5212\u8fdb\u884c\u8bc4\u4f30\u5e76\u4f18\u5316\u3002<\/li>\n\n\n\n<li>\u7ed3\u679c\uff1a\u4f18\u5316\u540e\u7684\u8ba1\u5212\u5728PTV\u5242\u91cf\u8fbe\u6807\u65b9\u9762\u4f18\u4e8e\u4e34\u5e8a\u8ba1\u5212\uff0c\u540c\u65f6\u663e\u8457\u964d\u4f4e\u4e86\u8180\u80f1\u548c\u76f4\u80a0\u7684\u8f90\u5c04\u5242\u91cf\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u56db\u3001\u76f8\u5173\u5de5\u4f5c<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u7814\u7a76\u5728\u591a\u4e2a\u7ef4\u5ea6\u4e0a\u7ee7\u627f\u5e76\u6269\u5c55\u4e86\u524d\u4eba\u7684\u63a2\u7d22\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DSPy \u6846\u67b6\u5f3a\u8c03\u5c06LLM\u7cfb\u7edf\u7a0b\u5e8f\u5316\u6784\u5efa\u548c\u4f18\u5316\uff1b<\/li>\n\n\n\n<li>ProTeGi \u63d0\u51fa\u201c\u6587\u672c\u68af\u5ea6\u201d\u7528\u4e8e\u63d0\u793a\u4f18\u5316\uff1b<\/li>\n\n\n\n<li>Reflexion\u3001Self-Refine \u7b49\u65b9\u6cd5\u5229\u7528\u81ea\u53cd\u9988\u8fdb\u884c\u89e3\u7b54\u6539\u8fdb\uff1b<\/li>\n\n\n\n<li>\u672c\u6587\u5c06\u201c\u81ea\u52a8\u5fae\u5206\u201d\u7c7b\u6bd4\u673a\u5236\u63a8\u5e7f\u5230\u66f4\u591a\u5b9e\u4f8b\u548c\u4efb\u52a1\uff0c\u7edf\u4e00\u5efa\u6a21\u65b9\u5f0f\u4e0e\u4f18\u5316\u63a5\u53e3\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b64\u5916\uff0cTextGrad\u8fd8\u878d\u5408\u4e86\u7ecf\u5178\u4f18\u5316\u7406\u8bba\u4e2d\u7684\u591a\u9879\u6280\u672f\uff0c\u5982\u52a8\u91cf\u3001\u7ea6\u675f\u4f18\u5316\u3001\u6279\u91cf\u66f4\u65b0\u7b49\uff0c\u4f7f\u5f97\u8be5\u6846\u67b6\u4e0d\u4ec5\u901a\u7528\u4e14\u6613\u4e8e\u6269\u5c55\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e94\u3001\u8ba8\u8bba\u4e0e\u5c55\u671b<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">TextGrad\u5177\u6709\u5982\u4e0b\u4f18\u52bf\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u901a\u7528\u6027\u5f3a\uff1a\u4e0d\u4ec5\u9650\u4e8e\u63d0\u793a\u4f18\u5316\uff0c\u53ef\u7528\u4e8e\u4f18\u5316\u4efb\u610fLLM\u7cfb\u7edf\u4e2d\u7684\u53d8\u91cf\uff1b<\/li>\n\n\n\n<li>\u6613\u4e8e\u4f7f\u7528\uff1a\u9ad8\u5ea6\u7c7bPyTorch\u62bd\u8c61\u8bbe\u8ba1\uff0c\u5b66\u4e60\u66f2\u7ebf\u4f4e\uff1b<\/li>\n\n\n\n<li>\u5b8c\u5168\u5f00\u6e90\uff1a\u53ef\u590d\u73b0\u4e0e\u4e8c\u6b21\u5f00\u53d1\u3002<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u672a\u6765\u5de5\u4f5c\u65b9\u5411\u5305\u62ec\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5c06\u8ba1\u7b97\u56fe\u6269\u5c55\u81f3\u66f4\u591a\u7ec4\u4ef6\uff08\u5982\u5de5\u5177\u4f7f\u7528\u3001RAG\u7b49\uff09\uff1b<\/li>\n\n\n\n<li>\u5f15\u5165\u66f4\u590d\u6742\u7684\u4f18\u5316\u7b97\u6cd5\uff08\u5982\u81ea\u9002\u5e94\u68af\u5ea6\u3001\u65b9\u5dee\u7ea6\u675f\u3001\u5143\u5b66\u4e60\uff09\uff1b<\/li>\n\n\n\n<li>\u5728\u79d1\u5b66\u4e0e\u5de5\u7a0b\u7b49\u9886\u57df\u5b9e\u73b0\u7aef\u5230\u7aef\u5b9e\u9a8c\u9a8c\u8bc1\uff0c\u5982\u5316\u5b66\u5408\u6210\u4e0e\u4e34\u5e8a\u8ba1\u5212\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">TextGrad on GitHub: <a href=\"https:\/\/github.com\/zou-group\/textgrad\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/zou-group\/textgrad<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8bba\u6587TextGrad: Automatic &#8220;Differentiation&#8221; via [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[39,86],"class_list":["post-5823","post","type-post","status-publish","format-standard","hentry","category-tech","tag-ai","tag-llm"],"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"NullThought","author_link":"https:\/\/nullthought.net\/?author=1"},"rttpg_comment":0,"rttpg_category":"<a href=\"https:\/\/nullthought.net\/?cat=8\" rel=\"category\">Tech<\/a>","rttpg_excerpt":"\u8bba\u6587TextGrad: Automatic &#8220;Differentiation&#8221; via&hellip;","_links":{"self":[{"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/posts\/5823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nullthought.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5823"}],"version-history":[{"count":1,"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/posts\/5823\/revisions"}],"predecessor-version":[{"id":5825,"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/posts\/5823\/revisions\/5825"}],"wp:attachment":[{"href":"https:\/\/nullthought.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nullthought.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nullthought.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}