Small training algorithms