<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Linking Ecological Specialization to Its Macroevolutionary Consequences: An Example with Passerine Nest Type</title></titleStmt>
			<publicationStmt>
				<publisher>Systematic Biology</publisher>
				<date>05/30/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10536584</idno>
					<idno type="doi">10.1093/sysbio/syac083</idno>
					<title level='j'>Systematic Biology</title>
<idno>1063-5157</idno>
<biblScope unit="volume">72</biblScope>
<biblScope unit="issue">2</biblScope>					

					<author>Rosana Zenil-Ferguson</author><author>Jay P McEntee</author><author>J Gordon Burleigh</author><author>Renée A Duckworth</author><author>Sara Ruane</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[<title>Abstract</title> <p>A long-standing hypothesis in evolutionary biology is that the evolution of resource specialization can lead to an evolutionary dead end, where specialists have low diversification rates and limited ability to evolve into generalists. In recent years, advances in comparative methods investigating trait-based differences associated with diversification have enabled more robust tests of this idea and have found mixed support. We test the evolutionary dead end hypothesis by estimating net diversification rate differences associated with nest-type specialization among 3224 species of passerine birds. In particular, we test whether the adoption of hole-nesting, a nest-type specialization that decreases predation, results in reduced diversification rates relative to nesting outside of holes. Further, we examine whether evolutionary transitions to the specialist hole-nesting state have been more frequent than transitions out of hole-nesting. Using diversification models that accounted for background rate heterogeneity and different extinction rate scenarios, we found that hole-nesting specialization was not associated with diversification rate differences. Furthermore, contrary to the assumption that specialists rarely evolve into generalists, we found that transitions out of hole-nesting occur more frequently than transitions into hole-nesting. These results suggest that interspecific competition may limit adoption of hole-nesting, but that such competition does not result in limited diversification of hole-nesters. In conjunction with other recent studies using robust comparative methods, our results add to growing evidence that evolutionary dead ends are not a typical outcome of resource specialization. [Cavity nesting; diversification; hidden-state models; passerines; resource specialization.]</p>]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>Resource specialization, where species use a narrower range of resources compared to related taxa <ref type="bibr">(Futuyma and Moreno 1988)</ref>, is a common phenomenon in evolution. There are many reasons resource specialization (hereafter specialization) can evolve. For example, specialists can benefit from reduced competition, or from the avoidance of predators or parasites <ref type="bibr">(Futuyma and Moreno 1988;</ref><ref type="bibr">Bernays 1989;</ref><ref type="bibr">Schluter 2000)</ref>. Once evolved, specialization can have diverse consequences for macroevolutionary dynamics. Historically, specialization often has been considered an evolutionary dead end, possibly resulting in both reduced net diversification relative to generalists, and difficulty evolving from specialist to generalist <ref type="bibr">(Day et al. 2016)</ref>. This difficulty is thought to arise when adaptation to specialized resources occurs across numerous traits <ref type="bibr">(Futuyma and Moreno 1988)</ref>, and, when coupled with changes in resource availability, leads to elevated extinction rates in specialists. In addition, reduced diversification of specialists could result if the number of available niches in the specialized state is low.</p><p>Consistent with the evolutionary dead end view of specialists, the prevailing historical viewpoint was that specialists evolve from generalist ancestors <ref type="bibr">(Schluter 2000)</ref>. Prior studies have found mixed support for this viewpoint, with inferences from phylogenetic comparative methods showing that generalists regularly evolve from specialists in many clades <ref type="bibr">(Day et al. 2016;</ref><ref type="bibr">Sexton et al. 2017;</ref><ref type="bibr">Villastrigo et al. 2021)</ref>. These results indicate that the dominant direction of evolutionary transitions involving specialization should be treated as an open question for any specialization scenario.</p><p>More recent studies have also noted the potential for specialization to increase diversification through multiple mechanisms. First, the release of specialists from the effects of competition and/or predation could trigger periods of niche-filling diversification <ref type="bibr">(Schluter 2000)</ref>, leading to higher rates of speciation in specialists compared to generalists. Further, in circumstances where specialization releases specialists from competition or predation <ref type="bibr">(Futuyma and Moreno 1988)</ref>, specialists may experience greater population persistence than generalists, which could increase diversification rates by decreasing extinction rates or by increasing rates of allopatric speciation via the longer survival of incipient lineages <ref type="bibr">(Harvey et al. 2019)</ref>, or both. Finally, specialist lineages could also have higher diversification rates if more specialized lineages have more fragmented distributions or lower rates of dispersal <ref type="bibr">(Gavrilets et al. 2000;</ref><ref type="bibr">Birand et al. 2012)</ref>.</p><p>Recent diversification models and statistical developments have the potential to alter our conclusions on the macroevolutionary consequences of specialization. A growing awareness of type I error <ref type="bibr">(Davis et al. 2013;</ref><ref type="bibr">Rabosky and Goldberg 2015)</ref>, the importance of large sample sizes for statistical power <ref type="bibr">(Davis et 295 al. 2013;</ref><ref type="bibr">Day et al. 2016)</ref>, and the misspecification of the null hypothesis for the original state-dependent diversification models <ref type="bibr">(Beaulieu and O'Meara 2016;</ref><ref type="bibr">Rabosky and Goldberg 2017;</ref><ref type="bibr">Caetano et al. 2018</ref>) have produced a wave of new studies using comprehensive statistical approaches on the question of whether specialization is linked to diversification. The majority of studies after <ref type="bibr">Day et al.'s (2016)</ref> review on specialization have found either no association between specialization and diversification (e.g., <ref type="bibr">Alhajeri and Steppan 2018;</ref><ref type="bibr">Crouch and Ricklefs 2019;</ref><ref type="bibr">Villastrigo et al. 2020)</ref> or have found that specialization is associated with higher diversification rates (e.g., <ref type="bibr">Conway and Olsen 2019;</ref><ref type="bibr">Otero et al. 2019;</ref><ref type="bibr">Tonini et al. 2020)</ref>, with few studies indicating specialization leads to an evolutionary dead end (e.g., <ref type="bibr">Day et al. 2016;</ref><ref type="bibr">Cyriac and Kodandaramaiah 2018)</ref>. Although these newer studies have relatively large sample sizes (compared to pre-2016 studies) and more transitions to specialist states, some of the sample sizes are still too small to fit state-dependent diversification models with more than two states <ref type="bibr">(Davis et al. 2013</ref>) and to have enough power to estimate specialization's consequences for diversification <ref type="bibr">(Davis et al. 2013</ref>). This has also been difficult to accomplish because, for the majority of the software that fits state-dependent diversification models, estimating intervals requires complex likelihood function maximizations <ref type="bibr">(Zenil-Ferguson et al. 2018)</ref> or many bootstrap simulations to approximate confidence-likelihood intervals for diversification parameters <ref type="bibr">(FitzJohn 2012;</ref><ref type="bibr">Beaulieu et al. 2021)</ref>. Moving forward it is necessary to integrate models that incorporate more states and more parameters that mathematically link multiple specialist and generalist states to the process of diversification whereas accounting for the potential for heterogeneity in the diversification process <ref type="bibr">(Beaulieu and O'Meara 2016)</ref>. Furthermore, the calculation of uncertainty for the parameter estimates in more complex models is key to understanding the power of the sample and testing whether specialization is linked to diversification.</p><p>Here, we highlight these methodological approaches with a large data set on nest type for 3224 species of passerine birds. Passerines provide a unique opportunity to examine the macroevolutionary consequences of specialization. Specifically, hole-nesting is a prime example of resource specialization which has evolved multiple times across the clade of 6000 passerine taxa, providing the power needed to estimate rates of diversification linked to trait evolution. Second, passerines can be grouped into three general nesting habits: open-cup nesters, dome nesters, and hole nesters (e.g., <ref type="bibr">Wallace 1868;</ref><ref type="bibr">Martin 1995;</ref><ref type="bibr">Collias 1997)</ref>. Open-cup and dome nesters are relatively unspecialized in their nesting type compared with hole-nesters; however, similar to hole nesters, dome nesters have reduced predation rates compared with open-cup nesters <ref type="bibr">(Oniki 1979a;</ref><ref type="bibr">Linder and Bollinger 1995;</ref><ref type="bibr">Auer et al. 2007;</ref><ref type="bibr">Martin et al. 2017)</ref>. Therefore, our approach of comparing the adoption of these three nest types enables us to simultaneously assess the potential effects of nest-type specialization and escape from predation on diversification rates (Fig. <ref type="figure">1</ref>).</p><p>We employ a graphical modeling approach <ref type="bibr">(Jordan 2004)</ref> in Bayesian statistics to infer point estimates and credible intervals of parameters from state-dependent speciation and extinction models (SSE models), and diversification-free models (Mkn-Markov models without state-specific diversification parameters) coded in RevBayes software <ref type="bibr">(H&#246;hna et al. 2016)</ref>. The large nest-type data set and phylogenetic tree are the input to models that are estimated in a Bayesian framework and this enables us to avoid a number of the common pitfalls discussed above. In addition, we adopt a systematic approach to specifying prior distributions to model enhanced extinction rates to assess the consistency of the statistical inference across a spectrum of macroevolutionary diversification scenarios. Finally, after determining the best model for the evolution of nest type, we used it to reconstruct ancestral states of nest types to visualize the pattern of evolutionary history for the trait and compare it with previous ancestral state reconstructions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Nest Type Evolution and Its Potential Links to Diversification</head><p>Nest-type selection is a critically important aspect of avian habitat because nest failure rates are high in birds <ref type="bibr">(Nice 1957)</ref> with predation as the main cause . The nest types of passerine taxa differ by how specialized they are in nest site and in their predation risk. Hole is the most specialized nest-type and has the smallest predation risk, followed by dome with also a lower risk but relatively unspecialized in its nesting substrate. Finally, open-cups have the highest predation risk but are also considered unspecialized. Nest colors represent the colors of the states for the models presented.</p><p>of nestling mortality <ref type="bibr">(Ricklefs 1969;</ref><ref type="bibr">Martin 1993)</ref>. Adoption of hole-nesting has the advantage of protecting offspring from predation, as non-excavating hole nesters show an approximate 43% reduction in nest failure compared with non-hole nesters <ref type="bibr">(Martin 1995)</ref>. Thus, a major ecological consequence of hole-nesting specialization is that it increases nesting success by providing a release from predation. Hole-nesting represents resource specialization for two reasons: the great majority of species that nest in holes do so obligately, and exclusive use of holes greatly restricts the substrates that are suitable for nest building.</p><p>Hole-nesting is associated with the evolution of a suite of traits, such as increased nesting period, brighter egg coloration, and larger clutch sizes, that may make it difficult to transition out of hole-nesting <ref type="bibr">(Martin and Li 1992;</ref><ref type="bibr">Kilner 2006)</ref>. Moreover, the great majority of hole-nesting passerines cannot excavate their own nest holes, and competition for this limited resource is intense <ref type="bibr">(Newton 1994)</ref>. Although hole-nesting likely evolves as a response to predation pressure, the intense competition for nesting sites decreases nest hole availability <ref type="bibr">(Cockle et al. 2011)</ref>. This competition may limit ecological opportunity for hole-nesting lineages despite the reduction in predation pressure. Further, reliance on holes for nesting may increase extinction risk when environmental changes reduce nest hole availability, particularly if transitioning from hole-nesting is difficult. This combination of characteristics makes hole-nesting in passerines a form of specialization that could be an evolutionary dead end. However, as hole-nesting decreases nest predation, it is also possible that adopting hole-nesting could lead to greater population persistence over time which, in turn, could lead to reduced extinction rates or increased rates of allopatric speciation <ref type="bibr">(Harvey et al. 2019</ref>). Thus, it is also possible that hole-nesting lineages could experience greater diversification rates than the more generalist non-hole-nesting lineages.</p><p>The evolutionary dead end hypothesis assumes that it is easy to adopt hole-nesting habits, but difficult to transition out of them because of secondary adaptations that restrict evolutionary transitions <ref type="bibr">(Collias and Collias 1984)</ref>. In passerines, most hole nesters are secondary (i.e., they cannot make new cavities, and thus they rely on what is already in the environment), and so adoption of hole-nesting is mainly a behavioral shift not requiring extensive morphological modification (although see above for examples of life history traits associated with hole-nesting). This could make it relatively easy to evolve hole-nesting behavior. However, the intensely competitive environment that hole nesters face could mean that hole-nesting niches are already saturated, making it a more difficult habit to adopt. To examine these possibilities, we not only assess the impact of nest type on diversification rates but also calculate transition rates between states.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Materials and Methods</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Data</head><p>Our nesting data is a slightly adapted version of a data set originally assembled for <ref type="bibr">McEntee et al. (2021)</ref>. This data set was generated by scoring nesting behavior of passerine species using descriptions from the Handbook of the Birds of the World Alive, <ref type="bibr">(Del Hoyo et al. 2017</ref><ref type="bibr">, last accessed 30 June 2016, hereafter HBW)</ref>. Specifically, species' nests were scored as either open cup, dome, or hole. A few species show flexibility in nest type use among these three types, and are capable of nesting in, for example, either an open cup or a hole. We scored these examples accordingly as nesting in either. Hole refers to any nest built inside a tree cavity, rock crevice, or earthen bank. The small number of passerine brood parasites were excluded from analyses. <ref type="bibr">McEntee et al. (2021)</ref> were able to score the nest types for approximately three quarters of the 5912 passerine species from the information in the HBW species descriptions.</p><p>Next, we matched the passerine species in the nesting data set to the species' names on the tips of the avian supermatrix phylogeny of <ref type="bibr">Burleigh et al. (2015)</ref>, one of the largest phylogenetic trees of birds constructed exclusively from molecular data. This tree was time-calibrated using penalized likelihood in r8s <ref type="bibr">(Sanderson 2003)</ref> with 20 fossil calibrations from throughout the avian phylogeny <ref type="bibr">(Baiser et al. 2018)</ref>. We identified all cases in which a species in the <ref type="bibr">Burleigh et al. (2015)</ref> phylogenetic tree, which used the Clements taxonomy, did not have a corresponding species with the exact same name in the data set from the HBW Alive/BirdLife International taxonomy. This was due to either missing nesting data or a taxonomic mismatch. For taxonomic mismatches, we examined the taxonomic history for these species in Avibase (<ref type="url">https://avibase.bsc-eoc.  org/</ref>), and when appropriate, changed the species name in the nest data set to match the phylogenetic tree <ref type="bibr">(Burleigh et al. 2015)</ref>. Taxa treated as subspecies in the HBW taxonomy (2015) but as species in <ref type="bibr">Burleigh et al. (2015)</ref> were not included in our analyses because they did not occur as tips in the phylogenetic tree. We then trimmed the phylogenetic tree to include only species in the nesting data set from HBW. The resulting data set has the nesting state for 3224 passerine species. Of these, 1943 species had cup nests (D), 722 had dome nests (C), and 458 had hole nests ( H). Among species with multiple nest types, 60 were cup or hole nesters (CH), 29 were dome or cup nesters (DC), and 13 were dome or hole nesters (DH). In the few instances (less than 1% of internal nodes) where this tree was not bifurcating (required for the diversification analyses described below) because nodes were collapsed in the r8s analysis, we resolved bifurcations randomly using the function multi2di from the R package ape <ref type="bibr">(Paradis and Schliep 2019)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>297</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Modeling Nest Type Linked to Diversification</head><p>Using the three states assigned to the tips of the 3225taxon phylogenetic tree (3224 passerines plus a single species representing the parrot outgroup), we defined four state-dependent speciation and extinction models (SSEs) and one Markov model that we call diversification-free (because it does not contain speciation and extinction parameters Fig. <ref type="figure">2</ref>). The first multistate SSE model, called (Multistate speciation and extinction with three states (MuSSE-3), Fig. <ref type="figure">2a</ref>), uses three main states: dome D, cup C, and hole H (Fig. <ref type="figure">2a</ref>), each with their own speciation and extinction rate. MuSSE-3 also has transition rates between each state (qij with i, j = D, C, H, and i = j) governing the rate of evolution from one nest type to another. All transitions between nest types are possible. Taxa that have multiple nest types are coded in the input data as belonging to multiple states simultaneously. For example, a bird taxon reported to have nested in both hole and dome nests is coded in the input data as (H, D). For taxa (tips) with two nest types, the likelihood calculation includes the product of two transition probabilities from the most recent common ancestor to each potential state in the tips instead of a single transition probability from the most recent common ancestor to one single state.</p><p>The second model (Fig. <ref type="figure">2b</ref>) is the hidden state extension of the MuSSE-3 and it is called the multi and hidden state dependent speciation and extinction model (MuHiSSE-3). The hidden state extension includes background heterogeneity in the diversification rate that is not linked to the trait of interest <ref type="bibr">(Beaulieu and O'Meara 2016)</ref>, and <ref type="bibr">(Caetano et al. 2018</ref>). The MuHiSSE-3 model expanded from three single nest type states to six with subscripts A or B (Fig. <ref type="figure">2b</ref>).</p><p>The character independent model (CID-3) or null hypothesis model (Fig. <ref type="figure">2c</ref>) accommodates heterogeneity in the process of diversification completely unlinked from nest type but due to some unmeasured factors called hidden states. CID-3 specifies a null hypothesis that is comparable to <ref type="bibr">MuSSE-3 (Beaulieu and O'Meara 2016;</ref><ref type="bibr">Caetano et al. 2018</ref>) because both models have the same number of diversification rates. That is, the CID-3 has six speciation and extinction parameters but makes the net diversification for main nest type states D, C, H equal although assuming that the source of differences in diversification comes from the hidden states A, B, C. In mathematical terms the null hypothesis ( H 0 or CID-3 model) for a state-dependent diversification model with three states and six diversification rate parameters is:</p><p>Note that in the CID-3 notation the three refers to the number of hidden states that have different diversification rates, and not necessarily the number of states of the main trait as discussed in <ref type="bibr">Caetano et al. (2018)</ref>.</p><p>For all SSE models in Figure <ref type="figure">2</ref> we defined a prior distribution for the log-transformed speciation rates &#955; i to be a normal distribution with hyperparameters</p><p>12 &#228; with the phylogenetic tree age as 64.51 million years old. This choice of hyperparameter &#951; &#955; for the log-transformed speciation rate makes the expected average rate for speciation approximately &#181; &#955; = e &#951;&#955; = ln(3225/2) Tree Age = 0.11, representing an approximation to the current observed extant diversity of 3225 taxa in our tree conditional on having two extant lineages at the root of a phylogeny that is 64.5 million years old <ref type="bibr">(FitzJohn et al. 2009;</ref><ref type="bibr">Freyman and H&#246;hna 2019;</ref><ref type="bibr">Zenil-Ferguson et al. 2019)</ref>. Note that the age of the passerine crown in this phylogeny is 40.53 my but when adding the Strigops (parrot) outgroup as we have the resulting phylogeny is older. Defining hyperparameters and prior distributions is subjective, a broader discussion on eliciting priors and their hyperparameters was added to Supplementary Figs. <ref type="figure">S14</ref> and <ref type="figure">S15</ref>, showing that inferences are consistent and our likelihood function is informative for SSE models with the data presented. The same prior distributions were used for log-transformed extinction rates. For all models, we assume a sampling fraction &#961; = 0.51 because our tree contains about 51% of all passerine taxa.</p><p>In the supplementary information, we fit state-dependent diversification models with six states including taxa with two types of nesting as a separate state (i.e., cup and dome nesters get their own state DC) to investigate if different state-coding changes diversification and/or transition rates (Supplementary Fig. <ref type="figure">S5</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Testing the Role of Diversification in Nest-Type Evolution</head><p>To test if nest-type evolution is linked to the diversification of passerines, we calculated the marginal log-likelihoods for the MuSSE-3 and the character independent model (CID-3). Using the log-likelihoods we calculated Bayes factors <ref type="bibr">(Kass and Raftery 1995)</ref> to compare CID-3 against the MuSSE-3 model. To approximate the marginal log-likelihood we calculated 18 stepping stones using the methodology from <ref type="bibr">Xie et al. (2011)</ref>. We calculated the difference between the log-marginal likelihoods of CID-3 and MuSSE-3 models using the statistic &#954; defined as &#954; = ln(P(X|CID -3)) -ln(P(X|MuSSE -3)), where X represents our state sample and the phylogenetic tree. If &#954; has a value larger than 1, then the CID-3 model is preferred. The MuSSE-3 model is preferred when &#954; &lt; -1. The test statistic is inconclusive when &#954; has a value in the interval (--1, 1).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Diversification Models with Different assumptions About Extinction Rates</head><p>As the fossil record for passerines is relatively sparse (see e.g., <ref type="bibr">Mayr 2005;</ref><ref type="bibr">Tyrberg 2008</ref>) there is limited paleontological information from which to estimate extinction rates and species turnover over time. However, some fossil evidence for passerines suggests that extinction rates and turnover have been high. This evidence includes the extinctions of entire early lineages <ref type="bibr">(Hieronymus et al. 2019;</ref><ref type="bibr">Ksepka et al. 2019)</ref>, high turnover within Europe between the Oligocene and the present <ref type="bibr">(Mayr 2005;</ref><ref type="bibr">Manegold 2008;</ref><ref type="bibr">Bochenski et al. 2021)</ref>, and Pleistocene-Holocene species extinctions <ref type="bibr">(Rando 1999;</ref><ref type="bibr">Segu&#237; 2001;</ref><ref type="bibr">Claramunt and Rinderknecht 2005;</ref><ref type="bibr">Rando et al. 2010</ref><ref type="bibr">Rando et al. , 2017;;</ref><ref type="bibr">Oswald and Steadman 2015;</ref><ref type="bibr">Stefanini et al. 2016;</ref><ref type="bibr">Steadman and Oswald 2020)</ref>. In addition, evidence from molecular phylogenies of extant taxa suggests passerine turnover has been high <ref type="bibr">(Greenberg et al. 2021)</ref>. Unfortunately, diversification models fit to phylogenetic trees of extant taxa, as in this study, can greatly underestimate extinction rates <ref type="bibr">(Quental and Marshall 2010;</ref><ref type="bibr">H&#246;hna et al. 2011;</ref><ref type="bibr">Louca and Pennell 2021)</ref>, producing errors in diversification analyses <ref type="bibr">(Stadler 2013)</ref>. Thus, we sought to examine whether our results were robust to assumptions about extinction rate. This approach may be useful more generally, as classic paleontological work on extinction rates <ref type="bibr">(Raup 1992;</ref><ref type="bibr">Sepkoski 1998</ref>, see also <ref type="bibr">Marshall 2017)</ref> has suggested that speciation rates tend to be only slightly larger than extinction rates for clades with net positive diversification rates, and state-dependent diversification models generally have not accounted for this possibility.</p><p>In a Bayesian framework, one way to incorporate knowledge about higher extinction rates is by using a prior distribution that accommodates independent information about the magnitude of the rates. Therefore, in our three-state, and hidden-state models, we defined prior distributions for the extinction rates with elevated  C, H) and diversification rates (speciation and extinction) associated with each state. b) The multi and hidden state-dependent speciation and extinction model (MuHiSSE-3) expands the model to consider hidden states A and B (and transitions between them) to model the potential of other factors along with nest type in the process of diversification. c) The character independent model (CID-3) allows us to assess whether diversification is linked to some unmeasured factors that are independent from nest type. d) MuSSE-3 with prior distributions that restrict the parametric space allows us to infer trait-associated diversification differences where relative extinction is enhanced, a part of parameter space that is typically poorly explored in SSE models. e) MuHiSSE-3 with prior distributions that restrict the parametric space allows us to infer trait-associated diversification differences where relative extinction is enhanced. f) The Markov model (Mk3) assumes that there are no diversification rate differences among nest types, and transitions among nest types (D, C, H) are allowed.</p><p>lower bounds, and we systematically increased these lower bounds across model fits (Table <ref type="table">A1</ref>). We specified these lower bounds by making extinction rates' lower bound dependent on speciation rates. Hence, in mathematical form, we defined this process by using the linear function for extinction rates as &#181; i = A * &#955; i + &#948; where A=0.7, 0.8, 0.9, 1, 1.1, for all the states i=D,C,H (Fig. <ref type="figure">2d</ref>). We also explored the effect of enhanced extinction in the MuHiSSE-3 model by allowing A = 0.8 (Fig. <ref type="figure">2e</ref>). Defining the extinction rate prior distribution as a linear combination of random variables allowed us to fix the value A as the lower bound for the extinction fraction a i = &#181; i &#955; i (using use the same definition of extinction fraction as <ref type="bibr">Beaulieu and O'Meara 2016)</ref>, although permitting extra variability in the diversification rates so that extinction rates are not fully a deterministic function of speciation rates. For example, an extinction rate of dome-nesters that is at least 80% of the speciation rate is defined using the equation &#181; D = 0.8 * &#955; D + &#948;. In this example, the posterior estimation of the extinction fraction for state Dome (aD = &#181; D &#955; D ) is forced to be at least 80%, but the extinction fraction a Dcan still be larger than the lower bound of 0.8 thanks to random variable &#948;, that is a D = &#181; D &#955; D &gt; 0.8. In most of our models, prior distributions for extinction rates were defined equally (i.e.,</p><p>In one model, we specified &#181; H &lt; &#181; D &lt; &#181; C by making A = 0.6, 0.7, and 0.8 respectively to verify that: (i) our inferences were not driven by this specification of the prior; and (ii) that likelihood is informative given our data set (Supplementary Fig. <ref type="figure">S14</ref>).</p><p>Overall, this choice in prior distributions allows us to restrict the parameter space and find estimates of diversification assuming the extinction fraction is high. Linking speciation and extinction rates does not change the dynamics of speciation and extinction in SSE models because speciation and extinction parameters in birth and death models are functionally linked by definition <ref type="bibr">(Kendall 1948;</ref><ref type="bibr">Feller 1968;</ref><ref type="bibr">Stadler and Bokma 2013</ref>). An in-depth discussion on how speciation and extinction parameters in SSE models are functionally linked can be found in <ref type="bibr">Helmstetter et al. (2021)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Ancestral State Reconstruction Using Diversification-Free Models</head><p>We estimated the most probable state at the root, because previous studies have found that hole-nesting is the most likely the state at the root. The results showed that nest-type evolution is not linked to the diversification process (see Results section). Therefore, we defined a three-state (Mk3, Fig. <ref type="figure">2f</ref>) Markov model without diversification parameters (hereafter, diversification-free model referring to the lack of diversification parameters in the model) to reconstruct the ancestral nest type in passerines. We calculated the marginal ancestral state reconstruction at each of the internal nodes. Because our reconstructions use a Bayesian framework, in each of the nodes we plot the state with the maximum a posteriori value of the marginal posterior distribution (Fig. <ref type="figure">5</ref>), as previously done in <ref type="bibr">Freyman and H&#246;hna (2018)</ref> and <ref type="bibr">Zenil-Ferguson et al. (2019)</ref>, and implemented in RevBayes <ref type="bibr">(H&#246;hna et al. 2016)</ref>. For all our models in Figure <ref type="figure">2</ref>, we assume the root values are stochastic, and are modeled using a Dirichlet probability distribution with frequency parameter (1/3, 1/3, 1/3) as the prior distribution (see the number of parameters in Fig. <ref type="figure">2</ref>). We calculated the posterior distribution for this stochastic vector via our MCMC algorithms.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Implementation of Models and Inferences</head><p>All the diversification and diversification-free models in Figure <ref type="figure">2</ref> were implemented as graphical models in RevBayes software <ref type="bibr">(H&#246;hna et al. 2016</ref>). We customized and ran a Markov chain Monte Carlo, MCMC; <ref type="bibr">(Metropolis et al. 1953;</ref><ref type="bibr">Hastings 1970</ref>) algorithm to sample the posterior distribution of each model. For all the models in Figure <ref type="figure">2</ref>, we assumed that the state value at the root was unknown, and we estimated the posterior distribution of the frequencies at the root. Convergence and effective sample sizes of at least 250 for every parameter in the MCMC were assessed using Tracer <ref type="bibr">(Rambaut et al. 2018</ref>) and two chains were run per model to verify convergence. Each MCMC run was performed in the HiPerGator cluster at the University of Florida, and took an average of 240 h to converge. All our data are available in Dryad <ref type="url">https://doi.  org/10.5061/dryad.bvq83bkc7</ref> and RevBayes code in Zenodo <ref type="url">https://doi.org/10.5281/zenodo.7459510</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Results</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Diversification Is Not Linked to Nest Type</head><p>Although our MuSSE-3 model found associations between nest type and diversification rates, our MuHiSSE-3 model showed that these associations were spurious (Fig. <ref type="figure">3</ref>). This is because the addition of hidden states indicates that diversification is driven by unmeasured factors other than nest type. In particular, for the MuSSE-3 model of nest evolution, we found that hole nesters had faster or equal net diversification (defined as speciation minus extinction) than cup nesters, and the smallest net diversification was associated with dome nesters (Fig. <ref type="figure">3a</ref>). This result was also true when the prior of extinction fraction was faster (a = &#181; &#955; &#8805; A = 0.8, Fig. <ref type="figure">3a</ref>), and for all elevated extinction fractions (0 &lt; A &lt; a = &#181;/&#955; &lt; 1 ) (Fig. <ref type="figure">2d</ref> is the model and estimation is in Fig. <ref type="figure">A1</ref>). When fitting the hidden state model MuHiSSE-3 (Fig. <ref type="figure">3b</ref>), we found that the three-state posterior distributions of net diversification rates completely overlap within hidden states A and B whereas being different between A and B, indicating that the diversification rate differences across the phylogenetic tree are due to hidden states (Fig. <ref type="figure">3b</ref>). These results were consistent when we allowed MuHiSSE-3 to have an elevated extinction fraction of at least 0.8 (Fig. <ref type="figure">2e</ref> shows model and estimation in Fig. <ref type="figure">3b</ref>). Furthermore, when calculating Bayes factors comparing the CID-3 (diversification rates independent of nest type, or null hypothesis) model against the MuSSE-3 (diversification rates depend on nest type), we found that the CID-3 model is preferred over the MuSSE-3 (&#954; = -6033.72 -(-7772.40) = 1738.67 &gt; 1)  . Altogether, there is strong evidence that the heterogeneity observed in passerine diversification rates is not linked to nest type.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Evolving Out of Holes Is Faster Than Evolving Back into Them</head><p>Because nest type is not linked to the diversification process, we assessed the dynamics under the diversification-free Mk3 model. The posterior distribution of transition rates from the Mk3 model shows that the rate of transitioning from hole to cup was the fastest (mean q 32 = 9.1 &#215; 10-3, and 95% credible interval (6.5 &#215; 10 -3 , 0.01)), followed by the transition from hole to dome (mean q 31 = 6.5 &#215; 10 -3 , and 95% credible interval (3.7 &#215; 10 -3 , 8.2 &#215; 10 -3 , Fig. <ref type="figure">4</ref>). Transition rates from either Figure <ref type="figure">3</ref>. Net diversification rate estimates (speciation and extinction) for a) multistate dependent diversification models (MuSSE-3), and b) multistate and hidden state dependent diversification models (MuHiSSE-3). In models in (a) we consistently estimated that hole nesters have faster net diversification rates than dome nesters, and that cup nesters had intermediate rate estimates. This finding was consistent when we assumed the extinction fraction to be at least 0.8 (MuSSE-3 model + prior extinction fraction &gt; 0.8). The most noticeable change is that increasing the extinction fraction (MuSSE-3 model+ extinction fraction &gt; 0.8) decreases net diversification estimates (y-axis), but the relative differences between states are maintained. For models in (b) we observe that all diversification differences are due to the differences in hidden state (A &lt; B) rather than nest type (Dome = Cup = Hole for A and B states), which is strong evidence against the direct influence of nest type on the speciation and extinction of passerines. Even increasing the extinction fraction (MuHiSSE-3 + prior extinction fraction &gt; 0.8) yields the same results. dome or cup to hole nests were similar, and both were slower than the transition rates out of hole nests (dome to hole transition rates have a mean q 13 = 1.6 &#215; 10 -3 , and 95% credible interval (6.6 &#215; 10 -4 , 2.8 &#215; 10 -3 ); cup to hole transition rates have a q 23 = 1.2 &#215; 10 -3 , and 95% credible interval (7.3 &#215; 10 -4 , 2.5 &#215; 10 -3 ), shown in Figure <ref type="figure">4</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Hole-Nesting is the Most Probable State at the Root is Hole When Including Outgroup</head><p>The Mk3 (Fig. <ref type="figure">2f</ref>) model reconstructs hole-nesting as the state with the highest probability at the most recent common ancestor of the Passeriformes. We found that the maximum a posteriori for the root's marginal posterior probability was 0.77 for hole-nesting when the tree included the parrot Strigops habroptila as the outgroup, and 0.7 for the node that ancestor of the passerines only. This probability decreased to 0.41 when the tree only contained passerines and no outgroup (state dome makes 0.51 of the probability, Supplementary Fig. <ref type="figure">S13</ref>). The multivariate posterior distribution for the stochastic vector at the root had as its maximum the vector (Dome = 0.30, Cup = 0.25, Hole = 0.45; Fig. <ref type="figure">5</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Discussion</head><p>Over the years, there have been diverse perspectives on the link between ecological specialization and evolutionary diversification <ref type="bibr">(Vamosi et al. 2014</ref>). On the one hand, ecological specialization has been viewed as an evolutionary dead end because it leads to evolutionary changes in traits that are difficult to reverse, which can leave specialized taxa at higher risk of extinction when conditions change. On the other hand, other studies have emphasized the links between specialization and increased diversification <ref type="bibr">(Losos et al. 1994;</ref><ref type="bibr">Schluter 2000</ref>) because a narrower niche could increase diversification either directly, if niche shifts are associated with multiple speciation events <ref type="bibr">(Yoder et al. 2010;</ref><ref type="bibr">Velasco et al. 2016)</ref>, or indirectly, because of differences in dispersal, connectivity, population persistence, and/or range size of specialist and generalist species <ref type="bibr">(Greenberg and Mooers 2017;</ref><ref type="bibr">Harvey et al. 2019)</ref>. Testing the outcomes of specialization on diversification rates has been difficult because macroevolutionary models require data sets with a large number of independent origins of specialization <ref type="bibr">(Day et al. 2016)</ref>.</p><p>Here, using state-dependent diversification models in a large tree of passerines, we found that hole-nesting specialization does not differ from cup and dome-nesting in diversification rates. We also found that transition rates into hole-nesting were low compared with transitions out of hole-nesting (Fig. <ref type="figure">4</ref>), and that the most probable state for the root of all passerines was hole-nesting. These three results highlight the lack of support for the hypothesis that specialization leads to an evolutionary dead end. Our results, combined with a number of recent studies addressing this hypothesis <ref type="bibr">(Day et al. 2016;</ref><ref type="bibr">Cyriac and Kodandaramaiah 2018)</ref>, raise the question of whether the link between diversification rates and ecological specialization is truly variable across taxa and traits, or whether newer phylogenetic comparative methods and larger data sets are allowing us to test hypotheses more rigorously. Interestingly, in our study, which uses a large data set with numerous transitions to the specialized hole-nesting state, we found that, in the absence of accounting for hidden states, adoption of hole-nesting behavior led to higher, not lower, diversification rates (Fig. <ref type="figure">3a</ref>). However, when we included hidden states, and thus accounted for the possibility that other, unmeasured variables are driving the relationship, we found no difference in diversification rates across the three nesting types (Fig. <ref type="figure">3b</ref>). This comparison emphasizes that phylogenetic studies of specialization that do not account for hidden states may need to reevaluate their null hypotheses of diversification. For example, a recent study by <ref type="bibr">Medina et al. (2022)</ref> concluded that there are differences in extinction rates between cup and dome nesters, but hidden state models in this study were not presented due to failed convergence, and extinction rates cannot be interpreted independently from speciation rates <ref type="bibr">(Helmstetter et al. 2021)</ref>, so the link between nest type and diversification remained untested. Our results, in Figure <ref type="figure">4</ref>. Transition rates between nest states for diversificationfree models in the model with three states (Mk3). The posterior distribution for the rate from hole to cup is faster than any other rate to and from hole. We found that evolving out of hole is faster than into hole, with hole to cup faster than hole to dome.</p><p>Downloaded from <ref type="url">https://academic.oup.com/sysbio/article/72/2/294/6964948</ref> by guest on 28 August 2024 combination with recent tests the evolutionary dead end hypothesis, show that there is growing evidence that specialization rarely leads to an evolutionary dead end <ref type="bibr">(Stern et al. 2017;</ref><ref type="bibr">Villastrigo et al. 2020)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Modeling the Diversification Consequences of Specialization</head><p>State-dependent diversification models are a flexible tool to test whether specialization is linked to diversification rates. A recent ongoing discussion in the field of macroevolution centers on the impossibility of estimating speciation and extinction rates from phylogenetic trees with only extant taxa using birth and death stochastic models with time-dependent parameters <ref type="bibr">(Louca and Pennell 2020)</ref>. The non-identifiability of parameters in the time-dependent diversification models, and the possibility of multiple congruent likelihoods across time-dependent models may affect the state-dependent diversification models presented here. State-dependent diversification models are members of the class of the time-dependent diversification models (with time being a constant function) explored <ref type="bibr">Louca and Pennell (2020)</ref>. However, taking into consideration the nest type, and using informative priors to represent different extinction scenarios (proposing other constant functions for rates at higher levels), shows the potential for recovering the direction of differences between states, even if point estimates for speciation and extinction rates are not the same across these scenarios (Figs. 4 and Fig. <ref type="figure">A1</ref>), as suggested by <ref type="bibr">Louca and Pennell (2020)</ref>. Our main findings under the assumptions of enhanced extinction suggest that the relative differences among states are possible to infer despite the non-identifiability between different extinction histories. Therefore, it is important when applying state-dependent diversification models to clarify whether the goal is to obtain point estimates for speciation or extinction rates or to find relative differences in the history of diversification linked to the states. In this study, we were interested in the latter, and our results suggest that finding relative differences in diversification between states can be performed in a systematic fashion with consistent results.</p><p>Overall, we were able to rigorously test different hypotheses and extinction scenarios because of the size of the tree, the number of transitions between nest types, and the large proportion of passerines in the sample (&gt;51%). Studies of specialization linked to diversification might find spurious associations when independent transitions to and from the specialized state are too few <ref type="bibr">(Uyeda et al. 2018</ref>), tree size is not large enough <ref type="bibr">(Davis et al. 2013)</ref>, sampling fraction is small <ref type="bibr">(Chang et al. 2020)</ref>, or when hidden state models are not incorporated to test for the significance of trait-dependent diversification <ref type="bibr">(Beaulieu and O'Meara 2016;</ref><ref type="bibr">Caetano et al. 2018)</ref>. Historically, standards for sample quality and interpretation of the parameters as a joint function of speciation and extinction in SSE models have been lacking <ref type="bibr">(Helmstetter et al. 2021)</ref>, so it is important that future studies of state-dependent diversification be aware of these issues.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Ecological and Evolutionary Consequences of Specialization</head><p>The ecological consequences of specialization can be diverse-specialization can, in some cases, decrease competition for resources and, in other cases, increase it.</p><p>For example, many studies have focused on diet or host specialization, which frequently reduces competition over food or breeding resources <ref type="bibr">(Vamosi et al. 2014</ref>). However, specialization can also enable species to escape predation (e.g., <ref type="bibr">Singer et al. 2019)</ref> and, in such cases, may actually increase competition for scarce, protective resources. Such is the case for hole-nesting birds, where an important consequence of hole-nesting is that it strongly reduces the risk of nest predation, an important driving force behind life history evolution in birds <ref type="bibr">(Martin 1995)</ref>. In our study, we were able to distinguish between the influence of ecological specialization per se versus one specific ecological consequence of specialization-reduced predation. Dome-nesting birds also show decreased predation rates <ref type="bibr">(Oniki 1979b;</ref><ref type="bibr">Linder and Bollinger 1995;</ref><ref type="bibr">Auer et al. 2007;</ref><ref type="bibr">Martin et al. 2017</ref>), but they are relatively unspecialized in nesting types compared with hole-nesters. However, neither hole-nesting nor dome-nesting was associated with elevated diversification rates. This suggests that, in passerine birds, reduced nest predation rates do not have a strong influence on diversification dynamics and, whereas escaping predation can often lead to ecological release <ref type="bibr">(Herrmann et al. 2021)</ref>, this does not necessarily translate into increased ecological opportunity or subsequent adaptive diversification. Moreover, reduced predation can also increase species' ability to persist and, hence, decrease extinction risk. Yet, a change in the abundance of nesting holes, such as declines in tree cavities, has been shown to lead to a heightened risk of extinction <ref type="bibr">(Duckworth and Badyaev 2007)</ref>. Thus, the lack of a relationship with diversification rates may reflect a balance between these various ecological consequences of adopting hole-nesting.</p><p>Another factor that may account for inconsistency across studies in the links between specialization and macroevolutionary dynamics is the extent to which specialization results in the further evolution of specific traits. Ecological specialization is a narrowing of an organism's niche, and so results from a change in how an organism interacts with its environment. <ref type="bibr">Futuyma and Moreno (1988)</ref> point out that specialization, at a minimum, only requires a behavioral shift, and specialized taxa vary in the extent that there is subsequent evolution of other traits. Thus, it is possible that whether specialization is an evolutionary dead end or not may be strongly linked to the extent of secondary adaptation that follows it. In the case of hole-nesting birds, specialization is largely a behavioral shift, although it does lead to evolutionary changes in many life history and breeding traits (see below). Thus, it may be that hole-nesting specialization does not lead to an evolutionary dead end because of the relative ease of reversing these traits (Fig. <ref type="figure">4</ref>). The low rate of evolutionary transitions into, relative to out of, hole-nesting (Fig. <ref type="figure">4</ref>) provides further evidence against the evolutionary dead end hypothesis and instead suggests that evolving ecological specialization can be challenging. In the case of hole-nesters, becoming ecologically specialized involves facing increased interspecific competition, as holes are sought not only by other birds but also by other vertebrates <ref type="bibr">(Newton 1994</ref>). Thus, competition may prevent evolutionary transitions towards specialization. Evolutionary transitions from hole-nesting to open-cup nesting, which occur at a relatively high rate, involve different evolutionary challenges, such as life history specialization. Open-cup nesting species have exceptionally high nestling growth rates, which appear to be an adaptation to increased predation risk <ref type="bibr">(Ricklefs 1979)</ref>. Moving from the relaxed selection regime on growth rates associated with hole-nesting to the strong selection regime on growth rates in open-cup nests would seem to act as a filter that would limit this transition. However, our results show that, at least in passerine birds, evolving such life history shifts is easier than evolving the ability to deal with the intense competition of hole-nesting.</p><p>We also found evidence that it was easier for birds to transition from hole to cup rather than hole to dome. Most hole nesters build an open-cup style nest, rather than a dome, within the cavity <ref type="bibr">(Price and Griffith 2017)</ref>. Our finding that transitions to open-cup nesting were easier compared with transitions to dome may simply reflect that transitions from hole-nesting more often occurred in taxa that were already building open-cup nests within their holes. Thus, for most hole nesters, transitioning to dome-nesting may be more difficult because it would require two steps: leaving cavities and changing how the nest is built. Although in the minority, there are several clades, particularly at the base of the tree, that build dome style nests within cavities <ref type="bibr">(Price and Griffith 2017)</ref>. Future studies comparing transitions to dome and open-cup nests based on whether hole-nesting species are already building a dome or cup style nest within their cavity would add further insight into the mechanisms behind these different transition rates.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Ancestral State Reconstruction</head><p>In our ancestral state reconstruction, we found that hole-nesting is the most probable state at the root of the passerines when including the parrot Strigops habroptilus as the outgroup. Using this phylogeny, we found that the maximum of the marginal posterior distribution of the root node had a probability of 0.77 for hole-nesting, and the root node of the passerine clade had a 0.7 probability of being hole-nesting (Fig. <ref type="figure">5</ref>). Without this outgroup, we still recovered hole-nesting with a maximum a posteriori of 0.41 (see Supplementary Fig. <ref type="figure">S13</ref>) but probability 0.51 for dome nesting. Previous work has emphasized that hole-nesting, dome-nesting, and open-cup nesting all appear to have occurred early in the history of passerines <ref type="bibr">(Collias 1997;</ref><ref type="bibr">Price and Griffith 2017;</ref><ref type="bibr">Fang et al. 2018;</ref><ref type="bibr">McEntee et al. 2018)</ref>, with <ref type="bibr">Collias (1997)</ref> suggesting that the nest type of the earliest passerine might be unknowable because of the apparent rapid evolution of nest type in early passerines. Our ancestral state reconstruction, using an approach where we included strong species-level sampling and assessed whether differing diversification rates had to be accounted for <ref type="bibr">(Maddison 2006</ref>) tips the balance slightly in favor of hole-nesting as the ancestral state for the common ancestor of extant passerines when using nest type information for outgroups. Notably, this result contrasts with the ancestral state reconstruction of <ref type="bibr">Fang et al. (2018)</ref>, which included more sampling outside of passerines and less species-level sampling within passerines. Hole-nesting as the root state for passerines might seem counterintuitive if the definition of specialization is confounded with the concept of a derived state. In the original definition of specialization by <ref type="bibr">Futuyma and Moreno (1988)</ref> it is stated that specialization is based on ecology and function in an ecosystem; therefore, we should not expect that a specialized state is a derived one. In our study, support for hole-nesting as the ancestral state serves to underscore how radically the evolution of hole-nesting as a specialization fails to meet the generalists-to-specialists view of evolution; rather than a dead end, all passerine diversity emerged from a specialist ancestor. When we excluded the Strigops outgroup we found that the most probable state at the root is dome-nesting (Supplementary Fig. <ref type="figure">S13</ref>). This second result shows that there is significant evidence against cup-nesting for passerine and that ancestral state reconstructions are heavily influenced by the inclusion or exclusion of lineages. In the future, more sampling of passerine lineages and their nest types will have a powerful effect in resolving the root state.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Conclusions</head><p>Our macroevolutionary analysis failed to find any link between specialization of nest type and diversification rates under different extinction scenarios, suggesting that there is little support for the evolutionary dead end hypothesis in this case study. Moreover, contrary to this hypothesis, we also found that transitions from the specialized state were relatively easy compared with transitions toward the more generalist states and that the root state of passerines is most probably hole-nesting. Our results suggest that the ecological consequences of resource specialization, whether due to escape from competition or predation, might be key to understanding its macroevolutionary consequences. This work adds to other recent studies that have found little support for the evolutionary dead end idea, suggesting that evolution of resource specialization is more evolutionarily labile than previously thought. We suggest that future studies of this question would benefit from explicit comparisons of resource specialization that varies in their ecological consequences, as well as the extent of trait evolution necessary for specialization. Such studies would enable a greater understanding of the mechanisms that underlie variable links between specialization and macroevolutionary dynamics.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>SUPPLEMENTARY MATERIAL</head></div></body>
		</text>
</TEI>
