ガイド連動クイズ · 中 レベル
制約付きガイド付きビーム検索クイズ
ビーム検索、語彙および文法の制約、動的なビーム割り当て、構文と意味の有効性の区別について説明します。
質問 1 の 8
プレーンビームサーチは各生成ステップで何を保持しますか?
すべての質問をプレビューする8 質問
クイズに答えると、答えと解説が表示されます。
- プレーンビームサーチは各生成ステップで何を保持しますか?
- 最も可能性の高い上位 k 個の部分シーケンス
- 最も可能性の高い単一のトークンのみ
- 考えられるすべてのシーケンス
- シーケンスのランダムなサンプル
- グリッド ビーム検索のような語彙的に制約のあるメソッドはどのようにビームを編成するのでしょうか?
- 出力長のみによる
- 各ビームが必要な制約をいくつ満たしているか
- アルファベット順
- モデルの自信だけで
- 文法に制約されたデコードでは、無効な出力はどのようにして防止されるのでしょうか?
- 生成後に不良トークンを削除することで
- 有効な例に基づいてモデルを再トレーニングすることによって
- トークンの確率をマスクして、文法的に有効なトークンのみが許可されるようにする
- 温度を下げることで
- 動的ビーム割り当てはどのような問題を解決しますか?
- 制約の必要性がなくなる
- モデルが大きくなります
- ビームサーチを完全に排除します
- 拘束の進行レベル全体でビーム スロットを効率的に共有します。
- When can grammar-constrained decoding produce syntactically valid JSON?
- When the grammar constraint is enforced through completion and the output is not truncated
- Whenever JSON is mentioned in the prompt
- Even if the runtime stops before required closing tokens
- Regardless of whether the active grammar matches the intended schema
- 特別な処理を行わないと、ハード制約によって適切なシーケンスが排除されてしまうのはなぜでしょうか?
- すべてのビームを同一にする
- 制約を無視した高確率ビームが上位 k を支配する可能性がある
- GPU の速度が遅くなる
- 語彙の量が増えます
- A lexical constraint requires a translation to include “bridge” and “river.” What does constrained beam search enforce?
- The output has exactly two words
- The model uses only one beam
- The completed output includes the required terms
- The translation is factually accurate
- A grammar-constrained generator returns JSON that parses successfully. What does that not establish by itself?
- That the output follows the grammar
- That required fields can be present
- That the syntax is valid
- That the values are factually correct or appropriate for the application