Bench trial
For an accused person to have a bench trial in the federal court system, three things must happen: The accused person must say in writing that they do not want a jury, the government must agree, and the court itself must agree.  The law that says so is rule 23 of the Federal Rules of Criminal Procedure.