Introduction

Cavity electro-optic (EO) modulation is a foundational mechanism in modern optoelectronics, enabling the rapid frequency tuning of optical cavities to generate ultrafast optical pulses1,2 and coherent frequency combs3,4,5,6. It provides a stable and reconfigurable approach to pulse-comb synthesis with a direct interface to high-speed electronics. This technique has found widespread application in diverse fields such as modern communications7,8,9,10, photonic computing11,12, topological photonics13,14, synthetic crystal generation14,15,16, precision measurement and ranging17,18, and quantum information science19,20,21,22. In recent years, there has been a growing demand for enhanced EO modulation capabilities, specifically stronger coupling strengths and broader modulation bandwidths, to meet the critical requirements of emerging advanced photonic technologies23. These demands include expanding the EO comb span, reducing temporal pulse durations, improving energy efficiency, and boosting tuning speed for communications, computing, ranging, etc. Despite these advancements, the key physical process—cavity EO modulation under strong microwave-driven coupling between photonic cavity modes and high-frequency driving bandwidth—remains largely unexplored. Especially, from a physics point of view, the dynamics of cavity EOs for related EO comb/pulse system, has received less attention compared to the recent cavity \({\chi }^{\left(3\right)}\) nonlinearity for Kerr comb/soliton generation24,25, mainly due to the apparent simplicity of cavity EO modulation4,5. However, there still exists a largely underexplored regime of EOs that may exhibit complex, rich physics due to the nonlinear nature of cavity EO modulation response to the microwave drive strength.

Conventional cavity EO modulation typically achieves an EO coupling strength \(\Omega\) (or equivalently, the modulation index \(\beta =2\pi \frac{\Omega }{{\omega }_{{\rm{R}}}}\), where \({\omega }_{{\rm{R}}}\) is the cavity’s free spectral range (FSR))5 that is comparable to/larger than the cavity’s resonant linewidth \(\kappa\) (sideband unresolved/resolved regime23). It typically uses a microwave drive with bandwidth \({\omega }_{{\rm{BW}}}\) on the order of \(\kappa\) for communications applications26,27, or with \({\omega }_{{\rm{BW}}}\) equal to \({\omega }_{{\rm{R}}}\) for efficient frequency comb and optical pulse generation3,4,5. Under these conditions, cavity EO modulation operates within a phase space defined by the coupling strength \(\Omega\) and modulation bandwidth \({\omega }_{{\rm{BW}}}\), typically constrained to within an area of \({\omega }_{{\rm{R}}}\times {\omega }_{{\rm{R}}}\) (Fig. 1a). Though the physics in this regime has a relatively simple mechanism, it has already stimulated various advanced EO devices and applications in recent years, such as cavity EO comb generation4,5, EO frequency shifter and single sideband modulation28, photonic molecule and isolation29,30, etc. Modulation that extends beyond this conventional regime holds the promise to revolutionize all the aforementioned EO physics and technologies. Nevertheless, it has been difficult to explore due to the absence of a consistent theoretical framework for addressing the challenges posed by the parameter regime of \(\Omega ,\,{\omega }_{{\rm{BW}}}\gg {\omega }_{{\rm{R}}}\). The conventional coupled-mode theory15 treats cavity EO modulation as a tight-binding model, where frequency modes are coupled to their nearest neighbors under single-tone modulation. However, this framework fails to accurately describe the system when \(\Omega \gg {\omega }_{{\rm{R}}}\). Another commonly used approach, the transfer matrix model, tracks the evolution of cavity EO modulation in the temporal domain. However, the massive matrix computations required for higher-order drive frequencies (\({\omega }_{{\rm{BW}}}\gg {\omega }_{{\rm{R}}}\)) significantly increase computational complexity. Moreover, incorporating microwave detuning for advanced functionalities, such as frequency boundary effects31, further adds to these challenges. As result, the rich dynamics governed by strong-coupling and high-bandwidth cavity EO modulation for pulse-comb synthesis, remain unknown.

Fig. 1: Strong-coupling and high-bandwidth cavity EO modulation.
figure 1

a Schematic of cavity EO modulation with arbitrary modulation strength and bandwidth (i.e., arbitrary waveforms). The transition from conventional EO modulation regime to the strong-coupling and high-bandwidth regime unveils the unique physical properties of the cavity EO system. b Schematic of the coupling between the frequency lattice points that is induced by conventional and strong-coupling cavity EO modulation. The frequency lattice corresponds to the cavity modes that is separated by the FSR. In the strong-coupling regime, long-range coupling is induced even if only a single-tone modulation with frequency matching the FSR is applied. c Physical picture of arbitrary modulation strength and bandwidth of cavity EO modulation for pulse-comb synthesis. The pump coupled from the bus waveguide excites the cavity center frequency \({\omega }_{0}\) and EO modulation couples \({\omega }_{0}\) to other resonant levels in the microcavity. Under weak drives, the pump is excited twice in one modulation period, corresponding to two pulses in the cavity. Under strong drive, additional energy levels are excited in one modulation period, increasing the number of pulses in the cavity to six and introducing long-range coupling between different cavity energy levels. Higher modulation bandwidth further allows for waveforms beyond simple sinusoidal modulation, providing more controllable freedom over the pulse widths and coupling between energy levels

Here, we address this challenge and demonstrate cavity EO modulation with arbitrary coupling strength and bandwidth of microwave drive signals, using a general and universal framework. We show that in this framework, EO frequency comb and pulse generation, although typically treated as a linear process1, manifests unconventional higher-order dynamics. Specifically, in the strong-coupling regime (\(\Omega \gg {\omega }_{{\rm{R}}}\)), a single-tone microwave drive can open both short-range and long-range coupling (Fig. 1b, right panel), exciting multiple temporal pulses and reshaping the comb shape from conventional linear triangle shape (dB scale) to oscillating shape (Fig. 1c, Strong drive). This effect is also observed in our recent experiment32, further highlighting the significance of our proposed modeling framework for modulation in strong-coupling and high-bandwidth regime. Further, in the high-bandwidth regime (\({\omega }_{{\rm{BW}}}\gg {\omega }_{{\rm{R}}}\)), high-frequency microwave drives can significantly control the spatiotemporal EO pulses properties (Fig. 1c, Infinite bandwidth drive), correlated with the synthetic frequency band structure of the EO-modulated cavity. Compared to the widely studied Kerr combs that rely on \({\chi }^{3}\) nonlinearity, where comb and pulse dynamics are typically constrained by a fixed optical pump, the cavity EO comb offers excellent tunability by adjusting the modulation strength and signal bandwidth. We demonstrate that EO pulse-comb synthesis can be fully optimized through machine-learning algorithms. This approach enables a new paradigm for integrating complex EO pulse-comb design with machine learning, offering significant potential for advanced, customizable pulse-comb systems. Our findings show the cavity EO system can have intricate dynamics, while further possessing complementary, active microwave control, enabling machine learning assisted inverse design for arbitrary comb shaping.

Results

Framework for strong-coupling and high-bandwidth cavity EO modulation

We start by deriving a Hamiltonian that includes the strong-coupling and high-bandwidth regimes of cavity EO modulation. In conventional descriptions, when a sinusoidal modulation is applied, the Hamiltonian is typically expressed as \(H={\sum }_{n}\left[{\omega }_{n}{a}_{n}^{\dagger }{a}_{n}+g\left(t\right)\left({a}_{n+1}^{\dagger }{a}_{n}+h.c.\right)\right]\) with \(g\left(t\right)=\Omega \cos \omega t\) and \(\hslash =1\). The coupling strength \(\Omega\) is directly related to the modulation index \(\beta\) with \(\beta =2\pi \frac{\Omega }{{\omega }_{{\rm{R}}}}=\Omega \times {t}_{{\rm{R}}}=\frac{\Omega }{{f}_{{\rm{R}}}}\), where \({t}_{R}\) is the round-trip time of the cavity (see details in Supplementary Information) and \({f}_{{\rm{R}}}={\omega }_{{\rm{R}}}/2\pi\) is the roundtrip frequency related to the FSR of the cavity. Such a model indicates that coupling occurs only between nearest neighbor energy levels and has been widely adopted in previous works14,15,28,33,34,35,36,37,38,39,40. However, this conventional model breaks down when the coupling strength \(\Omega\) approaches or even exceeds the \({\rm{FSR}}\) of the cavity. We show that to capture the complete dynamics of cavity EO modulation, the coupling term should instead be written as \(g\left(t\right)={i{f}_{{\rm{R}}}e}^{i\int {dz}\frac{k}{2{n}^{2}}\triangle \varepsilon (z,t)}\), where \(n\) and \(k\) are the refractive index and wavevector evaluated at the frequency of the pump laser, respectively, \(\Delta \varepsilon \left(z,t\right)={\varepsilon }_{0}{\chi }^{(2)}{E}_{\omega }(z,t)\) is local dielectric constant oscillation inside the cavity induced by EO modulation, \({\chi }^{(2)}\) is the second-order nonlinear coefficient, \({E}_{\omega }\left(z,t\right)\) is the modulating microwave field, and the integration is performed across the modulation region. The integration in \(g(t)\) abstracts away the specific structure of the modulation electrode in the subsequent discussion and allows us to treat the phase modulation itself as a black box, leading to an interaction Hamiltonian

$$H=\mathop{\sum }\limits_{n}\left[{\omega }_{n}{a}_{n}^{\dagger }{a}_{n}+g\left(t\right)\mathop{\sum }\limits_{m}\left({a}_{n+m}^{\dagger }{a}_{n}+h.c.\right)\right]$$

where the coupling \(g\left(t\right)\) reduces to

$$g\left(t\right)=i{f}_{{\rm{R}}}\left({e}^{i\beta \cos \omega t}-1\right)=i{f}_{{\rm{R}}}({e}^{i\frac{\Omega }{{f}_{{\rm{R}}}}\cos \omega t}-1)$$

in the case of sinusoidal modulation. When \(\Omega \ll {\omega }_{{\rm{R}}}\), our Hamiltonian model naturally reduces to conventional Hamiltonian with \(g\left(t\right)=\Omega \cos \omega t\).

It is important to note that, in our model, even a single-tone sinusoidal modulation can induce both short-range (\({a}_{n+1}^{\dagger }{a}_{n}\)) and long-range (\({a}_{n+m}^{\dagger }{a}_{n},m > 1\)) interactions between different energy levels (or frequency modes) (Fig. 1b). We emphasize that the EO effect, as a second-order nonlinear process, does not inherently introduce long-range interactions. Instead, such interactions arise from the cavity EO modulation, which operates on the time scale of discrete steps with a step size of \({t}_{{\rm{R}}}\). It is worth mentioning that both our Hamiltonian model and the conventional Hamiltonian model discussed above are formulated within this same discrete time-step framework. The non-Hermitian property of the Hamiltonian originates from the discrete time-step, therefore does not violate energy conservation by phase modulation. We also note that although there may exist other effects such as \({\chi }^{\left(3\right)}\) nonlinearities, thermal effect and dispersion effect41 in the cavity modulation system, these effects remain the same in weak and strong-coupling regime since the weak/strong coupling is determined by the microwave modulation strength. (See Supplementary Information for further details).

Such a Hamiltonian leads to a set of equations of motion in the discrete time scale, where the discrete time differential \(\partial {a}_{n}/\partial T\equiv ({a}_{n}(t+{t}_{{\rm{R}}})-{a}_{n}(t))/{t}_{{\rm{R}}}\), where \(T=1{t}_{{\rm{R}}},2{t}_{{\rm{R}}},\cdots\), with \({J}_{m}\left(\beta \right)\) denotes the Bessel function of order m, and \(\kappa ={\kappa }_{i}+{\kappa }_{e}\), \({\kappa }_{i}\), \({\kappa }_{e}\) represents the total loss, intrinsic loss and external loss, respectively.

$$\frac{\partial {a}_{n}}{\partial T}=\left({f}_{{\rm{R}}}\left({J}_{0}\left(\beta \right)-1\right)-\frac{\kappa }{2}\right){a}_{n}+{f}_{{\rm{R}}}\mathop{\sum }\limits_{m\ne 0}{i}^{m}{J}_{m}\left(\beta \right){a}_{n+m}+\sqrt{{\kappa }_{e}}\sqrt{{P}_{{in}}}{\delta }_{n,0}$$

When \(\beta \ll 1\) (i.e., \(\Omega \ll {\omega }_{{\rm{R}}}\)), the equation of motions reduce to the conventional weak EO case5.

$$\frac{\partial {a}_{n}}{\partial T}=-\frac{\kappa }{2}{a}_{n}+i\left(\frac{\Omega }{2}{a}_{n+1}+\frac{\Omega }{2}{a}_{n-1}\right)+\sqrt{{\kappa }_{e}}\sqrt{{P}_{{in}}}{\delta }_{n,0}$$

The overall cavity EO modulation beyond the conventional regime (\(\Omega ,{\omega }_{{\rm{BW}}}\gg {\omega }_{{\rm{R}}}\)) can be intuitively understood by considering cavity resonant transmission spectrum (or energy levels) experiencing periodic oscillation (with oscillation amplitude \(\Omega\) in frequency domain) when modulated by the microwave. Within one period, for weak drive, a single energy level (i.e., the pump resonance) sweeps over the pump signal twice (Fig. 1c, Weak drive), leading to the conventional two-pulse excitation in EO frequency comb. When \(\Omega > {\omega }_{{\rm{R}}}\), the modulation strength \(\Omega\) is large enough to modulate the neighbor energy levels/resonances overlapping with the pump signal (Fig. 1c, strong drive), leading to multi-pulses excitation. Furthermore, the generation of pulses is mainly due to the abrupt movement of the resonance which modifies the amplitude of the pump light. As a result, a high-bandwidth signal (\({\omega }_{{\rm{BW}}}\gg {\omega }_{{\rm{R}}}\)) increases the speed of resonance movement, leading to pulse compression and broadened, flattened comb spectrum (Fig. 1c, High-bandwidth drive, Infinite bandwidth drive).

Strong-coupling EO modulation-induced unconventional EO comb and pulse synthesis

Next, we use our model to construct the phase diagram of cavity EO modulation, defined by the coupling strength \(\Omega\) and optical pump detuning \(\Delta\), containing higher-order pulse-comb dynamics in the strong-coupling regime (\(\Omega \gg {\omega }_{{\rm{R}}}\)). This is, in analogous to the phase diagram of the Kerr soliton in which soliton dynamics is governed by the pump power and optical detuning. Different detuning \(\Delta\) and modulation strength \(\Omega\) determine the pulse number and comb shape within the cavity. The 2-pulse regime corresponds to the conventional EO comb, while multi-pulse (>2) regimes correspond to the strong-coupling regime (Fig. 2a). We show EO comb generation for \(\Omega =0.25\times {\omega }_{{\rm{R}}},1.75\times {\omega }_{{\rm{R}}},2.85\times {\omega }_{{\rm{R}}}\). The EO comb spectrum changes from a classical triangular shape to a periodic envelope, representing the emergence of long-range jumps between energy levels. Therefore, the temporal pulse number increases from 2 to 6 to 10 for regimes \(\Omega < {\omega }_{{\rm{R}}}\), \({\omega }_{{\rm{R}}} < \Omega < 2{\omega }_{{\rm{R}}}\), and \(2{\omega }_{{\rm{R}}} < \Omega < 3{\omega }_{{\rm{R}}}\), respectively. Note that, before the emergence of new pulses, i.e., when increasing \(\Omega\) within a regime of fixed pulse number (as shown in Fig. 2a), the pulse duration is also compressed, which is attributed to the increased rising/falling time of the sinusoidal signal as its amplitude increases, leading to a faster sweeping of resonances over the pump signal.

Fig. 2: Higher-order dynamics of cavity EO comb and pulse synthesis in strong-coupling regime.
figure 2

a The phase diagram of EO modulation in the phase space of pump detuning and modulation strength, divided into three regimes: Pump insulation regime, where the pump laser cannot excite electro-optic modulation pulses; Weak-coupling regime, where the pump laser excites conventional two pulses per modulation period; and Strong-coupling regime, where the pump laser excites multiple pulses per modulation period. b Zero pump detuning EO comb: the EO modulation spectra correspond to the colored polygons in (a), with modulation strengths \(\Omega =0.25{\omega }_{{\rm{R}}}\), \(\Omega =1.75{\omega }_{{\rm{R}}}\), \(\Omega =2.85{\omega }_{{\rm{R}}}\) under zero laser detuning \(\triangle =0\). When the modulation strength exceeds \({\omega }_{{\rm{R}}}\), the spectra exhibit periodic spectral envelopes; when surpassing \(2{\omega }_{{\rm{R}}}\), more complex long-range interactions emerge in spectra. Pump detuning robust EO comb: the EO comb spectra corresponding to the colored polygons in (a), with modulation strength \(\Omega ={\omega }_{{\rm{R}}}\) and \(\Omega =2{\omega }_{{\rm{R}}}\) and the maximum pump detuning \(\triangle ={\omega }_{{\rm{R}}}/2\) or \(\triangle =-{\omega }_{{\rm{R}}}/2\), demonstrating the robustness of the cavity EO system to pump detuning under strong-coupling conditions. c The band structures for the three modulation strengths of the zero pump detuning EO comb in (b). Weak coupling band, no band overlapping: there exists forbidden band between different levels which prevents detuned pump exciting EO pulse. 1st-order strong-coupling band: energy bands overlapping appear when the modulation strength steps into strong-coupling regime \({\omega }_{{\rm{R}}}\). 2nd-order strong-coupling band: additional overlaps emerge beyond \(2{\omega }_{{\rm{R}}}\). The number of time-domain electro-optic pulses corresponds to the three modulation strengths in (b). \({T}_{{\rm{out}}}\): transmission at the through port of the coupled waveguide. d Increasing the modulation strength of the cavity EO modulation system suppresses the pump insulation regime and creates a fully pump conducting regime under arbitrary pump detuning. The light gray area: pump insulation regime, in which the pump light is not able to excite the generation of EO comb. The dark gray area: pump conduction regime, in which the pump light can excite EO comb. When increasing the modulation strength \(\Omega\) to \(0.5{\omega }_{{\rm{R}}}\), the pump insulation regime disappears and the EO modulation system becomes robust to pump detuning. e Strong-coupling threshold versus pump detuning. The threshold condition becomes \(\Omega +|\Delta | > {\omega }_{{\rm{R}}}\) and the slight offset between the simulated and theoretical results originates from the cavity’s finite loss. When the maximum detuning is reached, the strong-coupling threshold is the lowest, corresponding to a modulation strength of \(\Omega ={\omega }_{{\rm{R}}}/2\)

We further explain that these higher-order dynamics arise from the overlap of energy bands in the synthetic frequency crystal. Cavity EO modulation induces EO coupling among different frequency modes separated by the \({f}_{{\rm{R}}}\), thus forming a synthetic crystal with lattice coupling created by the EO modulation34,38. This leads to multiple independent energy bands in synthetic frequency space with energy bands separated by the \({f}_{{\rm{R}}}\) and single band range determined by the coupling strength \(\Omega\) (Fig. 2c). In the weak-coupling regime\((\Omega < {\omega }_{{\rm{R}}})\), a single pump field excites two energy states within the single band, corresponding to two pulses (Fig. 2c, Weak-coupling band). When \(\Omega > {\omega }_{{\rm{R}}}\), the band overlap facilitates the excitation of multiple energy states across different bands (Fig. 2c, 1st-order strong-coupling band and 2nd-order strong-coupling band). The number of overlapping bands corresponds exactly to half the number of pulses in the cavity and this band overlap creates state “jumps” between the overlapping bands, which are crucial for long-range, higher-order dynamics. This implies that, in addition to the pump mode in conventional EO modulation, extra cavity modes (both neighbor modes and even next-nearest modes) are simultaneously excited. At this point, the system enters the strong-coupling regime, where conventional EO modulation coupled-mode theory breaks down, and the number of generated EO pulses is twice the number of excited cavity modes. Notably, when \(\Omega \ll {\omega }_{{\rm{R}}}\), a forbidden gap exists between the bands, indicating that the system is insulated from a detuned pump, preventing the EO comb generation in this regime (pump-insulation regime in Fig. 2a). In the strong-coupling regime (\(\Omega > {\omega }_{{\rm{R}}}\)), however, the forbidden gap disappears, leading to a phase transition from an insulating state to a fully conducting state for arbitrary pump detuning. We emphasize that, in this regime, the EO modulation system exhibits robustness against pump detuning, enabling excitation of EO comb with arbitrary detuned pump (Fig. 2b, Pump detuning robust EO comb), potentially eliminating the need for a resonant pump for cavity-based EO combs (Fig. 2a).

It is important to note that optical detuning could reduce the threshold for entering the strong-coupling regime. The pump insulation regime connects to the 4-pulse strong-coupling regime at half FSR detuning (\(\Delta =\frac{{\omega }_{{\rm{R}}}}{2}\)), indicating that only \(\Omega > \frac{{\omega }_{{\rm{R}}}}{2}\) is required to directly skip the 2-pulse regime and enter the strong-coupling regime. This is due to the boundary between the weak-coupling and strong-coupling regime varies with different pump detuning. Specifically, the threshold condition is \(\Omega +|\Delta | > {\omega }_{{\rm{R}}}\). At maximum detuning (\(\Delta =\pm {\omega }_{{\rm{R}}}/2\)), the strong-coupling threshold reduces to the lowest value (Fig. 2e), reducing the voltage requirement for strong EO effects by 50%. This helps mitigate the technical challenges associated with developing microwave optoelectronic devices for achieving strong EO coupling. We scan the pump detuning to calculate the EO conversion efficiency η and gradually increased the modulation strength to \(\Omega =\frac{{\omega }_{{\rm{R}}}}{2}\). The pump isolation regime (where η approaches zero) was gradually compressed until it completely disappeared (Fig. 2d) thus lasers with any detuning can excite the EO comb.

High-bandwidth EO modulation-induced comb and band structure shaping

We next extend the modulation to high-bandwidth regime (\({\omega }_{\mathrm{BW}}\gg {\omega }_{{\rm{R}}}\)), enabling the shaping of comb and synthetic band structure using complex modulation signals. This can be achieved by setting \(g\left(t\right)={{if}}_{{\rm{R}}}({e}^{i\frac{\Omega ({\rm{t}})}{{f}_{{\rm{R}}}}}-1)\) with \(\Omega ({\rm{t}})\) related to the phase modulation induced by an arbitrary modulation waveform. Notably, we apply the Fourier transform to the function \(\exp (i\frac{\Omega ({\rm{t}})}{{f}_{{\rm{R}}}})\), rather than directly to the modulation waveform itself. This results in an additional zero-frequency component, which modulates the loss of pump signal. This can be understood as both complex waveform modulation and strong-coupling introducing additional loss channels for the pump, thereby altering the overall pump loss. We show the frequency spectrum and band structure under square, triangular, and ladder waveforms in the strong-coupling regime (Fig. 3a, b), indicating a direct correlation between the modulation waveform and the synthetic band structure. We point out that high-bandwidth microwave driving can induce long-range coupling just as strong-coupling regime can also create long-range coupling. However, we emphasize that one cannot create the same physical dynamics in the strong-coupling regime by adding long-range couplings with multi-tone, weak-coupling drives. There exists no corresponding multi-tone waveform (weak-coupling regime) that can generate the energy band overlap in the strong-coupling case. In the cavity EO modulation parameter space, modulation strength and bandwidth are fully independent degrees of freedom. Consequently, increasing the modulation strength to enter the strong-coupling regime represents a fundamental change in the system’s physical behavior. The arbitrary waveform driving enabled band engineering here enables the active and dynamic tuning of band structures in the synthetic frequency dimension by using high-bandwidth EO modulation, offering potential for applications in controlling the dispersion relations of photonic crystals, topological photonics and other related areas.

Fig. 3: Dynamically programable EO frequency comb spectrum with arbitrary driving waveform in high bandwidth regime.
figure 3

a Electro-optic modulation spectra under strong-coupling for square wave, triangular wave, and ladder wave modulation. The periodic spectrum envelope reflects the long-range interactions induced by the strong-coupling. The insets within the dashed boxes show the corresponding modulation waveforms. b The band structures of the synthetic frequency lattice under square wave, triangular wave, and ladder wave modulation (a), indicating a one-to-one correspondence between the modulation waveforms and the frequency lattice band structures

Machine-learning-informed arbitrary EO comb inverse design

Finally, we demonstrate arbitrary EO comb shaping with machine-learning-based microwave signal inverse design (Fig. 4a). A long-standing challenging of cavity EO combs is the spectral linear loss (in dB scale) of the comb lines, with a slope determined by the cavity linewidth \(\kappa\) and the EO modulation strength \(\Omega\), or \(\kappa /\varOmega\). By optimizing the \(\Omega \left({\rm{t}}\right)\) with a given target comb shape using machine learning, we show that the comb slope can be significantly flattened with a high-bandwidth microwave signal (\({\omega }_{{\rm{BW}}}\gg {\omega }_{{\rm{R}}}\)). Furthermore, we show that introducing frequency boundaries using microwave detuning31,42 can further flatten the comb shape. The detuning-induced frequency boundary typically creates energy reflection in the frequency domain and leads to spectral fluctuations due to spectral interference31. Machine learning with high-bandwidth modulation can effectively remove this spectral fluctuation. To this end, we show a microwave signal that can result in a flat cavity EO comb, with \({\omega }_{{\rm{R}}}=2\pi \times 3{\rm{GHz}}\), \({\omega }_{{\rm{BW}}}=2\pi \times 30{\rm{GHz}}\), and \({\delta }_{{\rm{MW}}}=22{\rm{MHz}}\). The flat comb achieves a 3 dB-bandwidth about 200 lines, with a slope of 0.03 dB/line (Fig. 4b, c), representing a tenfold improvement in flatness compared to single-tone EO combs under the same microwave power. We choose the microwave bandwidth \({\omega }_{{\rm{BW}}}=2\pi \times 30{\rm{GHz}}\), therefore in actual experiment, one can drive this arbitrary waveform by a 30 GHz arbitrary waveform generator. On the state-of-the-art thin-film lithium niobate platform, a 2 cm electrode for phase modulation reduces the half-wave voltage to ~2 V43, achieving the 16 dBm microwave power threshold required to enter the strong-coupling regime (assuming \(\Delta ={\omega }_{{\rm{R}}}/2\)), offered by commercially available microwave amplifiers. Consequently, cavity EO modulation with arbitrarily coupling strengths and bandwidths can be readily implemented in experiments.

Fig. 4: Machine-learning-enabled microwave signal inverse design for arbitrary comb shaping with frequency boundary.
figure 4

a Machine learning (ML) assisted spectral inverse design of EO comb (e.g., flat-top cavity EO comb). The target comb shape (orange line) and the initial electro-optic modulation waveform (blue line) serve as inputs to the ML unit. The ML process learns the relationship between the microwave drive and comb shape, outputting the trained comb shape with optimized microwave drive signal. b Broadband, flat-top EO comb generation and optimization using ML and frequency boundary. The figure shows the EO comb 3-dB bandwidth versus the microwave detuning (orange and purple traces) with the dashed gray line representing the training route. Four key steps are labeled by triangle, square, diamond, and star, representing the steps for single tone, 1st round ML, introduce detuning, and 2nd round ML, respectively. The introduction of microwave detuning combined with ML can double the 3 dB bandwidth (BW) (from 90 to 180 comb lines). In the above training process, to ensure fairness in comparison, the total microwave powers used in the different training waveforms are the same. Detuning effective regime: boundary effectively localizes pump energy within the preset 3 dB BW. Detuning anti-effective regime: boundary-induced reflection is too strong. Detuning ineffective regime: boundary-induced reflection is too weak. c Comb spectra for steps 1–4. The purple arrows indicate the pump energy flow along the frequency lattice. Introducing microwave detuning boundary can effectively localize the energy within the target BW (orange arrows). The 2nd round of ML (step 4) eliminates the spectral oscillations near the frequency boundary (purple arrows), ultimately generating an ultra-wide, flat-top EO comb. d ML-inspired relationship on the rising/falling edge and the spectrum slope. Reducing the falling edge pulse width decreases the slope of one branch of the EO comb and lowers every comb line power to ensure the energy conservation during the EO comb synthesis. In the extreme case, the pulse width approaches zero and one side of the EO comb disappears. e ML-assisted arbitrary spectra generation of single-side-flat, one-side-flat with one-side tilt, and unequal-arm-flat EO combs. f Flat-top comb bandwidth programming by only adjusting the microwave detuning, without the need of ML retraining

Furthermore, machine learning based inverse design can bring additional insight into the cavity EO modulation dynamics. By setting the target comb shape as only one side of the comb compared to the conventional EO comb, we found that the falling and rising edge of the modulation signal directly correlated to the right and left side of the comb spectrum. For example, eliminating the falling edge of the modulation signal can completely remove one side of the comb spectrum without affecting the other side (Fig. 4d, rising and falling edge pulse in different modulation waveform). Inspired by this, we demonstrate arbitrary comb shape design with machine learning algorithms, achieving single-sided-flat comb, one-side-flat with one-side tilt comb, unequal-arm-flat comb, and so on (Fig. 4e, ML-assisted arbitrary spectra generation). We also demonstrate that moving the position of the boundary by varying the microwave detuning may reconfigure the flat cavity EO comb bandwidth (Fig. 4f, Detuning induced programmable bandwidth flat-top comb). These results are enabled by our general framework that is compatible with arbitrary microwave detuning, strength, and bandwidth. We note that optimization algorithms based on conventional models, especially the transfer matrix approach, creates significant computational complexity. The transfer matrix approach calculates the time domain pulse and needs to do the Fourier transform which scales as \({\rm{O}}\left(N\log N\right)\), while the coupled mode approach based on the effective Hamiltonian directly solves the coupled mode equations and is compatible with the GPU accelerators and time complexity scales as \({\rm{O}}\left(N\right)\) owing to its sparse matrix property, when detuning is introduced in the system, especially in the high-bandwidth modulation regime, the transfer matrix model complexity further increases.

Discussion

In summary, we demonstrate a general framework for strong-coupling, high-bandwidth cavity EO modulation, featuring unconventional high-order dynamics with multiple pulses and arbitrary spectral shaping capability that is fully compatible with machine learning optimization. We expand the parameter space of cavity EO systems across three dimensions: coupling strength \(\Omega\), modulation bandwidth \({\rm{BW}}\) (microwave domain), and pump detuning \(\Delta\) (optical domain), offering deeper insights into EO comb generation and coupling mechanisms. This breaks the limit of conventional EO modulation in weak modulation strength, narrow bandwidth, and small detuning. Such a framework agrees well with our experimental observations32 and opens the door for the combination of cavity EO comb and pulse optimization using machine learning. The spectral flattening utilizing high-bandwidth modulation and frequency boundaries presents a way to address the fundamental challenge of cavity EO comb slope. The introduction of microwave detuning to flatten the comb spectrum leverages the power of physics-informed machine learning model, achieving a substantial reduction in the computational resources needed for optimizing this complex photonic inverse design problem. Furthermore, the pump wavelength robustness to detuning in the strong EO regime breaks the conventional requirement for precise pump wavelength matching, removing the critical bottleneck of the cavity EO comb and further advancing the comb reconfigurability for tunable and multi-color pumped EO combs.

The modeled high-order dynamics with long-range coupling have a significant impact on current cavity EO modulation-based applications such as topological photonics13,14,15 and non-Hermitian physics44,45,46. The established correspondence between the synthetic band structure and modulation waveforms opens the possibility for actively controlled topological non-Hermitian band structures as well as synthetic dispersion control for slow light. The high-bandwidth modulation also unlocks the potential for programmable temporal control on the position, intensity, and width of cavity EO pulses, with significant implications for ultrafast applications including octave-spanning frequency combs47,48, optical parametric oscillations49,50,51, and Raman scattering spectroscopies52,53,54. The advantages demonstrated on machine-learning-based spectral control for broadening, flattening, and arbitrary shaping overcome the flexibility limitations of the comb spectrum that exists in almost all types of frequency combs including EO combs4,5, Kerr combs55,56,57,58,59, and mode lock lasers60. This unique property makes strong-coupling, high-bandwidth cavity EO combs a promising source for optical communications9,61,62,63,64, photonic computing65,66,67,68,69, and microwave photonics11,12,70,71,72,73,74. It also opens the door for study the quantum dynamics of high-order dynamics of EO modulation for microwave-to-optical transducer75,76,77 and microwave entanglement78,79. Our work opens an underexplored regime for cavity EO modulation, paving the way for machine-learning-based, programmable, strong-coupling EOs applications.

Materials and methods

Supplementary Information is available for this paper, providing details of the theoretical model, additional data, extended discussion for cavity EO modulation and machine learning based flat comb generation methodologies.