We model the olfactory neural circuitry of the honeybee brain Model outputs reproduce peak shift, positive and negative patterning discrimination We identify synapses that can control the generalization-discrimination trade-off Configural coding capacity is dependent on Kenyon cell activation sparseness level