1. A system comprising: a computer-readable memory storing executable instructions; and one or more processors in communication with the computer-readable memory, wherein the one or more processors are programmed by the executable instructions to at least: obtain information regarding a detection cascade configured to detect a keyword in an audio sample, the detection cascade comprising a plurality of stages including a first stage associated with a first model and a second stage associated with a second model; determine a first detection threshold associated with the first stage, wherein a first detection score greater than the first detection threshold indicates that the keyword is present in the audio sample, and wherein the first detection score is computed using the audio sample and the first model; determine a first rejection threshold associated with the first stage, wherein the first detection score less than the first rejection threshold indicates that the keyword is not present in the audio sample; determine a second detection threshold associated with the second stage, wherein a second detection score greater than the second detection threshold indicates that the keyword is present in the audio sample, and wherein the second detection score is computed using the audio sample and second model; determine a second rejection threshold associated with the second stage, wherein the second detection score less than the second rejection threshold indicates that the keyword is not present in the audio sample; obtain, for at least two permutations of the plurality of stages, latency data regarding use of the detection cascade to process the audio sample; and determine a sequence for the plurality of stages based at least on the latency data, wherein the detection cascade returns a detection at any stage of the sequence if a detection score exceeds a corresponding detection threshold.