Introduction

Intergroup competition, or hostility between different social groups, is apparent across human societies (Bowles 2009) and regularly observed in many group-living primate and nonprimate species (Crofoot and Wrangham 2010; Kitchen and Beehner 2007; Radford 2008; Rusch and Gavrilets 2017; Wilson et al. 2014). Intergroup competition may incur high costs, increasing an individual’s likelihood of injury or death, or generally affecting group members via potential loss of access to resources through the loss of group territory (Mitani et al. 2010). Suffering costs is heavily reliant on cohesive participation of group members during the competitive encounter, as power imbalance in favor of one group over the other predicts outcomes of competitive intergroup interactions (Radford 2008; Wrangham 1999). The benefits of successful intergroup encounters are likewise substantial, potentially influencing access to resources and thereby the fitness of a group and its members (Mitani et al. 2010; Radford and Fawcett 2014). Thus, if joint and cohesive group responses during intergroup competition influence the probability to access benefits, they are likely to be under strong selective pressure.

In territorial species with intergroup contest competition, collective group defense is crucial for maintaining a territory and for group members to access resources associated with territories. As such, territories can be seen as a public good that is roughly equally shared among group members (Olson 1965), meaning that there is minimal control for free-riders. Thus, collective group defense may present a collective action problem (Langergraber et al. 2017; Willems et al. 2013, 2015), especially with increasing group size and in species that live in a social system with high fission–fusion dynamics in which group members do not permanently associate. However, in many species, including humans, collective action and strength in numbers are key during intergroup conflicts (Majolo et al. 2019; Willems et al. 2015; Wrangham 1999), suggesting that species may overcome the collective action problem. Indeed, in humans, intergroup competition is known to engender solidarity, affiliation, and cohesion within a group (Bernhard et al. 2006; Gneezy and Fessler 2012; Puurtinen and Mappes 2009; Yamagishi and Mifune 2009). However, whether intergroup competition may enhance in-group cohesion and cooperation in other territorial social species remains unclear.

Several empirical studies in nonhuman animals have investigated how intergroup competition and in-group cohesion are linked, revealing conflicting results. Similar to humans, intergroup competition occurrence was associated with enhanced in-group affiliation and/or cohesion in several nonhuman primate and nonprimate species (Bruintjes et al. 2015; Majolo et al. 2016; Mirville et al. in press; Preis et al. 2019; Radford 2008; Samuni et al. 2017). However, other studies found no such relation (Cheney 1992; Chism and Rogers 2004; Grueter 2013; Polizzi di Sorrentino et al. 2012; Yi et al. 2019). This lack of consensus emphasizes that such a link likely depends on several factors such as the social system, the intensity of intergroup competition, and the potential cost-to-benefit ratios from group-level attacks on rivals. As in-group cohesion is suggested to be key in reducing costs and increasing potential benefits of competitive intergroup interactions, the link between intergroup conflict and in-group cohesion may simply be more pronounced in species where intergroup interactions are associated with extreme immediate costs, for instance when lethal.

Chimpanzees (Pan troglodytes) are well known for their highly structured territorial border patrols and intergroup encounters which are predominantly hostile (Furuichi in press; Wilson et al. 2014; Wrangham and Glowacki 2012), in contrast to the more tolerant nature of intergroup interactions in bonobos (Pan paniscus: Furuichi in press; Moscovice et al. in press). Chimpanzee intergroup encounters are highly risky, at times resulting in severe and lethal injuries (Wilson et al. 2014). Power asymmetries between rival groups directly influence the likelihood of suffering costs, as lethal violence occurs at times of power imbalance in favor of attackers (Wilson et al. 2014; Wrangham 1999; Wrangham and Glowacki 2012). Collective group defense in chimpanzees is essential for maintaining a territory, and if successful it may increase the group’s access to valuable resources (Mitani et al. 2010; Wilson 2013). However, because of the high fission–fusion dynamics of chimpanzees and because collective group defense unselectively provides benefits to all group members, it may present a strong case of a collective action problem (Langergraber et al. 2017).

Despite the potential for individuals to free-ride, it has been suggested that species with philopatry and bonding of the larger sex, such as chimpanzees, may overcome the collective action problem (Willems et al. 2013). In addition, collective action may be maintained through intragroup aggression, for instance as a herding mechanism (Cooper et al. 2004) or punishment of free-riders (Radford et al. 2016). Such a mechanism is suggested in vervet monkeys (Chlorocebus pygerythrus), as increased female aggression toward in-group males during intergroup encounters enhanced future participation of these males in encounters (Arseneau-Robar et al. 2016). However, intragroup aggression in chimpanzees can disrupt social ties, thus reducing the predictability of coalitionary support and cooperation among group members (Aureli et al. 2002; de Waal 2000; Wittig and Boesch 2005), during intra- and intergroup interactions. Thus, intragroup aggression may instead pose a risk to collective action by increasing the likelihood of defection. This is especially true in chimpanzees, as competition between groups is extremely costly, such that a cohesive response and coalitionary support of group members are essential to reduce the costs of injury (Wilson et al. 2014; Wrangham 1999). Thus, examining the link between chimpanzee intergroup competition, a striking example of collective action, and in-group dynamics may reveal how chimpanzees are able to avert potential free-riding.

Here, we investigated this link in chimpanzees of two social groups in the Taï Forest, Côte d’Ivoire. Although male chimpanzees initiate and lead competitive intergroup interactions, both males and females participate in the majority of intergroup interactions in this population (Samuni et al. 2017). Furthermore, males and females from the two social groups were more likely to stay together (fission less) during territorial activity (Samuni et al. 2017), indicating higher group cohesiveness when the risk is at its highest. However, it is unclear whether like in humans, intergroup competition influences in-group cohesion after the end of the intense conflict. For instance, as intergroup competition occurrence fluctuates through time, one could expect a dynamic effect of such conflicts on measures of in-group cohesion, defined as the tendency for a group to be in unity while pursuing a goal (Carron and Brawley 2000). Furthermore, it remains to be tested whether chimpanzees use intragroup aggression as a mechanism to maintain collective action.

For that purpose, we investigated the relationship between chimpanzee territorial activity (i.e., border patrol and intergroup encounter) and various measures of in-group cohesion. Chimpanzees show high fission–fusion dynamics, in which individuals from the same group split into smaller and dynamic parties of varying size, duration, and composition (Boesch and Boesch-Achermann 2000). Thus, we capitalized on the highly dynamic association patterns of chimpanzees to evaluate two different measures of group cohesion, that is, monthly group clustering patterns (modularity) and daily party size. Furthermore, we evaluated rates of intragroup aggression as an additional measure of in-group cohesion. In addition, to disentangle a potential causal relationship between territorial activity occurrence and in-group cohesion we applied and tested two different measures of intergroup competition 1) daily occurrence of territorial activity (immediate) or 2) accumulative previous occurrence of territorial activity (long term).

As large groups may increase the risk of a collective action problem arising (Olson 1965), we predicted that increased territorial activity will be associated with higher group modularity and smaller association parties both during and after territorial activity. However, group defense in chimpanzees is considered as an example of overcoming the collective action problem, and strength in numbers during intergroup competition is highly beneficial (Langergraber et al. 2017; Wilson et al. 2014; Wrangham 1999). In accordance with this rationale, we alternatively hypothesized that territorial activity will enhance intragroup cohesion. Thus, we predicted that chimpanzee groups will be less modular (the group as a whole will be more cohesive), and associate in larger parties both during and as a consequence of intergroup conflicts. Furthermore, if intragroup aggression functions to herd or punish free-riders, we predicted that territorial activity will be associated with and promote increased intragroup aggression. Conversely, when competition with neighboring groups is high, coalitionary support and cooperation are essential to reduce costs of injury from rivals. Thus, because intragroup aggression is likely to reduce predictability of coalitionary support and cooperation, we predicted lower intragroup aggression both on days of and after territorial activity. As males are the main instigators of territorial activity and are more aggressive than females in general, and because females compete for resources mainly in order to support their young, we predicted that the effect of territorial activity on intragroup aggression is sex specific, with a stronger influence of intragroup aggression in males than in females.

Methods

We conducted fieldwork with the Taï Chimpanze Project at the Taï National Park, Côte d’Ivoire (5°45′N, 7°7′W) on two well-habituated chimpanzee (Pan troglodytes verus) groups (i.e., East and South group), over two periods in 2013–2015, each extending from September to May. During the study, the adult group size varied from 15 to 18 adult individuals in East (5 males and 10–13 females) and 17–21 adult individuals in South (5 males and 12–16 females), as the result of several deaths and immigration events.

Behavioral Data Collection

We collected data using all-day focal animal sampling (Altmann 1974) of all adult males and females >12 yr (N = 38 individuals), with the exception of one recent immigrant female that was not fully habituated at the time. Focal follows included documentation of all submissive and aggressive interactions and changes in association patterns (noting each change in party composition). For the aggression data, we documented the direction and partner’s identity for all types of directed aggressive interactions (i.e., display, threat, charge, chase, attack). For party association data, we recorded the presence of all adults within visual range (usually 30–50 m) of the focal subject (Mielke et al. 2017). The number of observers in each group varied between one and four observers per day, and when several observers simultaneously observed the same party, we included it as a single data point in the data set. We recorded 5256 observation hours in East group and 5564 in South group during 1272 daily focal follows, which, owing to multiple observers, occurred on 392 and 399 unique dates in South and East, respectively. We followed females in 40% of all focal follows.

As dominance rank may influence aggressive behavior, we used unidirectional submissive pant grunt vocalizations collected during focal follows to determine the in-group dominance relationships. We applied a likelihood-based adaptation of the Elo rating approach (Foerster et al. 2016; Mielke et al. 2017; Neumann et al. 2011) to estimate the dominance hierarchy for each of the sexes separately (Samuni et al. 2018a), standardized to a range from 0 to 1.

Border Patrols and Intergroup Encounters

During focal follows we documented all-occurrence of border patrols and intergroup encounters (i.e., territorial activity) observed. Chimpanzee border patrols are characterized by cautious and quiet movements of several group members toward, around, and beyond their territory border areas (Boesch et al. 2008; Furuichi in press; Langergraber et al. 2017; Samuni et al. 2017; Watts and Mitani 2001). Chimpanzees on border patrols typically decrease their foraging behavior and investigate primary (e.g., vocalizations) and secondary (e.g., feeding remains, feces, nests) cues of neighboring chimpanzee groups (Samuni et al. 2017; Watts and Mitani 2001). If individuals hear or encounter neighboring chimpanzees, they often engage in hostile interactions, such as aggressive vocalizations, displays, and attacks against the out-group. Not all intergroup encounters result in direct contact with neighbors, and some encounters are limited to vocal exchanges over extended distances. The imposed risk of territorial activity varies both within and between border patrols and intergroup encounters. However, owing to the ambush-like nature of attacks and the challenge of assessing group size advantage over a distance, a high uncertainty of risk is apparent with participation in all types of territorial activities. Nonetheless, regardless of outcome, cohesive participation likely reduces this uncertainty. Therefore, we do not differentiate between border patrols and intergroup encounters. If a border patrol and an intergroup encounter occurred on the same day with the same neighboring group, we analyzed it as a single occurrence of territorial activity for that respective day. On no single day were there encounters with multiple neighboring groups.

GPS Location Data

During focal follows we collected data on the location of the focal subject using a GPS (Garmin© 62 or Rino 610) set on the automatic tracklog recording function. We used the tracklog data and kernel density estimate (Worton 1989) to assess the proximity of the focal individual to the border areas of the territory and to construct the home ranges of the two groups. We did this to consider potential influences of border proximity on aggression and association patterns. The proximity to the border constituted the percentage of home range usage kernels, ranging from 5 to 99, with 99 representing the extreme of the border area (Samuni et al. 2017). The home ranges (95% kernel) of the two groups between September 2013 and May 2015 were comparable: East, 32 km2; South, 35 km2. As the availability of food resources is a potential driver of territorial activity, we collected long-term phenology data on the availability of fruiting trees within the home range of each social group (see the next section).

Fruit Availability Index

We used phenology data collected at the Taï Chimpanzee Project between September 2013 and May 2015 to calculate fruit availability index (FAm). We collected information on the presence of mature fruits, tree density, and tree basal area of the 74 most frequently eaten species for the chimpanzees, separately for East and South groups (925 and 623 individual trees in East and South, respectively). The FAm index for each group was calculated monthly, following a standard index for Taï chimpanzees (Anderson et al. 2002, 2005).

For month m, the fruit availability index FAm was defined as follows:

$$ {\mathrm{FA}}_m={\sum}_{k=1}^n{D}_k{B}_k{P}_{km} $$

where

Dk:

density of species k across the study area

Bk:

mean basal area (measured by trunk diameter at breast height) of species k across the study area

Pkm:

percentage of observed fruiting tree species k with mature fruits across the study area in month m.

Statistical Analysis

Modularity Model

We used party association data to construct matrices of monthly dyadic association values of all adult subjects, accounting for the time two subjects in a dyad were observed in the same party as a function of the observation time of both subjects. We used the dyadic association matrices to determine monthly group modularity. Modularity is a social-networks measure that represents the degree to which in-group individuals are divided into particular clusters (Farine and Whitehead 2015). Thus, this measure identifies the degree to which individuals in a particular social group (i.e., chimpanzee community) associate with other group members across a continuum. Whereas values close to 1 represent clear small clusters of individuals that have strong connections with each other and few connections between clusters, values close to 0 represent groups in which all individuals associate together or have strictly random association patterns. We determined the monthly modularity values with the “greedy algorithm” approach (Clauset et al. 2004; Newman 2006) using the fastgreedy.community function of the R package igraph (Csardi and Nepusz 2006).

We ran a multivariate linear regression (modularity model) to investigate the effect of participation in territorial activity (i.e., border patrol and intergroup encounters) on group monthly modularity (square root transformed). We included border patrols and intergroup encounters as types of territorial activity, as both are associated with risk and involve a high degree of uncertainty with regard to potential interactions with rivals. To reliably estimate the effect of territorial activity on group modularity, we controlled for factors that may influence group association patterns. Thus, we included monthly fruit availability (as described earlier), the number of sexually receptive females (Anderson et al. 2002), and group identity (i.e., East or South). We operationalized the number of sexually receptive females as the number of females that showed maximum tumescence of the perineal skin on visual inspection on at least one day of the month. In addition, as hunting is another group collective activity that involves the acquisition of a resource in chimpanzees (Samuni et al. 2018b), it may influence modularity. Thus, we controlled for the number of days in which hunting occurred during the month.

We only included months with >20 nest-to-nest observation dates (mean ± SD: 27.03 ± 3.19 days per month), resulting in a total 29 months (15 months in East and 14 in South; 3 months were excluded). We accounted for variation in observation days across months by including weighted least squares regression of the number of observation days per month, using “weights.”

Group Defense Score

The modularity model investigates the general association between engagement in territorial activity and in-group cohesion, and hence does not test the causal relationships between the two. To test whether territorial activity directly influences parameters of in-group cohesion we used the frequency of previous territorial activities to calculate a continuous measure of group defense participation, as territorial activity may influence in-group dynamics days after its occurrence. We evaluated the group defense score separately for each observation field period (October 2013–May 2014 or September 2014–May 2015) by summing all previous territorial activities until the day previous to the focal observation day weighted by the inverse of the number of prior days (Fig. 1). Thus, if a territorial activity occurred N days before the focal observation day, it adds 1/N to the group defense score. Territorial activities that occurred during the focal observation day were not included in the group defense score calculations for that day. We used long-term data on the occurrence of territorial activities during the first month of each observation field period (September 2013 or August 2014) as a burn-in period. Using this approach, previous days in which territorial activity was recorded had a relative positive impact on the group defense score, which decreased with time passed (mean ± SD: 0.59 ± 0.6 ranging 0–3.12). As an example, if a territorial activity occurred one day before the focal day, it added a 1.0 to the group defense score, and if it occurred 10 days before the focal day, it added 0.1 to the group defense score. The group defense score increased only in case an intergroup encounter or border patrol occurred and was not positively influenced by the time passed since the start of the observation field period (correlation between Julian date and group defense score: East, first field period: −0.08, second field period: 0.05; South, first field period: 0.49, second field period: 0.1).

Fig. 1
figure 1

Depiction of the group defense score for the East chimpanzee group, in Taï Forest, Côte d’Ivoire, between September 2014 and May 2015. The line tracks the score across time and the black points denote the occurrence of territorial activity. For every given day the group defense score reflects the occurrence of previous territorial activities, such that each previous territorial activity adds a value to the group defense score equal to the inverted number of days past since its occurrence.

Party Size Model

While the modularity measure identifies whether association patterns within the group are consistent and clustered, it does not provide a good indication of the size of association parties, which might be highly relevant during territorial activity considering that large group size may facilitate access to benefits. Thus, to further evaluate the effect of territorial activity on in-group dynamics, we fitted a linear mixed model (LMM; Baayen, 2008) with Gaussian error structure and identity link function, with mean daily party size as the response (party size model). We calculated mean party size daily (1272 focal days; 791 unique dates) per focal subject >12 yr (38 individuals) measured as ∑(party size × party duration)/∑(party durations). In this model we tested for both 1) immediate (whether the subject participated in territorial activity during the focal observation day) and 2) long-term (“group defense score”) effects of territorial activity on the response. To account and control for the effect of key ecological and social variables we controlled for the sex of the focal individual, group membership (i.e., East and South), the presence of fully tumescent females during the focal day, and general fruit availability. Furthermore, we controlled for the occurrence of hunting behavior during the focal day, and the proximity to the border at the morning nest site. As we expect circannual variation in mean party size (McCarthy et al. 2018), we converted Julian dates into a circular variable and included its sine and cosine in the model (Stolwijk et al. 1999). The seasonal term reflects variation in ecological factors that likely influence party size (Wessling et al. 2018). We included event (combination of group and date, N = 791) and subject identities as random effects to account for nonindependent sampling of certain subjects or events disproportionally affecting the mean party (avoiding pseudoreplication). Furthermore, to keep type I error rate at the nominal 5%, we included random slopes (Barr et al. 2013; Schielzeth and Forstmeier 2009) for group defense score, occurrence of territorial activity and hunting, presence of fully tumescent females, and fruit availability within subjects.

Consecutive focal follow days may occur under more similar social or ecological conditions unexplained by the fixed effects included in the model but are likely to affect the response variable (mean party size). For instance, this may be the clumpiness of food resources, which the fruit availability measure does not account for. This may lead to violation of the assumption of independent residuals (by temporally close residuals potentially being more similar than distant ones). Therefore, we incorporated temporal autocorrelation into the party size model by first fitting the model (as described earlier) to derive the model residuals. We then calculated a temporal “autocorrelation term” for each data point by averaging the residuals of all other data points of the same group, with the contribution of the residuals being weighted by their time lag to the particular data point. The weighting function followed a normal distribution, with its standard deviation determined by maximizing the likelihood of the model with the temporal autocorrelation term included. We then included the “autocorrelation term” as an additional fixed effect into the model.

Intragroup Aggression Model

Finally, we fitted a generalized linear mixed model (GLMM) with Poisson error structure and log link function, to test the effect of territorial activity on measures of adult–adult intragroup aggression (intragroup aggression model), using the same data set as per the party size model. As intragroup aggression may facilitate collective action by herding or punishing specific free-riders, we calculated intragroup aggression as the number of directed aggressions focal individuals gave others during focal follow days and tested whether this was influenced by territorial activity participation. As we aimed to evaluate the intragroup aggressive tendencies of focal individuals, we included only daily intragroup aggressions given (we did not include intragroup aggressions received or intergroup aggression given or received). We incorporated the same test predictors in this model as in the party size model and added interactions between the two test predictors and sex (group defense score × sex and participation in territorial activity × sex), as male chimpanzees are more aggressive than females in general. Here, we controlled for the same variables as the party size model but added two additional control variables of dominance rank and mean daily party size. Furthermore, we added the number of observation hours as an offset term to account for increased likelihood of observing aggression with increased observation time. As per the party size model we included event (N = 791) and subject identities with random slopes for group defense score, occurrence of territorial activity and hunting, presence of fully tumescent females, fruit availability, dominance rank and party size within subject, and dominance rank and party size within event. We did not include an autocorrelation term.

Model Design and Validation

We fitted all models in R (version 3.4.4; R Core Team, 2016) using the functions lm, lmer, or glmer of the R package lme4 (Bates et al. 2015). Using a likelihood ratio test we compared the fit of all full models with those of a respective null model lacking only the test predictors, but otherwise identical to the respective full model in all other terms (Forstmeier and Schielzeth 2011). If an interaction term had no significant effect, we ran a reduced model including only the main effects. In each model, we tested the significance of the fixed effects using the drop1 function in R, by systematically dropping them from the model one at a time (Barr et al. 2013) and comparing the respective reduced model lacking the individual fixed effects with the full model.

Before fitting the models, we checked all predictors and the response for their distribution. Overdispersion was not detected in the Poisson model (dispersion parameter = 0.61). We then proceeded by z-transforming the covariates of group defense score, fruit availability, party size, dominance rank, and the monthly values of hunting and fully tumescent females (Schielzeth 2010). We verified the assumptions of normally distributed and homogeneous residuals by visual inspection of qq-plots and residuals plotted against fitted values. This did not reveal obvious deviations from model assumptions. Model stability was assessed for the LMM (party size model) and GLMM (intragroup aggression model) by excluding the random effects one at a time and comparing the estimates derived for these data with those derived for the full data set. This revealed no influential subjects or events to exist. For these two models we as well derived confidence intervals by means of parametric bootstraps (function bootMer of the package lme4). For the modularity model we assessed model stability by inspecting dfbeta values (Field 2013). We used the function vif of the R package car (Fox and Weisberg 2011) applied to a standard linear model lacking the random effects to derive variance inflation factors (VIF), which did not reveal collinearity problems (largest VIF: modularity model = 2.56; party size model = 2.97; intragroup aggression model = 1.3 [Quinn and Keough 2002]). Modularity and mean party size are likely influenced by group size, owing to the number of potential association partners. However, as we are not interested in group differences in the responses, and as group membership is highly correlated with group size (VIF > 9), we do not account for the group size here but rather control for group membership (East and South) in both analyses.

Ethical Note

All methods used in this study were noninvasive and were approved by the Ministry of Higher Education and Scientific Research of Côte d’Ivoire and the Office Ivoirien des Parcs et Réserves. All aspects of the study comply with the ethics policy of both the Max Planck Society and the Department of Primatology of the Max Planck Institute for Evolutionary Anthropology, Germany, and the American Society of Primatologists principles for the ethical treatment of nonhuman primates. The authors declare no conflict of interests.

Data Availability

The data set used in fitting the models is available upon request.

Results

During the study period we observed 34 border patrols and 39 intergroup encounters in East group, and 6 border patrols and 27 intergroup encounters in South group. Although 9 encounters (6 in East and 3 in South) involved an attack on a few isolated outgroup individuals, we did not observe any cases of killing or severe injuries during the study period. Furthermore, we did not observe any cases of immediate retreat of group members to core areas after detecting neighboring groups. In all border patrols or intergroup encounters at least one male was present in both East and South groups. Females participated in 91 of the 106 documented territorial activities, with a range of 0–11 females per event. The number of participants per territorial activity event was (mean ± SD) 4.59 ± 0.82 for males and 4.62 ± 3.57 for females.

Monthly frequency of territorial activity varied 0–19 days on a given month. The overall modularity values were generally low and ranged from 0.012 to 0.199. We found that territorial activity was significantly associated with group modularity (F = 5.30, df = 23, P = 0.030; Table I), such that the social groups were less clustered (i.e., more cohesive) on months in which they participated in more territorial activities (estimate ± SE: −0.277 ± 0.120; Fig. 2). Furthermore, we found that East group was less modular than South group (1.294 ± 0.361, P = 0.002). The number of monthly hunting cases, fully tumescent females, or fruit availability had no significant effect on group modularity (Table I). To ensure that these results were not influenced by months with extreme numbers of territorial activities, we reran the multivariate regression excluding one outlier month (19 different territorial activities during 28 observation days in East). This procedure revealed that the effect of territorial activity occurrence on modularity was not driven by this outlier (P = 0.005).

Table I Effect of territorial activity on group modularity (square root transformed)
Fig. 2
figure 2

The effect of monthly rates (29 mo) of territorial activity (days per month) on group modularity measure in chimpanzees in Taï Forest, Côte d’Ivoire, 2013–2015. Low modularity scores represent less clustered (more cohesive) group association patterns. Points denote monthly modularity values of East (empty diamonds) and South (filled squares) groups. The dashed line is the regression line obtained from the full modularity model.

The mean party size full-null model comparison was significant (likelihood ratio test: χ2 = 99.897, df = 3, P < 0.001; Table II). Specifically, we found that mean party size increased with both increasing recent group defense scores (estimate ± SE: 0.332 ± 0.090; P = 0.001; Fig. 3), and the occurrence of territorial activity (estimate ± SE: 1.101 ± 0.227; P < 0.001; Fig. 4). Moreover, we found larger mean party sizes on days when fully tumescent females were present (estimate ± SE: 0.828 ± 0.159; P < 0.001), and in South group individuals (estimate ± SE: 0.815 ± 0.238; P = 0.001). We as well found a seasonal variation in mean party size (likelihood ratio test comparing the full model with one lacking the two terms accounting for season: χ2 = 19.680, df = 2, P < 0.001). The sex of the focal subject, occurrence of hunting behavior, proximity to the border, and fruit availability had no significant effect on mean party size.

Table II LMM (party size model) testing the effect of daily territorial activity occurrence (immediate) and group defense score (long term) and on mean party size weighted by party duration
Fig. 3
figure 3

The effect of the group defense score on group mean party size in chimpanzees in Taï Forest, Côte d’Ivoire, 2013–2015 (N = 1272 data points; 38 subjects). Shown are the observed mean party size (larger point areas denote a larger number of observations) as well as the model result (dashed line) and confidence intervals (gray area) as obtained from the party size model.

Fig. 4
figure 4

Effects of territorial activity participation on mean party size in chimpanzees in Taï Forest, Côte d’Ivoire, 2013–2015 (N = 1272 data points; 38 subjects; 2 groups). Shown are medians (thin horizontal lines), quartiles (boxes), percentiles (2.5% and 97.5%; vertical lines) as well as the fitted model and its 95% confidence intervals (thick gray lines and error bars).

Rates of in-group directed aggressions differed between males with 1.14 ± 1.77 aggressions given per observation day (range, 0–22), and females 0.75 ± 1.39 aggressions given per observation day (range, 0–13). Testing the rates of adult−adult intragroup directed aggressions, the full-null model comparison was significant (likelihood ratio test: χ2 = 13.235, df = 5, P = 0.021; Table III). The interaction between group defense score and sex was not significant (P = 0.900). We found a significant effect of the interaction between sex and the occurrence of territorial activity during the focal day (P = 0.038; Fig. 5). Specifically, post hoc procedures revealed that males were less likely to aggress others on days in which they participated in territorial activity (no territorial activity vs. territorial activity: 0.440 ± 0.210; P = 0.036), whereas there was no significant difference for females in aggressions given between days in which they participated in territorial activity or not (territorial activity vs. no territorial activity: 0.244 ± 0.275; P = 0.376). In contrast, we did not find a significant effect of long-term group defense score on the number of aggressions given in either males or females (−0.061 ± 0.054; P = 0.239). Party size and hunting behavior had a significant effect on aggressions given, such that we found fewer aggressions on days of hunting behavior (−0.343 ± 0.120; P = 0.003) and more aggressions with an increase in party size (0.266 ± 0.062; P < 0.001). The dominance rank of the subject, presence of fully tumescent females, general fruit availability, and group membership had no significant effect on aggressive acts.

Table III LMM (intragroup aggression model) testing the effect of daily territorial activity occurrence (immediate) and group defense score (long term) and on intragroup aggressions given
Fig. 5
figure 5

Effects of territorial activity participation on adult–adult aggressions given (N = 1272 data points; 38 subjects; 2 groups) in males (dashed gray) and females (full black) in chimpanzees in Taï Forest, Côte d’Ivoire, 2013–2015. Shown are the 95% confidence intervals (CI) of the GLMM intragroup aggression model (the dashed and full horizontal lines connect between the fitted model values for each sex).

Discussion

Our results provide evidence that link territorial activity and dynamics of in-group cohesion in a species with predominantly hostile intergroup interactions. We found that territorial activity influences group modularity, association patterns, and intragroup aggression in two distinct social groups of chimpanzees. Specifically, on a group level, we showed a correlation between higher monthly participation in territorial activity and less clustered monthly subgroup division. Furthermore, we found that territorial activity positively influenced average party size of males and females, both on the immediate scale (territorial activity occurrence) and post territorial activity (group defense score). Lastly, territorial activity occurrence had a negative effect on intragroup aggressions given in males, but not females, demonstrating an attenuating effect of intergroup competition on intragroup competition. Importantly, we demonstrated these effects while controlling other variables known to influence association patterns or intragroup aggression, such as food availability, presence of fully tumescent females, dominance rank, or temporal autocorrelation.

Collective action during territorial activity should evolve when it is crucial for maintaining a territory and when the direct or indirect benefits gained by group members outweigh the costs (Olson 1965). However, when collective action creates a public good (e.g., territory) that is equally shared independent of participation, natural selection will favor free-riders over cooperators, leading to a collective action problem (Olson 1965). This problem is likely more pronounced in larger groups when the relative impact of each individual on the outcome in case of defection is small. However, opposing such predictions, we found that current and greater previous engagement in territorial activity predicted larger party sizes. Furthermore, although intragroup aggression is suggested as a mechanism to overcome the collective action problem by punishing free-riders (Radford et al. 2016), we did not find support for this here. The fact that chimpanzees collectively act to defend their territory and that territorial defense is tightly linked with group homogeneity and cohesion (Langergraber et al. 2017; Samuni et al. 2017; Wrangham 1999) emphasizes that the collective action problem does not subvert group level cooperation during competitive interactions with out-groups in chimpanzees. This is not surprising, given that access to benefits of territorial activity in chimpanzees is closely linked to cohesive participation (Mitani et al. 2010; Wilson et al. 2014; Wrangham 1999), and thus may make free-riding a suboptimal strategy in that species. For instance, chimpanzees’ collective action during territorial defense can be seen as an example of the volunteer’s dilemma (Archetti 2009; Diekmann 1985), in which the public good is produced only when a minimum number of individuals participate. Specifically, when the production of the public good is highly beneficial and more likely with increased participation, and when the loss of the public good negatively affects all group members, then free-riding becomes a costly strategy (Archetti 2009; Diekmann 1985).

These findings have implications for the potential proximate functions of increased in-group cohesion in relation to out-group threat. Similar to other types of competitive interactions, intergroup conflict may lead to increased anxiety and the potential disturbance of intragroup relationships (Radford et al. 2016). For instance, chimpanzee intergroup encounters are associated with increased hypothalamic−pituitary−adrenal axis activity in both males and females (Samuni et al. 2019; Sobolewski 2012; Wittig et al. 2016). Therefore, one potential function of increased in-group cohesion in the aftermath of intergroup competition is to reduce anxiety and stress (Radford et al. 2016). Furthermore, as intragroup cooperation and strength in numbers are key components of successful intergroup interactions, increased intragroup cohesion may facilitate joint participation and prevent defection during conflicts with out-groups, which may avert power imbalance in favor of rivals.

Association in relatively large parties is a mechanism through which individuals may increase the predictability of coalitionary support, an essential element in both anxiety reduction and the reinforcement of cooperative participation (Radford et al. 2016). Furthermore, the two social groups also showed a decrease in subgroup division (modularity) that is associated with territorial activity participation. Together these results highlight that group members not only associated in larger parties, but also associated with many individuals across the group, rather than focusing on a few partners or associating randomly with no clear preference. In addition, we showed that previous engagement in territorial activity (group defense score) led to increased party size in males and females, demonstrating a long-term effect of out-group interactions on chimpanzee association patterns. This showed that association patterns remained more cohesive days after the territorial activity ended, even when anxiety should potentially be dampened. Taken together, variation in modularity and immediate and long-term association patterns more strongly support the hypothesis that in-group cohesion may facilitate current and future intergroup competition participation rather than reduce anxiety.

Furthermore, we found that males, but not females, were less aggressive toward adult in-group members on days that they participated in territorial activity, but that there was no long-term post effect of the group defense score on intragroup aggression, likely because of the importance of male–male competition over mating opportunities in chimpanzees. Increased intragroup aggression in association with territorial activity is suggested to function as a herding behavior (Cooper et al. 2004) or punishment of free-riders (Arseneau-Robar et al. 2016), or to occur as a result of increased anxiety (Radford et al. 2016). However, increased intragroup aggression is likely to disturb in-group relationships (Aureli 1997; Wittig and Boesch 2005) and cohesion (Cords 1992), thus potentially reducing the predictability of coalitionary support during intergroup competition or the ability to cooperate as a group. Following this, our findings of reduced intragroup aggression in males on days of territorial activity can be seen as a mechanism of conflict management, supporting the prediction that more cohesive (less aggressive) in-group dynamics promote collective action during conflicts with out-groups.

Contrary to observations of other chimpanzee populations, rates of intergroup lethal violence, including infanticide, are low in the Taï population (Wilson et al. 2014), and females participate in the vast majority of intergroup encounters and border patrols (Samuni et al., 2017). Regular female participation in territorial activity in Taï provides a rare opportunity to investigate the potential effects of intergroup competition on in-group dynamics simultaneously in both sexes. The observed sex differences in the effect of territorial activity on intragroup aggression are likely a result of the higher aggressive nature of males and the different roles the sexes take during territorial activity. For instance, as numerical assessment of male but not female participants is suggested to determine the relative dominance of a specific group (Furuichi in press; Wilson et al. 2014), and because territorial activity is driven mainly by males, it is in the interest of males, more than females, to reinforce solidarity. As such, it is not surprising that we found an attenuation effect of territorial activity on intragroup aggression in males but not females. However, both sexes are expected to benefit from successful intergroup interactions (Mitani et al. 2010), and power imbalance in favor of the group promotes potential access to benefits (e.g., food resources and mating opportunities) for both sexes (Wrangham 1999). Therefore, in a population such as Taï with minimal rates of lethal intergroup violence, and high gregariousness of both sexes (Lehmann and Boesch 2009), the link between territorial activity and larger association parties is expected in both males and females.

Overall group size may influence group cohesion and the likelihood to participate in territorial activities. For example, the degree of chimpanzee group cohesion may increase with an overall reduction in group size (Lehmann and Boesch 2004), and chimpanzee males are less likely to participate in border patrols with an increase in male group size (Langergraber et al. 2017). According to predictions of the volunteer’s dilemma, a minimum number of cooperating individuals should be required to secure the public good (Archetti 2009; Diekmann 1985). Thus, small sizes of groups may promote not only group cohesion, but also joint territorial activity participation of group members, both male and female, to ensure the public good. In this vein, it is possible that regular mixed-sex participation in territorial activities in Taï is a result of the relatively small adult group size of the two study groups (5 males, 10–16 females). Comparing the factors that influence female participation in territorial activity and the effects of territorial activity on female in-group dynamics across chimpanzee populations with varying sizes of social groups would be an important next step in examining the evolutionary origins of sex-specific tendencies for out-group hostility.

Our results, demonstrating that intergroup competition precipitates positive in-group dynamics, accord with previous findings in human (Bernhard et al. 2006; Gneezy and Fessler 2012; Puurtinen and Mappes 2009; Yamagishi and Mifune 2009), and nonhuman animals (Bruintjes et al. 2015; Majolo et al. 2016; Mirville et al. in press; Radford 2008; Samuni et al. 2017). Conversely, there is substantial lack of evidence for the effect of intergroup competition on positive in-group dynamics across primate species (Cheney 1992; Chism and Rogers 2004; Grueter 2013; Polizzi di Sorrentino et al. 2012; Yi et al. 2019). Evident variability in how intergroup competition and in-group cohesion are linked across studies and species provides an important basis to ask what potential selective pressures explain interstudy or interspecies discrepancies. For example, as variation in the balance between the costs and benefits of certain acts are theorized to drive selection, the link between intergroup conflict and in-group dynamics might be more pronounced in species in which immediate costs (e.g., severe injury) of intergroup competition are high, and countering such costs has clear fitness consequences. One would subsequently predict that in comparison to chimpanzees, this pattern will be less evident in species with more tolerant intergroup relations, such as bonobos (Furuichi in press; Moscovice et al. in press). Therefore, future studies on intergroup conflict and in-group dynamics would benefit from a comparative approach to elucidate the potential costs of intergroup interactions in the group and/or species.

Taken together, collective action and in-group cohesion during intergroup competition in chimpanzee likely act to facilitate future participation in intergroup competition, overcoming the collective action problem. Our results fit with the volunteer’s dilemma (Archetti 2009; Diekmann 1985), which posits that free-riding should be costly if all group members suffer from the loss of the public good. The proximate mechanisms by which chimpanzee collective action during intergroup competition may be maintained likely involve an increase in the size of parties and reduced intragroup aggression. Furthermore, consistent participation of both sexes during intergroup competition in Taï is likely to avert large power imbalance between groups. Lethal attacks in chimpanzees occur mainly on isolated individuals (Wilson et al. 2014); thus minimizing power imbalances during encounters by mixed-sex participation reduces the probability of lethal intergroup violence. We cannot address whether consistent female participation is a result of or is a contributor to the low rates of lethal intergroup violence observed in this population. Nonetheless, our findings indicate that the link between out-group hostility and competition, and in-group solidarity and cohesion is shared between humans and chimpanzees.