본문으로 건너뛰기

FDA +004

· 약 15분

Data Preparation​

  • In real world applications, data can be inconsistent, incomplete, and noisy.
  • Data Collection problems: when data is collected incorrectly
  • Incomplete Data: when information is missing
  • Data entry problems: when data is entered incorrectly
  • Contradictions in data: when the data says something in one place, and then says a different thing elsewhere in the dataset. We can think of this data as noisy.
  • Discrepancy in naming conventions: when data descriptions are unclear, people may misinterpret their meaning.
  • Duplicated records: when integrating data from different sources, the same data may get entered multiple times.
  • Data transmission problems: when data is sent between different people or databases or companies, things can get lost in the process.

Data mining tasks​

  • Classification
  • Estimation
  • Prediction
  • Characterisation
  • Discrimination
  • Affinity grouping
  • Clustering
  • Time series analysis

Data Cleaning​

  • Missing data
    • Ignore the record
    • Fill the missing value manually
    • Fill missing values with calculated values
      • The missing values can be filled using the average value for a particular attribute
      • or by using attribute mean for all samples belonging to the same class as the given record.
      • also be filled using methods such as Bayesian classification or decision trees to automatically infer the values.
  • Noisy data: a meaningless variation that cannot be interpreted properly by machines
    • Binning
      • binning methods use the neighbour's data, this is referred to as local smoothing
      • can replace all data in a segment by its mean or boundary values
    • Clustering
      • grouping of data points according to a distance measure
      • use a clustering algorithm to classify each data point into a specific group
      • can detect outliers
    • Regression
      • a data mining function that deals with the prediction of a continuous value rather than a class
      • maps data values to a function
      • Using regression to fit data by finding a mathematical equation may be used to smooth noisy data.

Binning​

PriceEqui-widthEqui-depth
7[0, 10][7, 20]
20[11, 20][7, 20]
22[21, 30][22, 50]
50[41, 50][22, 50]
51[51, 60][51, 53]
53[51, 60][51, 53]
  • Equi-width: Bins have equal width.
  • Equi-depth: Bins have the same number of values in them or almost the same number if they don't divide equally.

Equi-width binning​

Equal-interval binning, split the whole range of numbers into intervals with equal size.

  • Price: 4, 8, 9, 15, 21, 21, 22, 26, 27, 28, 29, 36
  • Equal-width binning
    • Bin1 [4, 12]: 4, 8, 9
    • Bin2 (12, 20]: 15
    • Bin3 (20, 28]: 21, 21, 22, 26, 27, 28
    • Bin4 (28, 36]: 29, 36
  • Smoothing by bin means
    • Bin1: 7, 7, 7
    • Bin2: 15
    • Bin3: 24, 24, 24, 24, 24, 24
    • Bin4: 33, 33
  • Smoothing by bin boundaries
    • Bin1: 4, 9, 9
    • Bin2: 15
    • Bin3: 21, 21, 21, 28, 28, 28
    • Bin4: 29, 36

Equi-depth binning​

Equal-frequency binning, use intervals containing an equal number of values.

  • Price: 4, 8, 9, 15, 21, 21, 22, 26, 27, 28, 29, 36
  • Equal-depth binnning
    • Bin1: 4, 8, 9
    • Bin2: 15, 21, 21
    • Bin3: 22, 26, 27
    • Bin4: 28, 29, 36
  • Smoothing by bin means: each value in a bin is replaced by the mean value of the bin.
    • Bin1: 7, 7, 7
    • Bin2: 19, 19, 19
    • Bin3: 25, 25, 25
    • Bin4: 31, 31, 31
  • Smoothing by bin boundaries: each bin value is replace by the closest boundary value.
    • Bin1: 4, 9, 9
    • Bin2: 15, 21, 21
    • Bin3: 22, 27, 27
    • Bin4: 28, 28, 36

Data Integration​

provides unified data by combining data from various heterogeneous data sources into a coherent data store

  • The sources can include flat files, databases or multiple data cubes.
  • Careful integration may help to avoid and reduce inconsistencies and redundancies in the final dataset.
  • Building an enterprise's data warehouse is considered one of the most popular data integration implementations.
  • Redundant attributes: An attribute (feature or column of a dataset) is called redundant if it can be derived from any other attribute or set of attributes.
    • In the process of data integration in data mining, the use of multiple data stores may lead to the problem of redundancy in data.
    • Dimension naming or inconsistencies in an attribute can also lead to redundancies in the dataset.

Pearson correlation coefficient​

  • Correlation analysis can be used to detect redundancies in Numerical data
  • It can measure how strongly one attribute implies the other on the basis of the available data.
  • > 0.5: a strong positive correlation, A⬆️ B⬆️
  • < -0.5: a strong negative correlation, A⬆️ B⬇️
  • 0: no correlation. A and B are independent.
  • correlation != causation

rA,B=n∑xy−(∑x)(∑y)(n∑x2−(∑x)2) (n∑y2−(∑y)2)r_{A,B} = \frac{n\sum{}xy - (\sum{}x)(\sum{}y)} {\sqrt{(n\sum_{} x^2 - (\sum_{} x)^2) \, (n\sum_{} y^2 - (\sum_{} y)^2)}}

rA,B=∑(xi−xˉ)(yi−yˉ)∑(xi−xˉ)2 ∑(yi−yˉ)2r_{A,B} = \frac{\sum_{} (x_i - \bar{x})(y_i - \bar{y})}{\sqrt{\sum_{} (x_i - \bar{x})^2} \, \sqrt{\sum_{} (y_i - \bar{y})^2}}

  • step-by-step derivation
    • 분산: Var(X)=1n∑(xi−xˉ)2Var(X) = \frac{1}{n} \sum_{} (x_i - \bar{x})^2
    • 공분산: Cov(X,Y)=1n∑(xi−xˉ)(yi−yˉ)Cov(X,Y) = \frac{1}{n} \sum_{} (x_i - \bar{x})(y_i - \bar{y})
    • 상관계수 (정규화): ρ=Cov(X,Y)σXσY\rho = \frac{\mathrm{Cov}(X,Y)}{\sigma_X \sigma_Y}
    • 평균: xˉ=1n∑xiyˉ=1n∑yi\bar{x} = \frac{1}{n} \sum_{}x_i \quad \bar{y} = \frac{1}{n} \sum_{} y_i
    • 분자 전개
      • ∑(xi−xˉ)(yi−yˉ)\sum_{} (x_i - \bar{x})(y_i - \bar{y})
      • ∑(xiyi−xiyˉ−yixˉ+xˉyˉ)\sum_{} (x_i y_i - x_i \bar{y} - y_i \bar{x} + \bar{x}\bar{y})
      • ∑(xiyi)−yˉ∑xi−xˉ∑yi+nxˉyˉ\sum_{} (x_i y_i ) - \bar{y}\sum_{} x_i - \bar{x}\sum_{} y_i + n\bar{x}\bar{y}
      • 평균 대입
        • ∑xiyi−1n(∑yi)(∑xi)−1n(∑x1)(∑y1)+1n(∑x1)(∑y1)\sum_{}x_iy_i - \frac{1}{n}(\sum_{}y_i)(\sum{}x_i) - \frac{1}{n}(\sum{}x_1)(\sum{}y_1) + \frac{1}{n}(\sum{}x_1)(\sum{}y_1)
        • ∑xiyi−1n(∑xi)(∑yi)\sum{}x_iy_i - \frac{1}{n}(\sum{}x_i)(\sum{}y_i)
    • 분모 전개
      • ∑(xi−xˉ)2 ∑(yi−yˉ)2\sqrt{\sum_{} (x_i - \bar{x})^2} \, \sqrt{\sum_{} (y_i - \bar{y})^2}
      • ∑xi2−2xˉ∑xi+nxˉ2 ∑yi2−2yˉ∑yi+nyˉ2\sqrt{\sum_{} x_i^2 - 2\bar{x}\sum_{} x_i + n\bar{x}^2} \, \sqrt{\sum_{} y_i^2 - 2\bar{y}\sum_{} y_i + n\bar{y}^2}
      • 평균 대입
        • ∑xi2−2n(∑xi)(∑xi)+1n(∑xi)2 ∑yi2−2n(∑yi)+1n(∑yi)2\sqrt{\sum_{} x_i^2 - \frac{2}{n}(\sum_{} x_i)(\sum_{} x_i) + \frac{1}{n}(\sum{}x_i)^2} \, \sqrt{\sum_{} y_i^2 - \frac{2}{n}(\sum_{} y_i) + \frac{1}{n}(\sum{}y_i)^2}
        • ∑xi2−1n(∑xi)2 ∑yi2−1n(∑yi)2\sqrt{\sum_{} x_i^2 - \frac{1}{n}(\sum_{} x_i)^2} \, \sqrt{\sum_{} y_i^2 - \frac{1}{n}(\sum_{} y_i)^2}
    • 재정의 rA,B=∑xiyi−1n(∑xi)(∑yi)(∑xi2−1n(∑xi)2) (∑yi2−1n(∑yi)2)r_{A,B} = \frac{\sum{}x_iy_i - \frac{1}{n}(\sum{}x_i)(\sum{}y_i)} {\sqrt{(\sum_{} x_i^2 - \frac{1}{n}(\sum_{} x_i)^2) \, (\sum_{} y_i^2 - \frac{1}{n}(\sum_{} y_i)^2)}}
    • 분자/분모에 n 곱하고 인덱스 생략 rA,B=n∑xy−(∑x)(∑y)(n∑x2−(∑x)2) (n∑y2−(∑y)2)r_{A,B} = \frac{n\sum{}xy - (\sum{}x)(\sum{}y)} {\sqrt{(n\sum_{} x^2 - (\sum_{} x)^2) \, (n\sum_{} y^2 - (\sum_{} y)^2)}}

Data Transformation​

The data is consolidated or transformed so that the patterns found are easier to understand, and the consequent mining process is more efficient.

  • Smoothing: smoothing is used to remove noise from the data to improve clarity around the important features in the dataset
  • Normalization: the method of scaling your data, into a regularized range, so that you can compare and represent it more accurately
  • Discretization & Concept hierarchy generation
    • Discretisation is the process of putting values into buckets so that there are a limited number of possible states.
    • Discretisation transforms a continuous attribute into a categorical attribute, usually happens after the data is cleaned.
    • This process includes replacing lower-level data (primitive) with higher-level concepts through the use of concept hierarchies.
    • Street may be replaced with city, country or region.
    • Age may be replaced with senior, adult, younger and youth.
  • Binarization: transforming data into binary numbers (e.g. 0, 1).
    • This helps make classifier algorithms more efficient.

Data Nomalization​

  • the data should be standardised or normalised in order to avoid dependency on the selection of measurement units.

  • This constitutes transforming data to lie within a common or smaller range, like [0.0, 1.0] or [−1, 1].

  • Min-max normalization

    • Min-max normalisation maps a value of KK, indicated by vnv_n, to a new value vn′v'_n within the range [new_minK,new_maxK][new\_min_K, new\_max_K]
      • vn′=(vn−minK)(maxK−minK)⋅(new_maxK−new_minK)+new_minKv'_n = \frac{(v_n - min_K)}{(max_K - min_K)} \cdot (new\_max_K - new\_min_K) + new\_min_K
      • calculates the relative position within the original range and reflects it in the new range accordingly.
    • preserves the relationships between the original data values.
    • It will encounter an out-of-bounds error if a future input case for normalisation falls outside of the original data range for K.
  • Z-Score normalization

    • normalises attribute values using the average (i.e., mean) and standard deviation of KK.
      • vn′=(vn−μK)σKv'_n = \frac{(v_n - \mu_K)}{\sigma_K}
      • It converts the distance of a data point from the mean into a unitless measure.
    • is useful when there are outliers that dominate the min-max normalisation
    • is useful when the actual minimum and maximum of attribute KK are unknown.
  • Decimal scaling normalization

    • The number of decimal points moved is based on the maximum absolute value of KK.
      • vn′=vn10jv'_n = \frac{v_n}{10^j}
      • where jj is the smallest integer such that max(∣vn′∣)<1max(|v'_n|) < 1.
      • divides all values by the power of 10 just larger than the maximum absolute value, bringing them into the range (−1,1)(-1, 1).
  • Softmax normalization

    • a nonlinear transformation that yields an 's'-shaped curve that approaches 0 and 1 asymptotically.
    • New values will be mapped between 0 and 1 even if they are beyond the range of your existing data.
    • α=ν−μλ (σ/2π),ν′=11+e−α\alpha = \frac{\nu - \mu}{\lambda \, (\sigma / 2\pi)}, \qquad \nu' = \frac{1}{1 + e^{-\alpha}}
      • Center the data around the mean :: use (ν−μ)(\nu - \mu)
      • Remove units by scaling with the standard deviation :: divide by σ\sigma.
      • Control how steep or flat the curve is :: adjust with λ\lambda.
      • Add (2π)(2\pi) as a conventional constant to better match the logistic curve with statistical distributions.
      • the formula naturally arises by centering at the mean, standardizing by the spread, letting the user control the slope, and refining with a scaling constant.
  • Sigmoid normalization

    • a nonlinear transformation similar to softmax. It ranges between −1 and 1 (asymptotically), and has a fixed linear portion within ±mu±mu.
      • α=ν−μλ (σ/2π),ν′=1−e−α1+e−α \alpha = \frac{\nu - \mu}{\lambda \, (\sigma / 2\pi)}, \qquad \nu' = \frac{1 - e^{-\alpha}}{1 + e^{-\alpha}}
      • Center the data around the mean :: use (ν−μ)(\nu - \mu)
      • Remove units by scaling with the standard deviation :: divide by σ\sigma.
      • Control how steep or flat the curve is :: adjust with λ\lambda.
      • Add (2π)(2\pi) as a conventional constant to refine scaling with respect to statistical distributions. Apply the hyperbolic tangent :: map the result smoothly into the range [−1,1][-1, 1].
      • the formula naturally arises by centering at the mean, standardizing by spread, letting the user control the slope, and using tanh to compress all values into [−1,1][-1, 1].

Discretization & Concept hierarchy generation​

  • Data discretisation is a form of numerosity reduction that transforms a continuous attribute into a categorical attribute.
  • Higher concept labels or a smaller number of intervals (i.e. binning) are used to replace the raw data in order to simplify the original data and increase the efficiency of mining.
  • Discretisation is very beneficial for generating concept hierarchies automatically, which allow data mining at multiple levels of data abstraction.
  • One or more concept hierarchy can be defined for the single attribute for accommodating the requirements of various users.
SalaryAge➡️SalaryAge
200020-[2000, 2900)[20, 25)
280025-[2000, 2900)[25, 30)
350023-[2900, 3800)[20, 25)
240026-[2000, 2900)[25, 30)
560032-[5600, 6500)[30, 35)
420036-[3800, 4700)[35, 40]
500039-[4700, 5600)[35, 40]
500040-[4700, 5600)[35, 40]
340035-[2900, 3800)[35, 40]
360034-[2900, 3800)[30, 35)
  • If dependent and independent variables have only a few values, a wide range of classification algorithms can be used.

Data Binarizaion​

  • maps a categorical or continuous attribute into one or more binary variables.
  • Binarisation can convert a continuous attribute to a categorical attribute which can then be converted into set of binary attributes.
  • only possible to keep the meaning of one categorical value at one time, losing the meaning of the others.
IDGender
1Male
2Female
3Not specified
4Female
IDMaleFemaleNot specified
1100
2010
3001
4010
OutlookTemperatureHumidityWindyPlay
Sunny8585FalseNo
Sunny8090TrueNo
Overcast8378FalseYes
Rain7095FalseYes
Rain6880FalseYes
OutlookOutlookOutlookTemperatureHumidityWindyPlay
OvercastRainSunny
001858500
001809010
100837801
010709501
010688001

Data Reduction​

  • to acquire a reduced data set representation which is much smaller in quantity and maintains the quality of the data close to the original data.
  • to reduce data storage and analysis costs while increasing storage efficiency

Aggregation​

  • storing and presenting data as a summary, using statistical metrics like means, median and variance.
  • Data aggregation is often used to construct a data cube for data analysis at multiple levels of abstraction.
  • Multidimensional aggregated information is stored in data cubes

Data cube aggregation

Dimensionality reduction​

  • to minimize the number of features
  • feature subset selection or feature selection detects and removes weakly relevant, redundant, or irrelevant dimensions or attributes
  • to determine a minimum set of attributes so that the resulting probability distribution of the data classes is as near as possible to the original distribution obtained using all attributes.
  • Feature subset selection: uses only available subsets of the features to reduce the dimensionality of the data
    • Redundant features: Duplicates of all or much of the information present in one or more attributes.
      • the amount of sales tax paid / purchase price of a product
    • Irrelevant features: Contain no information that is important for the data mining process at hand.
      • the color of a product when predicting its price
    • While some redundant and irrelevant attributes can be eliminated immediately by considering the domain knowledge or common sense.
    • The ideal approach to feature selection is to try all possible subsets of features in the input for the data mining algorithm of interest, and then consider the subset that gives the best outcome.
  • Feature subset selection techniques
    • Brute-force approach
    • Embedded approaches:
      • Feature selection occurs naturally as part of the data mining algorithm.
      • The algorithm decides by itself which attributes are to be ignored.
    • Filter approaches:
      • Features are chosen before running the data mining algorithm by taking some of the approaches which are independent of the data mining process.
      • can be selected with pairwise correlation as low as possible.
    • Wrapper approaches:
      • consider the target data mining algorithm as a black box to determine the best subset of attributes.
      • Instead of evaluating all possible combinations, it intelligently searches only a subset to find a near-optimal feature set.
      • Heuristic methods: Forward selection, backward elimination, genetic algorithm, greedy search.
      • Decision tree induction

Numerosity reduction​

  • Regression, clustering, histograms, sampling
  • reducing the volume of the data, without any loss of data
    • parametric models: store only the model parameters rather than the actual data, regression, log-linear models
    • non-parametric approaches: clustering, sampling, histograms
  • Histograms
    • unsupervised techniques that does not use a class label
    • Singleton bucket: each of the buckets shows only a single frequency pair/attribute value
    • Equal-width histogram: divided into equal ranges
    • Equal-frequency(depth) histogram: each bucket has the similar number of data
  • Sampling
    • a large dataset to be denoted by a smaller random subset (or sample) of the data
    • often used in preliminary exploration as well as final analysis.
    • useful when processing the entire dataset is too large or expensive.
    • If the sample preserves the important properties of the original dataset (e.g., the mean), the sample is said to be representative
    • Simple random sampling: every data point has an equal probability of being chosen.
    • Sampling without replacement: once a data point is chosen, it cannot be selected again.
    • Sampling with replacement (bootstrap): the same data point can be picked multiple times, since it is placed back into the dataset after selection.
    • Cluster sampling: the dataset is divided into clusters (groups), and sampling is performed at the cluster level.
    • Stratified sampling: the dataset is split into strata (partitions), and random samples are drawn from each stratum. This is especially useful when the data is imbalanced, e.g., sampling customers across different age groups.

Stratified sampling

  • Strata: Youth, Middle-aged, Senior

Vocabulary for AI +005

· 약 3분

Vocabulary & Expressions​

Term/ExpressionDefinitionSimpler ParaphraseMeaning
subconsciouslyIn a way that is not fully aware or consciousWithout thinking about it무의식적으로
interleaveto arrange or mix things by placing them alternatelyto alternate or weave together교차 배치하다, 섞다
induceto cause something to happen or existto bring about or give rise to유도하다, 초래하다
polynomiala mathematical expression consisting of variables and coefficients, involving only the operations of addition, subtraction, multiplication, and non-negative integer exponentiation of variablesa type of equation with multiple terms다항식
sinusoidalhaving the shape or characteristics of a sine wavewave-like사인 곡선의
piecewisedefined or done in separate parts or segmentsin segments구간별로, 조각조각
imposeto force something to be accepted or put in placeto establish or apply부과하다, 강요하다
dubioushesitating or doubtinguncertain or questionable의심스러운
presumablyused to convey that what is assumed is likely to be trueprobably아마, 추정컨대
arbitrarybased on random choice or personal whim, rather than any reason or systemrandom or capricious임의의, 자의적인
skimpyinsufficient in quantity or qualityscanty or meager부족한, 빈약한
disjunctiverelating to or denoting a logical operation that combines two or more propositionsseparating or contrasting분리적인, 대립적인
paritythe state or condition of being equal or equivalentequality동등성
intractabledifficult to manage or controlstubborn or unmanageable다루기 힘든
at someone's disposalavailable to be used by someoneat their command~가 다룰 수 있는
deviateto depart from an established course or normto diverge or stray벗어나다
asymptoticapproaching a limit as closely as possiblenearing a boundary점근적인
univariateinvolving only one variablesingle-variable단일 변수의
heterogeneouscomposed of different or diverse elementsmixed or varied이질적인
derivationthe process of obtaining something from a source or originextraction유도, 파생
consolidateto combine or unite into a single entityto merge or strengthen통합하다, 강화하다
asymptoticallyin a manner that approaches a limitnearing a boundary점근적으로
preliminaryserving as a preparation or introductioninitial or preparatory예비의, 준비의
harnessto make use of something effectivelyto utilize활용하다
repertoirea collection or set of skills, abilities, or resourcesa range or inventory레퍼토리
visuomotorrelating to the coordination of visual and motor functionsvisual-motor시각 운동의
Owing tobecause ofdue to~때문에, ~덕분에
trajectorythe path followed by a moving objectpath or course궤적
quadraticrelating to a polynomial of the second degreesecond-degree이차의
stationaritythe property of a process whose statistical properties do not change over timestability정상성
pseudoinversea generalization of the inverse matrix for non-square matricesgeneralized inverse유사 역행렬
logarithmicrelating to the logarithm of a quantitylog-based로그의
sphericalrelating to a spheresphere-based구형의
interchangeableable to be exchanged or replaced with something elsereplaceable교체 가능한
admitto acknowledge or accept the existence or truth of somethingto confess or recognize인정하다
differentiablecapable of being differentiatedable to be derived미분 가능한
derivationthe process of obtaining something from a source or originextraction유도, 파생
parametricrelating to or expressed in terms of parametersvariable모수의
extrapolationthe process of estimating values beyond the known data pointsestimation beyond known data외삽
interpolationthe process of estimating values within the range of known data pointsestimation within known data보간, 내삽
plateauedhaving reached a state of little or no change after a period of activity or progressstabilized정체된
compellingevoking interest, attention, or admiration in a powerfully irresistible waycaptivating매력적인

CLIPort Review

· 약 2분

Key Idea​

  • CLIPort proposes a two-stream architecture for vision-based manipulation:
    • Semantic pathway (what): leverages CLIP for broad semantic understanding.
    • Spatial pathway (where): leverages Transporter for fine-grained spatial reasoning.
  • This design is inspired by the two-stream hypothesis in cognitive psychology (ventral/dorsal pathways).

Framework Contributions​

  • Benchmark Extension: Expanded the Ravens benchmark with language-grounding tasks for manipulation.
  • Two-Stream Architecture: Uses pre-trained vision-language models (CLIP) to condition precise manipulation policies with language goals.
  • Empirical Results: Demonstrates robustness on diverse manipulation tasks, including multi-task settings and real-robot experiments.

Architectural Design​

  • CLIPort integrates semantic (CLIP) with spatial (Transporter) features by lateral fusion.
  • The semantic stream is conditioned with language features from CLIP’s text encoder and fused with intermediate spatial features.
  • Enables end-to-end learning of affordance predictions (pick-and-place) without explicit object models, segmentations, or symbolic states.

Key Insights​

  • Formulates manipulation as action detection (where to act), instead of object detection.
  • Tabula rasa systems (like plain Transporter) require new demonstrations for every goal/task. CLIPort addresses this with a strong semantic prior (from CLIP) to generalize across tasks and concepts.
  • Language-conditioned policies provide an intuitive interface for specifying goals and transferring concepts.

Experimental Results​

  • Simulation (PyBullet, UR5 robot with suction gripper):
    • 10 language-conditioned tasks with thousands of unique instances.
    • Multi-task CLIPort outperformed or matched single-task models, even with fewer demonstrations.
    • CLIP-only or Transporter-only baselines saturate, while CLIPort exceeds 90% success with just 100 demos.
  • Generalization:
    • CLIPort generalizes to unseen attributes (e.g., new colors, shapes, object categories).
    • Struggles with completely novel attributes (e.g., “pink” or “orange” never seen in training).
  • Real-World Robot Experiments (Franka Panda):
    • Achieved ~70% success on real tasks with just 179 demonstrations.
    • Performance trends were consistent with simulation, validating sim-to-real transfer.

Conclusion​

  • CLIPort shows that multi-task, language-conditioned policies generalize across tasks better than object-centric or tabula rasa methods.
  • With action abstraction and spatio-semantic priors, end-to-end models can learn new skills without requiring hand-engineered pipelines.
  • Limitations remain for dexterous 6-DoF manipulation and complex continuous control.

Ref​

  • Shridhar, M., Manuelli, L., & Fox, D. (2022). Cliport: What and where pathways for robotic manipulation. Conference on robot learning.

Mitigating Hallucinations on Object Attributes Review

· 약 4분

Overview​

  • Introduces a HoOA benchmark that isolates hallucinations on object attributes (color, shape) from existence/relationship errors.
  • Proposes MIAVLM: leverages multiview images (generated from a single image’s 3D representation) and a Multiview Attributes Perceiver (MAP) to make fusion order-invariant.
  • Adds negative instructions during tuning to counter LVLMs’ tendency to answer "Yes".
  • Results: best HoOA metric (0.775 / 0.787) with fastest inference (0.071 / 0.105 s). "9in1" tiling is ineffective; separate multiview inputs help.
  • Training: LM loss, Adam (lr=0.001), cosine annealing, 20 epochs, single NVIDIA 3090.

Hallucinations on Object Attributes (HoOA)​

Issues​

  • HoOA = incorrect attribute descriptions for existing objects (distinct from HoOE/HoOR).
  • Root causes analyzed:
    • Single-view insufficiency: fine-grained details can be invisible from a single viewpoint.
    • Instruction bias: overexposure to positive/affirmative patterns → "Yes" bias.
    • Order sensitivity: multi-image inputs change predictions when view order changes.

Mitigation Methods (this paper)​

  • Multiview prompts: sample views from a single image’s 3D reconstruction to recover missed details.
  • MAP (order-invariant fusion): learn view weights and fuse per-view features via weighted sum; input order has no effect; supports any number of views.
  • Negative instructions: incorporate "No"-answerable questions in tuning to suppress "Yes" bias.

Benchmark (HoOA)​

Construction​

  • Based on CelebAText-HQ; manual attribute descriptions rewritten into Yes/No questions.
    • Positive questions → correct answer "Yes".
    • Negative questions → attribute flipped/opposite → correct answer "No" (to expose "Yes" bias).
  • Scale: 1,430 images, 14,291 positive + 14,291 negative questions.
  • Split: 9:1 train:test.
  • Metric: average of accuracy on positive and negative questions (balanced HoOA score).

Model: MIAVLM​

Visual Extractor (VE)​

  • 6 stacked Transformer decoder blocks.
  • Soft prompts P∈Rl×dP \in \mathbb{R}^{l \times d} are queries; image embeddings eie_i are keys/values.
  • Per-view cross-attention computed in parallel (no autoregressive chaining; no assumed order).
  • Per-view output: oi=softmax ⁣((PWQ)(eiWK)⊤d)eiWV,OVE={o1,…,on}.o_i = \mathrm{softmax}\!\left(\frac{(P W_Q)(e_i W_K)^\top}{\sqrt{d}}\right) e_i W_V,\quad O_{VE}=\{o_1,\dots,o_n\}.

Multihead Sampler (MS)​

  • Learns view weights for fusion.
  • Decomposer (2-layer MLP) maps each view’s [CLS][CLS] to m=4m=4 tokens {ei1,…,eim}\{e_i^{1},\dots,e_i^{m}\}.
  • For each token/head jj: compute attention scores vs. PP → mean over prompt tokens → weightsj∈Rn\mathrm{weights}^j \in \mathbb{R}^n.
  • Average across heads: wMS=1m∑j=1mweightsj∈Rn.w_{MS} = \tfrac{1}{m}\sum_{j=1}^{m}\mathrm{weights}^j \in \mathbb{R}^n.

MS

MAP (Multiview Attributes Perceiver)​

  • Order-invariant weighted fusion: Output=∑i=1nwi oi.\text{Output}=\sum_{i=1}^{n} w_i\,o_i.
  • Properties: supports any number of views; permutation-invariant to input order.
  • By learning weights for each view, MAP highlights informative perspectives and suppresses less useful ones, ensuring consistent predictions even when the view order changes. This directly addresses the input-order sensitivity observed in baselines such as OpenFlamingo.

MAP

Benchmarks​

Baselines & Input Modes​

  • Baselines: BLIP3, OpenFlamingo (4 variants), OPERA, Idefics2, LLaVA-UHD.
  • Two input modes:
    1. Original image only.
    2. Original + 8 generated views.
      • Models that accept only one image use 9in1 tiling (nine images stitched into one).

Main Results​

  • MIAVLM:
    • HoOA metric: 0.775 / 0.787 (modes 1 / 2)
    • Positive accuracy: 0.752 / 0.762
    • Negative accuracy: 0.797 / 0.812
    • Inference time: 0.071 / 0.105 s (fastest)
  • 9in1 tiling did not improve results (likely harder to interpret).
  • Nine separate multiview images generally improved performance.

Ablations​

  • Negative instructions: boost negative-question accuracy but slightly reduce positive-question accuracy; overall HoOA increases (approx. 0.665 → 0.787).
  • Input-order sensitivity:
    • MIAVLM is order-invariant
    • OpenFlamingos accuracy varies when shuffling view order.

Limitations & Notes​

  • Trade-off from negative instructions (negatives ↑, positives ↓).
  • Effectiveness depends on the quality of generated views.

Insights​

  • This approach seems especially suitable for perception, where multiple scene views may arrive in arbitrary order, ensuring consistent attribute recognition.

Ref​

  • Tan, Z., Li, Y., Meng, S., Yuan, X., Li, W., Mo, T., Wang, B., & Chu, X. (2025, 6–11 April 2025). Mitigating Hallucinations on Object Attributes using Multiview Images and Negative Instructions. ICASSP 2025 - 2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP).

FSD +004

· 약 1분

match​

match term:
case pattern-1:
action-1
case pattern-2:
action-2
case pattern-3:
action-3
# the underscore _ case executes the default code
case _:
action-default

Repetition Statements​

  • The count-controlled repetition: a fixed number of times.
  • The sentinel-controlled repetition: a designated value that ends the loop.
  • The infinite repetition: continues until externally stopped.

The For Loop​

for <value> in <range of values>:
<code>
sum = 0;

# [1, 2, ..., 19]
# adds values from 1 to 19 to sum
for e in range(1, 20):
sum += e

print(f"The sum is: {sum}")

Loop-And-A-Half​

n = 5
sum = 0

while n < 10:
sum += n

if sum > 100:
break

Zotero 초기 세팅

· 약 1분

동기화 설정​

Settings - Sync - Data Syncing

  • 로그인하고 자동 동기화 설정

브라우저 익스텐션 다운로드​

Citation 설정​

Settings - Cite - APA 7th

  • 등록되어있는지 확인

Export - Item Format - APA 7th

  • 포맷 설정

MS Word Plugin 설치​

Settings - Cite - Word Processors

  • Microsoft Word 섹션의 Install/Reinstall Microsoft Word Add-in 클릭
  • 워드 재시작

플러그인 설치​

Tools - Plugins

  • 다운로드 받은 플러그인 드래그 앤 드랍

VSCode 플러그인​

  • 아직 못 찾음

Trustworthiness in Vision-Language Models Review

· 약 6분

Overview​

  • Mitigates exposure of private data, produces harmful outputs, or is vulnerable to attacks.
  • SOTA models: LLaVA, Flamingo, GPT-4

Privacy​

Privacy Issues​

  • risk escalates significantly with relevant images as optimizing in the pixel domain is easier than in text
  • can unintentionally memorize sensitive data, leading to leaks without knowledge of the model’s specifics
  • Overfitting may also cause retention of sensitive attributes during inference
  • gradient-based and backdoor attacks further jeopardize VLM privacy with open-source data

Privacy Mitigation Methods​

  • New metrics have been created to assess a model’s ability to reproduce training instances and facilitate cross-model comparisons
  • models utilizing multiple modalities provide better privacy
  • safety modules can be integrated to boost resilience against violations
  • adversarial training can enhance privacy but risks reducing accuracy
  • New architecture: differentially private CLIP model

Privacy Future Research Directions​

  • Cryptography-based Privacy Preservation
    • Secure multi-party computation (SMPC): divides secret information into shares among multiple parties, ensuring that individual shares reveal nothing unless combined
    • Homomorphic encryption (HE): allows computations on encrypted data without decryption, and has also been utilized for privacy preservation in transformers
  • Federated Learning
    • enhances privacy in vision-language models (VLMs) by localizing model training, which protects training data from leakage.
    • challenges such as communication overhead among devices and statistical heterogeneity from diverse data distributions
  • Data Manipulation and Finetunning
    • Data pseudonymization: substitutes sensitive information with synthetic alternatives.
    • Data Sanitization: removes duplicates to reduce memorization and privacy risks.
    • knowledge sanitization-fine-tuning: provide safe responses when leakage risks arise.

Fairness and Bias​

Fairness and Bias Issues​

  • Bias from training data
    • disproportionately features men and lighter-skinned individuals
    • outdated vocabulary and imbalanced representation
    • clinical models may favor certain patient groups based on gender, language, etc.
  • Bias from Model
    • Gender biases
    • misclassification of race-related elements and biased outputs

Fairness and Bias Mitigation Methods​

  • New Datasets and Benchmarks
    • Harvard-FairVLMed, PATA, and BOLD enhance evaluations but often lack the scale of established benchmarks.
    • create synthetic datasets to improve fairness assessments
      • gender-balanced dataset generated with DALL-E-3 and another consisting of gender-swapped images
      • counterfactual image-text pairs that highlight biases in datasets like COCO Captions
    • new metrics
      • gender polarity
      • bias distance in embeddings
    • human evaluation
  • De-biasing
    • adjust model instructions and architectures for improved fairness
    • detecting biased prompts in pre-trained models
    • Post-hoc Bias Mitigation (PBM) effectively reduce bias in image retrieval
    • Re-sampling underperforming clusters can enhance fairness
    • modification of facial features also mitigate biases
    • self-debiasing reduces biased text generation, especially when paired with other methods

Fairness Future Research Directions​

  • Optimized De-biasing
    • Additive residual learning: for fairer image representations.
    • Calibration loss: retain semantically similar embeddings.
    • Counterfactual inference framework: help models learn correct responses through cause and effect.
    • Adversarial classifiers: predict image attributes from visual-textual similarities can be combined with instruction tuning to reduce bias.
  • Disentangled Representation Learning (DRL): simplifies complex data by breaking it in to independent feature groups, improving model predictions.
    • Traditional DRL
      • Variational autoencoders (VAEs) for feature encoding based on impact
      • Generative adversarial networks (GANs) for separation.
    • Attention in text encoders can be adjusted for fairer outputs.
    • challenges: varying definitions of "disentanglement", ensuring fairness.
  • Human-in-the-Loop (HITL): integrating human intervention into their training to improve precision and fairness
    • active learning
    • reinforcement learning with human feedback
    • explainable AI
    • challenges: human bias, finance, and ethical and legal issues persist

Robustness​

Robustness Issues​

  • Out-of-Distribution (OOD) Robustness
    • ChatGPT excels in adversarial tasks but struggles with OOD robustness and informal medical responses
    • MLLMs often fail to generalize beyond training domains due to mapping issues
    • vision-language models face difficulties with open-domain concepts, especially when overfitting during fine-tuning
    • Large pre-trained image classifiers show initial robustness, which diminishes over time
    • Current visual question answering (VQA) models are limited to specific benchmarks, hindering generalization to OOD datasets
    • fine-tuning may impair model calibration in OOD contexts.
  • Adversarial Attack Robustness
    • Studies indicate that open-sourced VLMs show performance gaps in red teaming tasks, highlighting the need for improved safety and security.
    • misalignment between language and vision modalities creates a "modality gap", complicating adversarial vulnerability.

Robustness Mitigation Methods​

  • Improving Out-of-Distribution Robustness
    • enhance OOD detection and generalization. A simple maximum logit detector has been shown to outperform complex methods for anomaly segmentation
    • In-context learning (ICL) can also improve multimodal generalization
    • A fine-tuned CLIP excels in unsupervised OOD detection
    • The OGEN method synthesizes OOD features
    • Maximum Concept Matching aligns visual and textual features, and anchor-based finetuning leads to better domain shifts
  • Defense Against Adversarial Attacks
    • VILLA is a two-stage framework for adversarial training of VLMs, featuring task-agnostic adversarial pre-training and task-specific finetuning
      • conducts adversarial training in the embedding space rather than on raw image pixels and text tokens, improving the model’s resilience against adversarial examples
      • SOTA performance across various tasks

Robustness Future Research Directions​

  • Data Augmentation
    • MixGen: a data augmentation method that generates new image-text pairs by interpolating images and concatenating text to preserve semantics.
    • creating synthetic images involves extracting text prompts via an image captioning model for use in text-to-image diffusion, then mixing these with real datasets.
    • bimodal augmentation (BiAug): decouples objects and attributes to synthesize vision-language examples and hard negatives, using LLMs and an object detector to generate detailed descriptions and inpaint corresponding images.
  • Improved Cross-Modal Alignment
    • Sharing learnable parameters
    • Applying bidirectional constraints
    • Adjusting cross-modal projections
  • challenges: addressing the modality gap, which impacts robustness to OOD data and adversarial examples

Safety​

Safety Issues​

  • Toxicity
    • LAION-400M: contains problematic content, including explicit materials and harmful stereotypes
    • Advanced models like GeminiProVision and GPT-4V show inherent biases
    • Assigning personas to ChatGPT can increase toxicity and reinforce harmful stereotypes
  • Jailbreaking Risk
    • Perturbation can be performed effectively, while FigStep converts harmful content into images with an 82.5% attack rate across multiple VLMs
    • replaces captions with malicious prompts, enabling jailbreaks.

Safety Mitigation Methods​

  • Safety Fine-Tuning
    • VLGuard
    • fine-tuned on synthetic data, reducing sensitivity to NSFW inputs and enhancing performance in cross-modal tasks
  • Other approach
    • Reinforce-Detoxify: uses reinforcement learning to mitigate toxicity and bias in transformer models
    • simple mitigations improve automatic scores, these methods risk over-filtering marginalized texts and create discrepancies between automatic and human judgments

Safety Future Research Directions​

  • Context Awareness
    • integrating Chain-of-Thought for improved reasoning can enhance CAER tasks with Large VLMs.
    • Dual-Aligned Prompt Tuning: combines explicit context from pre-trained LLMs with implicit modeling to create more context-aware prompts
    • Visual In-Context Learning: optimizes image retrieval and summarization to enhance task-specific interactions.
  • Automated Red Teaming (ART)
    • RTVLM: a dataset that benchmarks VLMs across faithfulness, privacy, safety, and fairness
    • Arondight: automates multi-modal jailbreak attacks using reinforcement learning and uncovers significant security vulnerabilities
    • GPT-4 and GPT-4V are more robust against jailbreaks than open-source models
    • limited transferability of visual jailbreak methods compared to textual ones
    • connects unsafe outputs to prompts, improving the detection of vulnerabilities in text-to-image models

Ref​

  • Vu, K., & Lai, P. (2025). Trustworthiness in Vision-Language Models. In J. Kertesz, B. Li, T. Supnithi, & A. Takhom, Computational Data and Social Networks Singapore.

Vision-Language Models for Vision Tasks Review

· 약 16분

Overview​

Most visual recognition studies rely heavily on crowdlabelled data in DNN

  • Background development of visual recognition paradigms
  • Foundations its architecture
  • Datasets in VLM pre-training and evaluations
  • Review and categorization of existing pre-training methods
  • Benchmarking analysis discussion
  • Reach challenges & potential research direction
  • Training hard
    • New learning paradigm
  • Vision-Language Model Pre-training and Zero-shot Prediction
    • Increasing attention
  • VLMs with transfer learning
    • Prompt tuning
    • Visual adaption
  • VLMs with knowledge distillation
    • distill knowledge from VLMs to downstream tasks

The development of visual recognition paradigms​

  • Traditional ML: Hand-crafted features for prediction.
  • Deep Learning: Deep networks (e.g., ResNet) with large-scale labeled data.
  • Supervised Pre-training + Fine-tuning: Learned representations transferred to downstream tasks.
  • Unsupervised / Self-supervised Pre-training + Fine-tuning: Objectives like masked modeling and contrastive learning to learn representations.
  • Vision-Language Models & Zero-shot: Leverage large-scale web data, enabling zero-shot prediction without task-specific fine-tuning.
    • Collecting large-scale informative image-text data
    • Designing high-capacity models for effective learning from Bigdata.
    • Designing new pre-training objectives for learning effective VLMs.

Illustration of development of VLMs for visual recognition

  • CLIP: Image-text contrastive objective and learns by pulling the paired images and texts close and pushing others faraway in the embedding space.
    • enables effective usage of web data and allows zero-shot predictions without task-specific finetuning.

VLM Overview​

VLM Overview

  • Given Image-text pairs.
  • Employs a text encoder and an image encoder to extract image and text features.
  • Learns the vision-language correlation with certain pre-training objectives.
  • GAP: Global Average Pooling, a technique used to reduce the spatial dimensions of feature maps while retaining important information.
  • ViT: Vision Transformer: Transformers for image recognition at scale.
  • CNN Based: VGG, ResNet, EfficientNet
    • ResNet: Adopts skip connections between convolutional blocks which mitigates gradient vanishing and explosion and enables DNN training.
    • ResNet-D: Replace global average pooling with transformer multi-head attention.
  • Transformer Based: ViT
    • Adding a normalization layer before the transformer encoder.

VLM pre-training Objectives​

Contrastive Objectives​

  • Pros
    • Enforce positive pairs to have similar embeddings in contrast to negative pairs.
    • Encourages VLMs to learn discriminative vision and language features, where more discriminative features lead to more confident and accurate zero-shot predictions.
  • Cons
    • Joint optimizing positive and negative pairs is complicated and challenging.
    • Involves a heuristic temperature hyper-parameter for controlling the feature discriminability.

Image Contrastive Learning​

  • Forcing a query image to be close with its positive keys (its data augmentations)
  • Faraway from its negative keys (other images)
  • Learn discriminative features in image modality, which often serves as an auxiliary objective for fully exploiting the image data potential.

Image-Text Contrastive Learning​

  • Pulling the embeddings of paired images and texts close while pushing others away.
  • Minimizing a symmetrical image-text infoNCE loss
  • Learn vision-language correlation by contrasting image-text pairs.
    • CLIP: A symmetrical image-text infoNCE loss
    • ALIGN: scales up the VLM pre-training with large-scale (but noisy image-text pair with noise-robust contrastive learning)
    • DeCLIP: Nearest-neighbor supervision to utilize the information from similar pairs, enabling effective pre-training on limited data.
    • OTTER: Optimal transport to pseudo-pair images and texts reducing the required training data.
    • ZeroVL: Limited data resource via debiased data sampling and data augmentation with coin flipping mixup.
    • FILIP: Region-word alignment into contrastive learning, enabling to learn fine-grained vision-language corresponding knowledge.
    • Pyramid-CLIP: Multiple semantic levels and performs both cross-level and peer-level contrastive learning for effective VLM pre-training.
    • LA-CLIP, ALIP: LLM to augment synthetic captions for given images while RA-CLIP retrieves relevant image-text pairs for image-text pair augmentation.

CLIP

Image-Text-Label Contrastive Learning​

  • Supervised Contrastive Learning into image-text contrastive learning.
  • Learn discriminative and task-specific features by exploiting both supervised labels and unsupervised image-text pairs.
    • UniCL: pre-training allows learning both discriminative and task-specific (image classification) features simultaneously with around 900M image-text pairs.

Image-Text-Label Contrastive Learning

Generative Objectives​

  • Encouraging VLMs to learn rich vision, language and vision-language contexts for better zero-shot predictions.
  • Generally adopted as additional objectives above other VLM pre-training objectives for learning rich context information.

Masked Image Modelling​

  • Cross-patch correlation by masking and reconstructing images.
  • Learn image context information by masking and reconstructing images
    • MAE, BeiT: certain patches in an image are masked and the encoder is trained to reconstruct them conditioned on unmasked patches.

Masked Image Modelling

Masked Language Modelling​

  • Adopted pre-training objectives in NLP.
  • Randomly masking a certain percentage of input tokens and predicting them. (15% in BERT)
  • Learn by masking a fraction of tokens in each input text and training networks to predict the masked tokens.
    • FLAVA: masks out 15% text tokens and reconstructs them from the rest tokens for modelling cross-word correlation.
    • FIBER: adopts masked language modelling as one of the VLM pre-training objectives to extract better language features.

Masked Language Modelling

Masked Cross-Modal Modelling​

  • Integrates masked image modelling and masked language modelling.
  • Given an image-text pair, it randomly masks a subset of image patches and a subset of text tokens and then learns to reconstruct them.
  • Learn by masking a certain percentage of image patches and text tokens and training VLMs to reconstruct them based on the embeddings of unmasked image patches and text tokens.
    • FLAVA: 40% image patches and 15% text tokens as in, and employs a MLP to predict masked patched and tokens, capturing rich vision-language correspondence information.

Image-to-Text Generation​

  • Generate descriptive texts for a given image for capturing fine-grained vision-language correlation by training VLMs to predict tokenized texts.
    • COCA, NLP, PaLI: train VLMs with the standard encoder-decoder architecture and image captioning objectives.

Image to caption

Alignment Objectives​

Align image–text pairs in the embedding space.

  • pros
    • simple, easy to optimize
    • can be easily extended to model fine-grained vision-language correlation
  • cons
    • little correlation information within vision or language modality.
  • adopted as auxiliary losses to other VLM pre-training objectives for enhancing modelling the correlation across vision and language modalities.

Image-Text Matching​

  • models the overall correlation between an entire image and an entire sentence. (전역적 상관관계)
  • Image-text matching models global image-text correlation by directly aligning paired images and texts
    • FLAVA: matches the given image with its paired text via a classifier and a binary classification loss.
    • FIBER: follows to mine hard negatives with pair-wise similarities for better alignment between image and text.

Region-Word Matching​

  • captures fine-grained correlations between image regions and specific words. (지역적 상관관계)
  • models local fine-grained vision-language correlation by aligning paired image regions and word tokens.
  • benefiting zero-shot dense predictions in object detection and semantic segmentation.
    • GLIP, FIBER, DetCLIP: replace object classification logits by region-word alignment scores.
      • the dot-product similarity between regional visual features and token-wise features.

Region-Word Matching, GLIP

VLM Pre-Training Frameworks​

VLM pre-training frameworks

Evaluation​

Zero-shot Prediction​

  • Image Classification: classify images into pre-defined categories like "prompt engineering".
  • Semantic Segmentation: by comparing the embeddings of the given image pixels and texts.
  • Object Detection: localize and classify objects in images with the object locating ability learned from auxiliary datasets.
  • Image-Text Retrieval
    • Text-to-image retrieval that retrieves images based on texts
    • Image-to-text retrieval that retrieves texts based on images.

Linear Probing​

  • freezes the pre-trained VLM
  • trains a linear classifier to classify the VLM-encoded embeddings to assess the VLM representations.

Datasets​

  • For Pre-training VLMs
    • CLIP, 2021, 400M, English
    • ALIGN, 2021, 1.8B, English
    • FILIP, 2021, 300M, English
    • WebLi, 2022, 12B, 129 Languages
  • For VLM Evaluation
    • Image Classification
      • PSACAL VOC 2007 Classification, 11-point mAP
      • Oxford-IIIT PETS, Mean Per Class
      • EuroSAT, Accuracy
      • Hateful Memes, ROC AUC
      • Country211, Accuracy
    • Image-Text Retrieval
      • Flickr30k, Recall
      • COCO Caption, Recall
    • Action Recognition
      • UCF101, Accuracy
      • Kinetics700, Mean(top1, top5)
      • RareAct, mWAP, mSAP
    • Object Detection
      • COCO 2017 Detection, box mAP
      • LVIS, box mAP
      • ODinW, box mAP
    • Semantic Segmentation
      • Cityscapes, Mean IoU
      • ADE20K, Mean IoU

VLM Transfer learning​

which adapts VLMs to fit downstream tasks via prompt tuning, feature adapter.

  • image and text distributions gap: downstream dataset may have task-specific image styles and text formats
  • training objectives gap: VLMs are generally trained with task-agnostic objectives, while downstream tasks often involve task-specific objectives. (coarse or fine-grained classification, region or pixel-level recognition)

Transfer via Prompt Tuning​

Inspired by the "prompt learning" in NLP

  • pros
    • simple, easy-to-implement
    • requires little extra network layer or complex network modifications
    • adapting VLMs in a black-box manner, which has clear advantages in transferring VLMs that involve concerns in intellectual property.
  • cons
    • low flexibility by following the manifold (잠재 공간) of the original VLMs in prompting.

Transfer with Text Prompt Tuning​

  • Exploring more effective and efficient learnable text prompts with several labelled downstream samples for each class.
    • supervised and few-shot supervised
      • CoOp: Exploring context optimization to learn context words for a single class name with learnable word vectors.
      • CoCoOp: Exploring conditional context optimization that generates a specific prompt for each image.
      • SubPT: designs subspace prompt tuning to improve the generalization of learned prompts.
      • LASP: regularizes learnable prompts with hand-engineered prompts.
      • VPT: models text prompts with instance-specific distribution with better generalization on downstream tasks.
      • KgCoOp: enhances the generalization of unseen class by mitigating the forgetting of textual knowledge.
      • SoftCPT: fine-tunes VLMs on multiple few-shot tasks simultaneously for benefiting from multi-task learning.
      • PLOT: employs optimal transport to learn multiple prompts to describe the diverse characteristics of a category.
      • DualCoOp, TaI-DP: transport VLMs to multi-label classification tasks.
        • DualCoOp: adopts both positive and negative prompts for multi-label classification
        • TaI-DP: double-grained prompt tuning for capturing both coarse-grained and fine-grained embeddings.
      • DenseCLIP: explores language-guided fine-tuning that employs visual features to tune text prompts for dense prediction.
      • ProTeCt: improves the consistency of model predictions for hierarchical classification task.
    • unsupervised
      • UPL: optimizes learnable prompts with self-training on selected pseudo-labeled samples.
      • TPT: explores test-time prompt tuning to learn adaptive prompts from a single downstream sample.

Text Prompt Tuning

  • V is learnable word vectors that are optimized by minimizing the classification loss with the downstream samples.

Transfer with Visual Prompt Tuning​

  • Transfers VLMs by modulating the input of image encoder.
    • VP: adopts learnable image perturbations vv to modify the input image xIx^I by xI+vx^I + v, aiming to adjust vv to minimize a recognition loss.
    • RePrompt: integrates retrieval mechanisms into visual prompt tuning, allowing leveraging the knowledge from downstream tasks.
  • enables pixel-level adaptation to downstream tasks, benefiting them greatly especially for dense prediction tasks.

Visual Prompt Tuning

Transfer with Text-Visual Prompt Tuning​

  • modulate the text and image inputs simultaneously, benefiting from joint prompt optimization on multiple modalities.
    • UPT: unifies prompt tuning to jointly optimize text and image prompts, demonstrating the complementary nature of the two prompt tuning tasks.
    • MVLPT: explores multi-task vision-language prompt tuning to incorporate cross-task knowledge into text and image prompt tuning.
    • MAPLE: conducts multi-modal prompt tuning by aligning visual prompts with their corresponding language prompts, enabling a mutual promotion between text prompts and image prompts.
    • CAVPT: introduces a cross attention between class-aware visual prompts and text prompts, encouraging the visual prompts to concentrate more on visual concepts.

Transfer via Feature Adaptation​

  • adapt image or text features with an additional light-weight feature adapter
    • Clip-Adapter: inserts several trainable linear layers after CLIP's language and image encoders and optimized them while keeping CLIP architecture and parameters frozen.
    • Tip-adapter: a training-free adapter that directly employs the embeddings of few-shot labelled images as the adapter weights.
    • SVL-Adapter: a self-supervised adapter which employs an additional encoder for self-supervised learning on input images.
  • flexible and effective as its architecture and the insertion manner allow tailoring flexibly for different and complex downstream tasks.
  • requires modifying network architecture and thus can not handle VLMs that have concerns in intellectual property.

Other Transfer Methods​

  • Direct fine-tuning, architecture modification, cross attention
    • Wise-FT: combines the weights of a fine-tuned VLM and the original VLM for learning new information from downstream tasks.
    • MaskCLIP: extracts dense image features by modifying the architecture of the CLIP image encoder.
    • VT-CLIP: introduces visual-guided attention to semantically correlate text features with downstream images, leading to a better transfer performance.
    • CALIP: introduces parameter-free attention for effective interaction and communication between visual-guided text features.
    • TaskRes: directly tunes text-based classifier to exploit the old knowledge in the pre-trained VLM.
    • CuPL, VCD: employ large language models like GPT-3 to augment text prompts for learning rich discriminative text information.

Feature Adaptation

VLM Knowledge Distillation​

  • distils general and robust VLM knowledge to task-specific models without the restriction of VLM architecture, benefiting task-specific designs while tackling various dense prediction tasks.
  • most VLM knowledge distillation methods focus on transferring image-level knowledge to region- or pixel-level tasks such as object detection and semantic segmentation.

Knowledge Distillation for Object Detection​

  • To distill VLM knowledge to enlarge the detector vocabulary
  • To better align image-level and object-level representations
    • ViLD: distills VLM knowledge to a two-stage detector whose embedding space is enforced to be consistent with that of CLIP image encoder.
    • HierKD: hierarchical global-local knowledge distillation.
    • RKD: region-based knowledge distillation for better aligning region-level and image-level embeddings.
    • ZSD-YOLO: self-labeling data augmentation for exploiting CLIP for better object detection.
    • OADP: proposal features while transferring contextual knowledge.
    • BARON: uses neighborhood sampling to distill a bag of regions instead of individual regions.
    • RO-ViT: distills information from VLMs for open-vocabulary detection.
  • VLM distillation via prompt learning
    • DetPro: a detection prompt technique for learning continuous prompt representations for open-vocabulary object detection.
    • PrompDet: regional prompt learning for aligning word embeddings with regional image embeddings.
    • PB-OVD: trains object detectors with VLM-predicted pseudo bounding boxes.
    • XPM: a robust cross-modal pseudo-labeling strategy that employs VLM-generated pseudo masks for open-vocabulary instance segmentation.
    • P3OVD: prompt-driven self-training that refines the VLM-generated pseudo labels with fine-grained prompt tuning.

Knowledge Distillation for Semantic Segmentation​

  • Leverage VLMs to enlarge the vocabulary of segmentation models, aim to segment pixels described by arbitrary texts. (i.e., any categories of pixels beyond base classes)
  • Tackling the mismatch between image-level and pixel-level representations.
    • CLIPSeg: a lightweight transformer decoder to extend CLIP for semantic segmentation.
    • LSeg: maximizes the correlation between CLIP text embeddings and pixel-wise image embedding encoded by segmentation models.
    • ZegCLIP: employs CLIP to generate semantic masks and introduces a relationship descriptor to mitigate overfitting on base classes.
    • MaskCLIP+, SSIW: distill knowledge with VLM-predicted pixel-level pseudo labels.
    • FreeSeg: generates mask proposals first and then performs zero-shot classification for them.

Knowledge distillation for weakly-supervised semantic segmentation​

  • Leverage both VLMs and weak supervision (e.g., image-level labels) for semantic segmentation.
  • CLIP-ES: employs CLIP to refine the class activation map by designing a softmax function and a class-aware attention-based affinity module for mitigating the category confusion issue.
  • CLIMS: employs CLIP knowledge to generate high-quality class activation maps for better weakly-supervised semantic segmentation.

Performance​

  • VLM is largely attributed to three factors: Big data, Big Model, and Task-agnostic learning.
  • Limitations
    • When data/model size keeps increasing, the performance saturates and further scaling up won’t improve performance
    • Adopting large-scale data in VLM pre-training necessitates extensive computation resources
    • Adopting large models introduces excessive computation and memory overheads in both training and inference
  • Transfer Learning
    • can mitigate the domain gaps by learning from task-specific data, being labelled or unlabelled.
    • Supervised > few-shot supervised = unsupervised transfer (overfitting but challenging)
  • Knowledge Distillation
    • brings clear performance improvement on detection and segmentation tasks
    • introduces general and robust VLM knowledge while benefiting from task-specific designs
  • the development of VLM pre-training for dense visual recognition tasks (on region or pixel-level detection and segmentation) lag far behind.
  • require certain norms in term of training data, networks and downstream tasks.
    • VLM transfer: release their codes and do not require intensive computation resources, easing reproduction and benchmarking.
    • VLM pre-training: studied with different data and networks, making benchmarking a very challenging task. also use non-public training data, or require intensive computation resources.
    • VLM knowledge distillation: adopt different task-specific backbones, which complicates benchmarking.

Challenges​

  • VLM pre-training
    • Fine-grained vision-language correlation modelling: can better recognize patches and pixels beyond images, greatly benefiting dense prediction tasks
    • Unification of vision and language learning: enables efficient communications across data modalities which can benefit both training effectiveness and training efficiency.
    • Pre-training VLMs with multiple languages: could introduce bias in term of cultures and regions and hinder VLM applications in other language areas.
    • Data-efficient VLMs: instead of merely learning from each image-text pair, more useful information could be learned with the supervision among image-text pairs.
    • Pre-training VLMs with LLMs: employ LLMs to augment the texts in the raw image-text pairs, which provides richer language knowledge and helps better learn vision-language correlation.
  • VLM Transfer Learning
    • Unsupervised VLM transfer: much lower risk of overfitting than few-shot supervised transfer.
    • VLM transfer with visual prompt/adapter: Existing studies focus on text prompt learning. Visual prompt learning or visual adapter, which is complementary to text prompting and can enable pixel-level adaptation in various dense prediction tasks.
    • Test-time VLM transfer: Existing studies conduct transfer by fine-tuning VLMs on each downstream task (i.e., prompt learning), leading to repetitive efforts while facing many downstream tasks. Adapting prompts on the fly during inference can circumvent the repetitive training in existing VLM transfer.
    • VLM transfer with LLMs: Different from prompt engineering and prompt learning, exploit LLMs to generate text prompts that better describe downstream tasks. This approach is automatic and requires little labelled data.
  • VLM knowledge distillation
    • Knowledge distillation from multiple VLMs: harvest their synergistic effect by coordinating knowledge distillation from multiple VLMs.
    • Knowledge distillation for other visual recognition tasks: leverage the knowledge distilled from VLMs to improve performance on other visual recognition tasks. (instance segmentation, panoptic segmentation, person reidentification)

Ref​

  • Zhang, J., Huang, J., Jin, S., & Lu, S. (2024). Vision-Language Models for Vision Tasks: A Survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 46(8), 5625–5644. https://doi.org/10.1109/TPAMI.2024.3369699

IAI +003

· 약 5분

Local Search Problem​

To find the state that gives the optimal/best value of the evaluation function

  • It can be seen as an optimization problem.
  • a computational problem that finds the best solution (a state) that satisfies the given constraints
  • evaluation function === objective function
  • Only cares about the optimal solution/best state without considering the paths to reach the best state (the optimal solution)
  • Not systematic

Feasible region & solution​

  • Feasible region: the set of all possible or candidate solutions which are the solutions that satisfies the problem's constraints
  • Feasible solution: a solution in the feasible region

Search Problem vs Local Search Problem​

Path-based vs State-based

AspectsSearch ProblemLocal Search Problem
StateAll possible states - state-space landscapeRange of decision variables and constraints
GoalGoal state & goal testEvaluation function & objective function
EvaluationMeasure closeness to goal - distance/fitnessMinimize cost or maximize fitness
Transition/SuccessorTransition functionSuccessor function

Discrete & Continuous Optimization​

  • Discrete optimization: optimization problems where the solution space is discrete (e.g., 8 queens problem)
  • Continuous optimization: optimization problems where the solution space is continuous (e.g., real numbers, any value within a range)
  • All possible states: state-space landscape
  • Transition function: To find neighbor or successor state
  • Goal state
  • Objective function: A way to measure how close to the goal state
  • Start state

Search state-space​

  • Global Maximum: A state that maximizes the objective function over the entire state space
  • Local Maximum: A state that maximizes the objective function within a small area around it.
  • Plateau: A state such that the objective function is constant in an area around it.
    • Shoulder: A plateau that has uphill edge.
    • Flat: A plateau whose edges go downhill.

Advantages​

  • use little memory
  • can often find reasonably good solution in large or infinite search spaces
  • useful for solving pure optimization problems
  • don't need to know the path to the solution.

Hill climbing​

keeps track of one current state and on each iteration moves to the neighboring state with highest value.

  • f=max(−cost(X))f = max(-cost(X))
  • Steps
    • Evaluate the initial stat
    • If it is equal to the goal state, return. Otherwise, continue.
    • Find a neighboring state
    • Evaluate this state. If it is closer to the goal state than before, replace the initial state with this state.
    • Repeat steps 2-4 until it reaches a goal state (local or global maximum) or runs out of time.
  • No search tree, No backtracking, Don't look ahead beyond the current state.
    • get stuck due to local maxima, plateaus, or ridges.

Variations of HC​

  • Simple HC: greedy local search which expands the current state and moves on to the best neighbor.
  • Stochastic HC: choose randomly among the neighbors going uphill.
  • First-choice HC: generate random successor until one is better. Good for states with high numbers of successors.
  • Random restart: conducts a series of hill climbing searches from random initial states until a goal state is found.

Simulated Annealing​

based upon the annealing process to model the search process for finding an optimal solution to an optimisation problem

  • annealing schedule, temperature, energy
  • finds the minimal value of the objective function (energy function)
  • starts with a high temperature and then gradually reduces the temperature
  • P=e−ΔE/kTP = e^{-\Delta E / kT}
    • ΔE\Delta E: how bad the new state is compared to the old state
    • TT: temperature is getting lower over time
    • kk: a scaling factor
  • Swap condition: ΔE<=0\Delta E <= 0 or −ΔE/kT>random{-\Delta E / kT} > \text{random}

Evolutionary algorithms​

  • Local beam search
  • Stochastic beam search
  • Genetic algorithms

Characteristics​

  • size of the population
  • representation of each individual
  • mixing number
  • selection process for selecting the individuals who will become the parents of the next generation
  • recombination procedure
  • mutation rate
  • makeup of the next generation

Genetic algorithm​

It uses operators, such reproduction, crossover and mutation, inspired by the natural evolutionary principles.

  • State: is represented by an individual in a population. Traditional representation is a chromosome
  • Objective function: is used to evaluate the fitness of an individual (= fitness function, 적합도 함수)
  • Successor function: consists of three operators: reproduction, crossover, and mutation
  • Solution: is found through evolution from one generation to another generation

Genetic Algorithm

Roulette Wheel Selection​

  • Compute total fitness of all individuals.
    • Example: A=30, B=20, C=40, D=10 → Total = 100.
  • Calculate probability of each individual being selected
    • Formula: P(i)=fitness(i)total_fitnessP(i) = \frac{fitness(i)}{total\_fitness}
      • A = 30/100 = 0.30
      • B = 20/100 = 0.20
      • C = 40/100 = 0.40
      • D = 10/100 = 0.10
  • Convert to cumulative probabilities
    • P4 = 0.10
    • P4 + P3 = 0.50
    • P4 + P3 + P2 = 0.90
    • P4 + P3 + P2 + P1 = 1.00
  • Generate a random number between 0 and 1.
  • Select an individual based on the random number and cumulative probabilities.

Roulette Wheel Selection

  • ⚫ random = 0.07 → falls in P4 [0, 0.10)
  • 🔺 random = 0.37 → falls in P3 [0.10, 0.50)
  • ⬟ random = 0.82 → falls in P2 [0.50, 0.90)

Applications of GA​

  • Parameter tuning: optimize the parameters in NN
  • Planning: economic dispatch, train timetabling
  • Design & Control problems: robotic control, adaptive control systems
  • Successful use of GA requires careful engineering of the representation

FDA +003

· 약 8분

CRISP-DM​

CRISP-DM (Cross-Industry Standard Process for Data Mining)

  1. Business understanding
  2. Data understanding
  3. Data preparation
  4. Modeling
  5. Evaluation

Business understanding​

  • Determine business objectives
  • Assess situation
  • Determine data mining goals
  • Produce project plan

Data understanding​

  • Collect initial data
  • Describe data
  • Explore data
  • Verify data quality

Data preperation​

  • Select data
  • Clean data
  • Consturct data
  • Integrate data
  • Format data

Modeling​

  • Select modeling technique
  • Generate test design
  • Build model
  • Assess model

Evaluation​

  • Evaludate results
  • Review process
  • Determine next steps

Deployment​

  • Plan development
  • Plan monitoring & maintenance
  • Produce final report
  • Review project

Instance & Attributes​

  • Instance: the terms associated with specific objects. Instances are described by a set of values for the features.
  • Attributes: the collection of features of the object that are maintained in a dataset.
  • Object: a collection of features about which measurements can be taken.
    • Car: fuel consumption, cylinders, horsepower...

Qualitative & Quantitative data​

  • Qualitative data: less structured, non-statistical, measured using other descriptors and identifiers
    • white, heavy, wild...
  • Quantitative data: statistical, measured using hard numbers.
    • 130cm, 400kg, 4 legs...

Discrete & Continuous (Quantitative) data​

  • Discrete data: fixed, round numbers, countable
    • number of legs, count of aeroplane depatures, number of times a person commutes for a job in a week
  • Continuous data: measured over time intervals
    • weight, solar irradiation, temperature of a room

Summary​

QualitativeQuantitiative (discrete)Quantitiative (continuous)
TitleDurationRating
Production CountryRelease Year
Director
Genres
Description

Categorizing attributees​

항목Nominal (categorical)OrdinalIntervalRatio
정의값이 라벨·이름 역할만 함. 순서 없음.값 사이에 순서 있음. 간격은 정의되지 않음.순서 + 고정·동일한 단위(간격). 절대 0 없음.Interval 속성 + 절대적 0 있음. 차이와 비율 모두 의미 있음.
예시머리카락 색 {blonde, brown, ginger}
우편번호
산업코드, 연구분야 코드
Blood type, License number
키: tall > average > short
체중: light < average < heavy
Star ratings, Tshirt sizes
키(cm), 몸무게(kg) (원문 기준)
12시간제 시각(차이 비교)
시간 간격(5분~10분)
Waist size, Time
나이(년)
소득(천 달러)
켈빈 온도
금액, 개수, 질량, 길이, 전류
Body weight, Medicine dosage
예시머리카락 색 {blonde, brown, ginger}, 우편번호, 산업코드/연구분야 코드, Blood type, License number키: tall > average > short, 체중: light < average < heavy, Star ratings, Tshirt sizes키(cm), 몸무게(kg) (원문 기준), 12시간제 시각(차이 비교), 시간 간격(5분~10분), Waist size, Time나이(년), 소득(천 달러), 켈빈 온도, 금액, 개수, 질량, 길이, 전류, Body weight, Medicine dosage
허용 비교=, ≠=, ≠, <, >=, ≠, <, >, +, −=, ≠, <, >, +, −, ×, ÷
연산 / 분석Mode(최빈값)
Entropy(불확실성 측정)
Contingency table(교차표)
Correlation(Chi-squared test of independence)
Chi-squared test
Median
Percentiles
Rank correlation(Spearman)
Run tests(Mann–Whitney U, Wilcoxon)
Sign tests
Mean
Standard Deviation
Pearson correlation
T-test
F-test(ANOVA)
Geometric Mean
Harmonic Mean
Percent variation(CV)
설명통계적 평균·표준편차 무의미순위는 비교 가능하지만 간격·크기 비교 불가.
중앙값·순위기반 통계 적합.
간격 일정 → +, − 가능.
절대 0 없음 → 비율 해석 불가.
절대 0 → 모든 연산 가능.
비율·곱셈 해석 가능.
변수 특징Named variablesNamed & Ordered variablesNamed & Ordered & Distance between variablesNamed & Ordered & Distance between variables & Makes sense to multiply/divide
Analysis MethodFrequencyFrequency
Median and percentiles
Frequency
Median and percentiles
Add or Subtract
Mean, standard deviation, standard error of the mean
Frequency
Median and percentiles
Add or Subtract
Mean, standard deviation, standard error of the mean
Ratio
데이터 유형QualitativeQualitativeQuantitativeQuantitative
Attribute TypeDescriptionExamplesOperations
NominalThe values of a nominal attribute are just different names, i.e. nominal attributes provide only enough information to distinguish one object from another. (=, ≠)post codes, employee ID numbers, eye colour, sex: { male, female }mode, entropy, contingency, correlation, chi squared test
OrdinalThe values of an ordinal attribute provide enough information to order objects. (<, >)hardness of minerals, { good, better, best }, grades, street numbersmedian, percentiles, rank correlation, run tests, sign tests
IntervalFor interval attributes, the differences between values are meaningful, i.e. a unit of measurement exists. (+, −)calendar dates, temperature in Celsius or Fahrenheitmean, standard deviation, Pearson’s correlation, t and F tests
RatioFor ratio variables both differences and ratios are meaningful. (×, ÷)temperature in Kelvin, monetary quantities, counts, age, mass, length, electrical currentgeometric mean, harmonic mean, percent variation

Structured & Unstructured Data​

  • Structured Data: which has an associated fixed data structure.
    • Relational table
    • Manageable
  • Unstructured Data: which is expressed in natural language and no specific structure and domain types are defined.
    • Documents and sounds.
  • Semi-structured Data: the format is not fixed and has some degree of flexibility.
    • XML, JSON
    • emails, text data, image, video and sound, zipped files, web pages.

Curse of dimensionality​

The explosive nature of increasing data dimensions and its resulting exponential increase in computational efforts required for its processing and/or analysis.

  • Characteristics of structured data
    • Dimensionality: Datasets with higher numbers of attributes have more dimensions, challenging to work with high dimensional data.
    • Sparsity: A dataset termed spare data or having the property of sparsity, which contains many zeros values for most of the attributes.
    • Resolution: The patterns depend on the scale or level of resolution.
  • Real life data is usually in a lower dimensional manifold
    • many dimensions can be either ignored or the dimensionality can be reduced.
  • Local smoothness: small changes in input values give small changes in output values.
    • Local interpolation to make predictions.

Datasets​

  • Record Data
    • Data Matrix
    • Document data: a special type of data matrix where the attributes are of the same type and are asymmetric.
    • Transaction data: a special type of record data. Each record involves a set of items. Most often, the attributes are binary, indicating whether or not an item was purchased.
  • Graph data
    • World wide web, Molecular structures (Simplified molecular-inputline-entry system, SMILES)
  • Ordered data: sequence data, this is a sequence of individual entities, such as a sequence of words or letters.
    • Spatial data
    • Temporal data
    • Sequential data

Data collection​

Quality​

  • Missing values: The data was not collected (e.g. age), or some attributes may not be applicable in all cases (e.g. annual income for children).
  • Empty values: Unlike missing values, an empty value is the one that has no actual value, whereas a missing value has an actual value but it is missing somehow.
  • Noise: The modification of actual values.
  • Outlier: A single or very low frequency occurrence of a value of an attribute that is far from the bulk of attribute values.
  • Duplicate data: The same data is recorded multiple times.
  • Inconsistent formats: When the same set of data appears in multiple tables from different inputs.

Data auditing​

  • attributes
  • measured values
  • comments
  • attribute type
  • operations we can do
  • data type (knime/py)
  • missing value
  • any comments about qualities
attributesmeasured valuescommentsattribute typeoperations we can doData type (knime/python)missing valueAny comments about qualities
fixed acidity[3.8, 15.9]continuous numberratioall arithmeticfloatN/A
volatile acidity[0.08, 1.58]continuous numberratioall arithmeticfloatN/A
citric acid[0, 1.66]continuous numberratioall arithmeticfloatN/A
residual sugar[0.6, 65.8]continuous numberratioall arithmeticfloatN/A
chlorides[0.009, 0.611]continuous numberratioall arithmeticfloatN/A
free sulfur dioxide[1, 289]continuous numberratioall arithmeticintN/A
total sulfur dioxide[6, 440]continuous numberratioall arithmeticintN/A
density[0.98711, 1.03898]continuous numberratioall arithmeticfloatN/A
pH[2.72, 4.01]continuous numberintervalorder, arithmeticfloatN/A
sulphates[0.22, 2]continuous numberratioall arithmeticfloatN/A
alcohol[8, 14.9]continuous numberratioall arithmeticfloatN/A
quality[extremely dissatisfied, extremely satisfied, moderately dissatisfied, moderately satisfied, neutral, slightly dissatisfied, slightly satisfied]distributedordinalorder, countingstrN/A
color[white, red]distributednominalcountingstrN/A