<figure><img src="image_1.png" /></figure>

HAL
open science

# The Evolution of Endophagy in Herbivorous Insects

John F. Tooker, David Giron

► To cite this version:

John F. Tooker, David Giron. The Evolution of Endophagy in Herbivorous Insects. Frontiers in Plant Science, 2020, 11, pp.581816. 10.3389/fpls.2020.581816. hal-03101309

HAL Id: hal-03101309

https://hal.science/hal-03101309

Submitted on 7 Jan 2021

HAL is a multi-disciplinary open access
archive for the deposit and dissemination of sci-
entific research documents, whether they are pub-
lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d'enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.

<figure><img src="image_2.png" /></figure>

Distributed under a Creative Commons Attribution 4.0 International License
<figure><img src="image_3.png" /></figure>

Check for
updates

# The Evolution of Endophagy in Herbivorous Insects

John F. Tooker¹* and David Giron²

¹Department of Entomology, The Pennsylvania State University, University Park, PA, United States, ²Institut de Recherche sur la Biologie de l'Insecte, UMR 7261, CNRS/Université de Tours, Parc Grandmont, Tours, France

Herbivorous feeding inside plant tissues, or endophagy, is a common lifestyle across Insecta, and occurs in insect taxa that bore, roll, tie, mine, gall, or otherwise modify plant tissues so that the tissues surround the insects while they are feeding. Some researchers have developed hypotheses to explain the adaptive significance of certain endophytic lifestyles (e.g., miners or gallers), but we are unaware of previous efforts to broadly characterize the adaptive significance of endophagy more generally. To fill this knowledge gap, we characterized the limited set of evolutionary selection pressures that could have encouraged phytophagous insects to feed inside plants, and then consider how these factors align with evidence for endophagy in the evolutionary history of orders of herbivorous insects. Reviewing the occurrence of endophytic taxa of various feeding guilds reveals that the pattern of evolution of endophagy varies strongly among insect orders, in some cases being an ancestral trait (e.g., Coleoptera and Lepidoptera) while being more derived in others (e.g., Diptera). Despite the large diversity of endophagous lifestyles and evolutionary trajectories that have led to endophagy in insects, our consideration of selection pressures leads us to hypothesize that nutritionally based factors may have had a stronger influence on evolution of endophagy than other factors, but that competition, water conservation, and natural enemies may have played significant roles in the development of endophagy.

**Keywords:** Coleoptera, Diptera, gall-inducing insect, Hemiptera, Hymenoptera, leaf-mining insect, Lepidoptera, Thysanoptera

## OPEN ACCESS

**Edited by:**

Shinichiro Sawa,
Kumamoto University, Japan

**Reviewed by:**

Seiji Takeda,
Kyoto Prefectural University, Japan
Mayako Kutsukake,
National Institute of Advanced
Industrial Science and Technology
(AIST), Japan

*Correspondence:**

John F. Tooker
tooker@psu.edu

**Specialty section:**

This article was submitted to
Plant Pathogen Interactions,
a section of the journal
Frontiers in Plant Science

**Received:** 09 July 2020

**Accepted:** 08 October 2020

**Published:** 02 November 2020

**Citation:**

Tooker JF and Giron D (2020) *The Evolution of Endophagy in Herbivorous Insects*. Front. Plant Sci. 11:581816.
doi: 10.3389/fpls.2020.581816

## INTRODUCTION

Among insects, feeding within plant tissue, or endophagy, has evolved numerous times and is one of the major feeding strategies for herbivorous insects. Guilds of endophytic feeders include borers, miners, and gall inducers and inquilines, but allied taxa, such as leaf tiers and leaf rollers, also tend to be included in the guild because they all have concealed feeding habits associated with plants. Endophytic associations of insects and their host plants can be millions of years old and are evident in the fossil record. For example, wood boring, leaf mining and insect galls have all been recorded from Carboniferous deposits and may have even evolved earlier (~300 million years ago; Chaloner et al., 1991; Labandeira and Phillips, 1996; Feng et al., 2017). Additionally, there are even some extant endophytic taxa evident in fossils, with good examples provided by the lepidopterans *Ectodemia* and *Stigmella*, and the aphid *Melaphis rhois*, suggesting that the interactions of these taxa with their host plants are 97- and 48-million years old, respectively (Moran, 1989; Labandeira et al., 1994).
In some taxa, feeding within plant tissue appears to have been an ancestral state, whereas in others endophagy appears to be derived. In still others, specialized endophagy has developed even further, into an extremely sophisticated form of feeding, occasionally involving mutualistic symbionts. For example, galls and mines represent extended phenotypes of the insect species that induce or form them; these structures result from complex interactions among genomes of the host plant, insect, and, sometimes, their symbionts (Giron et al., 2016).

Despite the ubiquity of endophagy within Insecta, we are unaware of any previous effort in the ecological or systematics literature to broadly delimit the guild across taxa and characterize the limited set of selective forces that could have facilitated evolution and diversification of endophytic feeding habits. Certainly some publications have address a single taxon (e.g., flies; Labandeira, 2005) or characterized the adaptive significance of a particular form of endophagy (e.g., leaf mining and gall inducing; Price et al., 1987; Connor and Taverner, 1997; Stone and Schönrogge, 2003), but these publications did not generally consider endophagy beyond these specific guilds, nor did they consider the evolution of endophagy in a comparative framework.

From just reading classical literature that often forms the basis of ecological courses, one could easily get the impression that most taxa have followed a simple progression as typified by some model systems, from exposed leaf feeding to endophagy to more specialized forms of endophagy like mining and/or galling (Price et al., 1987; Price, 1992; Nyman et al., 1998, 2000). However, the systematics literature, which is often not closely tracked by ecologists, reveals that evolution of endophagy varies greatly by taxa, so a diversity of selection pressures must have been involved in its evolution and diversification. Highlighting the presumed evolutionary sequence leading to endophagy in each insect order can provide insights on selection pressures that could have played a role on its evolution. And comparing evolutionary pathways in these various endophagous feeding guilds can provide evidence about which of these selective forces may have played major evolutionary roles, allowing us to formulate hypotheses that could be tested with quantitative methods.

Our goal in this paper is to consider via existing literature the selection pressures that could have played a role in evolution and diversification of endophagy within Insecta. We will begin by defining endophagy and generally describing its occurrence across Insecta. We then will discuss the selection pressures that could have encouraged various groups of insects to develop a concealed feeding habit and subsequently diversify. The six selection pressures we selected are drawn from previous literature with herbivorous insects generally (Strong et al., 1984) and gall insects and leaf miners, more specifically (Price et al., 1987; Connor and Taverner, 1997). They have support from particular taxa, but have not been discussed previously in terms of general endophagy. By considering endophagy generally, we aim to stimulate hypotheses that can be tested in specific groups or through comparative studies that seek to clarify selection pressures associated with the adaptive significance of various forms of endophagy. In considering evolutionary selection pressures that could have facilitated endophagy, we do

not address neutral evolutionary processes (e.g., genetic drift), which can influence patterns of evolution in some insect taxa but would require a quantitative analysis of taxa and their feeding styles (Peterson et al., 2016), which is beyond the scope this paper. We also do not aim to comment on the latest developments from a molecular perspective concerning the evolution of herbivory and feeding specialization (Groen and Whiteman, 2016). Rather, we use published phylogenies to illustrate the diversity of patterns of endophagy among insect orders and how they can diverge from the simplistic views held by ecologists. After considering the possible selection pressures, we will broadly characterize occurrence of endophagy across orders of herbivorous insects and discuss which selection pressures could have been active for these taxa. We finish by considering which selection pressures may have been most relevant for evolution of the endophytic habitat generally.

## ENDOPHAGY

The definition of “endophagy” or “endophytic feeding” that we will use in this paper is “insect feeding on plant or fungal tissues that occurs within tissue of a living plant, whether the specific plant tissue is live or dead.” This definition allows us to include insects that feed upon non-living portions of living plants, such as bark, heartwood, and pith, but excludes insects that mostly feed upon dead or decaying plants (i.e., decomposers or detritivores, like termites; Weesner, 1960) or those that live inside plants but do not eat them (e.g., Edwards et al., 2009). Consistent with previous assessments (Labandeira, 2005), we also include seed feeders (i.e., seed predators) whose endophytic larvae consume seeds prior to seed dispersal (Janzen, 1971). The definition is not perfect because some taxa, particularly in Coleoptera (e.g., Cerambycidae), contain species that feed in live plants while others that feed in dead plants. In cases like this where the taxon falls into some gray area near our definition, we try to include them to provide appropriate context and acknowledge that biological continuums can be difficult to divide into perfect bins. Lastly, to be considered an endophagous feeder, a taxon needs just one life stage to feed endophagously. Most commonly, larvae or nymphs are the concealed feeders but adults of some taxa are also endophytic (e.g., bark beetles [Curculionidae: Scolytinae], or aphids [Aphididae] or thrips [Thysanoptera] that develop in galls). We are not aware of any taxa in which immature stages are not endophytic but adults are.

We avoid the term “endophytophagy” because others have accepted the term “phytophagy” to mean “feeding on living tissue of higher plants” (“higher plants” being a synonym for “vascular plants”; Strong et al., 1984; Mitter et al., 1988) and we want to include in our discussion insects that have found a way to live in and feed upon any plant or fungal tissue of a live plant. By focusing on plant or fungal feeding, our definition includes mutualisms between insects and fungi (e.g., ambrosia galls) in which the insect indirectly feeds upon plants by eating fungi, which consume the plant; these often-symbiotic fungi have facilitated endophytic lifestyles for some taxa (e.g., Hymenoptera, Coleoptera, Diptera; Bissett and Borkent, 1988; Hanson, 1995;
Farrell, 1998; Heath and Stireman, 2010). Our definition excludes predation or parasitoidism, animal-animal interactions which can occur within plant tissue but are obviously not plant feeding.

This definition will permit us to consider a full range of herbivorous insects with concealed lifestyles, including borers, miners, gall inducers, inquilines, and leaf rollers, tiers, and webbers. Borers and miners are similar and appear to be informally distinguished from one another based on their depth away from plant surfaces or tissue layers, with miners being close to the surface and borers being deeper. More formally, mines have been defined as "feeding channels caused by insect larvae inside the parenchyma or epidermis of plants, in which its outer wall remains undamaged, thus shutting off the mine activity from outside" (Hering, 1951). Mining can occur in bark, cambium, flowers, fruits, leaves, and stems (Powell et al., 1998), and comes in different shapes and sizes (e.g., linear, digitate, blotch or tentiform mines, among others) that tend to be species specific (Eiseman, 2020). Borers (sometimes known as tunnelers) can feed upon tissues of live trees, such as cambium, pith or wood in trunks, branches, shoots, stems, and roots, but borers can also attack flowers, fruits, and seeds (Solomon, 1995; Powell et al., 1998). Broadly speaking, gall inducers can also attack a range of plant tissues, but as a group they typically oviposit into, or feed upon, meristematically active tissues to force production of their galls (Raman et al., 2005). Some gall insects can even induce meristematically active tissues (Ananthakrishnan, 1992), which is an impressive accomplishment without an obvious mechanism. At the species level, many endophytic insects, particularly gallers and leaf miners, are monophagous and attack specific plant tissues at a specific plant-developmental stages (Connor and Taverner, 1997; Raman et al., 2005; Giron et al., 2016). Though they may appear outwardly similar, leaf-roller species take one of two approaches to hide: those that use silk to roll the leaf and others that induce tissue proliferation ("roll galls") by feeding upon one side of the leaf, leading to rolling (Dreger-Jauffret and Shorthouse, 1992).

Endophytic insects are concentrated in six of the largest orders of Insecta: Thysanoptera, Hemiptera, Hymenoptera, Coleoptera, Lepidoptera, and Diptera (Table 1). Of all phytophagous orders, Orthoptera and Phasmatodea do not appear to have any endophagous taxa. We will briefly address in phylogenetic order the occurrence of endophagy in these large orders (Grimaldi and Engel, 2005; Peters et al., 2014), and later we will return to these taxa to consider specific selection pressures that likely influenced evolution of endophagy in these groups of animals. The routes to endophagy for some orders are similar, but others took different paths (Figure 1).

The hemipteroid orders Thysanoptera and Hemiptera have evolved limited forms of endophagy. For both groups, plant-fluid feeding was a key innovation that appears to contributed to their success (Johnson et al., 2018), but this mode of feeding must have limited their ability to evolve different modes of endophagy—sucking mouthparts facilitate injection of effectors stimulating the proliferation of new plant tissues around the insect but may also restrict their ability to enter plant tissue. As a result, the only recorded endophytic species in these orders feed between attached leaves, induce galls, or are inquilines that exploit these

<table><caption>TABLE 1 | Taxa of plant-feeding insects that include significant endophagous species.</caption><thead><tr><th>Order</th><th>Percent herbivorous spp.</th><th>Types of endophytic feeders</th><th>Notable taxa with significant endophytic species</th></tr></thead><tbody><tr><td>Thysanoptera</td><td>68</td><td>Gall inducers<br>Gall inquilines</td><td>Phlaeothripidae<sup>G</sup></td></tr><tr><td>Hemiptera</td><td>78</td><td>Gall inducers<br>Gall inquilines</td><td>Aphidoidea<br>Aphididae<sup>G</sup><br>Coccoidea<br>Asterolecanidae<sup>G</sup><br>Beesoniidae<sup>G</sup><br>Eriococcidae<sup>G</sup><br>Phylloxeroidea<br>Phylloxeridae<sup>G</sup><br>Adelgidae<sup>G</sup><br>Psylloidea<br>Calophyidae<sup>G</sup><br>Phacopteronidae<sup>G</sup><br>Psyllidae<sup>G</sup><br>Tingoidea<br>Tingidae<sup>G</sup></td></tr><tr><td>Hymenoptera</td><td>7</td><td>Borers<br>Leaf folders<br>Leaf rollers<br>Leaf miners<br>Gall inducers<br>Gall inquilines</td><td><strong>Symphyta</strong><br>Pamphilioida<br>Pamphiliidae<br>Tenthredinoidea<br>Tenthridinidae<sup>G</sup><br>Siricoidea<br>Siricidae<br>Cephoidea<br>Cephidae</td></tr><tr><td>Coleoptera</td><td>26</td><td>Borers<br>Miners<br>Gall inducers<br>Gall inquilines</td><td><strong>Apocrita</strong><br>Ichneumonoidea<br>Braconidae<sup>G</sup><br>Chalcidoidea<br>Agaonidae<sup>G</sup><br>Eulophidae<sup>G</sup><br>Eurytomidae<sup>G</sup><br>Pteromalidae<sup>G</sup><br>Tanaostigmatidae<sup>G</sup><br>Torymidae<sup>G</sup><br>Cynipoidea<br>Cynipidae<sup>G</sup><br>Buprestoidea<br>Buprestidae<sup>L,G</sup><br>Elateroidea<br>Elateridae<br>Lycidae<br>Bostrichoidea<br>Bostrichidae<br>Anobiidae<br>Tenebrionoidea<br>Mordellidae<br>Tenebrionidae</td></tr></tbody></table>

(Continued)
<table><caption>**TABLE 1 | Continued**</caption><thead><tr><th>Order</th><th>Percent herbivorous spp.</th><th>Types of endophytic feeders</th><th>Notable taxa with significant endophytic species</th></tr></thead><tbody><tr><td rowspan="20">Lepidoptera</td><td rowspan="19">100</td><td>Borers</td><td>Chrysomeloidea</td></tr><tr><td>Leaf folders</td><td>Cerambyciidae<sup>G</sup></td></tr><tr><td>Leaf rollers</td><td>Chrysomelidae<sup>G,L</sup></td></tr><tr><td>Leaf tiers</td><td>Curculionoidea</td></tr><tr><td>Leaf miners</td><td>Anthribidae</td></tr><tr><td>Gall inducers</td><td>Attelabidae<sup>L</sup></td></tr><tr><td>Gall inquilines</td><td>Brentidae<sup>G</sup></td></tr><tr><td>Leaf mine-gallers</td><td>Curculionidae<sup>G</sup></td></tr><tr><td rowspan="11">Leaf Mine-rollers</td><td>Nepticuloidea</td></tr><tr><td>Nepticulidae<sup>G,L</sup></td></tr><tr><td>Gracillarioidea</td></tr><tr><td>Gracillariidae<sup>G,L</sup></td></tr><tr><td>Yponomeutoidea</td></tr><tr><td>Glyphipterigidae<sup>G,L</sup></td></tr><tr><td>Gelechioidea</td></tr><tr><td>Cosmopterigidae<sup>G,L</sup></td></tr><tr><td>Depressariidae</td></tr><tr><td>Elachistidae<sup>G,L</sup></td></tr><tr><td>Gelechiidae<sup>G,L</sup></td></tr><tr><td>Sesioidea</td></tr><tr><td>Sesiidae<sup>G</sup></td></tr><tr><td rowspan="10">Diptera</td><td rowspan="10">28</td><td>Borers</td><td>Tortricoidea</td></tr><tr><td>Leaf miners</td><td>Tortricidae<sup>G</sup></td></tr><tr><td>Gall inducers</td><td>Pterophoroidea</td></tr><tr><td rowspan="7">Gall inquilines</td><td>Pterophoridae<sup>G,L</sup></td></tr><tr><td>Pyraloidea</td></tr><tr><td>Crambidae<sup>G</sup></td></tr><tr><td>Pyralidae</td></tr><tr><td>Thyridoidea</td></tr><tr><td>Thyrididae<sup>G</sup></td></tr><tr><td>Noctuoidea</td></tr><tr><td>Noctuidae</td></tr><tr><td>Nematocera</td><td>Sciaroidea</td></tr><tr><td>Leaf miners</td><td>Sciaridae<sup>L</sup></td></tr><tr><td>Gall inducers</td><td>Cecidomyiidae<sup>G,L</sup></td></tr><tr><td rowspan="5">Gall inquilines</td><td>Chironomoidea</td></tr><tr><td>Chironomidae<sup>L</sup></td></tr><tr><td>Ceratopogonidae<sup>L</sup></td></tr><tr><td>Brachycera</td></tr><tr><td>Stratiomyoidea</td></tr><tr><td>Pantophthalmidae</td></tr><tr><td>Xylomyidae</td><td>Asiloidea</td></tr><tr><td>Asilidae</td><td>Empidoidea</td></tr><tr><td>Dolichopodidae<sup>L</sup></td><td>Dolichopodidae<sup>L</sup></td></tr><tr><td>Platypezoidea</td><td></td></tr></tbody></table>

(Continued)

<table><caption>**TABLE 1 | Continued**</caption><thead><tr><th>Order</th><th>Percent herbivorous spp.</th><th>Types of endophytic feeders</th><th>Notable taxa with significant endophytic species</th></tr></thead><tbody><tr><td rowspan="10">Schizophora- Calyptratae</td><td>Phoridae<sup>L</sup></td><td></td><td>Phoridae<sup>L</sup></td></tr><tr><td>Syrphoidea</td><td></td><td>Syrphoidea</td></tr><tr><td>Syrphidae<sup>L</sup></td><td></td><td>Syrphidae<sup>L</sup></td></tr><tr><td>Diopsoidea</td><td></td><td>Diopsoidea</td></tr><tr><td>Psiliidae<sup>L</sup></td><td></td><td>Psiliidae<sup>L</sup></td></tr><tr><td>Tephritoidea</td><td></td><td>Tephritoidea</td></tr><tr><td>Lonchaeidae<sup>G</sup></td><td></td><td>Lonchaeidae<sup>G</sup></td></tr><tr><td>Tephritidae<sup>G,L</sup></td><td></td><td>Tephritidae<sup>G,L</sup></td></tr><tr><td>Opomyzoidea</td><td></td><td>Opomyzoidea</td></tr><tr><td>Agromyzidae<sup>G,L</sup></td><td></td><td>Agromyzidae<sup>G,L</sup></td></tr><tr><td>Fergusoninidae<sup>G</sup></td><td></td><td>Fergusoninidae<sup>G</sup></td></tr><tr><td>Lauxanioida</td><td></td><td>Lauxanioida</td></tr><tr><td>Lauxaniidae<sup>G,L</sup></td><td></td><td>Lauxaniidae<sup>G,L</sup></td></tr><tr><td>Ephydroidea</td><td></td><td>Ephydroidea</td></tr><tr><td>Drosophilidae<sup>L</sup></td><td></td><td>Drosophilidae<sup>L</sup></td></tr><tr><td>Ephydridae<sup>L</sup></td><td></td><td>Ephydridae<sup>L</sup></td></tr><tr><td>Chloropidae<sup>G,L</sup></td><td></td><td>Chloropidae<sup>G,L</sup></td></tr><tr><td>Muscoidea</td><td></td><td>Muscoidea</td></tr><tr><td>Anthonyiidae<sup>G,L</sup></td><td></td><td>Anthonyiidae<sup>G,L</sup></td></tr><tr><td>Scathophagidae<sup>L</sup></td><td></td><td>Scathophagidae<sup>L</sup></td></tr></tbody></table>

In most taxa, nymphs or larvae are the endophytic life stage. Orders with fewer endophytic taxa have most of their endophytic families listed, whereas space limitations prevents listing of all endophytic families. Endophytic designations based on various edited volumes (McAlpine et al., 1981, 1987; Solomon, 1995; Powell et al., 1998; Amett and Thomas, 2000; Amett et al., 2002; Labandeira, 2005; Raman et al., 2005). Groups marked with a superscript G or L include gall-inducing or leaf-mining species. Percent herbivorous species is taken from Wiens et al. (2015).

feeding sites (Table 2; Ananthakrishnan, 1992; Burckhardt, 2005; Gullan et al., 2005; Mound and Morris, 2005). Members of these two orders, of course, have incomplete metamorphosis; therefore, immature stages have the same form of feeding as adults. Compared to holometabolous taxa, in which larvae and adults have often evolved different forms of feeding, hemimetabolous metamorphosis may have in part constrained the forms of endophytic feeding that could have evolved in these two orders.

In contrast to hemimetabolous groups, holometabolous groups have benefited from the diets and feeding styles that can evolve differently in larvae and adults. Indeed, endophagy among holometabolous groups occurs mainly in larval stages, and evolution of complete metamorphosis may be tied to concealed feeding niches (Grimaldi and Engel, 2005). Current evidence suggests that holometabolous insects may have evolved from an ancestor with an orthognathous head and chewing mouthparts that fed externally on plants or fungi (Peters et al., 2014). Moreover, the common ancestor of Coleoptera, Lepidoptera, and Diptera (among other taxa in
<figure><img src="image_4.png" /><figcaption>**FIGURE 1** | The ancestral feeding modes of six herbivorous insect orders and how they led to endophagy.</figcaption></figure>

<table><caption>**TABLE 2** | Endophagous feeding modes that evolved in each herbivorous order.</caption><thead><tr><th rowspan="2">Taxa</th><th colspan="6">Derived feeding modes</th></tr><tr><th>Lfid</th><th>Lfrl</th><th>Lfmn</th><th>Bori</th><th>Gall</th><th>Inqu</th></tr></thead><tbody><tr><td>Thysanoptera</td><td></td><td></td><td></td><td></td><td>●</td><td>●</td></tr><tr><td>Hemiptera</td><td>●</td><td>●</td><td>●</td><td>●</td><td>●</td><td>●</td></tr><tr><td>Hymenoptera<br>Eusymphyta</td><td></td><td></td><td>●</td><td>●</td><td>●</td><td>●</td></tr><tr><td>Hymenoptera<br>Apocrita</td><td></td><td></td><td>●</td><td>●</td><td>●</td><td>●</td></tr><tr><td>Coleoptera</td><td>●</td><td>●</td><td>●</td><td>●</td><td>●</td><td>●</td></tr><tr><td>Lepidoptera</td><td></td><td></td><td>●</td><td>●</td><td>●</td><td>●</td></tr><tr><td>Diptera</td><td></td><td></td><td>●</td><td>●</td><td>●</td><td>●</td></tr></tbody></table>

Abbreviations for derived feeding mode are: Lfid, leaf folding; Lfrl, leaf rolling; Lfmn, leaf mining; Bori, boring; Gall, galling; Inqu, inquilines.

Aparaglossata) may have had prognathous heads, which would have facilitated burrowing into substrates (Peters et al., 2014). Chewing mouthparts on orthognathus or prognathous heads may have been key innovations in the evolution of endophagy in Hymenoptera, Coleoptera, Lepidoptera and Diptera, allowing them to chew into plant tissue and evolve a diversity of endophytic feeding modes (Labandeira, 1997). Generally, it seems that evolution of mouthparts is key in evolution of feeding habits, allowing transitions from ecto- to endophagy but also the diversification of endophagous feeding modes (Body et al., 2015; Guiguet et al., 2019).

Endophagy of Hymenoptera and Coleoptera may have been initially facilitated by fungi (Sharkey, 2007; Massini et al., 2012), but endophytic feeding in both groups extends well beyond fungus feeding and they contain wide varieties of endophytic feeders (Table 2). The evolutionary trajectory of two major clades of Hymenoptera, Eusymphyta and Apocrita, has resulted in different diversities of endophytic species in the two groups

(Table 2). Coleoptera has a limited range of endophytic taxa compared to Hymenoptera and Lepidoptera, but the abundance of endophagy in Coleoptera is remarkable; larvae of particularly speciose taxa, like Curculionidae and Cerambycidae, are almost exclusively endophytic (Turnbow and Thomas, 2002; Oberprieler et al., 2007). Lepidoptera appears to host the most diverse array of endophytic habits, in part because endophagy developed early in the evolution of the group (Powell et al., 1998). Diptera has evolved a diversity of endophytic habits, and endophagy is particularly important for flies because it is practically the only form of herbivory within the group (Labandeira, 2005).

## SELECTION PRESSURES LEADING TO EVOLUTION OF ENDOPHYTIC FEEDING

Most evidence suggests that endophagy has evolved repeatedly in most of the dominant orders of herbivorous insects (see below for details). In some orders (Hemiptera, Thysanoptera), diversification of endophagy has been limited to few modes of feeding and relatively few families contain endophagous members, while in others (Lepidoptera, Coleoptera, Diptera, and Hymenoptera) modes of endophagy are more diverse and there appear to be more abundant taxa that have evolved endophagy (Table 1). Obviously, endophagy can be a successful method of feeding on plants even if in some respects it can constrain diversification (Powell et al., 1998). The question we want to address is “why did it evolve so frequently?” In other words, what are the advantages of endophagy, and what active selection pressures could have facilitated its evolution?

Over evolutionary time, insect herbivores have had to overcome several challenges to use plants as food sources. Four primary challenges that have been proposed are attachment (i.e., remaining on plants), desiccation, nourishment, and plant defenses (Strong et al., 1984), all of which could have been selection pressures that encouraged the evolution of endophagy. To this list of challenges that needed to be overcome for herbivores to be successful, we add two more, natural enemies
and competition (Price et al., 1987; Denno et al., 1995); therefore, we will consider a total of six challenges that may have played a role in encouraging insects to feed within plant tissue. Three of these factors (desiccation, nutrition, and natural enemies) have previously been identified as selection pressures that likely contributed to the evolution of galling and leaf mining; these three factors have been formulated into hypotheses known as the microenvironment, nutrition, and natural enemy hypotheses (or something similar; Price et al., 1987; Connor and Taverner, 1997; Stone and Schönrogge, 2003). In addition to being involved in evolution of gall induction and leaf miners, these three selection pressures are also relevant to the broader topic of the evolution of endophagy. We will relate each of these six factors to endophagy, and consider how endophytic feeding may have mitigated some of the challenges of herbivory. Of these factors, we first address attachment, desiccation and natural enemies, all of which deal with mortality external to plants. Next, we address nourishment and plant defenses together because these two intertwined issues relate to food intake. Lastly, we address competition, which appears to have been largely overlooked as a potential factor that could have facilitated endophagy or its diversification.

## Attachment

Staying attached to their host plants is a challenge faced by external-feeding herbivores. Plants surfaces can be hairy, spiny, or waxy, making it difficult for herbivores to keep hold of plants. Insects, however, have evolved various adaptations for grasping plants, including abdominal prolegs, crochets, empodia, and various setae (Strong et al., 1984). In contrast, many endophytic insects, particularly borers and gall inducers, face minimal challenges of attachment because the parts of the plants that they attack (e.g., roots, stems, and branches) are usually well integrated into the plant. Moreover, even eggs and immature insects of many endophytic taxa face little risk of falling off the plant because their mothers insert eggs into plant tissue, then upon hatching the insects begin feeding endophytically, with little or no exposure to the external environment (e.g., Whiteman et al., 2011). We do not mean to imply that boring into plants is easier than holding on to the outside of them, but key morphological adaptations and specific traits (e.g., chewing mouthparts, plant-penetrating ovipositor) could have facilitated evolution and diversification of endophagy (Body et al., 2015; Pelaez et al., 2020), decreasing the challenge of attachment.

As evidence that selection pressures can encourage some insects to remain attached to plants, consider leaf miners and leaf gallers. These guilds of insects face the risk of abscission should their host shed leaves prematurely (Williams and Whitham, 1986; Stiling and Simberloff, 1989; Connor and Taverner, 1997). To counteract this risk, some leaf miners have evolved an ability to prevent leaf abscission by modulating phytohormone levels (Zhang et al., 2016), while others can maintain the photosynthetic activity of their host leaves, which could mitigate some effects of premature leaf drop (Giron et al., 2007; Kaiser et al., 2010).

## Desiccation/Microenvironment

Desiccation is a general concern for insects, but it is particularly relevant for species that feed externally on plants because they

are exposed to wind and solar radiation, which can dry them out quickly. To combat desiccation, insect species have evolved methods to counteract or minimize water loss, including actively drinking water or positioning themselves on parts of plants with the highest humidity (Strong et al., 1984). Other insect taxa have evolved tactics that modify their immediate surroundings by folding or rolling leaves, living within plant tissue (i.e., mining or boring) or creating new tissues to live in (i.e., galling; Strong et al., 1984), but the role of desiccation prevention in evolution of these endophagous traits is not clear. Nevertheless, endophytic insects and their eggs, which are often embedded in plant tissues, are likely to benefit from being encased in water-filled plant tissue that likely protects them from the drying effects of sun and wind. Being surrounded by water-filled tissue would be particularly important for small, immature stages, which are most vulnerable to water loss (Strong et al., 1984). Moreover, endophagous larvae can benefit physiologically from associating with water-rich tissues, which can simultaneously increase O₂ and decrease CO₂ concentrations near larvae, preventing risks of hypoxia or hypercarbia (Pincebourde and Casas, 2016). As mentioned elsewhere in this paper, herbivory in Diptera has evolved almost exclusively in moist, endophytic situations (Dempewolf, 2005), with its taxa likely thriving due to their intimate association with moist tissues or habitats.

The importance of internal feeding for tolerance of desiccation is supported by patterns of galling that show that there are more galls in hotter and drier parts of the world (Price et al., 1987; Fernandes and Price, 1988; Ananthakrishnan, 1992). Gall diversity is also found to be higher in hotter and/or drier environments, like deserts or the upper canopy of Amazonian forests, where leaf temperatures can reach lethal limits (Price et al., 1998; Julião et al., 2014). Similar surveys seem to be lacking for most other endophytic taxa. For leaf miners, some studies have found no association between abundance of leaf-miner species and rainfall, whereas others have found more leaf miners in xeric sites (Sinclair and Hughes, 2010). Experimental evidence, however, indicates that temperatures inside mines are up to 8°C cooler than those on the exposed leaf surface, and can differ from atmospheric temperature by up to 13°C (Pincebourde and Casas, 2006; Pincebourde et al., 2007). Such data suggest that insects in mines would experience lower temperatures, which should relate to lower rates of water loss, but other advantages related to mines preventing desiccation have not emerged (Connor and Taverner, 1997).

## Natural Enemies

Feeding inside plant tissues appears to provide some protection from natural enemies simply because, compared to ectophytic species, endophytic insects appear harder to find and access. From an evolutionary perspective, the first insects that found their ways inside plant tissues likely had selective advantages within populations if they suffered less mortality from predators, parasitoids, and pathogens, possibly facilitating evolution of endophagy. Natural enemies have previously been hypothesized as factors that may have selected for endophytic lifestyles (e.g., leaf mining and galling; Price et al., 1987; Connor and Taverner, 1997; Stone and Schönrogge, 2003). While support for these
hypotheses has not been uniform across taxa, endophytic life
styles generally appear to be less susceptible to natural-enemy-
induced mortality (Cornell and Hawkins, 1995). Analyses of life
tables have revealed that some endophytic life stages or groups of
insects tend to be attacked less by natural enemies than external
feeding species (Cornell and Hawkins, 1995). In particular, eggs
of endophytic insects, which tend to be inserted into plant
tissues, are killed significantly less often by predators than eggs
of ectophytic insect taxa, which tend to be deposited on plant
surfaces (Hawkins et al., 1997). (The lower egg mortality rates
of endophytic insects may also arise because internal-feeding
species tend to lay small and inconspicuous eggs while external
feeders often lay eggs in clusters; Connor and Taverner, 1997).
Similarly, borers, root feeders, and gallers generally appear to
suffer significantly less mortality from predators and pathogens
than exophytic species, while also gaining some protection from
parasitoids by being hidden inside tissue (Hawkins et al., 1997;
see below for exceptions associated with parasitoids). Moreover,
at least one group of gall inducers shows strong support for
the benefit of endophagy for protection against natural enemies.
The mean number of parasitoids attacking nematine sawflies
decreased steadily from those that attack external feeders to
leaf gallers and finally to shoot gallers, suggesting that more
concealed insects suffer less mortality (Price and Pschorn-
Walcher, 1988). Compared to external feeders, leaf miners also
appear to gain some protection from feeding within plant tissue
because they appear to suffer very little mortality from pathogens
and significantly less mortality from predators, likely because
miners are not usually exposed to the external environment
(Connor and Taverner, 1997; Hawkins et al., 1997).

Generally concealed feeders gain protection from natural
enemies, but notable exceptions emerge when considering
mortality from hymenopteran parasitoids, which tend to have
specialized ovipositors that can reach hosts hidden in plant
tissues. Compared to leaf rollers, borers, and root feeders,
leaf-mining larvae suffer significantly higher mortality from
parasitoids (Connor and Taverner, 1997; Hawkins et al.,
1997). Moreover, classical biological control programs have
been successful against exotic leaf-mining species, indicating
parasitoids can severely limit leaf-miner success (Sinclair and
Hughes, 2010). Similar to leaf miners, some gall-insect taxa tend
to suffer similar mortality from parasitoids as exposed-feeding
taxa (Hawkins et al., 1997; Stone and Schönrogge, 2003). This
higher mortality of miners and gallers may be driven in part
by visual cues associated with most leaf mines and galls, which
tend to be obvious (at least to some visual systems), perhaps
facilitating their location by parasitoids. Moreover, parasitoids
can generally learn to associate rewards with shapes (Wäckers
and Lewis, 1999) and some parasitoid species preferentially
land on mined leaves (Godfray, 1994). Parasitoids, of course,
can also use vibratory and chemical cues to find their hosts.
In some endophytic systems, these types of cues can attract
parasitoid wasps or help parasitoids localize the host in its hidden
microhabitat (Djemai et al., 2001, 2004; Tooker and Hanks, 2006),
but in other systems such cues may not be available (Tooker
and De Moraes, 2007; Tooker et al., 2008; Hall et al., 2017).
Therefore, it may be that cues associated with other endophytic

guidls are more challenging for parasitoids to exploit than cues
from mines and galls.

Nourishment and Plant Defenses

Endophagous organisms are peculiar for several reasons. First,
most display high levels of fidelity to specific organs of particular
host-plant species, although a few appear to have some flexibility
across related plant species (Hering, 1951; Raman et al., 2005).
This evolved selectivity may have allowed insects to consume
the optimal food from among the available plant species in their
environment. Feeding inside plant tissues also appears to provide
some nutritional advantages simply because endophytic insects
can avoid highly defended, outer layers of plant tissue and access
nutritionally rich inner plant tissues. Many endophagous insects
only consume certain tissues or cell types and reject others.
This provides them with the unique scenario of consuming
high-quality tissues in an otherwise low-quality plant or plant
organ, thus aligning their nutritional intakes with their energetic
requirements. Specifically, endophagous insects tend to avoid, or
encounter lower amounts of, chemical and/or structural plant
defenses that tend to concentrate in the cuticle and epidermis
(Cornell, 1989). Many leaf-mining species, for example, consume
nutrient-rich, internal mesophyll cells and do not eat epidermis
and/or vascular tissues (Hering, 1951; Kimmerer and Potter,
1987; Body et al., 2015). Avoiding plant defenses and feeding
on the most nutritious layers led to higher feeding efficiencies
and higher performance of internal feeders compared to external
feeders (Connor and Taverner, 1997; Giron et al., 2016).

Second, some endophagous larvae have also evolved
specific morphological adaptations to cope with their confined
nutritional niche and optimize their nutrition (Body et al.,
2015). Hypermetamorphosis has been described in several
lepidopteran leaf-miner species (e.g., Gracillariidae) and can
be defined as a strong modification of larval morphology from
one instar to the next associated with changes in feeding mode
(Snodgrass, 1935). Evolution of this feeding strategy allows larvae
to exploit over time different nutritional resources; therefore,
early and late larval instars can occupy different feeding niches,
providing superior nutrition by partitioning limited feeding
resources within a confined nutritional space. Morphological
adaptations, along with behavioral strategies, associated with
hypermetamorphosis may also allow endophagous insects to
avoid triggering plant defenses. Precise larval feeding may
circumvent plant defenses that a clumsier feeding style might
induce. For example, inconspicuous feeding targeting one or a
few cell types (Djemai et al., 2001) may induce limited and/or
transient plant defensive responses that have limited effects on
herbivores, but this hypothesis still needs to be explicitly tested.

Beyond feeding styles, long-lasting interactions and intimate
associations associated with endophagy are likely to have
facilitated biochemical and hormonal crosstalk between internal-
feeding insects and plants, setting the groundwork for host-
plant manipulation by insects. Plant manipulation appears to
provide an nutritional advantage because plant-manipulating
insects are somehow able to concentrate nutrients and lower
plant defenses in their food source, leading to higher insect
performance and supporting the nutrition hypothesis for the
adaptive nature of galls (Diamond et al., 2008; Stuart et al., 2012). Moreover, the manipulative ability of some endophagous insects may have facilitated various adaptive radiations of endophagy. By working from within plant tissue, some endophagous insects, particularly gall inducers and some leaf miners, are able to somehow 'reprogram' expression of the plant genome to force production of specialized nutritional resources that benefit the insect at the expense of plant growth and reproduction (Mothes and Engelbrecht, 1961; Giron et al., 2007; Diamond et al., 2008; Saltzmann et al., 2008; Kaiser et al., 2010; Giron et al., 2016). In fact, recent evidence suggests that gall-inducing species might be able to accomplish this reprogramming by synthesizing plant hormones, which alter host-plant physiology, including gene expression and host-plant defenses (Tooker and De Moraes, 2011a,b; Yamaguchi et al., 2012; Giron et al., 2016; Cambier et al., 2019). Conceivably, such manipulative traits may have played a role in adaptive radiations.

Notably, plant manipulation is not only restricted to gall inducers and leaf miners, as commonly assumed, but is shared by other endophagous insects (Stone and Schönrogge, 2003; Gutzwiller et al., 2015; Giron et al., 2016), and perhaps even ectophagous species (Andreas et al., 2020). Because endophagous insects secure their nutrition (and shelter) via their feeding habit, they also must evolve feeding strategies allowing them to meet their energetic and nutrient requirements, face variation in food and nutrient composition, and counteract plant defensive mechanisms. For example, larvae of European corn borer, *Ostrinia nubilalis*, can promote significant protein accumulation and elevated sugar and fatty-acid levels at their feeding site most likely due to effectors secreted by larvae (Dafoe et al., 2013). Contrary to gall-specific nutritive tissues where plant defenses are lowered (Stone and Schönrogge, 2003), stem borers appear to trigger plant-defense responses. However, increased levels of nutrients can override negative effects of plant chemical defenses (Dafoe et al., 2013) or larvae can potentially evolve effective tolerance or detoxification mechanisms against plant-produced defensive compounds. The intimate association between *O. nubilalis* and its host plant, including its nutritional limitations, may have selected for individuals that could alter nutritional resources while circumventing plant defenses.

These cases of endophytic species altering nutritional quality and/or defenses of host plants provide evidence that some insect species have evolved to exploit host-plant species for the nutrition that individuals need even if plants do not typical provide it, or enough of it. Should such an innovation arise, it is easy to imagine that selection would favor the trait, allowing it to spread across populations and perhaps lineages. Plant manipulation for nutritional purposes may thus have played a role in the evolution and diversification of endophagy.

## Competition

Competition is a key force that structures plant and animal communities; those individuals that gain competitive advantages for access to resources should succeed and reproduce. Despite some older ecological theory to the contrary (Hairston et al., 1960), competition is common among phytophagous insect species, including some endophytic species (Denno et al., 1995;

Kaplan and Denno, 2007). However, little attention has focused on the potential role of competition for selecting for lineages to evolve internal feeding.

At first glance, one may not expect competition to influence internal feeders any differently than other sorts of herbivorous arthropods, but endophytic species, which are somewhat sessile, may be expected to compete even more strongly for their restricted resource than ectophytic species, which can often move to other food sources if they encounter competition (Denno et al., 1995). And a recent study found this to be the case; in particular, endophytic species appear to compete strongly with sap feeders (Bird et al., 2019). Therefore, once a lineage evolved an ability to be surrounded by plant tissue (e.g., boring, galling, mining, etc.), competition with some ectophytic species may have given endophytic species an advantage that may have first allowed the lineage to succeed and then to diversify. Indeed, competition among endophytic species appears to be quite common (Denno et al., 1995), suggesting that selection pressures may force endophytic species to partition resources to minimize competition (Bird et al., 2019). There is evidence of competition between free-living folivores and internal feeders (Denno et al., 1995; Kaplan and Denno, 2007; Bird et al., 2019), perhaps providing a glimpse of competitive interactions that may have encouraged endophagy, but such conclusions would be premature. In some of these interactions, the external feeder appears to have the competitive advantage, whereas in others the internal feeder does, making generalizations difficult (e.g., West, 1985; Fisher et al., 1999; Bird et al., 2019). We are unaware of any ecological evidence that suggests competition encouraged some taxa to adopt endophagy, which is an outcome over evolutionary time that seems plausible. Such scenarios may have to be inferred from phylogenies, but this would be challenging. Based on phylogenetic analyses, competition has been invoked as a factor that may have played a role in the shift from external feeding to internal feeding, including gall induction (Nyman et al., 2006) and in the transition from leaf rolling to gall induction (Guiguet, 2019), but the exact role of competition in these systems may be difficult to clarify.

While evidence for the role of competition in the evolution of endophagy may be scarce, some research supports competition as a force that could have increased the intimacy of interactions that some endophytic species have with their host-plant species. Some endophytic species (leaf-mining and stem-boring species) appear to have evolved an ability to manipulate their host plants to improve the local nutritional environment (Giron et al., 2007; Dafoe et al., 2013). Gall-inducing species, however, have evolved more intimate associations with their host plants and often can manipulate various aspects of plant morphology, chemistry, and physiology to improve their own success (Fay et al., 1993; Nyman and Julkunen-Tiitto, 2000; Stone and Schönrogge, 2003). Some of these manipulations appear to improve protection for gall inhabitants against invaders, whereas others decrease plant chemical defenses and/or improve nutritional quality (Nyman and Julkunen-Tiitto, 2000; Stone and Schönrogge, 2003; Tooker and De Moraes, 2007, 2009, 2011a,b; Tooker et al., 2008). Some evidence indicates that leaf miners and gall inducers can share the same host plant
with other herbivores and avoid competitive exclusion by
having different lifestyles. Indeed, even though gall-inducing
and leaf-mining insects in early instars can both exploit the
same resource, in later instars they can diverge to occupy
different ecological niches within the same host plant (Guiguet,
2019), suggesting that niche partitioning to avoid competition
may have been a strong evolutionary force leading to either
form of endophagy.

Still other manipulations appear to give gall-inducing species
advantages in competitive interactions with other herbivorous
species. Often phenotypic changes associated with gall induction,
such as altered plant physiology or chemistry, can extend
beyond the gall to adjacent plant tissue, or may even extend
to distant portions of the host plant, with effects that decrease
the success of the other herbivorous species, but benefit the
gall inducer (Schultz, 1992; Inbar et al., 1995; Foss and Rieske,
2004; Pascual-Alvarado et al., 2008; Prior and Hellmann, 2010;
Rostás et al., 2013). For example, development of invasive gall
wasp larvae on oaks negatively influenced foliar quality, which
reduced performance of a native caterpillar species (Prior and
Hellmann, 2010). Remarkably, gall-induced volatiles also can
repel browsing mammals (Rostás et al., 2013). There are also
examples of gall insects that have little influence on other
herbivores on the same plant or even gall insects that facilitate
more herbivory by other species (e.g., Fritz and Price, 1990;
Nakamura et al., 2003), but the key to competitive advantage
may relate to the manipulative capacity of the insect and
associated sink strength.

The more resources that gall inducers tend to require from
their host plants, the stronger the resource sink that they are likely
to induce. Similarly, sink strength can potentially increase with
more individuals feeding within a gall, or even more individuals
infesting the same tissue. Competitive interactions between
nutrient sinks have been largely overlooked. If demonstrated,
this would be highly relevant for understanding the adaptive
success of some endophytic strategies that can group tens of
individuals on a single leaf (e.g., the horse-chestnut leafminer
*Cameraria ohridella*) or in a single gall (e.g., gall-inducing
social aphids or thrips). It may also shed light on evolution
of sociality in endophytic insects as a way to optimize plant-
nutrient interception against competition with plant and insect-
induced sinks (Larson and Whitham, 1991, 1997). The strength
of resource sinks appears to relate to the success of the
gall inducer in competitive interactions with other herbivore
species (Burstein et al., 1994; Inbar et al., 1995) or with
plant sinks (Larson and Whitham, 1997). Further, it is logical
then to expect that the stronger the resource needs of any
gall-inducing species, the more likely it will have evolved
manipulative tactics that give it an advantage in competitive
interactions with other species. These tactics could involve
altering host-plant chemistry, physiology, or morphology to
negatively influence other herbivorous species. We propose that
when the influence of gall insects reaches farther from the local
vicinity of the gall that competition becomes increasingly relevant
as a selective force that can shape the strength and direction
of interactions with other herbivorous species. It is likely that
revisiting nutrient allocation between various sinks through mass

spectrometry imaging (Kaspar et al., 2011), tracing experiments,
and manipulating sink strength with transplantation experiments
and killing (Guiguet et al., 2018) will provide insight on
the role of competition in the ecology and evolution of
endophagous lifestyle.

ENDOPHYTIC TAXA

Now that we have summarized some of the selection pressures
that could have encouraged evolution of endophagy, we will
consider the variety of endophagous feeding habitats that have
evolved in six orders of herbivorous insects. For each taxon, we
will then discuss which selection pressures that were likely to have
played a role in the evolution and diversification of its endophytic
groups. Because of similarities between selection pressures for
Thysanoptera and Hemiptera, we discuss them together in one
section, but treat the remaining taxa separately.

Thysanoptera and Hemiptera

With their unique sucking mouthparts, thrips are not capable of burrowing into plant tissues to become endophytic (Figure 1 and Tables 1, 2). Nevertheless, endophagy has evolved multiple times within Thysanoptera, usually via tactics that allow thrips to attach leaves together or trigger plant responses that surround thrips in plant tissue (Mound and Morris, 2005). Ancestral families of thrips appear to be mycophagous, and this feeding habitat appears to be plesiomorphic (Grimaldi and Engel, 2005). Other groups of thrips feed upon flowers or leaves, and endophagy appears to have evolved, possibly multiple times, in each of these three lineages of thrips (Mound and Morris, 2005). Some endophytic thrips species feed within domiciles that they form by gluing together phyllodes, modified petioles that act as leaves, whereas other endophytic species are inquiline in galls induced by other thrips species (Morris et al., 1999).

Most endophytic thrips, however, are gregarious gall
inducers, with many individuals contributing to gall induction
(Ananthakrishnan, 1992). Lineages that include gall-inducing
species also tend to include species whose feeding induces
leaf crinkling, rolling, or folding, which are thought to be
intermediate endophytic steps on the path to gall induction
(Mound and Morris, 2005). Gall-inducing species tend to be
monophagous on woody plant species in hot, dry portions
of the Old World tropics, including Australia and Indo-
Malaysia (Ananthakrishnan, 1992); thus, it seems likely that
endophagy, and gall induction in particular, in many thrips
species evolved as an adaptation to a persistent resource in
challenging environments (Crespi et al., 1997; Grimaldi and
Engel, 2005). Some gall-inducing taxa have also evolved advanced
forms of sociality, including species that have soldier morphs
(Crespi et al., 1997).

Ancestral hemipterans were plant feeders that ingested fluids (Grimaldi and Engel, 2005). Because of their characteristic sucking mouthparts, Hemiptera, similar to Thysanoptera, are unable to bore into plant tissue; thus, to feed endophytically various Hemiptera taxa have evolved feeding tactics that alter the structure of host-plant tissues and encase the feeding insect
(Figure 1). Most endophytic Hemiptera tend to be gall-inducing species (Tables 1, 2). Galling is usually considered a derived feeding tactic, but within Hemiptera galling is also an ancient characteristic because it is represented in the most primitive group of psyllids (Burckhardt, 2005). Within some groups (e.g., psyllids and scale insects), the ability to induce galls appears to have evolved separately in multiple lineages (Burckhardt, 2005; Gullan et al., 2005).

Hemipteran gallers induce a diversity of galls, ranging from simple pit galls, to leaf-roll or fold galls to more complex covering galls, which may reflect degrees of evolutionary advancement (Figure 1; Yang and Mitter, 1994; Burckhardt, 2005; Gullan et al., 2005). Endophytic hemipterans can also be inquilines (Miller, 2005). Most species tend to be host-plant specific, often monophagous, but some gall-inducing scales insects are oligophagous or even polyphagous, though complex galls appear to be induced by species with more restricted host ranges (Gullan et al., 2005). In some cases oviposition can initiate galls, but typically nymph hemipterans induce galls and continued gall growth tends to require continuing nymphal feeding (Burckhardt, 2005). Endophytic feeding is uncommon in most hemipteran taxa. In aphids (Aphididae), for example, less than 10% of species are confirmed gall inducers (Wool, 2005).

As indicated above, Thysanoptera and Hemiptera have limited forms of endophagy. Most herbivorous species in these orders are external feeders and endophagy, has evolved a limited number of times, mostly as gall induction (Table 1). Of the three hypotheses that have been proposed to explain the adaptive significance of gall induction, the nutrition hypothesis has some of the strongest support for these two taxa, particularly for aphid and thrips galls (Stone and Schönrogge, 2003). For example, compared to ungalled leaves, aphid galls can provide increased concentrations of essential amino acids, which improve aphid performance (Koyama et al., 2004). Other hemipteran galls provide such a high quality diet that the gall-inducing inhabitants do not require bacterial endosymbionts, which help most hemipteran species process ingested food to satisfy dietary needs (Overholt et al., 2015). Similarly, in Australian thrips galls, galls with many internal folds have convergently evolved to provide superior nutrients to “hyperfecund” foundresses, suggesting that nutritional-based selection pressures have encouraged induction of resources that satisfy the nutrient needs of thrips females capable of producing high numbers of progeny (Crespi and Worobey, 1998).

Despite evidence supporting the importance of nutrition in evolution of gall induction for Thysanoptera and Hemiptera, other forces are likely to also have been at play. As mentioned above, the many thrips galls found in arid portions of Australia and Indo-Malaysia support the microenvironment hypothesis, suggesting that living inside plants may have decreased water stress that could prevent exterior feeders from thriving in hot dry environments (Ananthakrishnan, 1992; Crespi et al., 1997; Grimaldi and Engel, 2005). And for at least for some aphid species, competition may have contributed to evolution of the manipulative control that some galling aphids have over their host plant species. Galling aphids reap benefits of inducing strong nutrient sinks because they can extract the resources they need

from their host plants while simultaneously depriving competing herbivores of resources they need (Burstein et al., 1994; Inbar et al., 1995).

## Hymenoptera

Endophagy has been key to the evolution of groups within Hymenoptera, but it is unclear whether the earliest hymenopterans were endophagous or ectophagous herbivores (Figure 2; Sharkey, 2007; Peters et al., 2017). If they were ectophagous, among their first food sources could have been sporophylls of gymnosperms, as eaten by the extant family Xylidae (Grimaldi and Engel, 2005). Relatives of these early external feeders appear to have led to a radiation of ectophagous sawflies (i.e., Eusymphyta; Figures 1, 2), which includes the superfamilies Pamphilioidea and Tenthredinoidea (Peters et al., 2017). These groups include taxa that secondarily evolved a range of endophytic habits, including leaf miners, folders, and rollers and gall inducers (Table 2; Price, 1992; Connor and Taverner, 1997; Nyman et al., 1998). In particular, the family Tenthridinidae includes lineages that appear to have followed an evolutionary path from ectophagous leaf feeders to endophagous leaf folders and then gall inducers (Nyman et al., 1998, 2000). Within sawflies, the ability to induce a gall appears to have evolved independently six to ten times (Roininen et al., 2005). Some other early phytophagous hymenopterans (Xiphydriidae and Siricidae) also evolved endophagy as borers in dying or dead trees (Figure 2), and their lifestyle was facilitated by symbiotic fungi, which digest wood providing the wasp larvae more nutritious diets (Hanson, 1995; Solomon, 1995; Sharkey, 2007).

Despite some evidence that early hymenopterans were ectophagous, recent analyses raise the possibility that the common ancestor of symphytans and the remaining Hymenopterans (Eusymphyta + Unicalcarida) may have been an endophytic herbivore (Peters et al., 2017). Notably, once it evolved, the endophagous habit may have contributed to the diversification of the huge suborder of Apocrita (Figures 1, 2); endophytic taxa gave rise to carnivorous species that attacked other wood-boring Hymenoptera and Coleoptera, setting the path toward evolution of parasitoidism, which may have contributed to the success of Apocrita (Grimaldi and Engel, 2005; Sharkey, 2007).

Apocrita are largely carnivorous, but many apocritans have reverted to herbivory. None of these secondarily herbivorous taxa are external leaf feeders; they are all endophytic, feeding on nutritious plant tissues such as seeds, pollen, or gall tissue (including gallers and inquilines) or fungal tissue inside galls (Tables 1, 2; Hanson, 1995; La Salle, 2005; Wharton and Hanson, 2005). Some of these reversions to herbivory may have occurred via an intermediate step of entomophytophagous feeding, in which parasitoid species begin development by feeding upon their arthropod host and finish development by feeding upon plant tissue (La Salle, 2005). The next evolutionary step, of course, would be wasp species that feed only upon plant tissue. Other hymenopteran endophagous taxa appear to have evolved directly from phytophagous predecessors (Roskam, 1992; La Salle, 2005). Regardless of the path (Table 2), it is clear that endophagy, and more specifically gall induction, evolved many times in various
<figure><img src="image_5.png" /></figure>

apocritan taxa (Hanson, 1995; La Salle, 2005; Wharton and Hanson, 2005).

For Hymenoptera, ancestral species may have been endophytic, but this detail is unclear (Peters et al., 2017). Nevertheless, an endophytic lifestyle was established early in the evolution of Hymenoptera (Grimaldi and Engel, 2005). This internal feeding habit (i.e., boring in decaying wood) seems likely to have evolved because of nutritional benefits that could have been facilitated initially by symbiotic fungi, and later other types of symbiotic microbes, which provided access to previously inaccessible food resources (Hanson, 1995; Solomon, 1995; Sharkey, 2007). Moreover, the endophytic habit also appears to have been key for the evolution of parasitoidism, and for some endophytic Apocrita, like Agaonidae and Cynipidae (La Salle, 2005). Considering the closest non-herbivorous relatives of these taxa may provide insight on selective forces that led to their reversion to endophytic herbivory. Predecessors of both these endophagous groups (and others like Tanaostigmatidae) appear to be parasitoids (Peters et al., 2017); thus, prior to feeding upon plant tissue their relatives were already spending much of their lives inside hosts, which were embedded within plant tissues. As mentioned above, the switch to herbivory, therefore, could have been facilitated by entomophytophagous feeding, with fully

herbivorous species evolving in a later step (La Salle, 2005). Because these groups are largely gall inducers, they likely later evolved their ability to manipulate their hosts to produce galls that provided even better nutritional resources (for agaonids, the enlarged endosperm of their galls; for cynipids, the nutritive tissues lining their galls; Weiblen, 2002; Csóka et al., 2005).

Of course other non-nutritional factors are likely to have been in play during evolution of endophagy in Hymenoptera. Some sawflies (e.g., Tenthredinoidea) appear to have followed a path in which ectophytic feeding appears to be ancestral and various forms of endophagy evolved later (Nyman et al., 2006). All the selection pressures involved in these transitions are not clear, but the natural-enemy hypothesis helps explain patterns of mortality documented within a gradation of external- to internal- feeding sawflies (Price and Pschorn-Walcher, 1988). Other studies with endophagous hymenopterans have found support for the microenvironment hypothesis (Miller et al., 2009), and benefits of endophagy for competition (Foss and Rieske, 2004).

## Coleoptera

Within Coleoptera, endophytic feeding achieves a diversity that exceeds that of Thysanoptera, Hemiptera, and Hymenoptera. Coleopterans can be borers, miners, gallers, and inquilines,
and these endophytic species are most evident in the large superfamilies Chrysomeloidea and Curculionoidea (Tables 1, 2). This diversity of habits and abundance of species may be attributable in part to evolution of larvae with prognathous heads and chewing mouthparts, which would have allowed them to eat their way into plant tissue (Labandeira, 1997).

In beetles, the endophytic habit appears to be derived from the ancestral state of boring in wood or other decaying tissues. Archostemata, one of the most basal suborders of Coleoptera, comprise families of specialized wood borers (Figures 1, 3; Grimaldi and Engel, 2005; McKenna et al., 2019). Larvae from early Permian beetles appear to have been associated with wood, similar to the extant families Ommatidae and Cupedidae, which are within Archostemata (Young, 2001; McKenna et al., 2019). The earliest fossil records of coleopteran wood boring are from the mid- to upper Permian (~250 million years ago) in fungus-decayed wood, indicating that wood boring evolved early within Coleoptera (Feng et al., 2017; McKenna et al., 2019). Diversification of wood boring in beetles appears to have been facilitated by cellulolytic fungi that decomposed wood and ancestral beetle larvae appear to have fed upon the fungi, similar to modern ambrosia beetles, which independently converged on mycophagy (Massini et al., 2012; Feng et al., 2017; Hulcr and Stelinski, 2017). Saprophytic fungi, therefore, may have facilitated the transition of ancient beetles, or their predecessors, from feeding upon saprophytic fungi in leaf litter to borers feeding on similar fungi in decaying wood (Farrell, 1998; Grimaldi and Engel, 2005; Feng et al., 2017). Eventually endophytic beetle taxa evolved capacities to feed directly on wood and other tissues of living trees with its digestion facilitated by symbionts (Figure 3; Martin, 1991; Feng et al., 2017; Lieutier et al., 2017).

Recent evidence suggests that plant cell wall-degrading enzymes (PCWDE), which were acquired via horizontal gene transfer from bacteria and fungi that originated in detritus or insect guts, were a key innovation that facilitated success of beetles, particularly lineages whose larvae feed endophytically (McKenna et al., 2019). In Curculionoidea and Chrysomeloidea, for example, endophagy, apparently facilitated by PCWDE, may have been a key innovation that drove their diversification, allowing them to radiate inside a diversity of plant tissue and occupy novel niches (Farrell and Sequeira, 2004; Oberprieler et al., 2007; McKenna et al., 2019). Moreover, the abundance of endophagous species within these and other taxa may be explained in part by constraints imposed by morphological and behavioral traits associated with endophytic feeding; these traits may limit switches to other types of plant tissue, canalizing evolutionary trajectories (Farrell and Sequeira, 2004).

As larvae, the majority of endophytic Coleoptera taxa are associated with decaying, dying, or healthy plants, feeding within virtually all tissues (Table 1). Some taxa bore largely in herbaceous stems (e.g., Mordellidae; Jackman and Lu, 2002) or are specialized seed feeders (Chrysomelidae: Bruchinae; Kingsolver, 2002). Comparatively few major coleopteran taxa have evolved leaf-mining or gall-inducing habits (Table 1), which are often considered more derived endophytic feeding habits (Hering, 1951; Korotyaev et al., 2005). Among chrysomelids, however, seed boring by bruchine beetles appears to be the

youngest or most derived endophagous habit, and seems to have evolved in a progression from stem feeding to gall inducing to seed boring (Farrell and Sequeira, 2004).

Because the diets of ancestral Coleoptera taxa may have been facilitated by fungi, microbial symbionts, or PCWDE (Martin, 1991; Farrell, 1998; Grimaldi and Engel, 2005; Feng et al., 2017; McKenna et al., 2019), the paths to endophagy may have been driven by nutritional selection pressures. The more derived taxa of Chrysomeloidea and Curculionoidea maintain this feeding habitat, which appear to be at least partly responsible for their success and diversification (Marvaldi et al., 2002). Beyond nutritional selection pressures, endophytic coleopteran populations must benefit from lower mortality from natural enemies associated with internal feeding (Hawkins et al., 1997) and likely gain advantages from being buffered from heat or moisture stress by being hidden within plant tissue, but we are unaware of explicit tests of these sorts of hypotheses with beetles.

## Lepidoptera

Lepidoptera represents the largest diversification of herbivorous insects, and perhaps not surprisingly, also contains the highest diversity of endophagous habits, including many types of borers, concealed leaf feeders, leaf miners, gall inducers and inquilines (Table 2; Powell et al., 1998). Endophagy arose early in the evolution of Lepidoptera and may have fostered their subsequent radiation (Figure 4; Powell et al., 1998; Menken et al., 2010). Larvae of Micropterigidae appear to have fed on decaying tissue or live plants on the forest floor, but other basal lepidopterans adopted endophagy early in the evolution of Lepidoptera (Figures 1, 4; Regier et al., 2015). For example, larvae of Agathiphagidae are seed borers in pines of Araucariaceae, while larvae of Heterobathmiidae and Eriocraniidae mine leaves of tree species of Fagales (Kristensen et al., 2007; Regier et al., 2015).

Endophagy, therefore, was an early innovation in Lepidoptera that influenced the feeding habits of many non-ditrysian lineages (Regier et al., 2015). The endophagous habit further diversified onto angiosperms when they became available (Wiegmann et al., 2000; Menken et al., 2010) and specialized internal feeders begat larger insect taxa that fed as concealed external feeders (e.g., leaf rolling or similar), followed by radiations of fully exposed external feeders that achieved even larger sizes (Regier et al., 2013). In fact, the transition in Lepidoptera from endophagy to ectophagy may have been an “adaptive escape” from negative consequences of internal feeding, such as limits on body size, number of generations per year, access to alternative hosts, and leaf abscission (Powell et al., 1998). Notably, some extant taxa provide evidence of apparently “transitional” traits that combine endophytic and ectophytic habits. For example, some species of Adelidae and Incurvariidae feed internally in seeds and then switch to external feeding on fallen leaves (Powell et al., 1998). Species in the genus *Buccalatrix* (Bucculatricidae) move from leaf miners to external leaf feeders, while some gracilariids combine two different endophytic habits (*Caloptilia*, *Parornix*), feeding as miners for the first few instars and then become leaf folders (Hering, 1951; Nakadai and Kawakita, 2016). Other gracilariids first feed as leaf miners and then become gall inducers, and this
<figure><img src="image_6.png" /></figure>

transition involves hypermetamorphosis of mouthparts (Guiguet et al., 2018, 2019; Guiguet, 2019).

Because endophagy appears to have evolved early among lepidopterans, many taxa have had long associations with their host-plant taxa, allowing them to become specialized internal feeders. Indeed, some lepidopteran families, such as Nepticulidae, Gracillariidae, Cosmopterigidae, and Sesiidae, among others, are dominated by internal feeders (Powell et al., 1998). The long associations that many endophytic taxa have had with their host-plant species appears likely to contribute to most groups evolving some species capable of inducing galls (Table 1), which is considered a derived trait (Miller, 2005).

For Lepidoptera, the adoption of endophagy early in their evolution led to the large majority of non-ditrysian lineages taxa feeding inside plant tissue (Regier et al., 2015). Thus, nutrition, and perhaps exploiting empty feeding niches, may have been a primary factor in the success of early taxa. Moreover, recent evidence has demonstrated the high quality of endophagous tissue eaten by caterpillars, suggesting that internal feeding can give herbivores access to better sources of food

(Diamond et al., 2008; Tooker and De Moraes, 2009; Giron et al., 2016). Nevertheless, these taxa likely gained other benefits from being inside plant tissues. Lepidopteran leaf miners appear to gain some protection from pathogens and predators by being hidden within plant tissue, but seem just as susceptible to parasitoid wasps as external feeders, perhaps discounting the value of the natural-enemies hypothesis for explaining the success of leaf mining within Lepidoptera (Connor and Taverner, 1997). We are not familiar with explicit tests of some of the other selection pressures that we have considered.

## Diptera

Unlike its role in the evolution of the three other large groups of holometabolous insects (i.e., Hymenoptera, Coleoptera, and Lepidoptera), herbivory appears to have played a smaller role driving the basal patterns of evolution of Diptera (Grimaldi and Engel, 2005; Bertone et al., 2008; Wiegmann et al., 2011). The larvae of the most basal fly families are aquatic grazers, as it seems were ancestral dipterans with many species feeding upon algae (Figures 1, 5; Courtney, 1990; Wiegmann et al., 2011). Slightly more derived taxa are semi-aquatic and saprophagous
<figure><img src="image_7.png" /><figcaption>**FIGURE 4** | Phylogeny of basal Lepidoptera (from Regier et al., 2015) redrawn to illustrate hypothesized distributions of internal and external feeding among taxa.</figcaption></figure>

(or even bacteriophagous) or mycophagous (Figure 5; Courtney, 1990; Dempewolf, 2005; Grimaldi and Engel, 2005; Wiegmann et al., 2011).

Nevertheless, herbivory in Diptera evolved at least 26 times, likely more than in any other order (Mitter et al., 1988), and is a dominant, derived feeding strategy within the order (Wiegmann et al., 2011). Remarkably, there are very few records of ectophagous herbivores within Diptera (possibly only in Tipulidae); therefore, plant feeding within flies appears to be synonymous with endophagy, with taxa that include borers (including seed feeders), miners, gallers, and inquilines (Labandeira, 2005; Table 1). These endophytic habits appear to have facilitated colonization of nutritional food sources, allowing fly larvae to remain in moist environments (i.e., avoid desiccation), eating liquid, or near liquid, diets, and allowing them to access nutrients despite having mouthparts poorly suited to chewing (Dempewolf, 2005). For some taxa, large radiations occurred across pteridophytes, gymnosperms, and angiosperms, resulting in ecologically and economically important groups, like Agromyzidae and Cecidomyiidae, which are dominated by mining and gall-inducing species, respectively, and are the most speciose taxa of endophytic

Diptera (Labandeira, 2005). Beyond miners and gallers, Diptera contains relatively few borers, but they occur in all major clades of the order and appear to represent opportunistic exploitation of niches rather than an evolutionary radiation (Labandeira, 2005).

Dipteran miners are particularly notable for being a diverse guild that is well distributed taxonomically across the order from lower nemotocern dipterans (e.g., Culicomorpha: Chironomidae, Ceratopogonidae) to higher cyclorrhaphous flies (Muscoidea: Scathophagidae, Anthonyiidae; Labandeira, 2005). Mining appears to have evolved independently at least 25 times (Labandeira, 2005). Mining may even have been the initial entry into herbivory for Diptera (Dempewolf, 2005), but the fossil record appears unclear on this point because galling by flies is currently known from older deposits than mining by flies (Labandeira, 2005). Moreover, in some cases, mining appears to have been a predecessor to galling, but thus far there is limited evidence for this path to galling within Diptera (Dempewolf, 2005).

Diptera are also notable for containing one of the most unusual endophytic taxa, the Fergusoninidae. On their myrtaceous host plant species, these acalypterate flies have
<figure><img src="image_8.png" /></figure>

evolved complex, co-evolved lifecycles with mutualistic nematodes, which are deposited into meristematic tissue along with fly eggs and induce the galls in which maggots develop (Taylor et al., 2005). The maggot and nematodes feed together on plant tissue within the gall, then the worms enter female maggots where they become parasitic, eventually colonizing fly oviducts so they can be oviposited with the fly egg (Taylor et al., 2005). This mutualistic interaction is similar to relationships that other fly taxa (e.g., Cecidomyiidae) have with symbiotic fungi, which in some cases induce galls and then are feed upon by immature flies. In other cases, fungi occur in galls but only provide protection and do not appear to induce the gall or provide food (Gagné, 1989). Notably, plant feeding in cecidomyiids may have initially evolved from mycophagous ancestors (Roskam, 1992).

For Diptera, ancestral larval flies, and likely their progenitors, were aquatic grazers, and larvae of lower flies have remained faithful to aquatic or semi-aquatic habitats (Bertone et al., 2008). Even taxa that are largely saprophagous feed within liquid, or at least moist, habitats (e.g., decaying plant material in

temporary pools, rotten wood; Bertone et al., 2008). Significantly, for each of the 26 times that herbivory has evolved within Diptera, the larval habitat has been endophagous; therefore, even among derived herbivorous fly taxa, species appear to be tied to moist environments inside plants. For hypothesizing which selection pressures played prominent roles in evolution of endophagy among Diptera, a parsimonious evolutionary explanation could be based on moist microenvironments (i.e., the microenvironment hypothesis), but a nutrition-based explanation could be just as likely because larval diets of flies are liquid, semi-liquid, or moist, as necessitated by the morphology of larval mouthparts (Labandeira, 2005). Importantly, once herbivory arose in dipteran taxa, how larvae fed upon plants and the nutrients they gained appears to have translated well to other tissues on the same plant or tissue of nearby plants, whether plant taxa were closely related or not, accounting in part for some of the species-level diversity in some fly taxa (Labandeira, 2005). Selection pressures associated with natural enemies seem less important because, as mentioned previously leaf-mining flies suffer high
mortality from parasitoids wasps (Connor and Taverner, 1997), and gall flies do not necessarily gain more protection from larger galls (Waring and Price, 1989; Rossi et al., 1992; Abrahamson and Weis, 1997).

## Conclusion

After having considered endophagy in a much broader range of taxa than has been considered previously, we hypothesize that nutritional selection pressures played a primary role in the evolution of endophagy across orders of herbivorous insects. Given the general importance of nutritional resources to the success of animals, this hypothesis may not be surprising, but recurring support for it across orders is notable, as is the lack of consistent evidence supporting the other possible selection pressures. We must note, however, that nutritional hypotheses may just have received more attention in the literature rather than being more important for endophagy than the other factors we considered; further testing of the other explanatory hypotheses for the evolution of endophagy may reveal other patterns.

Because of its strong association with access to nutritional resources, competition imposed by the sedentary lifestyle of endophytic insects emerged from our analysis as a possible selective force in evolution of endophagy, and subsequent diversification and niche partitioning. This detail is noteworthy because we are unaware of previous consideration of competition as a selection pressure that encouraged endophagy in any form.

If nutritional selection pressures tend to be primary, then it seems reasonable to hypothesize that benefits associated with the other factors (e.g., microenvironment, attachment, natural enemies, and competition) would tend to be secondary, providing stronger or weaker advantages for certain insect taxa under some conditions. For example, under challenging environmental conditions it seems likely that endophagy is likely to provide benefits for water conservation. As mentioned above, galling tends to be more common in drier or hotter environments (Price et al., 1998), but similar analyses appear to be lacking for most other endophytic taxa. It would seem profitable, therefore, for future research to explore global patterns of endophagy to gain insight on the potential role of endophagy to limit heat and water stress. Testing these newly proposed hypotheses directly seems challenging, so it may be more feasible to test them indirectly in phylogenetic contexts, perhaps by characterizing water budgets in a range of taxa and feeding styles.

If a nutrition hypothesis best explains why so many insect taxa feed endophagously, it aligns well with the evidence available to explain the adaptive significance of more specialized forms of endophagy (Connor and Taverner, 1997; Stone and Schönrogge, 2003). As mentioned above, three hypotheses, nutrition, microenvironment, and natural enemies, have been proposed to explain the adaptive significance of leaf mining and insect galls. For leaf mining, it seems that the nutrition and microenvironment hypotheses best explain the advantages derived from mining (Connor and Taverner, 1997). However, as discussed above, analyses of Diptera revealed the dominance of endophagy across phytophagous groups, revealing that fly larvae are almost always associated with moist food sources, which aligns well with the capacity of their mouthparts (Dempewolf,

2005; Labandeira, 2005). These results appear to give more support to the nutritional hypothesis for helping to explain the adaptive significance of leaf mining, but we cannot overlook the potential interaction with microenvironment because fly larvae undoubtedly benefit from being surrounded by water filled tissue, and as a result may have been poorly adapted for external feeding. For insect gallers, the majority of the evidence also appears to support the role of nutrition and microenvironments for evolution of galling, and perhaps natural enemies have played a role in the morphological diversification of gall shapes and external features (Stone and Schönrogge, 2003). Given the nutritional support of endophagy provided by our review, we could also hypothesize that nutrition is the primary adaptive significance of galling and mining, and the other benefits are secondary, but further research will have to explore this sort of ranking.

As mentioned above, there is a tendency in ecological literature to believe that the progression of feeding habits in herbivorous insects started with external feeding and moved toward internal feeding. This belief is based on well-known theoretical and experimental work with sawflies (Price et al., 1987; Price and Pschorn-Walcher, 1988), but it may be the exception. Our review revealed that the evolutionary story is far more complicated, and varies by taxa (Table 2 and Figures 1–5). For some taxa, endophagy is an ancestral trait that has been around for hundreds of millions of years. For others, endophagy evolved more recently. The evidence we reviewed appears to indicate that nutritional benefits could underlie much of the evolution and diversification of endophagy across the orders of herbivorous insects. It is our hope that other researchers will now bring various research techniques to bear on these hypotheses to help clarify the evolutionary selection pressures involved in evolution of internal feeding.

## AUTHOR CONTRIBUTIONS

Both authors listed have made a substantial, direct and intellectual contribution to the work, and approved it for publication.

## FUNDING

Support came from Fulbright's Franco-American Commission, the Insect Biology Research Institute (CNRS/Université de Tours), and the College of Agricultural Science at The Pennsylvania State University via the National Institute of Food and Agriculture and Hatch Appropriations under Project #PEN04606 and Accession #1009362.

## ACKNOWLEDGMENTS

Thanks to A. Deans, C. Lopez-Vaamonde, and particularly C. Mitter for insightful comments that improved the quality of this manuscript, and to N. Sloff for rendering the phylogenetic trees we presented. Thanks to M. Harris, G. Stone, J-C. Simon, J.
Casas, and A. Guiguet for fruitful discussions on endophagy. This
project began when JT was a Fulbright Scholar in the research

group of DG at the Insect Biology Research Institute, Université
de Tours.

REFERENCES

Abrahamson, W. G., and Weis, A. E. (1997). *Evolutionary Ecology Across Three Trophic Levels: Goldenrods, Gallmakers, and Natural Enemies*. Princeton, NJ: Princeton University Press.

Ananthakrishnan, T. N. (1992). "Unique aspects in the biology of thrips-induced galls," in *Biology of Insect Induced Galls*, eds J. D. Shorthouse and O. Rohfritsch (New York, NY: Oxford University Press), 185-195.

Andreas, P., Kisiala, A., Emery, R. J., Clerck-Floate, D., Tooker, J. F., Price, P. W., et al. (2020). Cytokinins are abundant and widespread among insect species. *Plants* 9:208. doi: 10.3390/plants9020208

Arnett, R. H. Jr., and Thomas, M. C. (eds) (2000). *American Beetles, Volume I: Archostemata, Myxophaga, Adephaga, Polyphaga: Staphyliniformia*. Boca Raton, FL: CRC Press.

Arnett, R. H. Jr., Thomas, M. C., Skelley, P. E., and Frank, J. H. (eds) (2002). *American Beetles, Volume 2: Polyphaga: Scarabaeoidea through Curculionoidea*. Boca Raton, FL: CRC Press.

Bertone, M. A., Courtney, G. W., and Wiegmann, B. M. (2008). Phylogenetics and temporal diversification of the earliest true flies (Insecta: Diptera) based on multiple nuclear genes. *Syst. Entomol.* 33, 668–687. doi: 10.1111/j.1365-3113.2008.00437.x

Bird, G., Kaczvinsky, C., Wilson, A. E., and Hardy, N. B. (2019). When do herbivorous insects compete? A phylogenetic meta-analysis. *Ecol. Lett.* 22, 875–883. doi: 10.1111/ele.13245

Bissett, J., and Borkent, A. (1988). "Ambrosia galls: the significance of fungal nutrition in the evolution of the Cecidomyiidae," in *Coevolution of Fungi with Plants and Animals*, eds K. A. Pirozynski and D. L. Hawksworth (San Diego, CA: Academic Press), 203–225.

Body, M., Burlat, V., and Giron, D. (2015). Hypermetamorphosis in a leaf-miner. allows insects to cope with a confined nutritional space. *Arthropod Plant Inter.* 9, 75–84. doi: 10.1007/s11829-014-9349-5

Burckhardt, D. (2005). "Biology, ecology, and evolution of gall-inducing psyllids (Hemiptera: Psylloidea)," in *Biology, Ecology, and Evolution of Gall-inducing Arthropods*, eds A. Raman, C. W. Schaefer, and T. M. Withers (Enfield, NH: Science Publishers, Inc), 143–157.

Burstein, M., Wool, D., and Eshel, A. (1994). Sink strength and clone size of sympatric, gall-forming aphids. *Eur. J. Entomol.* 91, 57–61.

Cambier, S., Ginis, O., Moreau, S. J., Gayral, P., Hearn, J., Stone, G., et al. (2019). Gall wasp transcriptomes unravel potential effectors involved in molecular dialogues with oak and rose bushes. *Front. Physiol.* 10:926. doi: 10.3389/fphys.2019.00926

Chaloner, W. G., Scott, A. C., and Stephenson, J. (1991). Fossil evidence for plant-arthropod interactions in the Palaeozoic and Mesozoic. *Philos. Trans. R. Soc. Lond. B Biol. Sci.* 333, 177–186. doi: 10.1098/rstb.1991.0066

Connor, E. F., and Taverner, M. P. (1997). The evolution and adaptive significance of the leaf-mining habit. *Oikos* 79, 6–25. doi: 10.2307/3546085

Cornell, H. V. (1989). Endophage-ectophage ratios and plant defense. *Evol. Ecol.* 3, 64–76. doi: 10.1007/BF02147932

Cornell, H. V., and Hawkins, B. A. (1995). Survival patterns and mortality sources of herbivorous insects: some demographic trends. *Am. Nat.* 145, 563–593. doi: 10.1086/285756

Courtney, G. W. (1990). Cuticular morphology of larval mountain midges (Diptera: Deuterophlebiidae): implications for the phylogenetic relationships of Nematocera. *Can. J. Zool.* 68, 556–578. doi: 10.1139/z90-081

Crespi, B., and Worobey, M. (1998). Comparative analysis of gall morphology in Australian gall thrips: the evolution of extended phenotypes. *Evolution* 52, 1686–1696. doi: 10.1111/j.1558-5646.1998.tb02248.x

Crespi, B. J., Carmean, D. A., and Chapman, T. W. (1997). Ecology and evolution of galling thrips and their allies. *Annu. Rev. Entomol.* 42, 51–71. doi: 10.1146/annurev.ento.42.1.51

Csóka, G., Stone, G. N., and Melika, G. (2005). "Biology, ecology, and evolution of gall-inducing Cynipidae," in *Biology, Ecology, and Evolution of Gall-inducing Arthropods*, eds A. Raman, C. W. Schaefer, and T. M. Withers (Enfield, NH: Science Publishers, Inc), 573–642.

Dafoe, N. J., Thomas, J. D., Shirk, P. D., Legaspi, M. E., Vaughan, M. M., Huffaker, A., et al. (2013). European corn borer (Ostrinia nubilalis) induced responses enhance susceptibility in maize. *PLoS One* 8:e73394. doi: 10.1371/journal.pone.0073394

Dempewolf, M. (2005). "Dipteran leaf miners," in *Biology, Ecology, and Evolution of Gall- inducing Arthropods*, eds A. Raman, C. W. Schaefer, and T. M. Withers (Enfield, NH: Science Publishers, Inc), 407–429.

Denno, R. F., McClure, M. S., and Ott, J. R. (1995). Interspecific interactions in phytophagous insects: competition reexamined and resurrected. *Annu. Rev. Entomol.* 40, 297–331. doi: 10.1146/annurev.en.40.010195.001501

Diamond, S. E., Blair, C. P., and Abrahamson, W. G. (2008). Testing the nutrition hypothesis for the adaptive nature of insect galls: does a non-adapted herbivore perform better in galls? *Ecol. Entomol.* 33, 385–393. doi: 10.1111/j.1365-2311.2007.00979.x

Djemai, I., Casas, J., and Magal, C. (2001). Matching host reactions to parasitoid wasp vibrations. *Proc. R. Soc. Lond. Ser. B Biol. Sci.* 268, 2403–2408. doi: 10.1098/rsbp.2001.1811

Djemai, I., Casas, J., and Magal, C. (2004). Parasitoid foraging decisions mediated by artificial vibrations. *Anim. Behav.* 67, 567–571. doi: 10.1016/j.anbehav.2003.07.006

Dreger-Jauffret, F., and Shorthouse, J. D. (1992). "Diversity of Gall-inducing insects and their galls," in *Biology of Insect-Induced Plant Galls*, eds J. D. Shorthouse and O. Rohfritsch (New York, NY: Oxford University Press), 8–33.

Edwards, D. P., Frederickson, M. E., Shepard, G. H., and Yu, D. W. (2009). A plant needs ants like a dog needs fleas: *Myrmelachista schumanni* ants gall many tree species to create housing. *Am. Nat.* 174, 734–740. doi: 10.1086/606022

Eiseman, C. S. (2020). *Leafminers of North America*. 2nd Edn. Available online at: http://charleyeiseman.com/leafminers/ (accessed on 1, 2020).

Farrell, B. D. (1998). "Inordinate fondness" explained: why are there so many beetles? *Science* 281, 555–559. doi: 10.1126/science.281.5376.555

Farrell, B. D., and Sequeira, A. S. (2004). Evolutionary rates in the adaptive radiation of beetles on plants. *Evolution* 58, 1984–2001. doi: 10.1554/03-453

Fay, P. A., Hartnett, D. C., and Knapp, A. K. (1993). Increased photosynthesis and water potentials in *Silphium integrifolium* galled by cynipid wasps. *Oecologia* 93, 114–120. doi: 10.1007/bf00321200

Feng, Z., Wang, J., Rößler, R., Ślipiński, A., and Labandeira, C. (2017). Late Permian wood-borings reveal an intricate network of ecological relationships. *Nat. Commun.* 8:556.

Fernandes, G. W., and Price, P. W. (1988). Biogeographical gradients in galling species richness: tests of hypotheses. *Oecologia* 76, 161–167. doi: 10.1007/bf00379948

Fisher, A. E. I., Hartley, S. E., and Young, M. (1999). Behavioural responses of the leaf-chewing guild to the presence of Eriocrania mines on silver birch (*Betula pendula*). *Ecol. Entomol.* 24, 156–162. doi: 10.1046/j.1365-2311.1999.00189.x

Foss, L. K., and Rieske, L. K. (2004). Stem galls affect oak foliage with potential consequences for herbivory. *Ecol. Entomol.* 29, 273–280. doi: 10.1111/j.1365-2311.2004.00595.x

Fritz, R. S., and Price, P. W. (1990). A field tests of interspecific competition on oviposition of gall-forming sawflies on willow. *Ecology* 71, 99–106. doi: 10.2307/1940250

Gagné, R. J. (1989). *The Plant-Feeding Gall Midges of North America*. Ithaca, NY: Comstock Publishing Associates.

Giron, D., Huguet, E., Stone, G. N., and Body, M. (2016). Insect-induced effects on plants and possible effectors used by galling and leaf-mining insects to manipulate their host-plant. *J. Insect. Physiol.* 84, 70–89. doi: 10.1016/j.jinsphys.2015.12.009

Giron, D., Kaiser, W., Imbault, N., and Casas, J. (2007). Cytokinin-mediated leaf manipulation by a leafminer caterpillar. *Biol. Lett.* 3, 340–343. doi: 10.1098/rslb.2007.0051

Godfray, H. C. J. (1994). *Parasitoids: Behavioral and Evolutionary Ecology*. Princeton, NJ: Princeton University Press.

Grimaldi, D., and Engel, M. S. (2005). *Evolution of the Insects*. New York, NY: Cambridge University Press.
Groen, S. C., and Whiteman, N. K. (2016). Using Drosophila to study the evolution of herbivory and diet specialization. *Curr. Opin. Insect Sci.* 14, 66–72. doi: 10.1016/j.cois.2016.01.004

Guiguet, A. (2019). *Evolutionary Origin of the Gall-Inducing Habit and Underlying Molecular Mechanisms in Gracillariidae*. PhD Thesis. France: Université de Tours.

Guiguet, A., Hamatani, A., Amano, T., Takeda, S., Lopez-Vaamonde, C., Giron, D., et al. (2018). Inside the horn of plenty: leaf-mining micromoth manipulates its host plant to obtain unending food provisioning. *PLoS One* 13:e0209485. doi: 10.1371/journal.pone.0209485

Guiguet, A., Ohshima, I., Takeda, S., Laurans, F., Lopez-Vaamonde, C., and Giron, D. (2019). Origin of gall-inducing from leaf-mining in *Caloptilia* micromoths (Lepidoptera, Gracillariidae). *Sci. Rep.* 9, 1–7. doi: 10.11646/zootaxa.4652.1.1

Gullan, P. J., Miller, D. R., and Cook, L. G. (2005). "Gall-inducing scale insects (Hemiptera: Sternorrhyncha: Coccoidea)," in *Biology, Ecology, and Evolution of Gall- inducing Arthropods*, eds A. Raman, C. W. Schaefer, and T. M. Withers (Enfield, NH: Science Publishers, Inc), 159–229.

Gutzwiller, F., Dedeine, F., Kaiser, W., Giron, D., and Lopez-Vaamonde, C. (2015). Correlation between the green-island phenotype and *Wolbachia* infections during the evolutionary diversification of Gracillariidae leaf-mining moths. *Ecol. Evol.* 5, 4049–4062. doi: 10.1002/ece3.1580

Hairston, N. G., Smith, F. E., and Slobodkin, L. B. (1960). Community structure, population control, and competition. *Am. Nat.* 94, 421–425. doi: 10.1086/282146

Hall, C. R., Carroll, A. R., and Kitching, R. L. (2017). A meta-analysis of the effects of galling insects on host plant secondary metabolites. *Arthropod. Plant Inter.* 11, 463–473. doi: 10.1007/s11829-016-9486-0

Hanson, P. E. (1995). "Phytophagy in larval Hymenoptera," in *The Hymenoptera of Costa Rica*, eds P. E. Hanson and I. A. Gauld (Oxford: Oxford University Press), 32–40.

Hawkins, B. A., Cornell, H. V., and Hochberg, M. E. (1997). Predators, parasitoids, and pathogens as mortality agents in phytophagous insect populations. *Ecology* 78, 2145–2152. doi: 10.1890/0012-9658(1997)078[2145:ppam]2.0.co;2

Heath, J. J., and Stireman, J. O. (2010). Dissecting the association between a gall midge, *Asteromyia carbonifera*, and its symbiotic fungus, *Botryosphaeria dothidea*. *Entomol. Exp. Appl.* 137, 36–49. doi: 10.1111/j.1570-7458.2010.01040.x

Hering, E. M. (1951). *Biology of the Leaf Miners*. Gravenhage: Uitgeverij Junk.

Hulcr, J., and Stelinski, L. L. (2017). The ambrosia symbiosis: from evolutionary ecology to practical management. *Annu. Rev. Entomol.* 62, 285–303. doi: 10. 1146/annurev-ento-031616-035105

Inbar, M., Eshel, A., and Wool, D. (1995). Interspecific competition among phloem-feeding insects mediated by induced host-plant sinks. *Ecology* 76, 1506–1515. doi: 10.2307/1938152

Jackman, J. A., and Lu, W. H. (2002). "Mordellidae Latreille 1802," in *American Beetles Polyphaga: Scarabaeoidea through Curculionoidea*, eds R. H. Arnett Jr., M. C. Thomas, P. E. Skelley, and J. H. Frank (Boca Raton, FL: CRC Press), 423–430.

Janzen, D. H. (1971). Seed predation by animals. *Annu. Rev. Ecol. Syst.* 2, 465–492. doi: 10.1146/annurev.es.02.110171.002341

Johnson, K. P., Dietrich, C. H., Friedrich, F., Beutel, R. G., Wipfler, B., Peters, R. S., et al. (2018). Phylogenomics and the evolution of hemipteroid insects. *Proc. Natl. Acad. Sci. U.S.A.* 115, 12775–12780.

Julião, G. R., Venticinque, E. M., Fernandes, G. W., and Price, P. W. (2014). Unexpected high diversity of galling insects in the Amazonian upper canopy: the savanna out there. *PLoS One* 9:e114986. doi: 10.1371/journal.pone.0114986

Kaiser, W., Huguet, E., Casas, J., Commin, C., and Giron, D. (2010). Plant green-island phenotype induced by leaf-miners is mediated by bacterial symbionts. *Proc. R. Soc. Lond. B Biol. Sci.* 277, 2311–2319. doi: 10.1098/rspb.2010.0214

Kaplan, I., and Denno, R. F. (2007). Interspecific interactions in phytophagous insects revisited: a quantitative assessment of competition theory. *Ecol. Lett.* 10, 977–994. doi: 10.1111/j.1461-0248.2007.01093.x

Kaspar, S., Peukert, M., Svatos, A., Matros, A., and Mock, H. P. (2011). MALDI-imaging mass spectrometry–an emerging technique in plant biology. *Proteomics* 11, 1840–1850. doi: 10.1002/pmic.201000756

Kimmerer, T. W., and Potter, D. A. (1987). Nutritional quality of specific leaf tissues and selective feeding by a specialist leafminer. *Oecologia* 71, 548–551. doi: 10.1007/BF00379295

Kingsolver, J. M. (2002). "Bruchidae Latreille 1802," in *American Beetles Polyphaga: Scarabaeoidea through Curculionoidea*, eds R. H. Arnett Jr., M. C. Thomas, P. E. Skelley, and J. H. Frank (Boca Raton, FL: CRC Press), 602–608.

Korotyaev, B. A., Konstantinov, A. S., Lingafelter, S. W., Mandelshtam, M. Y., and Volkovitsh, M. G. (2005). "Gall-inducing Coleoptera," in *Biology, Ecology, and Evolution of Gall- inducing Arthropods*, eds A. Raman, C. W. Schaefer, and T. M. Withers (Enfield, NH: Science Publishers, Inc), 239–271.

Koyama, Y., Yao, I., and Akimoto, S. I. (2004). Aphid galls accumulate high concentrations of amino acids: a support for the nutrition hypothesis for gall formation. *Entomol. Exp. Appl.* 113, 35–44. doi: 10.1111/j.0013-8703.2004.00207.x

Kristensen, N. P., Scoble, M. J., and Karsholt, O. L. E. (2007). Lepidoptera phylogeny and systematics: the state of inventorying moth and butterfly diversity. *Zootaxa* 1668, 699–747. doi: 10.11646/zootaxa.1668.1.30

La Salle, J. (2005). "Biology of gall inducers and evolution of gall induction in Chalcidoidea (Hymenoptera: Eulophidae, Eurytomidae, Pteromalidae, Tanaostigmatidae, Torymidae)," in *Biology, Ecology, and Evolution of Gall- inducing Arthropods*, eds A. Raman, C. W. Schaefer, and T. M. Withers (Enfield, NH: Science Publishers, Inc), 507–537.

Labandeira, C. C. (1997). Insect mouthparts: ascertaining the paleobiology of insect feeding strategies. *Annu. Rev. Ecol. Syst.* 28, 153–193. doi: 10.1146/annurev. ecolsys.28.1.153

Labandeira, C. C. (2005). "Fossil history and evolutionary ecology of Dioptera and their associations with plants," in *The Evolutionary Biology of Flies*, eds D. K. Yeates and B. M. Wiegmann (New York, NY: Columbia University Press), 217–273.

Labandeira, C. C., Dilcher, D. L., Davis, D. R., and Wagner, D. L. (1994). Ninety-seven million years of angiosperm-insect association: paleobiological insights into the meaning of coevolution. *Proc. Natl. Acad. Sci. U.S.A.* 91, 12278–12282. doi: 10.1073/pnas.91.25.12278

Labandeira, C. C., and Phillips, T. L. (1996). A Carboniferous insect gall: insight into early ecologic history of the Holometabola. *Proc. Natl. Acad. Sci. U.S.A.* 93, 8470–8474. doi: 10.1073/pnas.93.16.8470

Larson, K. C., and Whitham, T. G. (1991). Manipulation of food resources by a gall-forming aphid: the physiology of sink-source interactions. *Oecologia* 88, 15–21. doi: 10.1007/bf00328398

Larson, K. C., and Whitham, T. G. (1997). Competition between gall aphids and natural plant sinks: plant architecture affects resistance to galling. *Oecologia* 109, 575–582. doi: 10.1007/s004420050119

Lieutier, F., Bermudez Torres, K., Cook, J., Harris, M., Legal, L., Sallé, A., et al. (2017). "From plant exploitation to mutualism," in *Advances in Botanical Research*, eds N. Sauvion, P.-A. Calatayud, and D. Thiéry (Amsterdam: Elsevier).

Martin, M. M. (1991). The evolution of cellulose digestion in insects. *Philos. Trans. Biol. Sci.* 333, 281–288. doi: 10.1098/rstb.1991.0078

Marvaldi, A. E., Sequeira, A. S., O'Brien, C. W., and Farrell, B. D. (2002). Molecular and morphological phylogenetics of weevils (Coleoptera, Curculionoidea): do niche shifts accompany diversification? *Syst. Biol.* 51, 761–785. doi: 10.1080/10635150290102465

Massini, J. G., Falaschi, P., and Zamuner, A. B. (2012). Fungal–arthropod–plant interactions from the Jurassic petrified forest Monumento Natural Bosques Petrificados, Patagonia, Argentina. *Palaeogeogr. Palaeoclimatol. Palaeoecol.* 329, 37–46. doi: 10.1016/j.palaeo.2012.02.007

McAlpine, J. F., Peterson, B. V., Shewell, G. E., Teskey, H. J., Vockeroth, J. R., and Wood, D. M. (1981). *Manual of Nearctic Diptera. Agriculture Canada Monograph No.* 27, Vol. 1. Ottawa, ON: Research Branch, Agriculture Canada.

McAlpine, J. F., Peterson, B. V., Shewell, G. E., Teskey, H. J., Vockeroth, J. R., and Wood, D. M. (1987). *Manual of Nearctic Diptera. Agriculture Canada Monograph No.* 28, Vol. 2. Ottawa, ON: Research Branch, Agriculture Canada.

McKenna, D. D., Shin, S., Ahrens, D., Balke, M., Beza-Beza, C., Clarke, D. J., et al. (2019). The evolution and genomic basis of beetle diversity. *Proc. Natl. Acad. Sci. U.S.A.* 116, 24729–24737.

Menken, S. B., Boomsma, J. J., and Van Nieukerken, E. J. (2010). Large-scale evolutionary patterns of host plant associations in the lepidoptera. *Evolution* 64, 1098–1119. doi: 10.1111/j.1558-5646.2009.00889.x
Miller, D. G. III (2005). Ecology and radiation of galling aphids (Tamala; Hemiptera: Aphididae) on their host plants (Ericaceae). *Basic Appl. Ecol.* 6, 463-469. doi: 10.1016/j.baae.2005.07.005

Miller, D. G. III, Ivey, C. T., and Shedd, J. D. (2009). Support for the microenvironment hypothesis for adaptive value of gall induction in the California gall wasp, *Andricus quercuscalifornicus*. *Entomol. Exp. Appl.* 132, 126-133. doi: 10.1111/j.1570-7458.2009.00880.x

Mitter, C., Farrell, B., and Wiegmann, B. (1988). The phylogenetic study of adaptive zones: has phytophagy promoted insect diversification? *Am. Natural.* 132, 107–128. doi: 10.1086/284840

Moran, N. A. (1989). A 48-million-year-old aphid—host plant association and complex life cycle: biogeographic evidence. *Science* 245, 173–175. doi: 10.1126/science.245.4914.173

Morris, D. C., Mound, L. A., Schwarz, M. P., and Crespi, B. J. (1999). Morphological phylogenetics of Australian gall-inducing thrips and their allies: the evolution of host-plant affiliations, domicile use and social behaviour. *Syst. Entomol.* 24, 289–299. doi: 10.1046/j.1365-3113.1999.00083.x

Mothes, K., and Engelbrecht, L. (1961). Kinetin-induced directed transport of substances in excised leaves in the dark. *Phytochemistry* 1, 58–62. doi: 10.1016/S0031-9422(00)82812-5

Mound, L. A., and Morris, D. C. (2005). "Gall-inducing thrips: an evolutionary perspective," in *Biology, Ecology, and Evolution of Gall- inducing Arthropods*, eds A. Raman, C. W. Schaefer, and T. M. Withers (Enfield, NH: Science Publishers, Inc), 59-72.

Nakadai, R., and Kawakita, A. (2016). Phylogenetic test of speciation by host shift in leaf cone moths (Caloptilia) feeding on maples (Acer). *Ecol. Evol.* 6, 4958-4970. doi: 10.1002/ece3.2266

Nakamura, M., Miyamoto, Y., and Ohgushi, T. (2003). Gall initiation enhances the availability of food resources for herbivorous insects. *Funct. Ecol.* 17, 851–857. doi: 10.1111/j.1365-2435.2003.00786.x

Nyman, T., Farrell, B. D., Zinovjev, A. G., and Vikberg, V. (2006). Larval habits, host-plant associations, and speciation in nematine sawflies (Hymenoptera: Tenthredinidae). *Evolution* 60, 1622–1637. doi: 10.1554/05-674.1

Nyman, T., and Julkunen-Tiitto, R. (2000). Manipulation of the phenolic chemistry of willows by gall-inducing sawflies. *Proc. Natl. Acad. Sci. U.S.A.* 97, 13184–13187. doi: 10.1073/pnas.230294097

Nyman, T., Roininen, H., and Vuorinen, J. A. (1998). Evolution of different gall types in willow-feeding sawflies (Hymenoptera: Tenthredinidae). *Evolution* 52, 465-474. doi: 10.2307/2411082

Nyman, T., Widmer, A., and Roininen, H. (2000). Evolution of gall morphology and host-plant relationships in willow-feeding sawflies (Hymenoptera: Tenthredinidae). *Evolution* 54, 526–533. doi: 10.1111/j.0014-3820.2000.tb00055.x

Oberprieler, R. G., Marvaldi, A. E., and Anderson, R. S. (2007). Weevils, weevils, weevils everywhere. *Zootaxa* 1668, 491–520. doi: 10.11646/zootaxa.168 6.1.24

Overholt, W. A., Diaz, R., Rosskopf, E., Green, S. J., and Overholt, W. A. (2015). Deep characterization of the microbiomes of Calophya spp. (Hemiptera: Calophyidae) gall-inducing psyllids reveals the absence of plant pathogenic bacteria and three dominant endosymbionts. *PLoS One* 10:e0132248. doi: 10.1371/journal.pone.0132248

Pascual-Alvarado, E., Cuevas-Reyes, P., Quesada, M., and Oyama, K. (2008). Interactions between galling insects and leaf-feeding insects: the role of plant phenolic compounds and their possible interference with herbivores. *J. Trop. Ecol.* 24, 329–336. doi: 10.1017/s0266467408005038

Pelaez, J. N., Gloss, A. N., Ray, J. F., and Whiteman, N. K. (2020). Evolution and genetic basis of the plant-penetrating ovipositor, a key adaptation in the transition to herbivory within the Drosophilidae. *bioRxiv* doi: 10.1101/2020.05.07.083253

Peters, R. S., Krogmann, L., Mayer, C., Donath, A., Gunkel, S., Meusemann, K., et al. (2017). Evolutionary history of the Hymenoptera. *Curr. Biol.* 27, 1013–1018.

Peters, R. S., Meusemann, K., Petersen, M., Mayer, C., Wilbrandt, J., Ziesmann, T., et al. (2014). The evolutionary history of holometabolous insects inferred from transcriptome-based phylogeny and comprehensive morphological data. *BMC Evol. Biol.* 14:52. doi: 10.1186/1471-2148-14-52

Peterson, D. A., Hardy, N. B., and Normark, B. B. (2016). Micro-and macroevolutionary trade-offs in plant-feeding insects. *Am. Nat.* 188, 640–650. doi: 10.1086/688764

Pincebourde, S., and Casas, J. (2016). Hypoxia and hypercarbia in endophagous insects: larval position in the plant gas exchange network is key. *J. Insect Physiol.* 84, 137–153. doi: 10.1016/j.jinsphys.2015.07.006

Pincebourde, S., and Casas, J. M. (2006). Multitrophic biophysical budgets: thermal ecology of an intimate herbivore insect–plant interaction. *Ecol. Monogr.* 76, 175–194. doi: 10.1890/0012-9615(2006)076[0175:mbbteo]2.0.co;2

Pincebourde, S., Sinoquet, H., Combes, D., and Casas, J. (2007). Regional climate modulates the canopy mosaic of favourable and risky microclimates for insects. *J. Anim. Ecol.* 76, 424–438. doi: 10.1111/j.1365-2656.2007.01231.x

Powell, J. A., Mitter, C., and Farrell, B. D. (1998). "Evolution of larval feeding habits in Lepidoptera," in *Handbook of Zoology 4. Lepidoptera: Systematics and Evolution*, Vol. 1, ed. N. P. Kristensen (Berlin: Walter de Gruyter), 403–422.

Price, P. W. (1992). "Evolution and ecology of gall-inducing sawflies," in *Biology of insect induced galls*, eds J. D. Shorthouse and O. Rohfritsch (New York, NY: Oxford University Press), 208–223.

Price, P. W., Fernandes, G. W., Lara, A. C. F., Brawn, J., Barrios, H., Wright, M. G., et al. (1998). Global patterns in local number of insect galling species. *J. Biogeogr.* 25, 581–591. doi: 10.1046/j.1365-2699.1998.2530581.x

Price, P. W., Fernandes, G. W., and Warring, G. L. (1987). Adaptive nature of insect galls. *Environ. Entomol.* 16, 15–24. doi: 10.1093/ee/16.1.15

Price, P. W., and Pschorn-Walcher, H. (1988). Are galling insects better protected against parasitoids than exposed feeders?: a test using tenthredinid sawflies. *Ecol. Entomol.* 13, 195–205. doi: 10.1111/j.1365-2311.1988.tb00347.x

Prior, K. M., and Hellmann, J. J. (2010). Impact of an invasive oak gall wasp on a native butterfly: a test of plant-mediated competition. *Ecology* 91, 3284–3293. doi: 10.1890/09-1314.1

Raman, A., Schafer, C. W., and Withers, T. M. (2005). "Galls and gall-inducing arthropods: an overview of their biology, ecology, and evolution," in *Biology, Ecology, and Evolution of Gall – inducing Arthropods*, eds A. Raman, C. W. Schafer, and T. M. Withers (Enfield, NH: Science Publishers, Inc), 1–33.

Regier, J. C., Mitter, C., Kristensen, N. P., Davis, D. R., Van Nieukerken, E. J., Rota, J., et al. (2015). A molecular phylogeny for the oldest (nonditrysal) lineages of extant L epidoptera, with implications for classification, comparative morphology and life-history evolution. *Syst. Entomol.* 40, 671–704. doi: 10.1111/syen.12129

Regier, J. C., Mitter, C., Zwick, A., Bazinet, A. L., Cummings, M. P., Kawahara, A. Y., et al. (2013). A large-scale, higher-level, molecular phylogenetic study of the insect order Lepidoptera (moths and butterflies). *PLoS One* 8:58568. doi: 10.1371/journal.pone.0058568

Roininen, H., Nyman, T., and Zinovjev, A. (2005). "Biology, ecology, and evolution of gall-inducing sawflies (Hymenoptera: Tenthredinidae and Xyelidae)," in *Biology, Ecology, and Evolution of Gall- inducing Arthropods*, eds A. Raman, C. W. Schaefer, and T. M. Withers (Enfield, NH: Science Publishers, Inc), 467–494.

Roskam, J. C. (1992). "Evolution of the gall-inducing guild," in *Biology of Insect Induced Galls*, eds J. D. Shorthouse and O. Rohfritsch (New York, NY: Oxford University Press), 34–49.

Rossi, A. M., Stiling, P. D., Strong, D. R., and Johnson, D. M. (1992). Does gall diameter affect the parasitism rate of *Asphondylia borrichiae* (Diptera: Cecidomyiidae)? *Ecol. Entomol.* 17, 149–154. doi: 10.1111/j.1365-2311.1992.tb01172.x

Rostás, M., Maag, D., Ikegami, M., and Inbar, M. (2013). Gall volatiles defend aphids against a browsing mammal. *BMC Evol. Biol.* 13:193. doi: 10.1186/1471-2148-13-193

Saltzmann, K. D., Giovanini, M. P., Zheng, C., and Williams, C. E. (2008). Virulent Hessian fly larvae manipulate the free amino acid content of host wheat plants. *J. Chem. Ecol.* 34, 1401–1410. doi: 10.1007/s10886-008-9544-x

Schultz, B. B. (1992). Insect herbivores as potential causes of mortality and adaptation in gall-forming insects. *Oecologia* 90, 297–299. doi: 10.1007/bf00317190

Sharkey, M. J. (2007). Phylogeny and classification of Hymenoptera. *Zootaxa* 1668, 521–548. doi: 10.11646/zootaxa.1668.1.25

Sinclair, R. J., and Hughes, L. (2010). Leaf miners: the hidden herbivores. *Aust. Ecol.* 35, 300–313. doi: 10.1111/j.1442-9993.2009.02039.x
Snodgrass, R. E. (1935). *Principles of Insect Morphology*. New York, NY: McGraw-Hill Book Company. Inc.

Solomon, J. D. (1995). *Guide to Insect Borers in North American Broadleaf Trees and Shrubs*. Washington, DC: U.S. Department of Agriculture, Forest Service.

Stiling, P., and Simberloff, D. (1989). Leaf abscission: induced defense against pests or response to damage? *Oikos* 55, 43–49. doi: 10.2307/3565870

Stone, G. N., and Schönrogge, K. (2003). The adaptive significance of insect gall morphology. *Trends Ecol. Evol.* 18, 512–522. doi: 10.1016/s0169-5347(03) 00247-7

Strong, D. R., Lawton, J. H., and Southwood, R. (1984). *Insects on Plants: Community Patterns and Mechanisms*. Oxford: Blackwell Scientific Publications.

Stuart, J. J., Chen, M. S., Shukle, R., and Harris, M. O. (2012). Gall midges (Hessian flies) as plant pathogens. *Annu. Rev. Phytopath.* 50, 339–357. doi: 10.1146/ annurev-phyto-072910-095255

Taylor, G. S., Head, E. R., and Davies, K. A. (2005). "Gall fies (Diptera: Fergusoninidae) on Myrtaceae: a mutualistic association between flies and nematodes," in *Biology, Ecology, and Evolution of Gall- inducing Arthropods*, eds A. Raman, C. W. Schaefer, and T. M. Withers (Enfield, NH: Science Publishers, Inc), 643–671.

Tooker, J. F., and De Moraes, C. M. (2007). Feeding by Hessian fly [*Mayetiola destructor* (Say)] larvae does not induce plant indirect defences. *Ecol. Entomol.* 32, 153–161. doi: 10.1111/j.1365-2311.2007.00852.x

Tooker, J. F., and De Moraes, C. M. (2009). A gall-inducing caterpillar species increases essential fatty acid content of its host plant without concomitant increases in phytohormone levels. *Mol. Plant Microbe Interact.* 22, 551–559. doi: 10.1094/mmpi-22-5-0551

Tooker, J. F., and De Moraes, C. M. (2011a). Feeding by a gall-inducing caterpillar species increases levels of indole-3-acetic and decreases abscisic acid in *Solidago altissima* stems. *Arthropod Plant Interact.* 5, 115–124. doi: 10.1007/s11829-010- 9120-5

Tooker, J. F., and De Moraes, C. M. (2011b). Feeding by Hessian fly (*Mayetiola destructor* [Say]) larvae increases levels of fatty acids and indole-3-acetic acid, but not hormones involved in plant-defense signaling. *J. Plant Growth Regul.* 30, 158–165. doi: 10.1007/s00344-010-9177-5

Tooker, J. F., and Hanks, L. M. (2006). Tritrophic interactions influence reproduction of prairie perennials (Asteraceae: *Silphium*). *Environ. Entomol.* 35, 537–545. doi: 10.1603/0046-225x-35.2.537

Tooker, J. F., Rohr, J. R., Abrahamson, W. G., and De Moraes, C. M. (2008). Gall insects can avoid and alter indirect plant defenses. *N. Phytol.* 178, 657–671. doi: 10.1111/j.1469-8137.2008.02392.x

Turnbow, R. H., and Thomas, M. C. (2002). "Cerambycidae Leach 1815," in *American Beetles Polyphaga: Scarabaeoidea Through Curculionoidea*, eds R. H. Arnett Jr., M. C. Thomas, P. E. Skelley, and J. H. Frank (Boca Raton, FL: CRC Press), 568–601. doi: 10.1201/9781420041231.ch8

Wäckers, F. L., and Lewis, W. J. (1999). A comparison of color-, shape-and pattern-learning by the hymenopteran parasitoid Microplitis croceipes. *J. Comp. Physiol. A* 184, 387–393. doi: 10.1007/s003590050337

Waring, G. L., and Price, P. W. (1989). Parasitoid pressure and the radiation of a gallforming group (Cecidomyiidae: Asphondylia spp.) on creosote bush (Larrea tridentata). *Oecologia* 79, 293–299. doi: 10.1007/bf00384307

Weesner, F. M. (1960). Evolution and biology of the termites. *Annu. Rev. Entomol.* 5, 153–170.

Weiblen, G. D. (2002). How to be a fig wasp. *Annu. Rev. Entomol.* 47, 299–330. doi: 10.1146/annurev.ento.47.091201.145213

West, C. (1985). Factors underlying the late seasonal appearance of the lepidopterous leaf-mining guild on oak. *Ecol. Entomol.* 10, 111–120. doi: 10. 1111/j.1365-2311.1985.tb00540.x

Wharton, R. A., and Hanson, P. E. (2005). "Biology and evolution of braconid gall wasps (Hymenoptera)," in *Biology, Ecology, and Evolution of Gall- inducing Arthropods*, eds A. Raman, C. W. Schaefer, and T. M. Withers (Enfield, NH: Science Publishers, Inc), 494–505.

Whiteman, N. K., Groen, S. C., Chevasco, D., Bear, A., Beckwith, N., Gregory, T. R., et al. (2011). Mining the plant–herbivore interface with a leaf-mining Drosophila of Arabidopsis. *Mol. Ecol.* 20, 995–1014. doi: 10.1111/j.1365-294x. 2010.04901.x

Wiegmann, B. M., Mitter, C., Regier, J. C., Friedlander, T. P., Wagner, D. M., and Nielsen, E. S. (2000). Nuclear genes resolve Mesozoic-aged divergences in the insect order Lepidoptera. *Mol. Phylogenet. Evol.* 15, 242–259. doi: 10.1006/ mpev.1999.0746

Wiegmann, B. M., Trautwein, M. D., Winkler, I. S., Barr, N. B., Kim, J. W., Lambkin, C., et al. (2011). Episodic radiations in the fly tree of life. *Proc. Natl. Acad. Sci. U.S.A.* 108, 5690–5695. doi: 10.1073/pnas.1012675108

Wiens, J. J., Lapoint, R. T., and Whiteman, N. K. (2015). Herbivory increases diversification across insect clades. *Nat. Commun.* 6:8370.

Williams, A. G., and Whitham, T. G. (1986). Premature leaf abscission: an induced plant defense against gall aphids. *Ecology* 67, 1619–1627. doi: 10.2307/193 9093

Wool, D. (2005). "Gall-inducing aphids: biology, ecology, and evolution," in *Biology, Ecology, and Evolution of Gall- inducing Arthropods*, eds A. Raman, C. W. Schaefer, and T. M. Withers (Enfield, NH: Science Publishers, Inc), 73–132.

Yamaguchi, H., Tanaka, H., Hasegawa, M., Tokuda, M., Asami, T., and Suzuki, Y. (2012). Phytohormones and willow gall induction by a gall-inducing sawfly. *N. Phytol.* 196, 586–595. doi: 10.1111/j.1469-8137.2012.04264.x

Yang, M. M., and Mitter, C. (1994). "Biosystematics of hackberry psyllids (Pachypylla) and the evolution of gall and lerp formation in psyllids (Homoptera: Psyloidea): a preliminary report," in *The Ecology and Evolution of Gall-Forming Insects*. USDA Forest Service General Technical Report NC-174, eds P. W. Price, M. J. Mattson, and. Y. N. Baranchikov (Washington, DC: USDA), 172–185

Young, D. K. (2001). "Cupedidae Laporte, 1836," in *American Beetles: Archostemata, Myxophaga, Adephaga, Polyphaga: Staphyliniformia*, eds R. H. Arnett Jr, M. C. Thomas (Boca Raton, FL: CRC Press), 19–21.

Zhang, H., de Bernonville, T. D., Body, M., Glevarec, G., Reichelt, M., Unsicker, S., et al. (2016). Leaf-mining by *Phyllonorycter blancardella* reprograms the host-leaf transcriptome to modulate phytohormones associated with nutrient mobilization and plant defense. *J. Insect Physiol.* 84, 114–127. doi: 10.1016/j. jinsphys.2015.06.003

**Conflict of Interest:** The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Copyright © 2020 Tooker and Giron. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.