יום שלישי, 15 בספטמבר 2026 LIVE
AI־INFO

כתבה arXiv cs.CL ·

פיענוח מותאם דקדוק

Grammar-Aligned Decoding
חוקרים פיתחו שיטה חדשה לפיענוח מותאם דקדוק, המאפשרת למודלים גדולים לייצר פלטים מובנים ותקינים. השיטה, הנקראת ASAp, משתמשת בדגימות קודמות כדי לחזות את הדקדוק העתידי של הפלט. המחקר הראה כי ASAp מפיק פלטים עם הסתברות גבוהה יותר מאשר שיטות קודמות.
תקציר מקורי באנגליתarXiv:2405.21047v4 Announce Type: replace-cross Abstract: Large Language Models (LLMs) struggle with reliably generating highly structured outputs, such as program code, mathematical formulas, or well-formed markup. Constrained decoding approaches mitigate this problem by greedily restricting what tokens an LLM can output at each step to guarantee that the output matches a given constraint. Specifically, in grammar-constrained decoding (GCD), the LLM's output must follow a given grammar. In this paper, we demonstrate that GCD techniques (and in general constrained decoding techniques) can distort the LLM's distribution, leading to outputs that are grammatical but appear with likelihoods that are not proportional to the ones given by the LLM, and so ultimately are low-quality. We call the p
קרא במקור המקורי