第10章現代のリカレントニューラルネットワーク
10.8.2. Exhaustive Search10.8.2 全探索
If the goal is to obtain the most likely sequence, we may consider using exhaustive search: enumerate all the possible output sequences with their conditional probabilities, and then output the one that scores the highest predicted probability.
英語のヒント
最もありそうな系列を得ることが目標なら、全探索を使うことを考えられる。ありうるすべての出力系列をその条件付き確率とともに列挙し、予測確率が最も高いものを出力するのである。
While this would certainly give us what we desire, it would come at a prohibitive computational cost of , exponential in the sequence length and with an enormous base given by the vocabulary size. For example, when and , both small numbers when compared with ones in real applications, we will need to evaluate sequences, which is already beyond the capabilities of any foreseeable computers. On the other hand, the computational cost of greedy search is : miraculously cheap but far from optimal. For example, when and , we only need to evaluate sequences.
英語のヒント
これは確かに望むものを与えてくれるが、という法外な計算の費用がかかる。これは系列の長さについて指数関数的であり、その底は語彙の大きさで与えられる巨大な数である。たとえば、かつのとき(どちらも実際の応用のものと比べれば小さな数である)、個の系列を評価する必要があり、これはすでに予見できるどんなコンピュータの能力をも超えている。一方、貪欲探索の計算の費用はである。驚くほど安いが、最適からはほど遠い。たとえば、かつのとき、個の系列を評価するだけでよい。