Variability in the chemical composition of the extracellular environment can significantly degrade the ability of cells to detect rare cognate ligands. Using concepts from statistical detection theory, we formalize the generic problem of detection of small concentrations of ligands in a fluctuating background of biochemically similar ligands binding to the same receptors. We discover that in contrast with expectations arising from considerations of signal amplification, inhibitory interactions between receptors can improve detection performance in the presence of substantial environmental variability, providing an adaptive interpretation to the phenomenon of ligand antagonism. Our results suggest that the structure of signaling pathways responsible for chemodetection in fluctuating and heterogeneous environments might be optimized with respect to the statistics and dynamics of environmental composition. The developed formalism stresses the importance of characterizing nonspecific interactions to understand function in signaling pathways.I nformation transmission within biological networks has recently been subject to intense scrutiny. Quantities such as mutual information appear to be biologically relevant and optimized in many contexts (1), such as neural coding (2) and development (3, 4). In these situations, the nature of the signal is unambiguous: only uncertainty in the value of the input limits information content. In other realistic biological problems, the input consists of a complex mixture, with the signal of interest buried in a sea of nonspecific interactions. For instance, multiple different molecules could bind to a cellular receptor, in which case the signaling pathway downstream needs to find a way to discriminate between correct and spurious signals. An example is immune ligand detection: T cells need to detect foreign ligands at the surface of antigen presenting cells (APC) but there are many other nonagonist ligands interacting with receptors in charge of detection (5).The consideration of heterogeneous environments, with multiple ligand types binding to a receptor, corresponds to a departure from past theoretical analyses of bounds on the performance of cellular measurements (6, 7) and requires specific treatment (8). Predefined mixtures of ligands were previously considered in ref. 9 with an emphasis on optimum decision time for given ligand compositions. Here, we use statistical detection theory to formalize the general problem of detection of a chemical signal in a time-varying mixture. We compare the detection performance of optimal proofreading networks of independent receptors to receptors with inhibitory coupling whose strength increases with the input. We find that despite antagonism and signal attenuation, coupled receptors outperform independent receptors in strongly varying environments. Intuitively, a negative feedback growing with the input size damps rare large fluctuations in the spurious ligand concentration, while retaining sensitivity to situations where few correct ligands ...