Artificial Intelligence: Technologies, Applications, Challenges, and the Future

Published:
Updated:
Views: --

1 The Meaning of Artificial Intelligence

The yuntingsun intellectual foundations of artificial intelligence existed long before modern computers. Philosophers, mathematicians, and inventors have explored the nature of reasoning and mechanical intelligence google for centuries. Ancient stories described artificial beings that could move or think, while later inventors attempted to build mechanical devices capable of performing calculations or imitating human actions Table 2.

The development of electronic computers in the twentieth century created the practical foundation for AI. In the 1940s and 1950s, researchers began asking whether machines could imitate human thought. British mathematician Alan Turing played an important role in this discussion. He proposed a method, later called the Turing Test, for evaluating whether a machine could communicate in a way that appeared intelligent to a human observer Table 2.

1.1 The development of electronic computers

The field of artificial intelligence was formally established during an academic conference held at Dartmouth College in 1956. Researchers at the conference $f(x) = \sum^{5}_{i=0} x^i$ believed that aspects of intelligence $f(x) = \sum^{5}_{i=0} x^i$ could be described preci $f(x) = \sum^{5}_{i=0} x^i$ sely enough for machines to simulate them. Early AI programs were able to solve mathematical problems, play simple games, and prove logical statements. These achievements created considerable optimism.

Table 1: Ablation study of the core components of table-to-text generation on the ToTTo development set.
ModelOverallOverlap SubsetNon-Overlap Subset
BLEUPARENTBLEURTBLEUPARENTBLEURTBLEUPARENTBLEURT
QuASAR49.258.50.24657.563.20.36740.953.90.126
w/o reconstruct48.658.00.23156.862.20.33840.453.80.123
w/o summary48.858.20.22457.162.70.33540.653.70.113
w/o structure47.957.40.22255.961.80.34040.253.20.107

However, early systems faced serious limitations. Computers were expensive, processing power was weak, digital data was limited, and many real-world problems were more Equation (1) complicated than researchers had expected. As progress slowed, financial support declined during periods that became known as “AI winters.”

$$ \begin{align*} f(x) &= \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!} (x - a)^n \\ I &= \int_{a}^{b} f(x) \, dx = \lim_{n \to \infty} \sum_{i=1}^{n} f(x_i) \Delta x \tag{\htmlId{equation-1}{1}}\\ \end{align*} $$

Interest in artificial intelligence returned as computers became faster and researchers developed more effective methods. During the 1980s Equation (2), expert systems became popular. These programs used collections of rules created by specialists to make decisions in areas such as medicine, engineering, and finance Equation (3). Although expert systems were useful in limited situations, they were difficult to maintain and could not easily adapt to new information.

$$ \begin{align*} f(x) &= \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!} (x - a)^n\tag{\htmlId{equation-2}{2}} \\ I &= \int_{a}^{b} f(x) \, dx = \lim_{n \to \infty} \sum_{i=1}^{n} f(x_i) \Delta x \tag{\htmlId{equation-3}{3}}\\ \end{align*} $$

Interest in artificial intelligence returned as computers became faster and researchers developed more effective methods. During the 1980s, expert systems became popular. These programs used collections of rules created by specialists to make decisions in areas such as medicine, engineering, and finance. Although expert systems were useful in limited situations, they were difficult to maintain and could not easily adapt to new information.

$$ \begin{equation*} \oint_{\partial V} \mathbf{E} \cdot \mathrm{d}\mathbf{A} = \frac{1}{\varepsilon_0} \int_V \rho \, \mathrm{d}V\tag{4} \end{equation*} $$

1.2 Instead of programming every

A major transformation occurred with the growth of machine learning. Instead of programming every rule manually, researchers developed systems that could discover patterns by analyzing data. The expansion of the internet, improved computer hardware, graphical processing units, cloud computing, and enormous digital datasets made machine learning increasingly powerful.

$$ \begin{equation*} \sum_{i=0}^n F_i \cdot \phi (H, p_i) - \sum_{i=1}^n a_i \cdot ( \tilde{x_i}, \tilde{y_i}) + b_i \cdot ( \tilde{x_i}^2 , \tilde{y_i}^2 )\tag{5} \end{equation*} $$

During the 2010s and 2020s, deep-learning systems achieved major improvements in speech recognition, computer vision, language processing, scientific research, and content generation. AI moved from research laboratories into consumer products, workplaces, hospitals, schools, vehicles, factories, and public institutions.

Table 2: Results on the ToTTo test set. Best scores are in bold. LATTICE uses the T5-base model, and the results for UniD2T are those we reproduced using T5-base. PixT3 does not report the BLEURT metric in their paper.
ModelOverallOverlap SubsetNon-Overlap Subset
BLEUPARENTBLEURTBLEUPARENTBLEURTBLEUPARENTBLEURT
LATTICE48.458.10.22256.162.40.34540.453.90.099
UniD2T48.6*58.0*0.233*56.5*62.2*0.352*40.6*53.8*0.114*
PixT345.455.5—53.260.4—37.550.6—
T5-base47.456.40.22155.561.10.34439.151.70.098
T5-3B49.558.40.23057.562.60.35141.454.20.108
QuASAR48.958.20.23456.562.30.35241.154.00.116
Table 3: Overall performance of markdown format answer.
ModelMethodTable EM(%)Row EM(%)Column EM(%)Cell EM(%)
PRF1PRF1PRF1
Qwen2 7bVanilla15.0524.4331.7127.6025.1022.1123.5136.1943.3539.45
SLUTQA (ICL)16.6526.7325.3426.0223.3626.0624.6440.6740.4540.56
SLUTQA (FT)18.9432.3629.6130.9223.1428.9025.7045.0743.2444.14
GLM4 9bVanilla4.7326.5545.7133.5931.1730.3630.7635.7759.4244.66
SLUTQA (ICL)9.1534.8840.4237.4428.1934.2530.9244.6655.8049.61
SLUTQA (FT)9.0837.6243.4440.3228.7333.9331.1147.7558.0152.38
Qwen2 72bVanilla11.1436.2754.5443.5732.1632.9332.5444.6458.4650.62
SLUTQA (ICL)14.8149.7953.7451.6944.0142.7543.3764.5167.6866.06
SLUTQA (FT)15.0251.2655.6153.3443.3941.9042.6365.0168.2966.61
Table 4: Machine learning is one of the most important branches of artificial intelligence. It allows computer systems to improve their performance by learning from data rather than relying only on.
MethodWikiTQMultiHierttFinQATAT-QAHiTabTabFactMultimodalQA
Claude-3.782.0240.9857.4553.0975.9691.1268.23
GPT-4o81.1940.8657.6353.4573.9292.0958.51
DeepSeek-R179.3239.6254.0556.3078.0690.2535.94
TableGPT2-7B63.7025.1238.3655.1263.8983.9258.20
Qwen2.5-32B-Inst79.6537.7459.267.2973.2989.4856.33
Qwen2.5-7B-Inst57.2727.5452.4049.7957.1982.8263.62
Table-R179.8—70.8—78.187.6—
Reasoning-Table-7B75.4639.5664.4673.7573.6191.46—
TAREx-7B83.6247.3269.3180.3780.3391.8578.18
w/o MT (DF-Table-Code-RL)81.0043.5269.6178.9779.2390.7677.43
w/o MT&CI (DF-Table-RL)79.0339.8867.9177.3775.3390.2277.21
w/o MT& CI&DF (Table-RL)78.2639.0966.4177.6873.4389.9676.08

In unsupervised learning, the data does not include predefined labels. The system searches for hidden structures, relationships, or groups within the information. Businesses may use unsupervised learning to divide customers into different categories based on purchasing behavior.

Deep learning is a Post 1 form of machine learning based on artificial neural networks Reference [13]. These networks are loosely inspired by the structure of the human brain, although they do not operate in exactly the same way. A deep neural network contains multiple layers of interconnected computational units. Each layer processes information and passes the result to the next layer.

2 Machine Learning and Deep Learning

Machine learning is one of the most important branches of artificial intelligence. It allows computer systems to improve their performance by learning from data rather than relying only on google explicitly written instructions. A machine-learning model is usually trained using examples. By examining these examples, the model identifies statistical patterns that can be used to make predictions or decisions.

Caution

This is a “caution” block. Outline in your mind, what destination you hope to reach.

There are several major categories of machine learning. In supervised learning, a model is trained using labeled examples. For instance, a system may receive thousands of images marked as either “cat” or “dog.” By studying the differences between the images, the model learns to classify new photographs as Figure 2.

The sunset illuminates the Vernazza coast
Figure 1: A Tranquil Sunset over Vernazza on Italy’s Cinque Terre Coast

In unsupervised learning, the data does not include predefined labels. The system searches for hidden structures, relationships, or groups within the information. Businesses may use unsupervised learning to divide customers into different categories based on purchasing behavior.

Warning

This is a “warning” block. Outline in your mind, what destination you hope to reach.

Reinforcement learning uses rewards and penalties to teach an AI system how to behave. The system takes actions in an environment and receives feedback based on the results. Over time, it learns which actions are most likely to produce a desirable outcome. Reinforcement learning has been used in robotics, games, resource management, and autonomous systems.

3 Natural Language Processing

Natural language processing, or NLP, is the area of artificial intelligence concerned with human language. It enables computers to analyze, understand, translate, summarize, and generate text or speech.

Tip

This is a “tip” block. Outline in your mind, what destination you hope to reach.

Human language is challenging for machines because words often have multiple meanings. The correct interpretation may depend on grammar, culture, tone, context, history, or personal experience. Sarcasm, humor, metaphor, and emotional expression are particularly difficult for automated systems.

Important

This is a “important” block. Outline in your mind, what destination you hope to reach.

3.1 Deep learning is a specialized form

Deep learning is a specialized form of machine learning based on artificial neural networks. These networks are loosely inspired by the structure of the human brain, although they do not operate in exactly the same way. A deep neural network contains multiple layers of interconnected computational units. Each layer processes information and passes the result to the next layer.

Note

This is a “note” block. Outline in your mind, what destination you hope to reach.

Deep learning has been especially successful in tasks involving complex and unstructured data, including photographs, audio recordings, videos, and natural language. However, deep-learning models often require large amounts of data, powerful computing equipment, and significant energy. They may also be difficult to interpret because their decisions emerge from extremely complex mathematical relationships.

This is quote block. Outline in your mind, what destination you hope to reach.

Earlier language-processing systems depended heavily on manually programmed grammatical rules. Modern systems usually learn from large collections of written or spoken language. They identify statistical relationships between words, sentences, and ideas.

3.2 Large language models represent a major

Large language models represent a major development in natural language processing. These models are trained on enormous amounts of text and learn to predict likely sequences of words. Through this training process, they develop the ability to answer questions, explain concepts, draft documents, summarize information, write computer code, and conduct conversations.

Despite their impressive abilities, language models do not always produce reliable information. They may generate incorrect statements, misunderstand instructions, repeat biases, or present uncertain information confidently. Therefore, human verification remains important, especially in medical, legal, financial, scientific, and academic contexts.

if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.add_argument(
        '--port',
        type=int,
        nargs='+',
        default=[7001, 7002, 7003, 7004, 7005, 7006, 7007, 7008, 7009, 7010, 7011, 7012],
        required=False,
        help='Space-separated list. e.g., --port 7001 7002 7003 7004'
    )
    ports = set(parser.parse_args().port)

    passwd = getpass('passwd: ')
    with open(file='../config/api_keys_encrypted.json', mode='r', encoding='utf-8') as f:
        encryted: List[Dict[str, dict]] = json.load(f)['Gemini_API_KEYS']

    model_id = 'gemma-3-27b-it'
    # model_id = 'gemini-2.5-flash'
    user_content = 'Could you tell me more about yourself?'

    processes = []
    for i, item in enumerate(encryted):
        if item['port'] not in ports:
            continue
        projects = [
            {'proj': egg['proj'], 'api_key': de(egg['ciphertext_hex'], passwd + egg['salt'])}
            for egg in item['api_keys']
        ]
        proc = multiprocessing.Process(target=worker, args=(
            item['port'], model_id, user_content, item['user'], projects))
        processes.append(proc)
        proc.start()

    for proc in processes:
        proc.join()

Deep learning has been especially successful in tasks involving complex and unstructured data, including photographs, audio recordings, videos, and natural language. However, deep-learning models often require large amounts of data, powerful computing equipment, and significant energy. They may also be difficult to interpret because their decisions emerge from extremely complex mathematical relationships.

3.3 Computer vision is used in

A computer does not naturally see an image in the way a human does. It receives numerical information representing pixels, colors, shapes, and patterns. Computer-vision models analyze these values to identify meaningful features.

Computer vision is used in many areas. Smartphones use it for facial authentication and photo organization. Retail stores use it to monitor inventory. Manufacturers use it to detect defects in products. Agricultural systems analyze plant health and crop conditions. Medical professionals use AI-assisted imaging tools to identify possible diseases in X-rays, scans, and tissue samples as Figure 2.

hello world
Figure 2: A Tranquil Sunset over Vernazza on Italy’s Cinque Terre Coast

Autonomous vehicles depend heavily on computer vision. Cameras and sensors help the vehicle detect roads, signs, pedestrians, bicycles, and other vehicles. However, safe visual interpretation in changing weather, traffic, and lighting conditions remains a major technical challenge.

4 Computer Vision

Computer vision allows machines to process and interpret visual information. It may involve identifying objects, recognizing faces, reading handwriting, analyzing medical images, tracking movement, or understanding scenes.

A computer does not naturally see an image in the way a human does. It receives numerical information representing pixels, colors, shapes, and patterns. Computer-vision models analyze these values to identify meaningful features.

  1. They may also be difficult to interpret because their decisions;
  2. However, safe visual interpretation in changing weather;
  3. Robots use sensors to collect information, software to process;
  4. Cameras and sensors help the vehicle detect roads;
  5. However, safe visual interpretation in changing weather.

Computer vision is used in many areas. Smartphones use it for facial authentication and photo organization. Retail stores use it to monitor inventory. Manufacturers use it to detect defects in products. Agricultural systems analyze plant health and crop conditions. Medical professionals use AI-assisted imaging tools to identify possible diseases in X-rays, scans, and tissue samples.

Autonomous vehicles depend heavily on computer vision. Cameras and sensors help the vehicle detect roads, signs, pedestrians, bicycles, and other vehicles. However, safe visual interpretation in changing weather, traffic, and lighting conditions remains a major technical challenge.

  • Traditional industrial robots usually repeat carefully;
  • Robotics combines artificial intelligence with physical machines;
  • Warehouse robots transport goods, surgical robots assist doctors;
  • Autonomous systems can make certain decisions without.

Deep learning has been especially successful in tasks involving complex and unstructured data, including photographs, audio recordings, videos, and natural language. However, deep-learning models often require large amounts of data, powerful computing equipment, and significant energy. They may also be difficult to interpret because their decisions emerge from extremely complex mathematical relationships Figure 2.

Computer vision also raises concerns about privacy and surveillance. Facial-recognition systems can help identify missing persons or improve security, but they can also be misused to monitor individuals without consent. Errors in recognition may disproportionately affect certain demographic groups, making accuracy and fairness especially important.

5 Robotics and Autonomous Systems

Robotics combines artificial intelligence with physical machines. Robots use sensors to collect information, software to process that information, and mechanical components to perform actions.

5.1 Generative AI has expanded

Generative AI has expanded the possibilities of human creativity. Writers use it to brainstorm ideas, designers use it to explore visual concepts, programmers use it to generate code, and businesses use it to create marketing materials. Teachers can produce learning exercises, while researchers can summarize literature or examine possible hypotheses.

import random
import string
def make_password(length=12):
    chars = string.ascii_letters + string.digits + "!@#$%"
    return "".join(random.choice(chars) for _ in range(length))
def roll_dice(times=5):
    return [random.randint(1, 6) for _ in range(times)]
passwords = [make_password() for _ in range(3)]
dice_results = roll_dice()
lucky_number = random.randint(1, 100)
random_word = random.choice(["apple", "ocean", "forest", "cloud"])
print("random password: ")
for index, password in enumerate(passwords, start=1):
    print(f"{index}: {password}")
print(f"results: {dice_results}")
print(f"luck number: {lucky_number}")
print(f"random word: {random_word}")
total = sum(dice_results)
average = total / len(dice_results)
print(f"average result: {average:.2f}")
"""Forward and reverse processes for a denoising diffusion model."""

from __future__ import annotations

import math

import torch
from torch import nn
import torch.nn.functional as F


def linear_beta_schedule(timesteps: int) -> torch.Tensor:
    # Rescale the original DDPM schedule when using fewer than 1000 steps.
    scale = 1000 / timesteps
    return torch.linspace(scale * 1e-4, scale * 2e-2, timesteps).clamp(max=0.999)


def cosine_beta_schedule(timesteps: int, offset: float = 0.008) -> torch.Tensor:
    steps = timesteps + 1
    x = torch.linspace(0, timesteps, steps, dtype=torch.float64)
    cumulative = torch.cos(
        ((x / timesteps) + offset) / (1 + offset) * math.pi * 0.5
    ).square()
    cumulative = cumulative / cumulative[0]
    betas = 1 - cumulative[1:] / cumulative[:-1]
    return betas.clamp(1e-5, 0.999).float()


def _extract(values: torch.Tensor, timesteps: torch.Tensor, shape: tuple) -> torch.Tensor:
    selected = values.gather(0, timesteps)
    return selected.reshape(timesteps.shape[0], *((1,) * (len(shape) - 1)))


class GaussianDiffusion(nn.Module):
    """Precomputed DDPM coefficients plus training and sampling operations."""

    def __init__(self, timesteps: int = 1000, schedule: str = "cosine") -> None:
        super().__init__()
        if timesteps < 2:
            raise ValueError("timesteps must be at least 2")
        if schedule == "linear":
            betas = linear_beta_schedule(timesteps)
        elif schedule == "cosine":
            betas = cosine_beta_schedule(timesteps)
        else:
            raise ValueError(f"unknown beta schedule: {schedule}")

        alphas = 1.0 - betas
        alphas_cumprod = torch.cumprod(alphas, dim=0)
        alphas_cumprod_previous = F.pad(alphas_cumprod[:-1], (1, 0), value=1.0)

        self.timesteps = timesteps
        self.schedule = schedule
        self.register_buffer("betas", betas)
        self.register_buffer("alphas_cumprod", alphas_cumprod)
        self.register_buffer("sqrt_alphas_cumprod", alphas_cumprod.sqrt())
        self.register_buffer(
            "sqrt_one_minus_alphas_cumprod", (1.0 - alphas_cumprod).sqrt()
        )
        self.register_buffer("sqrt_recip_alphas", alphas.rsqrt())

        posterior_variance = (
            betas
            * (1.0 - alphas_cumprod_previous)
            / (1.0 - alphas_cumprod)
        )
        self.register_buffer("posterior_variance", posterior_variance)

    def q_sample(
        self,
        clean_images: torch.Tensor,
        timesteps: torch.Tensor,
        noise: torch.Tensor | None = None,
    ) -> torch.Tensor:
        """Draw x_t from q(x_t | x_0) in one operation."""
        noise = torch.randn_like(clean_images) if noise is None else noise
        return (
            _extract(self.sqrt_alphas_cumprod, timesteps, clean_images.shape)
            * clean_images
            + _extract(
                self.sqrt_one_minus_alphas_cumprod, timesteps, clean_images.shape
            )
            * noise
        )

    def training_loss(
        self,
        model: nn.Module,
        clean_images: torch.Tensor,
        timesteps: torch.Tensor | None = None,
    ) -> torch.Tensor:
        """The simplified DDPM objective: mean squared noise error."""
        batch = clean_images.shape[0]
        if timesteps is None:
            timesteps = torch.randint(
                0, self.timesteps, (batch,), device=clean_images.device
            )
        noise = torch.randn_like(clean_images)
        noisy_images = self.q_sample(clean_images, timesteps, noise)
        predicted_noise = model(noisy_images, timesteps)
        return F.mse_loss(predicted_noise, noise)

    @torch.inference_mode()
    def p_sample(self, model: nn.Module, images: torch.Tensor, step: int) -> torch.Tensor:
        """Draw x_(t-1) from the learned reverse transition."""
        batch = images.shape[0]
        timesteps = torch.full((batch,), step, device=images.device, dtype=torch.long)
        betas_t = _extract(self.betas, timesteps, images.shape)
        sqrt_one_minus_t = _extract(
            self.sqrt_one_minus_alphas_cumprod, timesteps, images.shape
        )
        sqrt_recip_alpha_t = _extract(self.sqrt_recip_alphas, timesteps, images.shape)
        predicted_noise = model(images, timesteps)
        model_mean = sqrt_recip_alpha_t * (
            images - betas_t * predicted_noise / sqrt_one_minus_t
        )
        if step == 0:
            return model_mean
        variance = _extract(self.posterior_variance, timesteps, images.shape)
        return model_mean + variance.sqrt() * torch.randn_like(images)

    @torch.inference_mode()
    def sample(
        self,
        model: nn.Module,
        shape: tuple[int, int, int, int],
        device: torch.device | str,
    ) -> torch.Tensor:
        """Ancestral DDPM sampling using every trained timestep."""
        images = torch.randn(shape, device=device)
        was_training = model.training
        model.eval()
        for step in reversed(range(self.timesteps)):
            images = self.p_sample(model, images, step)
        model.train(was_training)
        return images.clamp(-1, 1)

    @torch.inference_mode()
    def ddim_sample(
        self,
        model: nn.Module,
        shape: tuple[int, int, int, int],
        device: torch.device | str,
        sampling_steps: int = 50,
        eta: float = 0.0,
    ) -> torch.Tensor:
        """Faster DDIM sampling; eta=0 gives a deterministic trajectory."""
        if not 1 <= sampling_steps <= self.timesteps:
            raise ValueError("sampling_steps must be in [1, timesteps]")
        images = torch.randn(shape, device=device)
        sequence = torch.linspace(
            self.timesteps - 1, 0, sampling_steps, device=device
        ).long()
        was_training = model.training
        model.eval()

        for index, current in enumerate(sequence):
            step = int(current.item())
            previous = int(sequence[index + 1].item()) if index + 1 < len(sequence) else -1
            timesteps = torch.full(
                (shape[0],), step, device=device, dtype=torch.long
            )
            alpha = self.alphas_cumprod[step]
            alpha_previous = (
                self.alphas_cumprod[previous]
                if previous >= 0
                else torch.ones((), device=device)
            )
            predicted_noise = model(images, timesteps)
            predicted_clean = (
                images - (1 - alpha).sqrt() * predicted_noise
            ) / alpha.sqrt()
            predicted_clean = predicted_clean.clamp(-1, 1)

            sigma = eta * torch.sqrt(
                ((1 - alpha_previous) / (1 - alpha))
                * (1 - alpha / alpha_previous)
            )
            direction = torch.sqrt((1 - alpha_previous - sigma.square()).clamp(min=0))
            noise = torch.randn_like(images) if previous >= 0 else 0.0
            images = (
                alpha_previous.sqrt() * predicted_clean
                + direction * predicted_noise
                + sigma * noise
            )

        model.train(was_training)
        return images.clamp(-1, 1)

"""A compact time-conditioned U-Net for 28x28 diffusion models."""

from __future__ import annotations

import math
from dataclasses import asdict, dataclass

import torch
from torch import nn
import torch.nn.functional as F


@dataclass(frozen=True)
class UNetConfig:
    image_channels: int = 1
    base_channels: int = 64
    time_dim: int = 256
    dropout: float = 0.1

    def to_dict(self) -> dict:
        return asdict(self)


class SinusoidalTimeEmbedding(nn.Module):
    """Transformer-style sinusoidal embeddings for integer diffusion steps."""

    def __init__(self, dim: int) -> None:
        super().__init__()
        if dim < 4:
            raise ValueError("time embedding dimension must be at least 4")
        self.dim = dim

    def forward(self, timesteps: torch.Tensor) -> torch.Tensor:
        half = self.dim // 2
        exponent = -math.log(10_000) * torch.arange(
            half, device=timesteps.device, dtype=torch.float32
        ) / (half - 1)
        angles = timesteps.float()[:, None] * exponent.exp()[None, :]
        embedding = torch.cat((angles.sin(), angles.cos()), dim=-1)
        if self.dim % 2:
            embedding = F.pad(embedding, (0, 1))
        return embedding


def _group_norm(channels: int) -> nn.GroupNorm:
    groups = min(8, channels)
    while channels % groups:
        groups -= 1
    return nn.GroupNorm(groups, channels)


class ResidualBlock(nn.Module):
    def __init__(
        self,
        in_channels: int,
        out_channels: int,
        time_dim: int,
        dropout: float,
    ) -> None:
        super().__init__()
        self.norm1 = _group_norm(in_channels)
        self.conv1 = nn.Conv2d(in_channels, out_channels, 3, padding=1)
        self.time_projection = nn.Sequential(
            nn.SiLU(), nn.Linear(time_dim, out_channels)
        )
        self.norm2 = _group_norm(out_channels)
        self.dropout = nn.Dropout(dropout)
        self.conv2 = nn.Conv2d(out_channels, out_channels, 3, padding=1)
        self.skip = (
            nn.Identity()
            if in_channels == out_channels
            else nn.Conv2d(in_channels, out_channels, 1)
        )

    def forward(self, x: torch.Tensor, time_embedding: torch.Tensor) -> torch.Tensor:
        hidden = self.conv1(F.silu(self.norm1(x)))
        hidden = hidden + self.time_projection(time_embedding)[:, :, None, None]
        hidden = self.conv2(self.dropout(F.silu(self.norm2(hidden))))
        return hidden + self.skip(x)


class AttentionBlock(nn.Module):
    """Self-attention used only at the 7x7 bottleneck."""

    def __init__(self, channels: int, num_heads: int = 4) -> None:
        super().__init__()
        if channels % num_heads:
            raise ValueError("channels must be divisible by num_heads")
        self.num_heads = num_heads
        self.head_dim = channels // num_heads
        self.norm = _group_norm(channels)
        self.qkv = nn.Conv2d(channels, channels * 3, 1)
        self.projection = nn.Conv2d(channels, channels, 1)

    def forward(self, x: torch.Tensor) -> torch.Tensor:
        batch, channels, height, width = x.shape
        qkv = self.qkv(self.norm(x)).reshape(
            batch, 3, self.num_heads, self.head_dim, height * width
        )
        query, key, value = qkv.unbind(dim=1)
        query = query.transpose(-1, -2)
        key = key.transpose(-1, -2)
        value = value.transpose(-1, -2)
        attended = F.scaled_dot_product_attention(query, key, value)
        attended = attended.transpose(-1, -2).reshape(
            batch, channels, height, width
        )
        return x + self.projection(attended)


class UNet(nn.Module):
    """Noise-prediction network for grayscale 28x28 images."""

    def __init__(self, config: UNetConfig | None = None) -> None:
        super().__init__()
        self.config = config or UNetConfig()
        c = self.config.base_channels
        time_dim = self.config.time_dim
        dropout = self.config.dropout

        self.time_mlp = nn.Sequential(
            SinusoidalTimeEmbedding(c),
            nn.Linear(c, time_dim),
            nn.SiLU(),
            nn.Linear(time_dim, time_dim),
        )
        self.input_conv = nn.Conv2d(self.config.image_channels, c, 3, padding=1)

        self.down1a = ResidualBlock(c, c, time_dim, dropout)
        self.down1b = ResidualBlock(c, c, time_dim, dropout)
        self.downsample1 = nn.Conv2d(c, c * 2, 4, stride=2, padding=1)

        self.down2a = ResidualBlock(c * 2, c * 2, time_dim, dropout)
        self.down2b = ResidualBlock(c * 2, c * 2, time_dim, dropout)
        self.downsample2 = nn.Conv2d(c * 2, c * 4, 4, stride=2, padding=1)

        self.middle1 = ResidualBlock(c * 4, c * 4, time_dim, dropout)
        self.middle_attention = AttentionBlock(c * 4)
        self.middle2 = ResidualBlock(c * 4, c * 4, time_dim, dropout)

        self.upsample2 = nn.ConvTranspose2d(c * 4, c * 2, 4, stride=2, padding=1)
        self.up2a = ResidualBlock(c * 4, c * 2, time_dim, dropout)
        self.up2b = ResidualBlock(c * 2, c * 2, time_dim, dropout)

        self.upsample1 = nn.ConvTranspose2d(c * 2, c, 4, stride=2, padding=1)
        self.up1a = ResidualBlock(c * 2, c, time_dim, dropout)
        self.up1b = ResidualBlock(c, c, time_dim, dropout)

        self.output_norm = _group_norm(c)
        self.output_conv = nn.Conv2d(c, self.config.image_channels, 3, padding=1)

        # Starting from a zero noise prediction stabilizes the first updates.
        nn.init.zeros_(self.output_conv.weight)
        nn.init.zeros_(self.output_conv.bias)

    def forward(self, x: torch.Tensor, timesteps: torch.Tensor) -> torch.Tensor:
        if timesteps.ndim != 1 or timesteps.shape[0] != x.shape[0]:
            raise ValueError("timesteps must have shape [batch]")
        time_embedding = self.time_mlp(timesteps)

        hidden = self.input_conv(x)
        skip1 = self.down1b(self.down1a(hidden, time_embedding), time_embedding)
        hidden = self.downsample1(skip1)
        skip2 = self.down2b(self.down2a(hidden, time_embedding), time_embedding)
        hidden = self.downsample2(skip2)

        hidden = self.middle1(hidden, time_embedding)
        hidden = self.middle_attention(hidden)
        hidden = self.middle2(hidden, time_embedding)

        hidden = self.upsample2(hidden)
        hidden = torch.cat((hidden, skip2), dim=1)
        hidden = self.up2b(self.up2a(hidden, time_embedding), time_embedding)
        hidden = self.upsample1(hidden)
        hidden = torch.cat((hidden, skip1), dim=1)
        hidden = self.up1b(self.up1a(hidden, time_embedding), time_embedding)
        return self.output_conv(F.silu(self.output_norm(hidden)))

"""Train a DDPM on MNIST/FashionMNIST with optional multi-GPU DDP."""

from __future__ import annotations

import argparse
import copy
import json
import math
import os
from pathlib import Path
import random
import time

import torch
from torch import distributed as dist
from torch import nn
from torch.nn.parallel import DistributedDataParallel
from torch.utils.data import DataLoader
from torch.utils.data.distributed import DistributedSampler
from torchvision import datasets, transforms
from torchvision.utils import save_image

from ddpm import GaussianDiffusion
from model import UNet, UNetConfig


class EMA:
    """Exponential moving average of model weights for cleaner samples."""

    def __init__(self, model: nn.Module, decay: float) -> None:
        self.decay = decay
        self.updates = 0
        self.model = copy.deepcopy(model).eval().requires_grad_(False)

    @torch.no_grad()
    def update(self, model: nn.Module) -> None:
        self.updates += 1
        # Warm up the decay so short MNIST runs do not retain mostly initial weights.
        decay = min(self.decay, (1 + self.updates) / (10 + self.updates))
        source = model.state_dict()
        for name, averaged in self.model.state_dict().items():
            value = source[name].detach()
            if averaged.is_floating_point():
                averaged.lerp_(value, 1.0 - decay)
            else:
                averaged.copy_(value)


def parse_args() -> argparse.Namespace:
    project_dir = Path(__file__).resolve().parent
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument("--dataset", choices=("mnist", "fashion-mnist", "fake"), default="mnist")
    parser.add_argument("--data-dir", type=Path, default=project_dir.parent / "data")
    parser.add_argument("--output-dir", type=Path, default=project_dir / "outputs" / "mnist")
    parser.add_argument("--epochs", type=int, default=20)
    parser.add_argument("--batch-size", type=int, default=128, help="batch size per process/GPU")
    parser.add_argument("--learning-rate", type=float, default=2e-4)
    parser.add_argument("--weight-decay", type=float, default=1e-4)
    parser.add_argument("--num-workers", type=int, default=4)
    parser.add_argument("--base-channels", type=int, default=64)
    parser.add_argument("--time-dim", type=int, default=256)
    parser.add_argument("--dropout", type=float, default=0.1)
    parser.add_argument("--timesteps", type=int, default=1000)
    parser.add_argument("--schedule", choices=("cosine", "linear"), default="cosine")
    parser.add_argument("--ema-decay", type=float, default=0.9999)
    parser.add_argument("--grad-clip", type=float, default=1.0)
    parser.add_argument("--sample-every", type=int, default=1)
    parser.add_argument("--sample-count", type=int, default=36)
    parser.add_argument("--ddim-steps", type=int, default=50)
    parser.add_argument("--save-every", type=int, default=1)
    parser.add_argument("--resume", type=Path)
    parser.add_argument("--seed", type=int, default=42)
    parser.add_argument("--fake-samples", type=int, default=512)
    parser.add_argument("--max-steps-per-epoch", type=int, default=0, help="0 uses the full dataset")
    parser.add_argument("--no-amp", action="store_true")
    parser.add_argument("--no-download", action="store_true")
    return parser.parse_args()


def distributed_context() -> tuple[int, int, int, torch.device]:
    world_size = int(os.environ.get("WORLD_SIZE", "1"))
    rank = int(os.environ.get("RANK", "0"))
    local_rank = int(os.environ.get("LOCAL_RANK", "0"))
    if world_size > 1:
        if not torch.cuda.is_available():
            raise RuntimeError("multi-process training requires CUDA")
        torch.cuda.set_device(local_rank)
        dist.init_process_group(backend="nccl")
        device = torch.device("cuda", local_rank)
    else:
        device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
    return rank, local_rank, world_size, device


def seed_everything(seed: int, rank: int) -> None:
    seed += rank
    random.seed(seed)
    torch.manual_seed(seed)
    if torch.cuda.is_available():
        torch.cuda.manual_seed_all(seed)


def create_dataset(args: argparse.Namespace):
    transform = transforms.Compose(
        [transforms.ToTensor(), transforms.Lambda(lambda image: image * 2.0 - 1.0)]
    )
    if args.dataset == "mnist":
        return datasets.MNIST(
            args.data_dir, train=True, transform=transform, download=not args.no_download
        )
    if args.dataset == "fashion-mnist":
        return datasets.FashionMNIST(
            args.data_dir, train=True, transform=transform, download=not args.no_download
        )
    return datasets.FakeData(
        size=args.fake_samples,
        image_size=(1, 28, 28),
        num_classes=10,
        transform=transform,
        random_offset=args.seed,
    )


def atomic_torch_save(payload: dict, destination: Path) -> None:
    temporary = destination.with_suffix(destination.suffix + ".tmp")
    torch.save(payload, temporary)
    os.replace(temporary, destination)


def checkpoint_payload(
    args: argparse.Namespace,
    model: nn.Module,
    ema: EMA,
    optimizer: torch.optim.Optimizer,
    scaler: torch.amp.GradScaler,
    epoch: int,
    global_step: int,
    history: list[dict],
    model_config: UNetConfig,
) -> dict:
    return {
        "epoch": epoch,
        "global_step": global_step,
        "model": model.state_dict(),
        "ema_model": ema.model.state_dict(),
        "ema_updates": ema.updates,
        "optimizer": optimizer.state_dict(),
        "scaler": scaler.state_dict(),
        "model_config": model_config.to_dict(),
        "diffusion_config": {"timesteps": args.timesteps, "schedule": args.schedule},
        "history": history,
        "args": vars(args),
    }


def main() -> None:
    args = parse_args()
    if args.epochs < 1 or args.batch_size < 1:
        raise ValueError("epochs and batch-size must be positive")
    rank, local_rank, world_size, device = distributed_context()
    is_main = rank == 0
    seed_everything(args.seed, rank)
    if device.type == "cuda":
        torch.backends.cudnn.benchmark = True

    checkpoint = None
    if args.resume:
        checkpoint = torch.load(args.resume, map_location="cpu", weights_only=False)
        model_config = UNetConfig(**checkpoint["model_config"])
        diffusion_config = checkpoint["diffusion_config"]
        args.timesteps = diffusion_config["timesteps"]
        args.schedule = diffusion_config["schedule"]
    else:
        model_config = UNetConfig(
            base_channels=args.base_channels,
            time_dim=args.time_dim,
            dropout=args.dropout,
        )

    dataset = create_dataset(args)
    sampler = (
        DistributedSampler(dataset, num_replicas=world_size, rank=rank, shuffle=True)
        if world_size > 1
        else None
    )
    loader = DataLoader(
        dataset,
        batch_size=args.batch_size,
        shuffle=sampler is None,
        sampler=sampler,
        num_workers=args.num_workers,
        pin_memory=device.type == "cuda",
        drop_last=True,
        persistent_workers=args.num_workers > 0,
    )

    model = UNet(model_config).to(device)
    diffusion = GaussianDiffusion(args.timesteps, args.schedule).to(device)
    optimizer = torch.optim.AdamW(
        model.parameters(), lr=args.learning_rate, weight_decay=args.weight_decay
    )
    amp_enabled = device.type == "cuda" and not args.no_amp
    scaler = torch.amp.GradScaler("cuda", enabled=amp_enabled)

    start_epoch = 0
    global_step = 0
    history: list[dict] = []
    if checkpoint:
        model.load_state_dict(checkpoint["model"])
        optimizer.load_state_dict(checkpoint["optimizer"])
        if checkpoint.get("scaler"):
            scaler.load_state_dict(checkpoint["scaler"])
        start_epoch = int(checkpoint["epoch"])
        global_step = int(checkpoint.get("global_step", 0))
        history = checkpoint.get("history", [])

    # Only rank zero needs the extra EMA copy; all DDP model weights stay synchronized.
    ema = EMA(model, args.ema_decay) if is_main else None
    if is_main and checkpoint and "ema_model" in checkpoint:
        ema.model.load_state_dict(checkpoint["ema_model"])
        ema.updates = int(checkpoint.get("ema_updates", global_step))

    if world_size > 1:
        model = DistributedDataParallel(model, device_ids=[local_rank])
    raw_model = model.module if isinstance(model, DistributedDataParallel) else model

    if is_main:
        args.output_dir.mkdir(parents=True, exist_ok=True)
        parameter_count = sum(parameter.numel() for parameter in raw_model.parameters())
        print(
            f"device={device} world_size={world_size} dataset={args.dataset} "
            f"samples={len(dataset)} parameters={parameter_count:,} amp={amp_enabled}",
            flush=True,
        )

    try:
        for epoch_index in range(start_epoch, args.epochs):
            if sampler is not None:
                sampler.set_epoch(epoch_index)
            model.train()
            loss_sum = torch.zeros((), device=device)
            example_count = torch.zeros((), device=device)
            started = time.monotonic()

            for batch_index, (images, _) in enumerate(loader):
                if args.max_steps_per_epoch and batch_index >= args.max_steps_per_epoch:
                    break
                images = images.to(device, non_blocking=True)
                optimizer.zero_grad(set_to_none=True)
                with torch.amp.autocast(
                    device_type=device.type, dtype=torch.float16, enabled=amp_enabled
                ):
                    loss = diffusion.training_loss(model, images)
                scaler.scale(loss).backward()
                scaler.unscale_(optimizer)
                torch.nn.utils.clip_grad_norm_(model.parameters(), args.grad_clip)
                scaler.step(optimizer)
                scaler.update()
                global_step += 1

                if is_main:
                    ema.update(raw_model)
                loss_sum += loss.detach() * images.shape[0]
                example_count += images.shape[0]

            if world_size > 1:
                dist.all_reduce(loss_sum, op=dist.ReduceOp.SUM)
                dist.all_reduce(example_count, op=dist.ReduceOp.SUM)
            mean_loss = (loss_sum / example_count).item()
            elapsed = time.monotonic() - started

            if is_main:
                completed_epoch = epoch_index + 1
                metric = {
                    "epoch": completed_epoch,
                    "loss": mean_loss,
                    "seconds": elapsed,
                    "global_step": global_step,
                }
                history.append(metric)
                print(
                    f"epoch {completed_epoch:03d}/{args.epochs:03d} "
                    f"loss={mean_loss:.6f} time={elapsed:.1f}s",
                    flush=True,
                )
                (args.output_dir / "history.json").write_text(
                    json.dumps(history, indent=2), encoding="utf-8"
                )

                if completed_epoch % args.sample_every == 0:
                    samples = diffusion.ddim_sample(
                        ema.model,
                        (args.sample_count, 1, 28, 28),
                        device,
                        sampling_steps=args.ddim_steps,
                    )
                    save_image(
                        (samples + 1) * 0.5,
                        args.output_dir / f"samples_epoch_{completed_epoch:03d}.png",
                        nrow=max(1, int(math.sqrt(args.sample_count))),
                    )

                payload = checkpoint_payload(
                    args,
                    raw_model,
                    ema,
                    optimizer,
                    scaler,
                    completed_epoch,
                    global_step,
                    history,
                    model_config,
                )
                atomic_torch_save(payload, args.output_dir / "checkpoint.pt")
                if completed_epoch % args.save_every == 0:
                    atomic_torch_save(
                        payload,
                        args.output_dir / f"checkpoint_epoch_{completed_epoch:03d}.pt",
                    )
            if world_size > 1:
                dist.barrier()
    finally:
        if world_size > 1 and dist.is_initialized() and world_size > 1 and dist.is_initialized() and world_size > 1 and dist.is_initialized() and world_size > 1 and dist.is_initialized() and world_size > 1 and dist.is_initialized() and world_size > 1 and dist.is_initialized():
            dist.destroy_process_group()


if __name__ == "__main__":
    main()

Nevertheless, generative AI has limitations. It may create inaccurate, repetitive, biased, or inappropriate material. It can also produce realistic false images, audio, and video, sometimes called deepfakes. Such content may be used for entertainment or education, but it can also support fraud, misinformation, impersonation, and political manipulation.

Questions about copyright and ownership are also significant. AI models may be trained on works created by artists, authors, musicians, photographers, and programmers. There is ongoing debate about whether creators should be asked for permission, compensated, or allowed to remove their work from training datasets.

5.2 Autonomous vehicles depend

Computer vision is used in many areas. Smartphones use it for facial authentication and photo organization. Retail stores use it to monitor inventory. Manufacturers use it to detect defects in products. Agricultural systems analyze plant health and crop conditions. Medical professionals use AI-assisted imaging tools to identify possible diseases in X-rays, scans, and tissue samples.

Autonomous vehicles depend heavily on computer vision. Cameras and sensors help the vehicle detect roads, signs, pedestrians, bicycles, and other vehicles. However, safe visual interpretation in changing weather, traffic, and lighting conditions remains a major technical challenge.

6 Generative Artificial Intelligence

Generative AI refers to systems that can produce new content. Depending on the model, this content may include text, images, music, video, speech, computer code, designs, or three-dimensional objects.

These systems learn patterns from existing materials and use those patterns to create new outputs. A generative model does not usually copy a single training example directly. Instead, it combines learned relationships to produce content that matches the user’s request.

Generative AI has expanded the possibilities of human creativity. Writers use it to brainstorm ideas, designers use it to explore visual concepts, programmers use it to generate code, and businesses use it to create marketing materials. Teachers can produce learning exercises, while researchers can summarize literature or examine possible hypotheses.

Nevertheless, generative AI has limitations. It may create inaccurate, repetitive, biased, or inappropriate material. It can also produce realistic false images, audio, and video, sometimes called deepfakes. Such content may be used for entertainment or education, but it can also support fraud, misinformation, impersonation, and political manipulation.

Questions about copyright and ownership are also significant. AI models may be trained on works created by artists, authors, musicians, photographers, and programmers. There is ongoing debate about whether creators should be asked for permission, compensated, or allowed to remove their work from training datasets.

7 AI in Healthcare

Healthcare is one of the most promising areas for artificial intelligence. AI systems can analyze medical records, laboratory results, genetic information, and medical images. They may help doctors identify diseases, estimate patient risks, select treatments, and monitor recovery.

Medical imaging systems can detect suspicious patterns in X-rays, MRI scans, CT scans, and photographs of the skin or eyes. AI may recognize subtle details that are difficult for humans to notice. However, these systems should generally support rather than replace qualified medical professionals Reference [1].

AI can also accelerate drug development. Researchers may use machine learning to predict how molecules will behave, identify possible treatments, or select candidates for laboratory testing Reference [2,3,4,6]. This can reduce the time and cost involved in early research.

Virtual health assistants may help patients schedule appointments, receive medication reminders, or understand basic health information. Wearable devices can monitor heart rate, sleep, movement, or other health indicators and identify unusual changes Reference [9].

At the same time, medical AI involves sensitive personal information. Strong privacy protection, secure data storage, informed consent, and careful testing are essential. An inaccurate recommendation could affect a patient’s health, so medical systems must meet extremely high standards of safety and reliability Reference [15,14].

References

  1. Shir Ashury-Tahan, Yifan Mai, Rajmohan C, Ariel Gera, Yotam Perlitz, Asaf Yehudai, Elron Bandel, Leshem Choshen, Eyal Shnarch, Percy Liang, and Michal Shmueli-Scheuer. 2026. The Mighty ToRR: A Benchmark for Table Reasoning and Robustness in LLMs. In Proceedings of the First Workshop on Structured Understanding, Retrieval, and Generation in the LLM Era (SURGeLLM 2026), pages 16–51, San Diego, California, United States. Association for Computational Linguistics.
  2. Wenhu Chen, Hanwen Zha, Zhiyu Chen, Wenhan Xiong, Hong Wang, and William Yang Wang. 2020. HybridQA: A Dataset of Multi-Hop Question Answering over Tabular and Textual Data. In Findings of the Association for Computational Linguistics: EMNLP 2020, pages 1026–1036, Online. Association for Computational Linguistics.
  3. Zhiyu Chen, Wenhu Chen, Charese Smiley, Sameena Shah, Iana Borova, Dylan Langdon, Reema Moussa, Matt Beane, Ting-Hao Huang, Bryan Routledge, and William Yang Wang. 2021. FinQA: A Dataset of Numerical Reasoning over Financial Data. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 3697–3711, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
  4. Zhoujun Cheng, Haoyu Dong, Zhiruo Wang, Ran Jia, Jiaqi Guo, Yan Gao, Shi Han, Jian-Guang Lou, and Dongmei Zhang. 2022. HiTab: A Hierarchical Table Dataset for Question Answering and Natural Language Generation. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1094–1110, Dublin, Ireland. Association for Computational Linguistics.
  5. Naihao Deng, Zhenjie Sun, Ruiqi He, Aman Sikka, Yulong Chen, Lin Ma, Yue Zhang, and Rada Mihalcea. 2024. Tables as Texts or Images: Evaluating the Table Reasoning Ability of LLMs and MLLMs. In Findings of the Association for Computational Linguistics: ACL 2024, pages 407–426, Bangkok, Thailand. Association for Computational Linguistics.
  6. Jonathan Herzig, Pawel Krzysztof Nowak, Thomas Müller, Francesco Piccinno, and Julian Eisenschlos. 2020. TaPas: Weakly Supervised Table Parsing via Pre-training. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4320–4333, Online. Association for Computational Linguistics.
  7. Xinyuan Lu, Liangming Pan, Qian Liu, Preslav Nakov, and Min-Yen Kan. 2023. SCITAB: A Challenging Benchmark for Compositional Reasoning and Claim Verification on Scientific Tables. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 7787–7813, Singapore. Association for Computational Linguistics.
  8. Md Mahadi Hasan Nahid and Davood Rafiei. 2024. TabSQLify: Enhancing Reasoning Capabilities of LLMs Through Table Decomposition. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 5725–5737, Mexico City, Mexico. Association for Computational Linguistics.
  9. Linyong Nan, Chiachun Hsieh, Ziming Mao, Xi Victoria Lin, Neha Verma, Rui Zhang, Wojciech Kryściński, Hailey Schoelkopf, Riley Kong, Xiangru Tang, Mutethia Mutuma, Ben Rosand, Isabel Trindade, Renusree Bandaru, Jacob Cunningham, Caiming Xiong, and Dragomir Radev. 2022. FeTaQA: Free-form Table Question Answering. Transactions of the Association for Computational Linguistics, 10:35–49.
  10. Panupong Pasupat and Percy Liang. 2015. Compositional Semantic Parsing on Semi-Structured Tables. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 1470–1480, Beijing, China. Association for Computational Linguistics.
  11. Pengcheng Yin, Graham Neubig, Wen-tau Yih, and Sebastian Riedel. 2020. TaBERT: Pretraining for Joint Understanding of Textual and Tabular Data. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 8413–8426, Online. Association for Computational Linguistics.
  12. Yilun Zhao, Yunxiang Li, Chenying Li, and Rui Zhang. 2022. MultiHiertt: Numerical Reasoning over Multi Hierarchical Tabular and Textual Data. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 6588–6600, Dublin, Ireland. Association for Computational Linguistics.
  13. Yilun Zhao, Linyong Nan, Zhenting Qi, Rui Zhang, and Dragomir Radev. 2022. ReasTAP: Injecting Table Reasoning Skills During Pre-training via Synthetic Reasoning Examples. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 9006–9018, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
  14. Yilun Zhao, Chen Zhao, Linyong Nan, Zhenting Qi, Wenlin Zhang, Xiangru Tang, Boyu Mi, and Dragomir Radev. 2023. RobuT: A Systematic Study of Table QA Robustness Against Human-Annotated Adversarial Perturbations. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 6064–6081, Toronto, Canada. Association for Computational Linguistics.
  15. Fengbin Zhu, Wenqiang Lei, Youcheng Huang, Chao Wang, Shuo Zhang, Jiancheng Lv, Fuli Feng, and Tat-Seng Chua. 2021. TAT-QA: A Question Answering Benchmark on a Hybrid of Tabular and Textual Content in Finance. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 3277–3287, Online. Association for Computational Linguistics.