ガイド連動クイズ · 中 レベル

制約付きガイド付きビーム検索クイズ

ビーム検索、語彙および文法の制約、動的なビーム割り当て、構文と意味の有効性の区別について説明します。

質問 1 の 8

プレーンビームサーチは各生成ステップで何を保持しますか?

すべての質問をプレビューする8 質問

クイズに答えると、答えと解説が表示されます。

  1. プレーンビームサーチは各生成ステップで何を保持しますか?
    • 最も可能性の高い上位 k 個の部分シーケンス
    • 最も可能性の高い単一のトークンのみ
    • 考えられるすべてのシーケンス
    • シーケンスのランダムなサンプル
  2. グリッド ビーム検索のような語彙的に制約のあるメソッドはどのようにビームを編成するのでしょうか?
    • 出力長のみによる
    • 各ビームが必要な制約をいくつ満たしているか
    • アルファベット順
    • モデルの自信だけで
  3. 文法に制約されたデコードでは、無効な出力はどのようにして防止されるのでしょうか?
    • 生成後に不良トークンを削除することで
    • 有効な例に基づいてモデルを再トレーニングすることによって
    • トークンの確率をマスクして、文法的に有効なトークンのみが許可されるようにする
    • 温度を下げることで
  4. 動的ビーム割り当てはどのような問題を解決しますか?
    • 制約の必要性がなくなる
    • モデルが大きくなります
    • ビームサーチを完全に排除します
    • 拘束の進行レベル全体でビーム スロットを効率的に共有します。
  5. 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
  6. 特別な処理を行わないと、ハード制約によって適切なシーケンスが排除されてしまうのはなぜでしょうか?
    • すべてのビームを同一にする
    • 制約を無視した高確率ビームが上位 k を支配する可能性がある
    • GPU の速度が遅くなる
    • 語彙の量が増えます
  7. 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
  8. 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